diff --git a/__pycache__/utils.cpython-312.pyc b/__pycache__/utils.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..42640aacc5e217cbdafbae31bdf5ca3557918fd0 Binary files /dev/null and b/__pycache__/utils.cpython-312.pyc differ diff --git a/__pycache__/utils.cpython-39.pyc b/__pycache__/utils.cpython-39.pyc index c6aa55afb99341b21791abd1d4dcf459ff9c1d7f..4ed784607b1c6ff12f1a467079ed97548bc8abc1 100644 Binary files a/__pycache__/utils.cpython-39.pyc and b/__pycache__/utils.cpython-39.pyc differ diff --git a/environment_cu118.yml b/environment_cu118.yml index b5430c315d3f3861128861b8ceda315db25f42aa..b48921af1cbab634add0ee5585ae65366a72d9e6 100644 --- a/environment_cu118.yml +++ b/environment_cu118.yml @@ -490,7 +490,7 @@ dependencies: - tomli==2.0.1 - toolz==0.12.0 - torchio==0.19.2 - - torchvision==0.15.2 + - torchvision==0.15.2+cu118 - tornado==6.3.1 - tqdm==4.64.1 - traceback2==1.4.0 diff --git a/medomni/models.build/.sconsign-39.dblite b/medomni/models.build/.sconsign-39.dblite deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/medomni/models.build/@link_input.txt b/medomni/models.build/@link_input.txt deleted file mode 100644 index 2929339baff855c1024b1862a1659c2270059306..0000000000000000000000000000000000000000 --- a/medomni/models.build/@link_input.txt +++ /dev/null @@ -1,31 +0,0 @@ -"./__constants.o" -"./__constants_data.o" -"./__helpers.o" -"./__loader.o" -"./module.models.Qformer.o" -"./module.models.UNet.o" -"./module.models.base_model.o" -"./module.models.blip2.o" -"./module.models.blip2_outputs.o" -"./module.models.o" -"./module.models.eva_vit.o" -"./module.models.medomni.o" -"./module.models.medomni_bp.o" -"./module.models.modeling_llama.o" -"./module.models.unet3d.buildingblocks.o" -"./module.models.unet3d.o" -"./module.models.unet3d.config.o" -"./module.models.unet3d.losses.o" -"./module.models.unet3d.metrics.o" -"./module.models.unet3d.model.o" -"./module.models.unet3d.predictor.o" -"./module.models.unet3d.se.o" -"./module.models.unet3d.seg_metrics.o" -"./module.models.unet3d.trainer.o" -"./module.models.unet3d.utils.o" -"./static_src/CompiledCellType.o" -"./static_src/CompiledFunctionType.o" -"./static_src/CompiledGeneratorType.o" -"./static_src/CompiledCodeHelpers.o" -"./static_src/InspectPatcher.o" -"./static_src/MetaPathBasedLoader.o" diff --git a/medomni/models.build/__bytecode.const b/medomni/models.build/__bytecode.const deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/medomni/models.build/__constants.bin b/medomni/models.build/__constants.bin deleted file mode 100644 index 423da893abfc0c93336d24e8ecc512476e3aef99..0000000000000000000000000000000000000000 --- a/medomni/models.build/__constants.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e743a8d6dc443ba48fed9e856719866420c51c4133449b65ad6efdc7cb568f28 -size 131173 diff --git a/medomni/models.build/__constants.const b/medomni/models.build/__constants.const deleted file mode 100644 index 1cb87e2eccad4b6a7e4bf05478fe1b1713867106..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/__constants.const and /dev/null differ diff --git a/medomni/models.build/__constants.cpp b/medomni/models.build/__constants.cpp deleted file mode 100644 index 8fcb922f5d333597e439821e74053408cb63aa02..0000000000000000000000000000000000000000 --- a/medomni/models.build/__constants.cpp +++ /dev/null @@ -1,140 +0,0 @@ - -#include "nuitka/prelude.h" -#include "structseq.h" - -// Global constants storage -PyObject *global_constants[60]; - -// Sentinel PyObject to be used for all our call iterator endings. It will -// become a PyCObject pointing to NULL. It's address is unique, and that's -// enough for us to use it as sentinel value. -PyObject *_sentinel_value = NULL; - -PyObject *Nuitka_dunder_compiled_value = NULL; - - -#ifdef _NUITKA_STANDALONE -extern PyObject *getStandaloneSysExecutablePath(PyObject *basename); -#endif - -static void _createGlobalConstants(void) { - // The empty name means global. - loadConstantsBlob(&global_constants[0], ""); - -#if _NUITKA_EXE - /* Set the "sys.executable" path to the original CPython executable or point to inside the - distribution for standalone. */ - PySys_SetObject( - (char *)"executable", -#ifndef _NUITKA_STANDALONE - None -#else - getStandaloneSysExecutablePath(None) -#endif - ); - -#ifndef _NUITKA_STANDALONE - /* Set the "sys.prefix" path to the original one. */ - PySys_SetObject( - (char *)"prefix", - None - ); - - /* Set the "sys.prefix" path to the original one. */ - PySys_SetObject( - (char *)"exec_prefix", - None - ); - - -#if PYTHON_VERSION >= 0x300 - /* Set the "sys.base_prefix" path to the original one. */ - PySys_SetObject( - (char *)"base_prefix", - None - ); - - /* Set the "sys.exec_base_prefix" path to the original one. */ - PySys_SetObject( - (char *)"base_exec_prefix", - None - ); - -#endif -#endif -#endif - - static PyTypeObject Nuitka_VersionInfoType; - - // Same fields as "sys.version_info" except no serial number. - static PyStructSequence_Field Nuitka_VersionInfoFields[] = { - {(char *)"major", (char *)"Major release number"}, - {(char *)"minor", (char *)"Minor release number"}, - {(char *)"micro", (char *)"Micro release number"}, - {(char *)"releaselevel", (char *)"'alpha', 'beta', 'candidate', or 'release'"}, - {(char *)"standalone", (char *)"boolean indicating standalone mode usage"}, - {(char *)"onefile", (char *)"boolean indicating standalone mode usage"}, - {0} - }; - - static PyStructSequence_Desc Nuitka_VersionInfoDesc = { - (char *)"__nuitka_version__", /* name */ - (char *)"__compiled__\\n\\nVersion information as a named tuple.", /* doc */ - Nuitka_VersionInfoFields, /* fields */ - 6 - }; - - PyStructSequence_InitType(&Nuitka_VersionInfoType, &Nuitka_VersionInfoDesc); - - Nuitka_dunder_compiled_value = PyStructSequence_New(&Nuitka_VersionInfoType); - assert(Nuitka_dunder_compiled_value != NULL); - - PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 0, PyInt_FromLong(0)); - PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 1, PyInt_FromLong(6)); - PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 2, PyInt_FromLong(16)); - - PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 3, Nuitka_String_FromString("release")); - -#ifdef _NUITKA_STANDALONE - PyObject *is_standalone_mode = Py_True; -#else - PyObject *is_standalone_mode = Py_False; -#endif -#ifdef _NUITKA_ONEFILE - PyObject *is_onefile_mode = Py_True; -#else - PyObject *is_onefile_mode = Py_False; -#endif - - PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 4, is_standalone_mode); - PyStructSequence_SET_ITEM(Nuitka_dunder_compiled_value, 5, is_onefile_mode); - - // Prevent users from creating the Nuitka version type object. - Nuitka_VersionInfoType.tp_init = NULL; - Nuitka_VersionInfoType.tp_new = NULL; -} - -// In debug mode we can check that the constants were not tampered with in any -// given moment. We typically do it at program exit, but we can add extra calls -// for sanity. -#ifndef __NUITKA_NO_ASSERT__ -void checkGlobalConstants(void) { -// TODO: Ask constant code to check values. - -} -#endif - -void createGlobalConstants(void) { - if (_sentinel_value == NULL) { -#if PYTHON_VERSION < 0x300 - _sentinel_value = PyCObject_FromVoidPtr(NULL, NULL); -#else - // The NULL value is not allowed for a capsule, so use something else. - _sentinel_value = PyCapsule_New((void *)27, "sentinel", NULL); -#endif - assert(_sentinel_value); - - _createGlobalConstants(); - } -} - diff --git a/medomni/models.build/__constants.h b/medomni/models.build/__constants.h deleted file mode 100644 index 2658d52ac451fc65c9837d7ca59374b7e98811de..0000000000000000000000000000000000000000 --- a/medomni/models.build/__constants.h +++ /dev/null @@ -1,130 +0,0 @@ -#ifndef __NUITKA_GLOBAL_CONSTANTS_H__ -#define __NUITKA_GLOBAL_CONSTANTS_H__ - -extern PyObject *global_constants[60]; -// () -#define const_tuple_empty global_constants[0] -// {} -#define const_dict_empty global_constants[1] -// 0 -#define const_int_0 global_constants[2] -// 1 -#define const_int_pos_1 global_constants[3] -// -1 -#define const_int_neg_1 global_constants[4] -// 0.0 -#define const_float_0_0 global_constants[5] -// -0.0 -#define const_float_minus_0_0 global_constants[6] -// 1.0 -#define const_float_1_0 global_constants[7] -// -1.0 -#define const_float_minus_1_0 global_constants[8] -// 0 -#define const_int_0 global_constants[2] -// '' -#define const_str_empty global_constants[9] -// b'' -#define const_bytes_empty global_constants[10] -// '__module__' -#define const_str_plain___module__ global_constants[11] -// '__class__' -#define const_str_plain___class__ global_constants[12] -// '__name__' -#define const_str_plain___name__ global_constants[13] -// '__package__' -#define const_str_plain___package__ global_constants[14] -// '__metaclass__' -#define const_str_plain___metaclass__ global_constants[15] -// '__dict__' -#define const_str_plain___dict__ global_constants[16] -// '__doc__' -#define const_str_plain___doc__ global_constants[17] -// '__file__' -#define const_str_plain___file__ global_constants[18] -// '__path__' -#define const_str_plain___path__ global_constants[19] -// '__enter__' -#define const_str_plain___enter__ global_constants[20] -// '__exit__' -#define const_str_plain___exit__ global_constants[21] -// '__builtins__' -#define const_str_plain___builtins__ global_constants[22] -// '__all__' -#define const_str_plain___all__ global_constants[23] -// '__cmp__' -#define const_str_plain___cmp__ global_constants[24] -// '__iter__' -#define const_str_plain___iter__ global_constants[25] -// '__compiled__' -#define const_str_plain___compiled__ global_constants[26] -// 'inspect' -#define const_str_plain_inspect global_constants[27] -// 'compile' -#define const_str_plain_compile global_constants[28] -// 'range' -#define const_str_plain_range global_constants[29] -// 'open' -#define const_str_plain_open global_constants[30] -// 'sum' -#define const_str_plain_sum global_constants[31] -// 'format' -#define const_str_plain_format global_constants[32] -// '__import__' -#define const_str_plain___import__ global_constants[33] -// 'bytearray' -#define const_str_plain_bytearray global_constants[34] -// 'staticmethod' -#define const_str_plain_staticmethod global_constants[35] -// 'classmethod' -#define const_str_plain_classmethod global_constants[36] -// 'name' -#define const_str_plain_name global_constants[37] -// 'globals' -#define const_str_plain_globals global_constants[38] -// 'locals' -#define const_str_plain_locals global_constants[39] -// 'fromlist' -#define const_str_plain_fromlist global_constants[40] -// 'level' -#define const_str_plain_level global_constants[41] -// 'read' -#define const_str_plain_read global_constants[42] -// 'rb' -#define const_str_plain_rb global_constants[43] -// 'getattr' -#define const_str_plain_getattr global_constants[44] -// '__cached__' -#define const_str_plain___cached__ global_constants[45] -// '__loader__' -#define const_str_plain___loader__ global_constants[46] -// 'print' -#define const_str_plain_print global_constants[47] -// 'end' -#define const_str_plain_end global_constants[48] -// 'file' -#define const_str_plain_file global_constants[49] -// 'bytes' -#define const_str_plain_bytes global_constants[50] -// '.' -#define const_str_dot global_constants[51] -// '__loader__' -#define const_str_plain___loader__ global_constants[46] -// 'send' -#define const_str_plain_send global_constants[52] -// 'throw' -#define const_str_plain_throw global_constants[53] -// 'close' -#define const_str_plain_close global_constants[54] -// '__spec__' -#define const_str_plain___spec__ global_constants[55] -// '_initializing' -#define const_str_plain__initializing global_constants[56] -// 'parent' -#define const_str_plain_parent global_constants[57] -// 'types' -#define const_str_plain_types global_constants[58] -// '__class_getitem__' -#define const_str_plain___class_getitem__ global_constants[59] -#endif - diff --git a/medomni/models.build/__constants_data.cpp b/medomni/models.build/__constants_data.cpp deleted file mode 100644 index 1d6e0daca045aa20dabcc2c616c521cc4f178e52..0000000000000000000000000000000000000000 --- a/medomni/models.build/__constants_data.cpp +++ /dev/null @@ -1,15 +0,0 @@ - -#define INCBIN_PREFIX -#define INCBIN_STYLE INCBIN_STYLE_SNAKE -#define INCBIN_LOCAL -#ifdef _NUITKA_EXPERIMENTAL_WRITEABLE_CONSTANTS -#define INCBIN_OUTPUT_SECTION ".data" -#endif - -#include "nuitka/incbin.h" - -INCBIN(constant_bin, "__constants.bin"); - -unsigned char const *getConstantsBlobData() { - return constant_bin_data; -} diff --git a/medomni/models.build/__constants_data.os b/medomni/models.build/__constants_data.os deleted file mode 100644 index c3171c09d24fa133b480f18e06c9e626b6081978..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/__constants_data.os and /dev/null differ diff --git a/medomni/models.build/__helpers.cpp b/medomni/models.build/__helpers.cpp deleted file mode 100644 index bf81c1973e6ce2d872ebfc919d0294246ea2b2bb..0000000000000000000000000000000000000000 --- a/medomni/models.build/__helpers.cpp +++ /dev/null @@ -1,4343 +0,0 @@ -// This file contains helper functions that are automatically created from -// templates. - -#include "nuitka/prelude.h" - -extern PyObject *callPythonFunction( PyObject *func, PyObject **args, int count ); - - -PyObject *CALL_FUNCTION_WITH_ARGS1(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 1; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 1 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 1; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 1 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 1 * sizeof(PyObject *)); - memcpy(python_pars + 1, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 1)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 1 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 1; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 1 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 1 * sizeof(PyObject *)); - memcpy(python_pars+1 + 1, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 1)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 1 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (1 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 1 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (1 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 1); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 1, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 1); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 1 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 1); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS2(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 2; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 2 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 2; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 2 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 2 * sizeof(PyObject *)); - memcpy(python_pars + 2, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 2)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 2 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 2; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 2 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 2 * sizeof(PyObject *)); - memcpy(python_pars+1 + 2, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 2)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 2 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (2 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 2 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (2 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 2); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 2, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 2); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 2 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 2); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS3(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 3; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 3 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 3; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 3 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 3 * sizeof(PyObject *)); - memcpy(python_pars + 3, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 3)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 3 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 3; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 3 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 3 * sizeof(PyObject *)); - memcpy(python_pars+1 + 3, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 3)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 3 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (3 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 3 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (3 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 3); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 3, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 3); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 3 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 3); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS4(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 4; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 4 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 4; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 4 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 4 * sizeof(PyObject *)); - memcpy(python_pars + 4, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 4)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 4 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 4; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 4 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 4 * sizeof(PyObject *)); - memcpy(python_pars+1 + 4, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 4)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 4 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (4 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 4 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (4 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 4); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 4, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 4); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 4 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 4); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS5(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 5; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 5 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 5; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 5 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 5 * sizeof(PyObject *)); - memcpy(python_pars + 5, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 5)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 5 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 5; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 5 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 5 * sizeof(PyObject *)); - memcpy(python_pars+1 + 5, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 5)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 5 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (5 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 5 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (5 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 5); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 5, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 5); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 5 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 5); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS6(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 6; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 6 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 6; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 6 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 6 * sizeof(PyObject *)); - memcpy(python_pars + 6, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 6)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 6 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 6; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 6 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 6 * sizeof(PyObject *)); - memcpy(python_pars+1 + 6, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 6)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 6 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (6 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 6 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (6 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 6); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 6, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 6); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 6 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 6); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS7(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 7; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 7 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 7; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 7 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 7 * sizeof(PyObject *)); - memcpy(python_pars + 7, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 7)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 7 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 7; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 7 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 7 * sizeof(PyObject *)); - memcpy(python_pars+1 + 7, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 7)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 7 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (7 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 7 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (7 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 7); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 7, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 7); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 7 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 7); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS8(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 8; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 8 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 8; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 8 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 8 * sizeof(PyObject *)); - memcpy(python_pars + 8, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 8)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 8 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 8; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 8 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 8 * sizeof(PyObject *)); - memcpy(python_pars+1 + 8, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 8)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 8 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (8 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 8 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (8 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 8); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 8, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 8); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 8 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 8); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_FUNCTION_WITH_ARGS9(PyObject *called, PyObject **args) { - CHECK_OBJECT(called); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 9; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - if (Nuitka_Function_Check(called)) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)called; - PyObject *result; - - if (function->m_args_simple && 9 == function->m_args_positional_count){ - for (Py_ssize_t i = 0; i < 9; i++) { - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, args); - } else if (function->m_args_simple && 9 + function->m_defaults_given == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - memcpy(python_pars, args, 9 * sizeof(PyObject *)); - memcpy(python_pars + 9, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 0; i < function->m_args_positional_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsPos(function, python_pars, args, 9)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } else if (Nuitka_Method_Check(called)) { - struct Nuitka_MethodObject *method = (struct Nuitka_MethodObject *)called; - - // Unbound method without arguments, let the error path be slow. - if (method->m_object != NULL) { - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } - - struct Nuitka_FunctionObject *function = method->m_function; - - PyObject *result; - - if (function->m_args_simple && 9 + 1 == function->m_args_positional_count) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - for (Py_ssize_t i = 0; i < 9; i++) { - python_pars[i + 1] = args[i]; - Py_INCREF(args[i]); - } - - result = function->m_c_code(function, python_pars); - } else if ( function->m_args_simple && 9 + 1 + function->m_defaults_given == function->m_args_positional_count ) { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_positional_count); -#else - PyObject *python_pars[function->m_args_positional_count]; -#endif - python_pars[0] = method->m_object; - Py_INCREF(method->m_object); - - memcpy(python_pars+1, args, 9 * sizeof(PyObject *)); - memcpy(python_pars+1 + 9, &PyTuple_GET_ITEM(function->m_defaults, 0), function->m_defaults_given * sizeof(PyObject *)); - - for (Py_ssize_t i = 1; i < function->m_args_overall_count; i++) { - Py_INCREF(python_pars[i]); - } - - result = function->m_c_code(function, python_pars); - } else { -#ifdef _MSC_VER - PyObject **python_pars = (PyObject **)_alloca(sizeof(PyObject *) * function->m_args_overall_count); -#else - PyObject *python_pars[function->m_args_overall_count]; -#endif - memset(python_pars, 0, function->m_args_overall_count * sizeof(PyObject *)); - - if (parseArgumentsMethodPos(function, python_pars, method->m_object, args, 9)) { - result = function->m_c_code(function, python_pars); - } else { - result = NULL; - } - } - - Py_LeaveRecursiveCall(); - - return result; - } - } else if (PyCFunction_Check(called)) { - // Try to be fast about wrapping the arguments. - int flags = PyCFunction_GET_FLAGS(called) & ~(METH_CLASS | METH_STATIC | METH_COEXIST); - - if (flags & METH_NOARGS) { -#if 9 == 0 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, NULL ); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1( - PyExc_TypeError, - "%s() takes no arguments (9 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_O) { -#if 9 == 1 - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - - PyObject *result = (*method)( self, args[0]); - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - return NULL; - } -#else - SET_CURRENT_EXCEPTION_TYPE0_FORMAT1(PyExc_TypeError, - "%s() takes exactly one argument (9 given)", - ((PyCFunctionObject *)called)->m_ml->ml_name - ); - return NULL; -#endif - } else if (flags & METH_VARARGS) { - PyCFunction method = PyCFunction_GET_FUNCTION(called); - PyObject *self = PyCFunction_GET_SELF(called); - - PyObject *pos_args = MAKE_TUPLE(args, 9); - - PyObject *result; - - // Recursion guard is not strictly necessary, as we already have - // one on our way to here. -#ifdef _NUITKA_FULL_COMPAT - if (unlikely(Py_EnterRecursiveCall((char *)" while calling a Python object"))) { - return NULL; - } -#endif - -#if PYTHON_VERSION < 0x360 - if (flags & METH_KEYWORDS) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else { - result = (*method)(self, pos_args); - } -#else - if (flags == (METH_VARARGS|METH_KEYWORDS)) { - result = (*(PyCFunctionWithKeywords)method)(self, pos_args, NULL); - } else if (flags == METH_FASTCALL) { -#if PYTHON_VERSION < 0x370 - result = (*(_PyCFunctionFast)method)(self, &PyTuple_GET_ITEM(pos_args, 0), 9, NULL); -#else - result = (*(_PyCFunctionFast)method)(self, &pos_args, 9); -#endif - } else { - result = (*method)(self, pos_args); - } -#endif - -#ifdef _NUITKA_FULL_COMPAT - Py_LeaveRecursiveCall(); -#endif - - if (result != NULL) { - // Some buggy C functions do set an error, but do not indicate it - // and Nuitka inner workings can get upset/confused from it. - DROP_ERROR_OCCURRED(); - - Py_DECREF(pos_args); - return result; - } else { - // Other buggy C functions do this, return NULL, but with - // no error set, not allowed. - if (unlikely(!ERROR_OCCURRED())) { - SET_CURRENT_EXCEPTION_TYPE0_STR( - PyExc_SystemError, - "NULL result without error in PyObject_Call" - ); - } - - Py_DECREF(pos_args); - return NULL; - } - } - } else if (PyFunction_Check(called)) { - return callPythonFunction( - called, - args, - 9 - ); - } - - PyObject *pos_args = MAKE_TUPLE(args, 9); - - PyObject *result = CALL_FUNCTION(called, pos_args, NULL); - - Py_DECREF(pos_args); - - return result; -} - -PyObject *CALL_METHOD_WITH_ARGS1(PyObject *source, PyObject *attr_name, PyObject **args) { - CHECK_OBJECT(source); - CHECK_OBJECT(attr_name); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 1; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - PyTypeObject *type = Py_TYPE(source); - - if (type->tp_getattro == PyObject_GenericGetAttr) { - // Unfortunately this is required, although of cause rarely necessary. - if (unlikely(type->tp_dict == NULL)) { - if (unlikely(PyType_Ready(type) < 0)) { - return NULL; - } - } - - PyObject *descr = _PyType_Lookup(type, attr_name); - descrgetfunc func = NULL; - - if (descr != NULL) { - Py_INCREF(descr); - -#if PYTHON_VERSION < 0x300 - if (PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)) { -#endif - func = Py_TYPE(descr)->tp_descr_get; - - if (func != NULL && PyDescr_IsData(descr)) { - PyObject *called_object = func(descr, source, (PyObject *)type); - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } -#if PYTHON_VERSION < 0x300 - } -#endif - } - - Py_ssize_t dictoffset = type->tp_dictoffset; - PyObject *dict = NULL; - - if (dictoffset != 0) { - // Negative dictionary offsets have special meaning. - if (dictoffset < 0) { - Py_ssize_t tsize; - size_t size; - - tsize = ((PyVarObject *)source)->ob_size; - if (tsize < 0) { - tsize = -tsize; - } - size = _PyObject_VAR_SIZE( type, tsize ); - - dictoffset += (long)size; - } - - PyObject **dictptr = (PyObject **) ((char *)source + dictoffset); - dict = *dictptr; - } - - if (dict != NULL) { - CHECK_OBJECT(dict); - - Py_INCREF(dict); - - PyObject *called_object = DICT_GET_ITEM1(dict, attr_name); - - if (called_object != NULL) { - Py_XDECREF(descr); - Py_DECREF(dict); - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - - Py_DECREF(dict); - } - - if (func != NULL) { - if (func == Nuitka_Function_Type.tp_descr_get) { - PyObject *result = Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)descr, - source, - args, - 1 - ); - - Py_DECREF(descr); - - return result; - } else { - PyObject *called_object = func(descr, source, (PyObject *)type); - CHECK_OBJECT(called_object); - - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - called_object, - args - ); - Py_DECREF(called_object); - - return result; - } - } - - if (descr != NULL) { - CHECK_OBJECT(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - descr, - args - ); - Py_DECREF(descr); - - return result; - } - -#if PYTHON_VERSION < 0x300 - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - PyString_AS_STRING(attr_name) - ); -#else - PyErr_Format( - PyExc_AttributeError, - "'%s' object has no attribute '%U'", - type->tp_name, - attr_name - ); -#endif - return NULL; - } -#if PYTHON_VERSION < 0x300 - else if (type == &PyInstance_Type) { - PyInstanceObject *source_instance = (PyInstanceObject *)source; - - // The special cases have their own variant on the code generation level - // as we are called with constants only. - assert(attr_name != const_str_plain___dict__); - assert(attr_name != const_str_plain___class__); - - // Try the instance dict first. - PyObject *called_object = GET_STRING_DICT_VALUE( - (PyDictObject *)source_instance->in_dict, - (PyStringObject *)attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - return CALL_FUNCTION_WITH_ARGS1(called_object, args); - } - - // Then check the class dictionaries. - called_object = FIND_ATTRIBUTE_IN_CLASS( - source_instance->in_class, - attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - descrgetfunc descr_get = Py_TYPE(called_object)->tp_descr_get; - - if (descr_get == Nuitka_Function_Type.tp_descr_get) { - return Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)called_object, - source, - args, - 1 - ); - } else if (descr_get != NULL) { - PyObject *method = descr_get( - called_object, - source, - (PyObject *)source_instance->in_class - ); - - if (unlikely(method == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS1(method, args); - Py_DECREF(method); - return result; - } else { - return CALL_FUNCTION_WITH_ARGS1(called_object, args); - } - - } else if (unlikely(source_instance->in_class->cl_getattr == NULL)) { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "%s instance has no attribute '%s'", - PyString_AS_STRING(source_instance->in_class->cl_name), - PyString_AS_STRING(attr_name) - ); - - return NULL; - } else { - // Finally allow the "__getattr__" override to provide it or else - // it's an error. - - PyObject *args2[] = { - source, - attr_name - }; - - called_object = CALL_FUNCTION_WITH_ARGS2( - source_instance->in_class->cl_getattr, - args2 - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - } -#endif - else if (type->tp_getattro != NULL) { - PyObject *called_object = (*type->tp_getattro)( - source, - attr_name - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else if (type->tp_getattr != NULL) { - PyObject *called_object = (*type->tp_getattr)( - source, - (char *)Nuitka_String_AsString_Unchecked(attr_name) - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS1( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - Nuitka_String_AsString_Unchecked(attr_name) - ); - - return NULL; - } -} - -PyObject *CALL_METHOD_WITH_ARGS2(PyObject *source, PyObject *attr_name, PyObject **args) { - CHECK_OBJECT(source); - CHECK_OBJECT(attr_name); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 2; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - PyTypeObject *type = Py_TYPE(source); - - if (type->tp_getattro == PyObject_GenericGetAttr) { - // Unfortunately this is required, although of cause rarely necessary. - if (unlikely(type->tp_dict == NULL)) { - if (unlikely(PyType_Ready(type) < 0)) { - return NULL; - } - } - - PyObject *descr = _PyType_Lookup(type, attr_name); - descrgetfunc func = NULL; - - if (descr != NULL) { - Py_INCREF(descr); - -#if PYTHON_VERSION < 0x300 - if (PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)) { -#endif - func = Py_TYPE(descr)->tp_descr_get; - - if (func != NULL && PyDescr_IsData(descr)) { - PyObject *called_object = func(descr, source, (PyObject *)type); - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } -#if PYTHON_VERSION < 0x300 - } -#endif - } - - Py_ssize_t dictoffset = type->tp_dictoffset; - PyObject *dict = NULL; - - if (dictoffset != 0) { - // Negative dictionary offsets have special meaning. - if (dictoffset < 0) { - Py_ssize_t tsize; - size_t size; - - tsize = ((PyVarObject *)source)->ob_size; - if (tsize < 0) { - tsize = -tsize; - } - size = _PyObject_VAR_SIZE( type, tsize ); - - dictoffset += (long)size; - } - - PyObject **dictptr = (PyObject **) ((char *)source + dictoffset); - dict = *dictptr; - } - - if (dict != NULL) { - CHECK_OBJECT(dict); - - Py_INCREF(dict); - - PyObject *called_object = DICT_GET_ITEM1(dict, attr_name); - - if (called_object != NULL) { - Py_XDECREF(descr); - Py_DECREF(dict); - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - - Py_DECREF(dict); - } - - if (func != NULL) { - if (func == Nuitka_Function_Type.tp_descr_get) { - PyObject *result = Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)descr, - source, - args, - 2 - ); - - Py_DECREF(descr); - - return result; - } else { - PyObject *called_object = func(descr, source, (PyObject *)type); - CHECK_OBJECT(called_object); - - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - called_object, - args - ); - Py_DECREF(called_object); - - return result; - } - } - - if (descr != NULL) { - CHECK_OBJECT(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - descr, - args - ); - Py_DECREF(descr); - - return result; - } - -#if PYTHON_VERSION < 0x300 - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - PyString_AS_STRING(attr_name) - ); -#else - PyErr_Format( - PyExc_AttributeError, - "'%s' object has no attribute '%U'", - type->tp_name, - attr_name - ); -#endif - return NULL; - } -#if PYTHON_VERSION < 0x300 - else if (type == &PyInstance_Type) { - PyInstanceObject *source_instance = (PyInstanceObject *)source; - - // The special cases have their own variant on the code generation level - // as we are called with constants only. - assert(attr_name != const_str_plain___dict__); - assert(attr_name != const_str_plain___class__); - - // Try the instance dict first. - PyObject *called_object = GET_STRING_DICT_VALUE( - (PyDictObject *)source_instance->in_dict, - (PyStringObject *)attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - return CALL_FUNCTION_WITH_ARGS2(called_object, args); - } - - // Then check the class dictionaries. - called_object = FIND_ATTRIBUTE_IN_CLASS( - source_instance->in_class, - attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - descrgetfunc descr_get = Py_TYPE(called_object)->tp_descr_get; - - if (descr_get == Nuitka_Function_Type.tp_descr_get) { - return Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)called_object, - source, - args, - 2 - ); - } else if (descr_get != NULL) { - PyObject *method = descr_get( - called_object, - source, - (PyObject *)source_instance->in_class - ); - - if (unlikely(method == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS2(method, args); - Py_DECREF(method); - return result; - } else { - return CALL_FUNCTION_WITH_ARGS2(called_object, args); - } - - } else if (unlikely(source_instance->in_class->cl_getattr == NULL)) { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "%s instance has no attribute '%s'", - PyString_AS_STRING(source_instance->in_class->cl_name), - PyString_AS_STRING(attr_name) - ); - - return NULL; - } else { - // Finally allow the "__getattr__" override to provide it or else - // it's an error. - - PyObject *args2[] = { - source, - attr_name - }; - - called_object = CALL_FUNCTION_WITH_ARGS2( - source_instance->in_class->cl_getattr, - args2 - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - } -#endif - else if (type->tp_getattro != NULL) { - PyObject *called_object = (*type->tp_getattro)( - source, - attr_name - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else if (type->tp_getattr != NULL) { - PyObject *called_object = (*type->tp_getattr)( - source, - (char *)Nuitka_String_AsString_Unchecked(attr_name) - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS2( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - Nuitka_String_AsString_Unchecked(attr_name) - ); - - return NULL; - } -} - -PyObject *CALL_METHOD_WITH_ARGS3(PyObject *source, PyObject *attr_name, PyObject **args) { - CHECK_OBJECT(source); - CHECK_OBJECT(attr_name); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 3; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - PyTypeObject *type = Py_TYPE(source); - - if (type->tp_getattro == PyObject_GenericGetAttr) { - // Unfortunately this is required, although of cause rarely necessary. - if (unlikely(type->tp_dict == NULL)) { - if (unlikely(PyType_Ready(type) < 0)) { - return NULL; - } - } - - PyObject *descr = _PyType_Lookup(type, attr_name); - descrgetfunc func = NULL; - - if (descr != NULL) { - Py_INCREF(descr); - -#if PYTHON_VERSION < 0x300 - if (PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)) { -#endif - func = Py_TYPE(descr)->tp_descr_get; - - if (func != NULL && PyDescr_IsData(descr)) { - PyObject *called_object = func(descr, source, (PyObject *)type); - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } -#if PYTHON_VERSION < 0x300 - } -#endif - } - - Py_ssize_t dictoffset = type->tp_dictoffset; - PyObject *dict = NULL; - - if (dictoffset != 0) { - // Negative dictionary offsets have special meaning. - if (dictoffset < 0) { - Py_ssize_t tsize; - size_t size; - - tsize = ((PyVarObject *)source)->ob_size; - if (tsize < 0) { - tsize = -tsize; - } - size = _PyObject_VAR_SIZE( type, tsize ); - - dictoffset += (long)size; - } - - PyObject **dictptr = (PyObject **) ((char *)source + dictoffset); - dict = *dictptr; - } - - if (dict != NULL) { - CHECK_OBJECT(dict); - - Py_INCREF(dict); - - PyObject *called_object = DICT_GET_ITEM1(dict, attr_name); - - if (called_object != NULL) { - Py_XDECREF(descr); - Py_DECREF(dict); - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - - Py_DECREF(dict); - } - - if (func != NULL) { - if (func == Nuitka_Function_Type.tp_descr_get) { - PyObject *result = Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)descr, - source, - args, - 3 - ); - - Py_DECREF(descr); - - return result; - } else { - PyObject *called_object = func(descr, source, (PyObject *)type); - CHECK_OBJECT(called_object); - - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - called_object, - args - ); - Py_DECREF(called_object); - - return result; - } - } - - if (descr != NULL) { - CHECK_OBJECT(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - descr, - args - ); - Py_DECREF(descr); - - return result; - } - -#if PYTHON_VERSION < 0x300 - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - PyString_AS_STRING(attr_name) - ); -#else - PyErr_Format( - PyExc_AttributeError, - "'%s' object has no attribute '%U'", - type->tp_name, - attr_name - ); -#endif - return NULL; - } -#if PYTHON_VERSION < 0x300 - else if (type == &PyInstance_Type) { - PyInstanceObject *source_instance = (PyInstanceObject *)source; - - // The special cases have their own variant on the code generation level - // as we are called with constants only. - assert(attr_name != const_str_plain___dict__); - assert(attr_name != const_str_plain___class__); - - // Try the instance dict first. - PyObject *called_object = GET_STRING_DICT_VALUE( - (PyDictObject *)source_instance->in_dict, - (PyStringObject *)attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - return CALL_FUNCTION_WITH_ARGS3(called_object, args); - } - - // Then check the class dictionaries. - called_object = FIND_ATTRIBUTE_IN_CLASS( - source_instance->in_class, - attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - descrgetfunc descr_get = Py_TYPE(called_object)->tp_descr_get; - - if (descr_get == Nuitka_Function_Type.tp_descr_get) { - return Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)called_object, - source, - args, - 3 - ); - } else if (descr_get != NULL) { - PyObject *method = descr_get( - called_object, - source, - (PyObject *)source_instance->in_class - ); - - if (unlikely(method == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS3(method, args); - Py_DECREF(method); - return result; - } else { - return CALL_FUNCTION_WITH_ARGS3(called_object, args); - } - - } else if (unlikely(source_instance->in_class->cl_getattr == NULL)) { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "%s instance has no attribute '%s'", - PyString_AS_STRING(source_instance->in_class->cl_name), - PyString_AS_STRING(attr_name) - ); - - return NULL; - } else { - // Finally allow the "__getattr__" override to provide it or else - // it's an error. - - PyObject *args2[] = { - source, - attr_name - }; - - called_object = CALL_FUNCTION_WITH_ARGS2( - source_instance->in_class->cl_getattr, - args2 - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - } -#endif - else if (type->tp_getattro != NULL) { - PyObject *called_object = (*type->tp_getattro)( - source, - attr_name - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else if (type->tp_getattr != NULL) { - PyObject *called_object = (*type->tp_getattr)( - source, - (char *)Nuitka_String_AsString_Unchecked(attr_name) - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS3( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - Nuitka_String_AsString_Unchecked(attr_name) - ); - - return NULL; - } -} - -PyObject *CALL_METHOD_WITH_ARGS4(PyObject *source, PyObject *attr_name, PyObject **args) { - CHECK_OBJECT(source); - CHECK_OBJECT(attr_name); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 4; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - PyTypeObject *type = Py_TYPE(source); - - if (type->tp_getattro == PyObject_GenericGetAttr) { - // Unfortunately this is required, although of cause rarely necessary. - if (unlikely(type->tp_dict == NULL)) { - if (unlikely(PyType_Ready(type) < 0)) { - return NULL; - } - } - - PyObject *descr = _PyType_Lookup(type, attr_name); - descrgetfunc func = NULL; - - if (descr != NULL) { - Py_INCREF(descr); - -#if PYTHON_VERSION < 0x300 - if (PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)) { -#endif - func = Py_TYPE(descr)->tp_descr_get; - - if (func != NULL && PyDescr_IsData(descr)) { - PyObject *called_object = func(descr, source, (PyObject *)type); - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } -#if PYTHON_VERSION < 0x300 - } -#endif - } - - Py_ssize_t dictoffset = type->tp_dictoffset; - PyObject *dict = NULL; - - if (dictoffset != 0) { - // Negative dictionary offsets have special meaning. - if (dictoffset < 0) { - Py_ssize_t tsize; - size_t size; - - tsize = ((PyVarObject *)source)->ob_size; - if (tsize < 0) { - tsize = -tsize; - } - size = _PyObject_VAR_SIZE( type, tsize ); - - dictoffset += (long)size; - } - - PyObject **dictptr = (PyObject **) ((char *)source + dictoffset); - dict = *dictptr; - } - - if (dict != NULL) { - CHECK_OBJECT(dict); - - Py_INCREF(dict); - - PyObject *called_object = DICT_GET_ITEM1(dict, attr_name); - - if (called_object != NULL) { - Py_XDECREF(descr); - Py_DECREF(dict); - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - - Py_DECREF(dict); - } - - if (func != NULL) { - if (func == Nuitka_Function_Type.tp_descr_get) { - PyObject *result = Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)descr, - source, - args, - 4 - ); - - Py_DECREF(descr); - - return result; - } else { - PyObject *called_object = func(descr, source, (PyObject *)type); - CHECK_OBJECT(called_object); - - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - called_object, - args - ); - Py_DECREF(called_object); - - return result; - } - } - - if (descr != NULL) { - CHECK_OBJECT(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - descr, - args - ); - Py_DECREF(descr); - - return result; - } - -#if PYTHON_VERSION < 0x300 - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - PyString_AS_STRING(attr_name) - ); -#else - PyErr_Format( - PyExc_AttributeError, - "'%s' object has no attribute '%U'", - type->tp_name, - attr_name - ); -#endif - return NULL; - } -#if PYTHON_VERSION < 0x300 - else if (type == &PyInstance_Type) { - PyInstanceObject *source_instance = (PyInstanceObject *)source; - - // The special cases have their own variant on the code generation level - // as we are called with constants only. - assert(attr_name != const_str_plain___dict__); - assert(attr_name != const_str_plain___class__); - - // Try the instance dict first. - PyObject *called_object = GET_STRING_DICT_VALUE( - (PyDictObject *)source_instance->in_dict, - (PyStringObject *)attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - return CALL_FUNCTION_WITH_ARGS4(called_object, args); - } - - // Then check the class dictionaries. - called_object = FIND_ATTRIBUTE_IN_CLASS( - source_instance->in_class, - attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - descrgetfunc descr_get = Py_TYPE(called_object)->tp_descr_get; - - if (descr_get == Nuitka_Function_Type.tp_descr_get) { - return Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)called_object, - source, - args, - 4 - ); - } else if (descr_get != NULL) { - PyObject *method = descr_get( - called_object, - source, - (PyObject *)source_instance->in_class - ); - - if (unlikely(method == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS4(method, args); - Py_DECREF(method); - return result; - } else { - return CALL_FUNCTION_WITH_ARGS4(called_object, args); - } - - } else if (unlikely(source_instance->in_class->cl_getattr == NULL)) { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "%s instance has no attribute '%s'", - PyString_AS_STRING(source_instance->in_class->cl_name), - PyString_AS_STRING(attr_name) - ); - - return NULL; - } else { - // Finally allow the "__getattr__" override to provide it or else - // it's an error. - - PyObject *args2[] = { - source, - attr_name - }; - - called_object = CALL_FUNCTION_WITH_ARGS2( - source_instance->in_class->cl_getattr, - args2 - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - } -#endif - else if (type->tp_getattro != NULL) { - PyObject *called_object = (*type->tp_getattro)( - source, - attr_name - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else if (type->tp_getattr != NULL) { - PyObject *called_object = (*type->tp_getattr)( - source, - (char *)Nuitka_String_AsString_Unchecked(attr_name) - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS4( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - Nuitka_String_AsString_Unchecked(attr_name) - ); - - return NULL; - } -} - -PyObject *CALL_METHOD_WITH_ARGS5(PyObject *source, PyObject *attr_name, PyObject **args) { - CHECK_OBJECT(source); - CHECK_OBJECT(attr_name); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 5; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - PyTypeObject *type = Py_TYPE(source); - - if (type->tp_getattro == PyObject_GenericGetAttr) { - // Unfortunately this is required, although of cause rarely necessary. - if (unlikely(type->tp_dict == NULL)) { - if (unlikely(PyType_Ready(type) < 0)) { - return NULL; - } - } - - PyObject *descr = _PyType_Lookup(type, attr_name); - descrgetfunc func = NULL; - - if (descr != NULL) { - Py_INCREF(descr); - -#if PYTHON_VERSION < 0x300 - if (PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)) { -#endif - func = Py_TYPE(descr)->tp_descr_get; - - if (func != NULL && PyDescr_IsData(descr)) { - PyObject *called_object = func(descr, source, (PyObject *)type); - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } -#if PYTHON_VERSION < 0x300 - } -#endif - } - - Py_ssize_t dictoffset = type->tp_dictoffset; - PyObject *dict = NULL; - - if (dictoffset != 0) { - // Negative dictionary offsets have special meaning. - if (dictoffset < 0) { - Py_ssize_t tsize; - size_t size; - - tsize = ((PyVarObject *)source)->ob_size; - if (tsize < 0) { - tsize = -tsize; - } - size = _PyObject_VAR_SIZE( type, tsize ); - - dictoffset += (long)size; - } - - PyObject **dictptr = (PyObject **) ((char *)source + dictoffset); - dict = *dictptr; - } - - if (dict != NULL) { - CHECK_OBJECT(dict); - - Py_INCREF(dict); - - PyObject *called_object = DICT_GET_ITEM1(dict, attr_name); - - if (called_object != NULL) { - Py_XDECREF(descr); - Py_DECREF(dict); - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - - Py_DECREF(dict); - } - - if (func != NULL) { - if (func == Nuitka_Function_Type.tp_descr_get) { - PyObject *result = Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)descr, - source, - args, - 5 - ); - - Py_DECREF(descr); - - return result; - } else { - PyObject *called_object = func(descr, source, (PyObject *)type); - CHECK_OBJECT(called_object); - - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - called_object, - args - ); - Py_DECREF(called_object); - - return result; - } - } - - if (descr != NULL) { - CHECK_OBJECT(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - descr, - args - ); - Py_DECREF(descr); - - return result; - } - -#if PYTHON_VERSION < 0x300 - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - PyString_AS_STRING(attr_name) - ); -#else - PyErr_Format( - PyExc_AttributeError, - "'%s' object has no attribute '%U'", - type->tp_name, - attr_name - ); -#endif - return NULL; - } -#if PYTHON_VERSION < 0x300 - else if (type == &PyInstance_Type) { - PyInstanceObject *source_instance = (PyInstanceObject *)source; - - // The special cases have their own variant on the code generation level - // as we are called with constants only. - assert(attr_name != const_str_plain___dict__); - assert(attr_name != const_str_plain___class__); - - // Try the instance dict first. - PyObject *called_object = GET_STRING_DICT_VALUE( - (PyDictObject *)source_instance->in_dict, - (PyStringObject *)attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - return CALL_FUNCTION_WITH_ARGS5(called_object, args); - } - - // Then check the class dictionaries. - called_object = FIND_ATTRIBUTE_IN_CLASS( - source_instance->in_class, - attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - descrgetfunc descr_get = Py_TYPE(called_object)->tp_descr_get; - - if (descr_get == Nuitka_Function_Type.tp_descr_get) { - return Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)called_object, - source, - args, - 5 - ); - } else if (descr_get != NULL) { - PyObject *method = descr_get( - called_object, - source, - (PyObject *)source_instance->in_class - ); - - if (unlikely(method == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS5(method, args); - Py_DECREF(method); - return result; - } else { - return CALL_FUNCTION_WITH_ARGS5(called_object, args); - } - - } else if (unlikely(source_instance->in_class->cl_getattr == NULL)) { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "%s instance has no attribute '%s'", - PyString_AS_STRING(source_instance->in_class->cl_name), - PyString_AS_STRING(attr_name) - ); - - return NULL; - } else { - // Finally allow the "__getattr__" override to provide it or else - // it's an error. - - PyObject *args2[] = { - source, - attr_name - }; - - called_object = CALL_FUNCTION_WITH_ARGS2( - source_instance->in_class->cl_getattr, - args2 - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - } -#endif - else if (type->tp_getattro != NULL) { - PyObject *called_object = (*type->tp_getattro)( - source, - attr_name - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else if (type->tp_getattr != NULL) { - PyObject *called_object = (*type->tp_getattr)( - source, - (char *)Nuitka_String_AsString_Unchecked(attr_name) - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS5( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - Nuitka_String_AsString_Unchecked(attr_name) - ); - - return NULL; - } -} - -PyObject *CALL_METHOD_WITH_ARGS7(PyObject *source, PyObject *attr_name, PyObject **args) { - CHECK_OBJECT(source); - CHECK_OBJECT(attr_name); - - // Check if arguments are valid objects in debug mode. -#ifndef __NUITKA_NO_ASSERT__ - for (size_t i = 0; i < 7; i++) { - CHECK_OBJECT(args[i]); - } -#endif - - PyTypeObject *type = Py_TYPE(source); - - if (type->tp_getattro == PyObject_GenericGetAttr) { - // Unfortunately this is required, although of cause rarely necessary. - if (unlikely(type->tp_dict == NULL)) { - if (unlikely(PyType_Ready(type) < 0)) { - return NULL; - } - } - - PyObject *descr = _PyType_Lookup(type, attr_name); - descrgetfunc func = NULL; - - if (descr != NULL) { - Py_INCREF(descr); - -#if PYTHON_VERSION < 0x300 - if (PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)) { -#endif - func = Py_TYPE(descr)->tp_descr_get; - - if (func != NULL && PyDescr_IsData(descr)) { - PyObject *called_object = func(descr, source, (PyObject *)type); - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } -#if PYTHON_VERSION < 0x300 - } -#endif - } - - Py_ssize_t dictoffset = type->tp_dictoffset; - PyObject *dict = NULL; - - if (dictoffset != 0) { - // Negative dictionary offsets have special meaning. - if (dictoffset < 0) { - Py_ssize_t tsize; - size_t size; - - tsize = ((PyVarObject *)source)->ob_size; - if (tsize < 0) { - tsize = -tsize; - } - size = _PyObject_VAR_SIZE( type, tsize ); - - dictoffset += (long)size; - } - - PyObject **dictptr = (PyObject **) ((char *)source + dictoffset); - dict = *dictptr; - } - - if (dict != NULL) { - CHECK_OBJECT(dict); - - Py_INCREF(dict); - - PyObject *called_object = DICT_GET_ITEM1(dict, attr_name); - - if (called_object != NULL) { - Py_XDECREF(descr); - Py_DECREF(dict); - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - - Py_DECREF(dict); - } - - if (func != NULL) { - if (func == Nuitka_Function_Type.tp_descr_get) { - PyObject *result = Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)descr, - source, - args, - 7 - ); - - Py_DECREF(descr); - - return result; - } else { - PyObject *called_object = func(descr, source, (PyObject *)type); - CHECK_OBJECT(called_object); - - Py_DECREF(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - called_object, - args - ); - Py_DECREF(called_object); - - return result; - } - } - - if (descr != NULL) { - CHECK_OBJECT(descr); - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - descr, - args - ); - Py_DECREF(descr); - - return result; - } - -#if PYTHON_VERSION < 0x300 - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - PyString_AS_STRING(attr_name) - ); -#else - PyErr_Format( - PyExc_AttributeError, - "'%s' object has no attribute '%U'", - type->tp_name, - attr_name - ); -#endif - return NULL; - } -#if PYTHON_VERSION < 0x300 - else if (type == &PyInstance_Type) { - PyInstanceObject *source_instance = (PyInstanceObject *)source; - - // The special cases have their own variant on the code generation level - // as we are called with constants only. - assert(attr_name != const_str_plain___dict__); - assert(attr_name != const_str_plain___class__); - - // Try the instance dict first. - PyObject *called_object = GET_STRING_DICT_VALUE( - (PyDictObject *)source_instance->in_dict, - (PyStringObject *)attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - return CALL_FUNCTION_WITH_ARGS7(called_object, args); - } - - // Then check the class dictionaries. - called_object = FIND_ATTRIBUTE_IN_CLASS( - source_instance->in_class, - attr_name - ); - - // Note: The "called_object" was found without taking a reference, - // so we need not release it in this branch. - if (called_object != NULL) { - descrgetfunc descr_get = Py_TYPE(called_object)->tp_descr_get; - - if (descr_get == Nuitka_Function_Type.tp_descr_get) { - return Nuitka_CallMethodFunctionPosArgs( - (struct Nuitka_FunctionObject const *)called_object, - source, - args, - 7 - ); - } else if (descr_get != NULL) { - PyObject *method = descr_get( - called_object, - source, - (PyObject *)source_instance->in_class - ); - - if (unlikely(method == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS7(method, args); - Py_DECREF(method); - return result; - } else { - return CALL_FUNCTION_WITH_ARGS7(called_object, args); - } - - } else if (unlikely(source_instance->in_class->cl_getattr == NULL)) { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "%s instance has no attribute '%s'", - PyString_AS_STRING(source_instance->in_class->cl_name), - PyString_AS_STRING(attr_name) - ); - - return NULL; - } else { - // Finally allow the "__getattr__" override to provide it or else - // it's an error. - - PyObject *args2[] = { - source, - attr_name - }; - - called_object = CALL_FUNCTION_WITH_ARGS2( - source_instance->in_class->cl_getattr, - args2 - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } - } -#endif - else if (type->tp_getattro != NULL) { - PyObject *called_object = (*type->tp_getattro)( - source, - attr_name - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else if (type->tp_getattr != NULL) { - PyObject *called_object = (*type->tp_getattr)( - source, - (char *)Nuitka_String_AsString_Unchecked(attr_name) - ); - - if (unlikely(called_object == NULL)) { - return NULL; - } - - PyObject *result = CALL_FUNCTION_WITH_ARGS7( - called_object, - args - ); - Py_DECREF(called_object); - return result; - } else { - SET_CURRENT_EXCEPTION_TYPE0_FORMAT2( - PyExc_AttributeError, - "'%s' object has no attribute '%s'", - type->tp_name, - Nuitka_String_AsString_Unchecked(attr_name) - ); - - return NULL; - } -} - diff --git a/medomni/models.build/__helpers.h b/medomni/models.build/__helpers.h deleted file mode 100644 index 8aaacf40abe0334287b414667302f86235264328..0000000000000000000000000000000000000000 --- a/medomni/models.build/__helpers.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __NUITKA_CALLS_H__ -#define __NUITKA_CALLS_H__ - -extern PyObject *CALL_FUNCTION_WITH_ARGS1(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS2(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS3(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS4(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS5(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS6(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS7(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS8(PyObject *called, PyObject **args); -extern PyObject *CALL_FUNCTION_WITH_ARGS9(PyObject *called, PyObject **args); -extern PyObject *CALL_METHOD_WITH_ARGS1(PyObject *source, PyObject *attr_name, PyObject **args); -extern PyObject *CALL_METHOD_WITH_ARGS2(PyObject *source, PyObject *attr_name, PyObject **args); -extern PyObject *CALL_METHOD_WITH_ARGS3(PyObject *source, PyObject *attr_name, PyObject **args); -extern PyObject *CALL_METHOD_WITH_ARGS4(PyObject *source, PyObject *attr_name, PyObject **args); -extern PyObject *CALL_METHOD_WITH_ARGS5(PyObject *source, PyObject *attr_name, PyObject **args); -extern PyObject *CALL_METHOD_WITH_ARGS7(PyObject *source, PyObject *attr_name, PyObject **args); -#endif - diff --git a/medomni/models.build/__loader.cpp b/medomni/models.build/__loader.cpp deleted file mode 100644 index b0be2d30d744df52cabe7a6cc5cd07434b4a4d14..0000000000000000000000000000000000000000 --- a/medomni/models.build/__loader.cpp +++ /dev/null @@ -1,134 +0,0 @@ - -/* Code to register embedded modules for meta path based loading if any. */ - -#include - -#include "nuitka/constants_blob.h" - -#include "nuitka/unfreezing.h" - -/* Type bool */ -#ifndef __cplusplus -#include "stdbool.h" -#endif - -#if 0 > 0 -static unsigned char *bytecode_data[0]; -#else -static unsigned char **bytecode_data = NULL; -#endif - -/* Table for lookup to find compiled or bytecode modules included in this - * binary or module, or put along this binary as extension modules. We do - * our own loading for each of these. - */ -extern PyObject *modulecode_models(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$Qformer(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$UNet(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$base_model(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$blip2(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$blip2_outputs(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$eva_vit(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$medomni(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$medomni_bp(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$modeling_llama(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$buildingblocks(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$config(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$losses(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$metrics(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$model(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$predictor(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$se(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$seg_metrics(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$trainer(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); -extern PyObject *modulecode_models$unet3d$utils(PyObject *, struct Nuitka_MetaPathBasedLoaderEntry const *); - -static struct Nuitka_MetaPathBasedLoaderEntry meta_path_loader_entries[] = { - {"models", modulecode_models, 0, 0, NUITKA_TRANSLATED_FLAG | NUITKA_PACKAGE_FLAG}, - {"models.Qformer", modulecode_models$Qformer, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.UNet", modulecode_models$UNet, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.base_model", modulecode_models$base_model, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.blip2", modulecode_models$blip2, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.blip2_outputs", modulecode_models$blip2_outputs, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.eva_vit", modulecode_models$eva_vit, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.medomni", modulecode_models$medomni, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.medomni_bp", modulecode_models$medomni_bp, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.modeling_llama", modulecode_models$modeling_llama, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d", modulecode_models$unet3d, 0, 0, NUITKA_TRANSLATED_FLAG | NUITKA_PACKAGE_FLAG}, - {"models.unet3d.buildingblocks", modulecode_models$unet3d$buildingblocks, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.config", modulecode_models$unet3d$config, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.losses", modulecode_models$unet3d$losses, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.metrics", modulecode_models$unet3d$metrics, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.model", modulecode_models$unet3d$model, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.predictor", modulecode_models$unet3d$predictor, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.se", modulecode_models$unet3d$se, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.seg_metrics", modulecode_models$unet3d$seg_metrics, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.trainer", modulecode_models$unet3d$trainer, 0, 0, NUITKA_TRANSLATED_FLAG}, - {"models.unet3d.utils", modulecode_models$unet3d$utils, 0, 0, NUITKA_TRANSLATED_FLAG}, - {NULL, NULL, 0, 0, 0} -}; - -static void _loadBytesCodesBlob() -{ - static bool init_done = false; - - if (init_done == false) { - loadConstantsBlob((PyObject **)bytecode_data, ".bytecode"); - - init_done = true; - } -} - - -void setupMetaPathBasedLoader(void) { - static bool init_done = false; - if (init_done == false) { - _loadBytesCodesBlob(); - registerMetaPathBasedUnfreezer(meta_path_loader_entries, bytecode_data); - - init_done = true; - } - - -} - -// This provides the frozen (compiled bytecode) files that are included if -// any. - -// These modules should be loaded as bytecode. They may e.g. have to be loadable -// during "Py_Initialize" already, or for irrelevance, they are only included -// in this un-optimized form. These are not compiled by Nuitka, and therefore -// are not accelerated at all, merely bundled with the binary or module, so -// that CPython library can start out finding them. - -struct frozen_desc { - char const *name; - int index; - int size; -}; - -static struct frozen_desc _frozen_modules[] = { - - {NULL, 0, 0} -}; - - -void copyFrozenModulesTo(struct _frozen *destination) { - _loadBytesCodesBlob(); - - struct frozen_desc *current = _frozen_modules; - - for (;;) { - destination->name = (char *)current->name; - destination->code = bytecode_data[current->index]; - destination->size = current->size; - - if (destination->name == NULL) break; - - current += 1; - destination += 1; - }; -} - - diff --git a/medomni/models.build/__loader.os b/medomni/models.build/__loader.os deleted file mode 100644 index 5c7c1ea0816a257e4bf750678a7c6cc69b222ff3..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/__loader.os and /dev/null differ diff --git a/medomni/models.build/build_definitions.h b/medomni/models.build/build_definitions.h deleted file mode 100644 index eed17505eed3c6b60f368022274e73f8aab8c24e..0000000000000000000000000000000000000000 --- a/medomni/models.build/build_definitions.h +++ /dev/null @@ -1,7 +0,0 @@ -#define NO_PYTHON_WARNINGS 0 -#define SYSFLAG_BYTES_WARNING 0 -#define SYSFLAG_NO_RANDOMIZATION 0 -#define SYSFLAG_NO_SITE 0 -#define SYSFLAG_OPTIMIZE 0 -#define SYSFLAG_UTF8 0 -#define SYSFLAG_VERBOSE 0 diff --git a/medomni/models.build/module.models.Qformer.const b/medomni/models.build/module.models.Qformer.const deleted file mode 100644 index 61f6c358ce3dbf47502e3c74d46495ff4caba2cc..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.Qformer.const and /dev/null differ diff --git a/medomni/models.build/module.models.Qformer.cpp b/medomni/models.build/module.models.Qformer.cpp deleted file mode 100644 index 94ee72befd57a2c5e22096e82b5f586bd5c59fcc..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.Qformer.cpp +++ /dev/null @@ -1,50300 +0,0 @@ -/* Generated code for Python module 'models.Qformer' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$Qformer" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$Qformer; -PyDictObject *moduledict_models$Qformer; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[460]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.Qformer")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$Qformer(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.Qformer"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_1a1e9c3c58d7ea5e2798e2bba549af89; -static PyCodeObject *codeobj_d4ada818f6656268c254961d6faa630a; -static PyCodeObject *codeobj_67be2144f29b126bccab22fc958e7dc4; -static PyCodeObject *codeobj_3b8e99b3705bb48cdf88a9a082001f87; -static PyCodeObject *codeobj_2bb9003dfff85549a8e8392e723ec6c8; -static PyCodeObject *codeobj_5bfea05f5a06871ae56cfaab6dbe57ba; -static PyCodeObject *codeobj_0c0a0597d4b4257046a86687ff948770; -static PyCodeObject *codeobj_e1623af249db2190f4f0a833e30e71e3; -static PyCodeObject *codeobj_e5264d356d902ef78943e91fb87114a1; -static PyCodeObject *codeobj_7007713779c26360c0f6632cb2047835; -static PyCodeObject *codeobj_aa454e092d5abc9f5e4553a289907508; -static PyCodeObject *codeobj_6e22728e3deba4360239f923eb721087; -static PyCodeObject *codeobj_a081438c9da0f662f5a4de30a72f53eb; -static PyCodeObject *codeobj_25865ea0df4a3f86bdd137c22518ab84; -static PyCodeObject *codeobj_2f024c1c2781aa4346c9360dc9ca9c37; -static PyCodeObject *codeobj_2997152d8a9cec4ec6825b911abbb306; -static PyCodeObject *codeobj_ab5a99313f9b6e1e298f4606848400d8; -static PyCodeObject *codeobj_2ba10c444d39cd9fbc64d82f9cd4789e; -static PyCodeObject *codeobj_1e694c28c1cb7b88d842a0230f304b37; -static PyCodeObject *codeobj_39fcb37e2c2b36c20e772de986f100d1; -static PyCodeObject *codeobj_cc56a3d4cf1124558e66a811713c588d; -static PyCodeObject *codeobj_5cc68962f3dad1def9ff2c335252cee0; -static PyCodeObject *codeobj_3ffa23d628f575a2f740dcb6fe8c1a15; -static PyCodeObject *codeobj_bc386502a8ad779e82b56ce3a01a046c; -static PyCodeObject *codeobj_da381dec774f92fc3fdec9b27fb9d857; -static PyCodeObject *codeobj_dbb5244b0ee9d68abb3ae7983cb8df4b; -static PyCodeObject *codeobj_3183350d90f44f69878dab33e80e4921; -static PyCodeObject *codeobj_ca40fb07238f33d953447de3e31806fd; -static PyCodeObject *codeobj_9c6e6b2c3e0641a7465eeb0788b5b6dd; -static PyCodeObject *codeobj_fa49026615d06e8f214b8591603bbecd; -static PyCodeObject *codeobj_3fed784111b2af0b6a6ffc26ac50d650; -static PyCodeObject *codeobj_e2b0deaa42e6635507b21870f60576c4; -static PyCodeObject *codeobj_8e16adea762727bda11361e993d1476d; -static PyCodeObject *codeobj_df9ac5d0a974d8e6803dbf3d6f292953; -static PyCodeObject *codeobj_269652cb22803d15cde90d439879a1a2; -static PyCodeObject *codeobj_9044624cc871cfe54b3607752fe57f1c; -static PyCodeObject *codeobj_4147f3aad460337a90fc69f511dba483; -static PyCodeObject *codeobj_99e6e0fbfb9cc4282b3a8f4787f1fc90; -static PyCodeObject *codeobj_be03d43782ce0c74a753536e9a4f0743; -static PyCodeObject *codeobj_9bc2c26bc51f7651d0836f8203f94193; -static PyCodeObject *codeobj_340e4e883925405252be80b1c8cda477; -static PyCodeObject *codeobj_c4755f7ecaad447ef5e0ea80f9a42013; -static PyCodeObject *codeobj_bc4467ccc7610a81a2b180cada5c22ef; -static PyCodeObject *codeobj_ef7df7f2aae603ea3cb921a91d68b297; -static PyCodeObject *codeobj_ef32505124b25b3c551fd3017e359336; -static PyCodeObject *codeobj_e5d530bc114f61caefcc8e7e58348d97; -static PyCodeObject *codeobj_222d3cb8bbe72424730d64c2fb38796b; -static PyCodeObject *codeobj_38c0c92910efd854dc73aa8a49f61b57; -static PyCodeObject *codeobj_02c26eebaf2303eb7380395e131d8a5e; -static PyCodeObject *codeobj_fb4ac8ca5f5c6cf5999268c801f1a60e; -static PyCodeObject *codeobj_efe9f30d4ed10b98b0f8cc575424636a; -static PyCodeObject *codeobj_e2c151c9b0676788eee114d75e2c1886; -static PyCodeObject *codeobj_ac223922169c79b32778e1fea6b86d12; -static PyCodeObject *codeobj_d74dc7aa09a16c42b6aa4ce3077a906f; -static PyCodeObject *codeobj_7c295c83a4e918fa0e86389ee3693174; -static PyCodeObject *codeobj_960ad736510918980c376a071f656626; -static PyCodeObject *codeobj_0d13c366fa26a472a6b7f1562ae363de; -static PyCodeObject *codeobj_0eb4b4b7e57523c96bf4c60654493887; -static PyCodeObject *codeobj_00cbf7e5232472b130db964e018f1f81; -static PyCodeObject *codeobj_527cb4fbc9a5e67eae366d93117b1142; -static PyCodeObject *codeobj_a5b726196dc433c291a911837adced9c; -static PyCodeObject *codeobj_64584954755a32f374a421edcbab9154; -static PyCodeObject *codeobj_d801348fdc3b19f91ac75fd50193d3b0; -static PyCodeObject *codeobj_ca38f33a6576fe8e2962a38a6c08a7da; -static PyCodeObject *codeobj_ded4b18b08a0de899e2560321c2271bc; -static PyCodeObject *codeobj_0b0b36faf8277ec302d6c6695f619e8c; -static PyCodeObject *codeobj_7dc435c7821988f8361240f6dacceca5; -static PyCodeObject *codeobj_45b23ddb210e7fae6e94b686bdca3187; -static PyCodeObject *codeobj_721775a04cb45ee2837ea767c0780001; -static PyCodeObject *codeobj_74af6475e06de1d3e4323696e9d6b171; -static PyCodeObject *codeobj_0fd009d1dbe4c7c46c53f9bdc210148d; -static PyCodeObject *codeobj_d1badd3898339991bfdc4579ffa91ae1; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[419]); CHECK_OBJECT(module_filename_obj); - codeobj_1a1e9c3c58d7ea5e2798e2bba549af89 = MAKE_CODEOBJECT(module_filename_obj, 1124, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[167], mod_consts[420], NULL, 1, 0, 0); - codeobj_d4ada818f6656268c254961d6faa630a = MAKE_CODEOBJECT(module_filename_obj, 572, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[167], mod_consts[421], NULL, 1, 0, 0); - codeobj_67be2144f29b126bccab22fc958e7dc4 = MAKE_CODEOBJECT(module_filename_obj, 492, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[422], mod_consts[423], NULL, 1, 0, 0); - codeobj_3b8e99b3705bb48cdf88a9a082001f87 = MAKE_CODEOBJECT(module_filename_obj, 915, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[422], mod_consts[424], NULL, 1, 0, 0); - codeobj_2bb9003dfff85549a8e8392e723ec6c8 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[425], NULL, NULL, 0, 0, 0); - codeobj_5bfea05f5a06871ae56cfaab6dbe57ba = MAKE_CODEOBJECT(module_filename_obj, 292, CO_NOFREE, mod_consts[109], mod_consts[426], NULL, 0, 0, 0); - codeobj_0c0a0597d4b4257046a86687ff948770 = MAKE_CODEOBJECT(module_filename_obj, 51, CO_NOFREE, mod_consts[193], mod_consts[426], NULL, 0, 0, 0); - codeobj_e1623af249db2190f4f0a833e30e71e3 = MAKE_CODEOBJECT(module_filename_obj, 487, CO_NOFREE, mod_consts[194], mod_consts[426], NULL, 0, 0, 0); - codeobj_e5264d356d902ef78943e91fb87114a1 = MAKE_CODEOBJECT(module_filename_obj, 1131, CO_NOFREE, mod_consts[413], mod_consts[426], NULL, 0, 0, 0); - codeobj_7007713779c26360c0f6632cb2047835 = MAKE_CODEOBJECT(module_filename_obj, 349, CO_NOFREE, mod_consts[117], mod_consts[426], NULL, 0, 0, 0); - codeobj_aa454e092d5abc9f5e4553a289907508 = MAKE_CODEOBJECT(module_filename_obj, 968, CO_NOFREE, mod_consts[397], mod_consts[426], NULL, 0, 0, 0); - codeobj_6e22728e3deba4360239f923eb721087 = MAKE_CODEOBJECT(module_filename_obj, 624, CO_NOFREE, mod_consts[180], mod_consts[426], NULL, 0, 0, 0); - codeobj_a081438c9da0f662f5a4de30a72f53eb = MAKE_CODEOBJECT(module_filename_obj, 378, CO_NOFREE, mod_consts[139], mod_consts[426], NULL, 0, 0, 0); - codeobj_25865ea0df4a3f86bdd137c22518ab84 = MAKE_CODEOBJECT(module_filename_obj, 677, CO_NOFREE, mod_consts[239], mod_consts[426], NULL, 0, 0, 0); - codeobj_2f024c1c2781aa4346c9360dc9ca9c37 = MAKE_CODEOBJECT(module_filename_obj, 644, CO_NOFREE, mod_consts[242], mod_consts[426], NULL, 0, 0, 0); - codeobj_2997152d8a9cec4ec6825b911abbb306 = MAKE_CODEOBJECT(module_filename_obj, 364, CO_NOFREE, mod_consts[119], mod_consts[426], NULL, 0, 0, 0); - codeobj_ab5a99313f9b6e1e298f4606848400d8 = MAKE_CODEOBJECT(module_filename_obj, 592, CO_NOFREE, mod_consts[196], mod_consts[426], NULL, 0, 0, 0); - codeobj_2ba10c444d39cd9fbc64d82f9cd4789e = MAKE_CODEOBJECT(module_filename_obj, 654, CO_NOFREE, mod_consts[375], mod_consts[426], NULL, 0, 0, 0); - codeobj_1e694c28c1cb7b88d842a0230f304b37 = MAKE_CODEOBJECT(module_filename_obj, 607, CO_NOFREE, mod_consts[173], mod_consts[426], NULL, 0, 0, 0); - codeobj_39fcb37e2c2b36c20e772de986f100d1 = MAKE_CODEOBJECT(module_filename_obj, 111, CO_NOFREE, mod_consts[93], mod_consts[426], NULL, 0, 0, 0); - codeobj_cc56a3d4cf1124558e66a811713c588d = MAKE_CODEOBJECT(module_filename_obj, 278, CO_NOFREE, mod_consts[94], mod_consts[426], NULL, 0, 0, 0); - codeobj_5cc68962f3dad1def9ff2c335252cee0 = MAKE_CODEOBJECT(module_filename_obj, 54, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_3ffa23d628f575a2f740dcb6fe8c1a15 = MAKE_CODEOBJECT(module_filename_obj, 279, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_bc386502a8ad779e82b56ce3a01a046c = MAKE_CODEOBJECT(module_filename_obj, 350, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_da381dec774f92fc3fdec9b27fb9d857 = MAKE_CODEOBJECT(module_filename_obj, 365, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_dbb5244b0ee9d68abb3ae7983cb8df4b = MAKE_CODEOBJECT(module_filename_obj, 488, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_3183350d90f44f69878dab33e80e4921 = MAKE_CODEOBJECT(module_filename_obj, 593, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_ca40fb07238f33d953447de3e31806fd = MAKE_CODEOBJECT(module_filename_obj, 608, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_9c6e6b2c3e0641a7465eeb0788b5b6dd = MAKE_CODEOBJECT(module_filename_obj, 625, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_fa49026615d06e8f214b8591603bbecd = MAKE_CODEOBJECT(module_filename_obj, 645, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_3fed784111b2af0b6a6ffc26ac50d650 = MAKE_CODEOBJECT(module_filename_obj, 973, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_e2b0deaa42e6635507b21870f60576c4 = MAKE_CODEOBJECT(module_filename_obj, 1136, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[427], mod_consts[426], 2, 0, 0); - codeobj_8e16adea762727bda11361e993d1476d = MAKE_CODEOBJECT(module_filename_obj, 687, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[428], mod_consts[426], 3, 0, 0); - codeobj_df9ac5d0a974d8e6803dbf3d6f292953 = MAKE_CODEOBJECT(module_filename_obj, 112, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[429], mod_consts[426], 3, 0, 0); - codeobj_269652cb22803d15cde90d439879a1a2 = MAKE_CODEOBJECT(module_filename_obj, 293, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[429], mod_consts[426], 3, 0, 0); - codeobj_9044624cc871cfe54b3607752fe57f1c = MAKE_CODEOBJECT(module_filename_obj, 379, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[430], mod_consts[426], 3, 0, 0); - codeobj_4147f3aad460337a90fc69f511dba483 = MAKE_CODEOBJECT(module_filename_obj, 664, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[381], mod_consts[431], NULL, 2, 0, 0); - codeobj_99e6e0fbfb9cc4282b3a8f4787f1fc90 = MAKE_CODEOBJECT(module_filename_obj, 705, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[389], mod_consts[432], NULL, 2, 0, 0); - codeobj_be03d43782ce0c74a753536e9a4f0743 = MAKE_CODEOBJECT(module_filename_obj, 1120, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[411], mod_consts[433], NULL, 3, 0, 0); - codeobj_9bc2c26bc51f7651d0836f8203f94193 = MAKE_CODEOBJECT(module_filename_obj, 533, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[151], mod_consts[434], mod_consts[435], 1, 0, 0); - codeobj_340e4e883925405252be80b1c8cda477 = MAKE_CODEOBJECT(module_filename_obj, 534, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS, mod_consts[164], mod_consts[436], mod_consts[437], 0, 0, 0); - codeobj_c4755f7ecaad447ef5e0ea80f9a42013 = MAKE_CODEOBJECT(module_filename_obj, 476, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[133], mod_consts[438], NULL, 2, 0, 0); - codeobj_bc4467ccc7610a81a2b180cada5c22ef = MAKE_CODEOBJECT(module_filename_obj, 481, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[131], mod_consts[438], NULL, 2, 0, 0); - codeobj_ef7df7f2aae603ea3cb921a91d68b297 = MAKE_CODEOBJECT(module_filename_obj, 358, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[439], NULL, 2, 0, 0); - codeobj_ef32505124b25b3c551fd3017e359336 = MAKE_CODEOBJECT(module_filename_obj, 617, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[439], NULL, 2, 0, 0); - codeobj_e5d530bc114f61caefcc8e7e58348d97 = MAKE_CODEOBJECT(module_filename_obj, 638, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[439], NULL, 2, 0, 0); - codeobj_222d3cb8bbe72424730d64c2fb38796b = MAKE_CODEOBJECT(module_filename_obj, 169, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[440], NULL, 8, 0, 0); - codeobj_38c0c92910efd854dc73aa8a49f61b57 = MAKE_CODEOBJECT(module_filename_obj, 402, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[441], NULL, 9, 0, 0); - codeobj_02c26eebaf2303eb7380395e131d8a5e = MAKE_CODEOBJECT(module_filename_obj, 322, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[442], NULL, 8, 0, 0); - codeobj_fb4ac8ca5f5c6cf5999268c801f1a60e = MAKE_CODEOBJECT(module_filename_obj, 495, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[443], NULL, 12, 0, 0); - codeobj_efe9f30d4ed10b98b0f8cc575424636a = MAKE_CODEOBJECT(module_filename_obj, 598, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[444], NULL, 2, 0, 0); - codeobj_e2c151c9b0676788eee114d75e2c1886 = MAKE_CODEOBJECT(module_filename_obj, 285, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[445], NULL, 3, 0, 0); - codeobj_ac223922169c79b32778e1fea6b86d12 = MAKE_CODEOBJECT(module_filename_obj, 371, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[445], NULL, 3, 0, 0); - codeobj_d74dc7aa09a16c42b6aa4ce3077a906f = MAKE_CODEOBJECT(module_filename_obj, 1150, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[446], NULL, 14, 0, 0); - codeobj_7c295c83a4e918fa0e86389ee3693174 = MAKE_CODEOBJECT(module_filename_obj, 987, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[447], NULL, 17, 0, 0); - codeobj_960ad736510918980c376a071f656626 = MAKE_CODEOBJECT(module_filename_obj, 804, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[448], NULL, 14, 0, 0); - codeobj_0d13c366fa26a472a6b7f1562ae363de = MAKE_CODEOBJECT(module_filename_obj, 78, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[449], NULL, 5, 0, 0); - codeobj_0eb4b4b7e57523c96bf4c60654493887 = MAKE_CODEOBJECT(module_filename_obj, 649, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[450], NULL, 2, 0, 0); - codeobj_00cbf7e5232472b130db964e018f1f81 = MAKE_CODEOBJECT(module_filename_obj, 158, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[344], mod_consts[451], NULL, 1, 0, 0); - codeobj_527cb4fbc9a5e67eae366d93117b1142 = MAKE_CODEOBJECT(module_filename_obj, 152, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[341], mod_consts[451], NULL, 1, 0, 0); - codeobj_a5b726196dc433c291a911837adced9c = MAKE_CODEOBJECT(module_filename_obj, 713, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[226], mod_consts[452], NULL, 6, 0, 0); - codeobj_64584954755a32f374a421edcbab9154 = MAKE_CODEOBJECT(module_filename_obj, 699, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[385], mod_consts[451], NULL, 1, 0, 0); - codeobj_d801348fdc3b19f91ac75fd50193d3b0 = MAKE_CODEOBJECT(module_filename_obj, 981, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[451], NULL, 1, 0, 0); - codeobj_ca38f33a6576fe8e2962a38a6c08a7da = MAKE_CODEOBJECT(module_filename_obj, 1144, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[451], NULL, 1, 0, 0); - codeobj_ded4b18b08a0de899e2560321c2271bc = MAKE_CODEOBJECT(module_filename_obj, 1097, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[409], mod_consts[453], NULL, 5, 0, 0); - codeobj_0b0b36faf8277ec302d6c6695f619e8c = MAKE_CODEOBJECT(module_filename_obj, 299, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[200], mod_consts[454], NULL, 2, 0, 0); - codeobj_7dc435c7821988f8361240f6dacceca5 = MAKE_CODEOBJECT(module_filename_obj, 155, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[85], mod_consts[455], NULL, 2, 0, 0); - codeobj_45b23ddb210e7fae6e94b686bdca3187 = MAKE_CODEOBJECT(module_filename_obj, 149, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[88], mod_consts[456], NULL, 2, 0, 0); - codeobj_721775a04cb45ee2837ea767c0780001 = MAKE_CODEOBJECT(module_filename_obj, 702, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[387], mod_consts[457], NULL, 2, 0, 0); - codeobj_74af6475e06de1d3e4323696e9d6b171 = MAKE_CODEOBJECT(module_filename_obj, 984, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[404], mod_consts[458], NULL, 2, 0, 0); - codeobj_0fd009d1dbe4c7c46c53f9bdc210148d = MAKE_CODEOBJECT(module_filename_obj, 1147, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[404], mod_consts[458], NULL, 2, 0, 0); - codeobj_d1badd3898339991bfdc4579ffa91ae1 = MAKE_CODEOBJECT(module_filename_obj, 161, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[59], mod_consts[459], NULL, 2, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_GENERATOR_models$Qformer$$$function__24_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_GENERATOR_models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__4__unpack_list(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__10___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__11_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__13_prune_heads(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__14_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__15___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__16_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__17___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__18_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__19___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__1___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__20_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__21_feed_forward_chunk(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__22_feed_forward_chunk_query(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__23___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__24_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__25___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__26_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__27___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__28_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__29___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__2_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__30_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__31___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__32_forward(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__33__init_weights(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__34___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__35_get_input_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__36_set_input_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__37__prune_heads(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__38_get_extended_attention_mask(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__39_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__3___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__40___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__41_get_output_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__42_set_output_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__43_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__44_prepare_inputs_for_generation(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__45__reorder_cache(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__46___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__47_get_output_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__48_set_output_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__49_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__4_save_attn_gradients(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__5_get_attn_gradients(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__6_save_attention_map(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__7_get_attention_map(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__8_transpose_for_scores(); - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__9_forward(PyObject *defaults); - - -// The module function definitions. -static PyObject *impl_models$Qformer$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_5cc68962f3dad1def9ff2c335252cee0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_5cc68962f3dad1def9ff2c335252cee0 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5cc68962f3dad1def9ff2c335252cee0)) { - Py_XDECREF(cache_frame_5cc68962f3dad1def9ff2c335252cee0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5cc68962f3dad1def9ff2c335252cee0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5cc68962f3dad1def9ff2c335252cee0 = MAKE_FUNCTION_FRAME(codeobj_5cc68962f3dad1def9ff2c335252cee0, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5cc68962f3dad1def9ff2c335252cee0->m_type_description == NULL); - frame_5cc68962f3dad1def9ff2c335252cee0 = cache_frame_5cc68962f3dad1def9ff2c335252cee0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5cc68962f3dad1def9ff2c335252cee0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5cc68962f3dad1def9ff2c335252cee0) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 55; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 55; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[3]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[4]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 57; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_3; - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - - tmp_expression_name_3 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_1 = mod_consts[7]; - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_config; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[8]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 57; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 56; - tmp_assattr_name_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[9], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[3]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 60; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[10]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 60; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 60; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 60; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 59; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[11], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_10; - PyObject *tmp_assattr_target_3; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[12]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_config; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[6]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_dict_key_2 = mod_consts[13]; - if (par_config == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_config; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[14]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 65; - tmp_assattr_name_3 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[12], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_12; - PyObject *tmp_assattr_target_4; - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[15]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_config; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[16]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 66; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[17], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_13; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(par_self); - tmp_expression_name_13 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[18]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = mod_consts[19]; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 70; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[21]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 70; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 70; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_config; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[10]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 70; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 70; - tmp_called_instance_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_6); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 70; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 70; - tmp_args_element_name_5 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[22], - &PyTuple_GET_ITEM(mod_consts[23], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 70; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_5cc68962f3dad1def9ff2c335252cee0->m_frame.f_lineno = 69; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - PyObject *tmp_assattr_target_5; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_getattr_target_1 = par_config; - tmp_getattr_attr_1 = mod_consts[24]; - tmp_getattr_default_1 = mod_consts[25]; - tmp_assattr_name_5 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[24], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_assattr_target_6; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_6 = par_config; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[5], tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5cc68962f3dad1def9ff2c335252cee0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5cc68962f3dad1def9ff2c335252cee0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5cc68962f3dad1def9ff2c335252cee0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5cc68962f3dad1def9ff2c335252cee0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5cc68962f3dad1def9ff2c335252cee0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5cc68962f3dad1def9ff2c335252cee0, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_5cc68962f3dad1def9ff2c335252cee0 == cache_frame_5cc68962f3dad1def9ff2c335252cee0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5cc68962f3dad1def9ff2c335252cee0); - cache_frame_5cc68962f3dad1def9ff2c335252cee0 = NULL; - } - - assertFrameObject(frame_5cc68962f3dad1def9ff2c335252cee0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__2_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_position_ids = python_pars[2]; - PyObject *par_query_embeds = python_pars[3]; - PyObject *par_past_key_values_length = python_pars[4]; - PyObject *var_seq_length = NULL; - PyObject *var_embeddings = NULL; - PyObject *var_position_embeddings = NULL; - struct Nuitka_FrameObject *frame_0d13c366fa26a472a6b7f1562ae363de; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_0d13c366fa26a472a6b7f1562ae363de = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0d13c366fa26a472a6b7f1562ae363de)) { - Py_XDECREF(cache_frame_0d13c366fa26a472a6b7f1562ae363de); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0d13c366fa26a472a6b7f1562ae363de == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0d13c366fa26a472a6b7f1562ae363de = MAKE_FUNCTION_FRAME(codeobj_0d13c366fa26a472a6b7f1562ae363de, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0d13c366fa26a472a6b7f1562ae363de->m_type_description == NULL); - frame_0d13c366fa26a472a6b7f1562ae363de = cache_frame_0d13c366fa26a472a6b7f1562ae363de; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0d13c366fa26a472a6b7f1562ae363de); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0d13c366fa26a472a6b7f1562ae363de) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_input_ids); - tmp_compexpr_left_1 = par_input_ids; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_input_ids); - tmp_called_instance_1 = par_input_ids; - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 86; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[27]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[28]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 1); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_seq_length == NULL); - var_seq_length = tmp_assign_source_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[29]; - assert(var_seq_length == NULL); - Py_INCREF(tmp_assign_source_2); - var_seq_length = tmp_assign_source_2; - } - branch_end_1:; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_position_ids); - tmp_compexpr_left_2 = par_position_ids; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[19]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[30]; - tmp_subscript_name_2 = PyTuple_New(2); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_2, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_past_key_values_length); - tmp_start_name_1 = par_past_key_values_length; - CHECK_OBJECT(var_seq_length); - tmp_left_name_1 = var_seq_length; - CHECK_OBJECT(par_past_key_values_length); - tmp_right_name_1 = par_past_key_values_length; - tmp_stop_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_2, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_expression_name_2); - Py_DECREF(tmp_subscript_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_2); - Py_DECREF(tmp_subscript_name_2); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 91; - tmp_assign_source_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[31]); - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_position_ids; - assert(old != NULL); - par_position_ids = tmp_assign_source_3; - Py_DECREF(old); - } - - } - branch_no_2:; - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 95; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_3 = par_input_ids; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 96; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[9]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_input_ids == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 96; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_input_ids; - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 96; - tmp_assign_source_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_embeddings == NULL); - var_embeddings = tmp_assign_source_4; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_tmp_condition_result_4_object_1; - int tmp_truth_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 97; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[24]); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_4 = mod_consts[25]; - tmp_tmp_condition_result_4_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - Py_DECREF(tmp_compexpr_left_4); - if (tmp_tmp_condition_result_4_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_4_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_4_object_1); - - exception_lineno = 97; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_4_object_1); - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_position_ids); - tmp_args_element_name_2 = par_position_ids; - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 98; - tmp_assign_source_5 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[11], tmp_args_element_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_position_embeddings == NULL); - var_position_embeddings = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(var_embeddings); - tmp_left_name_2 = var_embeddings; - CHECK_OBJECT(var_position_embeddings); - tmp_right_name_2 = var_position_embeddings; - tmp_assign_source_6 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_embeddings; - var_embeddings = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - branch_no_4:; - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(par_query_embeds); - tmp_compexpr_left_5 = par_query_embeds; - tmp_compexpr_right_5 = Py_None; - tmp_condition_result_5 = (tmp_compexpr_left_5 != tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[33]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_query_embeds); - tmp_tuple_element_3 = par_query_embeds; - tmp_tuple_element_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_embeddings); - tmp_tuple_element_3 = var_embeddings; - PyTuple_SET_ITEM0(tmp_tuple_element_2, 1, tmp_tuple_element_3); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_2); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[34]); - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 102; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_embeddings; - var_embeddings = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - branch_no_5:; - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(par_query_embeds); - tmp_assign_source_8 = par_query_embeds; - assert(var_embeddings == NULL); - Py_INCREF(tmp_assign_source_8); - var_embeddings = tmp_assign_source_8; - } - branch_end_3:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[12]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (var_embeddings == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[35]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_embeddings; - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 106; - tmp_assign_source_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_embeddings; - var_embeddings = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 107; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_embeddings); - tmp_args_element_name_4 = var_embeddings; - frame_0d13c366fa26a472a6b7f1562ae363de->m_frame.f_lineno = 107; - tmp_assign_source_10 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[17], tmp_args_element_name_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_embeddings; - var_embeddings = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0d13c366fa26a472a6b7f1562ae363de); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0d13c366fa26a472a6b7f1562ae363de); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0d13c366fa26a472a6b7f1562ae363de, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0d13c366fa26a472a6b7f1562ae363de->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0d13c366fa26a472a6b7f1562ae363de, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0d13c366fa26a472a6b7f1562ae363de, - type_description_1, - par_self, - par_input_ids, - par_position_ids, - par_query_embeds, - par_past_key_values_length, - var_seq_length, - var_embeddings, - var_position_embeddings - ); - - - // Release cached frame if used for exception. - if (frame_0d13c366fa26a472a6b7f1562ae363de == cache_frame_0d13c366fa26a472a6b7f1562ae363de) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0d13c366fa26a472a6b7f1562ae363de); - cache_frame_0d13c366fa26a472a6b7f1562ae363de = NULL; - } - - assertFrameObject(frame_0d13c366fa26a472a6b7f1562ae363de); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_embeddings); - tmp_return_value = var_embeddings; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_past_key_values_length); - par_past_key_values_length = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - CHECK_OBJECT(var_embeddings); - Py_DECREF(var_embeddings); - var_embeddings = NULL; - Py_XDECREF(var_position_embeddings); - var_position_embeddings = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_past_key_values_length); - par_past_key_values_length = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_embeddings); - var_embeddings = NULL; - Py_XDECREF(var_position_embeddings); - var_position_embeddings = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - PyObject *par_is_cross_attention = python_pars[2]; - struct Nuitka_FrameObject *frame_df9ac5d0a974d8e6803dbf3d6f292953; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_df9ac5d0a974d8e6803dbf3d6f292953 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_df9ac5d0a974d8e6803dbf3d6f292953)) { - Py_XDECREF(cache_frame_df9ac5d0a974d8e6803dbf3d6f292953); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df9ac5d0a974d8e6803dbf3d6f292953 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df9ac5d0a974d8e6803dbf3d6f292953 = MAKE_FUNCTION_FRAME(codeobj_df9ac5d0a974d8e6803dbf3d6f292953, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df9ac5d0a974d8e6803dbf3d6f292953->m_type_description == NULL); - frame_df9ac5d0a974d8e6803dbf3d6f292953 = cache_frame_df9ac5d0a974d8e6803dbf3d6f292953; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df9ac5d0a974d8e6803dbf3d6f292953); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df9ac5d0a974d8e6803dbf3d6f292953) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 113; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_config); - tmp_assattr_name_1 = par_config; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[5], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_tmp_and_left_value_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_attribute_name_1; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[6]); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_config; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[36]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_left_1 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[29]; - tmp_tmp_and_left_value_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_and_left_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_and_left_value_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_and_left_value_1_object_1); - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_and_left_value_1_object_1); - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 116; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_config; - tmp_attribute_name_1 = mod_consts[37]; - tmp_res = BUILTIN_HASATTR_BOOL(tmp_expression_name_3, tmp_attribute_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_1 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_4; - tmp_left_name_2 = mod_consts[38]; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 120; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_5; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_1); - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 120; - type_description_1 = "oooc"; - goto tuple_build_exception_1; - } - - tmp_expression_name_5 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[36]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 118; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 118; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_2; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 123; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_assattr_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[36]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[36], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_int_arg_1; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_3; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_config; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[6]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_config; - tmp_right_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[36]); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_int_arg_1 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_int_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_3 = PyNumber_Int(tmp_int_arg_1); - Py_DECREF(tmp_int_arg_1); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[39], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_9; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_self); - tmp_expression_name_9 = par_self; - tmp_left_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[36]); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 125; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_right_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[39]); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 125; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 125; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[40], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_13; - PyObject *tmp_assattr_target_5; - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[6]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[40]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 127; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[42], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - CHECK_OBJECT(par_is_cross_attention); - tmp_truth_name_2 = CHECK_IF_TRUE(par_is_cross_attention); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_16; - PyObject *tmp_assattr_target_6; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[41]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_config; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[43]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[40]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 129; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[44], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_19; - PyObject *tmp_assattr_target_7; - tmp_expression_name_17 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_17 == NULL)) { - tmp_expression_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[41]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_config; - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[43]); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_self; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[40]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 130; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assattr_name_7 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[45], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_22; - PyObject *tmp_assattr_target_8; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[41]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_21 = par_config; - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[6]); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_self; - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[40]); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 132; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assattr_name_8 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assattr_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[44], tmp_assattr_name_8); - Py_DECREF(tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_25; - PyObject *tmp_assattr_target_9; - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[41]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_24 = par_config; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[6]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[40]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_9); - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 133; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assattr_name_9 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_9); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[45], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_26; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_27; - PyObject *tmp_assattr_target_10; - tmp_expression_name_26 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_26 == NULL)) { - tmp_expression_name_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[15]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_config; - tmp_args_element_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[46]); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 135; - tmp_assattr_name_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_11); - if (tmp_assattr_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[17], tmp_assattr_name_10); - Py_DECREF(tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - PyObject *tmp_assattr_target_11; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_getattr_target_1 = par_config; - tmp_getattr_attr_1 = mod_consts[24]; - tmp_getattr_default_1 = mod_consts[25]; - tmp_assattr_name_11 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_assattr_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[24], tmp_assattr_name_11); - Py_DECREF(tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_3; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_28; - PyObject *tmp_tmp_or_left_value_1_object_1; - int tmp_truth_name_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_29; - PyObject *tmp_tmp_or_right_value_1_object_1; - int tmp_truth_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 140; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_self; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[24]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[47]; - tmp_tmp_or_left_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_or_left_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_tmp_or_left_value_1_object_1); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_or_left_value_1_object_1); - - exception_lineno = 140; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_or_left_value_1_object_1); - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = par_self; - tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[24]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_3 = mod_consts[48]; - tmp_tmp_or_right_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - if (tmp_tmp_or_right_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_tmp_or_right_value_1_object_1); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_or_right_value_1_object_1); - - exception_lineno = 141; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_or_right_value_1_object_1); - tmp_condition_result_3 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_3 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_expression_name_30; - PyObject *tmp_assattr_target_12; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 143; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_30 = par_config; - tmp_assattr_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[10]); - if (tmp_assattr_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 143; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 143; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_12 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[10], tmp_assattr_name_12); - Py_DECREF(tmp_assattr_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 143; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_element_name_12; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_5; - PyObject *tmp_expression_name_32; - PyObject *tmp_right_name_6; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_33; - PyObject *tmp_assattr_target_13; - tmp_expression_name_31 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_31 == NULL)) { - tmp_expression_name_31 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[3]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_left_name_6 = mod_consts[49]; - if (par_config == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = par_config; - tmp_right_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[10]); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 145; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_6, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 145; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_right_name_6 = mod_consts[28]; - tmp_args_element_name_12 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 145; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_33 = par_self; - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[39]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 145; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame.f_lineno = 144; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_assattr_name_13 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_13); - if (tmp_assattr_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 144; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_13 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[50], tmp_assattr_name_13); - Py_DECREF(tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - branch_no_3:; - { - PyObject *tmp_assattr_name_14; - PyObject *tmp_assattr_target_14; - tmp_assattr_name_14 = Py_False; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_14 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_14, mod_consts[51], tmp_assattr_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df9ac5d0a974d8e6803dbf3d6f292953); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df9ac5d0a974d8e6803dbf3d6f292953); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df9ac5d0a974d8e6803dbf3d6f292953, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df9ac5d0a974d8e6803dbf3d6f292953->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df9ac5d0a974d8e6803dbf3d6f292953, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df9ac5d0a974d8e6803dbf3d6f292953, - type_description_1, - par_self, - par_config, - par_is_cross_attention, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_df9ac5d0a974d8e6803dbf3d6f292953 == cache_frame_df9ac5d0a974d8e6803dbf3d6f292953) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df9ac5d0a974d8e6803dbf3d6f292953); - cache_frame_df9ac5d0a974d8e6803dbf3d6f292953 = NULL; - } - - assertFrameObject(frame_df9ac5d0a974d8e6803dbf3d6f292953); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_is_cross_attention); - Py_DECREF(par_is_cross_attention); - par_is_cross_attention = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_is_cross_attention); - Py_DECREF(par_is_cross_attention); - par_is_cross_attention = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__4_save_attn_gradients(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_attn_gradients = python_pars[1]; - struct Nuitka_FrameObject *frame_45b23ddb210e7fae6e94b686bdca3187; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_45b23ddb210e7fae6e94b686bdca3187 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_45b23ddb210e7fae6e94b686bdca3187)) { - Py_XDECREF(cache_frame_45b23ddb210e7fae6e94b686bdca3187); - -#if _DEBUG_REFCOUNTS - if (cache_frame_45b23ddb210e7fae6e94b686bdca3187 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_45b23ddb210e7fae6e94b686bdca3187 = MAKE_FUNCTION_FRAME(codeobj_45b23ddb210e7fae6e94b686bdca3187, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_45b23ddb210e7fae6e94b686bdca3187->m_type_description == NULL); - frame_45b23ddb210e7fae6e94b686bdca3187 = cache_frame_45b23ddb210e7fae6e94b686bdca3187; - - // Push the new frame as the currently active one. - pushFrameStack(frame_45b23ddb210e7fae6e94b686bdca3187); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_45b23ddb210e7fae6e94b686bdca3187) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_attn_gradients); - tmp_assattr_name_1 = par_attn_gradients; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[52], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_45b23ddb210e7fae6e94b686bdca3187); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_45b23ddb210e7fae6e94b686bdca3187); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_45b23ddb210e7fae6e94b686bdca3187, exception_lineno); - } else if (exception_tb->tb_frame != &frame_45b23ddb210e7fae6e94b686bdca3187->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_45b23ddb210e7fae6e94b686bdca3187, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_45b23ddb210e7fae6e94b686bdca3187, - type_description_1, - par_self, - par_attn_gradients - ); - - - // Release cached frame if used for exception. - if (frame_45b23ddb210e7fae6e94b686bdca3187 == cache_frame_45b23ddb210e7fae6e94b686bdca3187) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_45b23ddb210e7fae6e94b686bdca3187); - cache_frame_45b23ddb210e7fae6e94b686bdca3187 = NULL; - } - - assertFrameObject(frame_45b23ddb210e7fae6e94b686bdca3187); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_attn_gradients); - Py_DECREF(par_attn_gradients); - par_attn_gradients = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_attn_gradients); - Py_DECREF(par_attn_gradients); - par_attn_gradients = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__5_get_attn_gradients(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_527cb4fbc9a5e67eae366d93117b1142; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_527cb4fbc9a5e67eae366d93117b1142 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_527cb4fbc9a5e67eae366d93117b1142)) { - Py_XDECREF(cache_frame_527cb4fbc9a5e67eae366d93117b1142); - -#if _DEBUG_REFCOUNTS - if (cache_frame_527cb4fbc9a5e67eae366d93117b1142 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_527cb4fbc9a5e67eae366d93117b1142 = MAKE_FUNCTION_FRAME(codeobj_527cb4fbc9a5e67eae366d93117b1142, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_527cb4fbc9a5e67eae366d93117b1142->m_type_description == NULL); - frame_527cb4fbc9a5e67eae366d93117b1142 = cache_frame_527cb4fbc9a5e67eae366d93117b1142; - - // Push the new frame as the currently active one. - pushFrameStack(frame_527cb4fbc9a5e67eae366d93117b1142); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_527cb4fbc9a5e67eae366d93117b1142) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[52]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_527cb4fbc9a5e67eae366d93117b1142); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_527cb4fbc9a5e67eae366d93117b1142); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_527cb4fbc9a5e67eae366d93117b1142); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_527cb4fbc9a5e67eae366d93117b1142, exception_lineno); - } else if (exception_tb->tb_frame != &frame_527cb4fbc9a5e67eae366d93117b1142->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_527cb4fbc9a5e67eae366d93117b1142, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_527cb4fbc9a5e67eae366d93117b1142, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_527cb4fbc9a5e67eae366d93117b1142 == cache_frame_527cb4fbc9a5e67eae366d93117b1142) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_527cb4fbc9a5e67eae366d93117b1142); - cache_frame_527cb4fbc9a5e67eae366d93117b1142 = NULL; - } - - assertFrameObject(frame_527cb4fbc9a5e67eae366d93117b1142); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__6_save_attention_map(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_attention_map = python_pars[1]; - struct Nuitka_FrameObject *frame_7dc435c7821988f8361240f6dacceca5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_7dc435c7821988f8361240f6dacceca5 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7dc435c7821988f8361240f6dacceca5)) { - Py_XDECREF(cache_frame_7dc435c7821988f8361240f6dacceca5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7dc435c7821988f8361240f6dacceca5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7dc435c7821988f8361240f6dacceca5 = MAKE_FUNCTION_FRAME(codeobj_7dc435c7821988f8361240f6dacceca5, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7dc435c7821988f8361240f6dacceca5->m_type_description == NULL); - frame_7dc435c7821988f8361240f6dacceca5 = cache_frame_7dc435c7821988f8361240f6dacceca5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7dc435c7821988f8361240f6dacceca5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7dc435c7821988f8361240f6dacceca5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_attention_map); - tmp_assattr_name_1 = par_attention_map; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[53], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7dc435c7821988f8361240f6dacceca5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7dc435c7821988f8361240f6dacceca5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7dc435c7821988f8361240f6dacceca5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7dc435c7821988f8361240f6dacceca5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7dc435c7821988f8361240f6dacceca5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7dc435c7821988f8361240f6dacceca5, - type_description_1, - par_self, - par_attention_map - ); - - - // Release cached frame if used for exception. - if (frame_7dc435c7821988f8361240f6dacceca5 == cache_frame_7dc435c7821988f8361240f6dacceca5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7dc435c7821988f8361240f6dacceca5); - cache_frame_7dc435c7821988f8361240f6dacceca5 = NULL; - } - - assertFrameObject(frame_7dc435c7821988f8361240f6dacceca5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_attention_map); - Py_DECREF(par_attention_map); - par_attention_map = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_attention_map); - Py_DECREF(par_attention_map); - par_attention_map = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__7_get_attention_map(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_00cbf7e5232472b130db964e018f1f81; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_00cbf7e5232472b130db964e018f1f81 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_00cbf7e5232472b130db964e018f1f81)) { - Py_XDECREF(cache_frame_00cbf7e5232472b130db964e018f1f81); - -#if _DEBUG_REFCOUNTS - if (cache_frame_00cbf7e5232472b130db964e018f1f81 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_00cbf7e5232472b130db964e018f1f81 = MAKE_FUNCTION_FRAME(codeobj_00cbf7e5232472b130db964e018f1f81, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_00cbf7e5232472b130db964e018f1f81->m_type_description == NULL); - frame_00cbf7e5232472b130db964e018f1f81 = cache_frame_00cbf7e5232472b130db964e018f1f81; - - // Push the new frame as the currently active one. - pushFrameStack(frame_00cbf7e5232472b130db964e018f1f81); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_00cbf7e5232472b130db964e018f1f81) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[53]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_00cbf7e5232472b130db964e018f1f81); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_00cbf7e5232472b130db964e018f1f81); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_00cbf7e5232472b130db964e018f1f81); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_00cbf7e5232472b130db964e018f1f81, exception_lineno); - } else if (exception_tb->tb_frame != &frame_00cbf7e5232472b130db964e018f1f81->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_00cbf7e5232472b130db964e018f1f81, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_00cbf7e5232472b130db964e018f1f81, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_00cbf7e5232472b130db964e018f1f81 == cache_frame_00cbf7e5232472b130db964e018f1f81) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_00cbf7e5232472b130db964e018f1f81); - cache_frame_00cbf7e5232472b130db964e018f1f81 = NULL; - } - - assertFrameObject(frame_00cbf7e5232472b130db964e018f1f81); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__8_transpose_for_scores(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_new_x_shape = NULL; - struct Nuitka_FrameObject *frame_d1badd3898339991bfdc4579ffa91ae1; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_d1badd3898339991bfdc4579ffa91ae1 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d1badd3898339991bfdc4579ffa91ae1)) { - Py_XDECREF(cache_frame_d1badd3898339991bfdc4579ffa91ae1); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d1badd3898339991bfdc4579ffa91ae1 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d1badd3898339991bfdc4579ffa91ae1 = MAKE_FUNCTION_FRAME(codeobj_d1badd3898339991bfdc4579ffa91ae1, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d1badd3898339991bfdc4579ffa91ae1->m_type_description == NULL); - frame_d1badd3898339991bfdc4579ffa91ae1 = cache_frame_d1badd3898339991bfdc4579ffa91ae1; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d1badd3898339991bfdc4579ffa91ae1); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d1badd3898339991bfdc4579ffa91ae1) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_x); - tmp_called_instance_1 = par_x; - frame_d1badd3898339991bfdc4579ffa91ae1->m_frame.f_lineno = 162; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[27]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[54]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[36]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 163; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_3; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 164; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_3 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[39]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_new_x_shape == NULL); - var_new_x_shape = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_dircall_arg2_1; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[55]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_x; - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[56]); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_new_x_shape); - tmp_dircall_arg2_1 = var_new_x_shape; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_assign_source_2 = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_x); - tmp_called_instance_2 = par_x; - frame_d1badd3898339991bfdc4579ffa91ae1->m_frame.f_lineno = 167; - tmp_return_value = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_2, - mod_consts[57], - &PyTuple_GET_ITEM(mod_consts[58], 0) - ); - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1badd3898339991bfdc4579ffa91ae1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1badd3898339991bfdc4579ffa91ae1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1badd3898339991bfdc4579ffa91ae1); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d1badd3898339991bfdc4579ffa91ae1, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d1badd3898339991bfdc4579ffa91ae1->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d1badd3898339991bfdc4579ffa91ae1, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d1badd3898339991bfdc4579ffa91ae1, - type_description_1, - par_self, - par_x, - var_new_x_shape - ); - - - // Release cached frame if used for exception. - if (frame_d1badd3898339991bfdc4579ffa91ae1 == cache_frame_d1badd3898339991bfdc4579ffa91ae1) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d1badd3898339991bfdc4579ffa91ae1); - cache_frame_d1badd3898339991bfdc4579ffa91ae1 = NULL; - } - - assertFrameObject(frame_d1badd3898339991bfdc4579ffa91ae1); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(var_new_x_shape); - Py_DECREF(var_new_x_shape); - var_new_x_shape = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_new_x_shape); - var_new_x_shape = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__9_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_head_mask = python_pars[3]; - PyObject *par_encoder_hidden_states = python_pars[4]; - PyObject *par_encoder_attention_mask = python_pars[5]; - PyObject *par_past_key_value = python_pars[6]; - PyObject *par_output_attentions = python_pars[7]; - PyObject *var_is_cross_attention = NULL; - PyObject *var_key_layer = NULL; - PyObject *var_value_layer = NULL; - PyObject *var_mixed_query_layer = NULL; - PyObject *var_query_layer = NULL; - PyObject *var_attention_scores = NULL; - PyObject *var_seq_length = NULL; - PyObject *var_position_ids_l = NULL; - PyObject *var_position_ids_r = NULL; - PyObject *var_distance = NULL; - PyObject *var_positional_embedding = NULL; - PyObject *var_relative_position_scores = NULL; - PyObject *var_relative_position_scores_query = NULL; - PyObject *var_relative_position_scores_key = NULL; - PyObject *var_attention_probs = NULL; - PyObject *var_attention_probs_dropped = NULL; - PyObject *var_context_layer = NULL; - PyObject *var_new_context_layer_shape = NULL; - PyObject *var_outputs = NULL; - struct Nuitka_FrameObject *frame_222d3cb8bbe72424730d64c2fb38796b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_222d3cb8bbe72424730d64c2fb38796b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_compexpr_left_1 = par_encoder_hidden_states; - tmp_compexpr_right_1 = Py_None; - tmp_assign_source_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? Py_True : Py_False; - assert(var_is_cross_attention == NULL); - Py_INCREF(tmp_assign_source_1); - var_is_cross_attention = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_222d3cb8bbe72424730d64c2fb38796b)) { - Py_XDECREF(cache_frame_222d3cb8bbe72424730d64c2fb38796b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_222d3cb8bbe72424730d64c2fb38796b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_222d3cb8bbe72424730d64c2fb38796b = MAKE_FUNCTION_FRAME(codeobj_222d3cb8bbe72424730d64c2fb38796b, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_222d3cb8bbe72424730d64c2fb38796b->m_type_description == NULL); - frame_222d3cb8bbe72424730d64c2fb38796b = cache_frame_222d3cb8bbe72424730d64c2fb38796b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_222d3cb8bbe72424730d64c2fb38796b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_222d3cb8bbe72424730d64c2fb38796b) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - CHECK_OBJECT(var_is_cross_attention); - tmp_condition_result_1 = CHECK_IF_TRUE(var_is_cross_attention) == 1; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[59]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 186; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_args_element_name_2 = par_encoder_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 186; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[44], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 186; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 186; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_key_layer == NULL); - var_key_layer = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[59]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[45]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_encoder_hidden_states == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[60]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_encoder_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 187; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 187; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_value_layer == NULL); - var_value_layer = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_assign_source_4 = par_encoder_attention_mask; - { - PyObject *old = par_attention_mask; - assert(old != NULL); - par_attention_mask = tmp_assign_source_4; - Py_INCREF(par_attention_mask); - Py_DECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_past_key_value); - tmp_compexpr_left_2 = par_past_key_value; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_6; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[59]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_6 = par_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 190; - tmp_args_element_name_5 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[44], tmp_args_element_name_6); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 190; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 190; - tmp_assign_source_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_key_layer == NULL); - var_key_layer = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[59]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[45]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_8 = par_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 191; - tmp_args_element_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_6); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 191; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_value_layer == NULL); - var_value_layer = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_list_element_1; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[33]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_past_key_value); - tmp_expression_name_8 = par_past_key_value; - tmp_subscript_name_1 = mod_consts[29]; - tmp_list_element_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_1, 0); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_1, 0, tmp_list_element_1); - CHECK_OBJECT(var_key_layer); - tmp_list_element_1 = var_key_layer; - PyList_SET_ITEM0(tmp_tuple_element_1, 1, tmp_list_element_1); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[62]); - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 192; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_key_layer; - var_key_layer = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_list_element_2; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[33]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_past_key_value); - tmp_expression_name_10 = par_past_key_value; - tmp_subscript_name_2 = mod_consts[28]; - tmp_list_element_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_2, 1); - if (tmp_list_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 193; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_2, 0, tmp_list_element_2); - CHECK_OBJECT(var_value_layer); - tmp_list_element_2 = var_value_layer; - PyList_SET_ITEM0(tmp_tuple_element_2, 1, tmp_list_element_2); - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[62]); - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 193; - tmp_assign_source_8 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_value_layer; - var_value_layer = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_9; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_10; - CHECK_OBJECT(par_self); - tmp_expression_name_11 = par_self; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[59]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 195; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_10 = par_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 195; - tmp_args_element_name_9 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[44], tmp_args_element_name_10); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 195; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 195; - tmp_assign_source_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_key_layer == NULL); - var_key_layer = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_12; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[59]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[45]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_called_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_12 = par_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 196; - tmp_args_element_name_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_11); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 196; - tmp_assign_source_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_11); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_value_layer == NULL); - var_value_layer = tmp_assign_source_10; - } - branch_end_2:; - branch_end_1:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 198; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_self; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[42]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 198; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_13 = par_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 198; - tmp_assign_source_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_12); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_mixed_query_layer == NULL); - var_mixed_query_layer = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_mixed_query_layer); - tmp_args_element_name_14 = var_mixed_query_layer; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 200; - tmp_assign_source_12 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[59], tmp_args_element_name_14); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_query_layer == NULL); - var_query_layer = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_tuple_element_3; - if (var_key_layer == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = var_key_layer; - tmp_assign_source_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_assign_source_13, 0, tmp_tuple_element_3); - if (var_value_layer == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_3 = var_value_layer; - PyTuple_SET_ITEM0(tmp_assign_source_13, 1, tmp_tuple_element_3); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_assign_source_13); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - { - PyObject *old = par_past_key_value; - assert(old != NULL); - par_past_key_value = tmp_assign_source_13; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_element_name_15; - PyObject *tmp_args_element_name_16; - PyObject *tmp_called_instance_5; - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[65]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_query_layer); - tmp_args_element_name_15 = var_query_layer; - if (var_key_layer == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 205; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = var_key_layer; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 205; - tmp_args_element_name_16 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[66], - &PyTuple_GET_ITEM(mod_consts[67], 0) - ); - - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 205; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 205; - { - PyObject *call_args[] = {tmp_args_element_name_15, tmp_args_element_name_16}; - tmp_assign_source_14 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_13, call_args); - } - - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_element_name_16); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_scores == NULL); - var_attention_scores = tmp_assign_source_14; - } - { - nuitka_bool tmp_condition_result_3; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_16; - PyObject *tmp_tmp_or_left_value_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_17; - PyObject *tmp_tmp_or_right_value_1_object_1; - int tmp_truth_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[24]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_3 = mod_consts[47]; - tmp_tmp_or_left_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - if (tmp_tmp_or_left_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_or_left_value_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_or_left_value_1_object_1); - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_or_left_value_1_object_1); - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[24]); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_4 = mod_consts[48]; - tmp_tmp_or_right_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - Py_DECREF(tmp_compexpr_left_4); - if (tmp_tmp_or_right_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_or_right_value_1_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_or_right_value_1_object_1); - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_or_right_value_1_object_1); - tmp_condition_result_3 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_3 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_expression_name_18; - PyObject *tmp_called_instance_6; - PyObject *tmp_subscript_name_3; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = par_hidden_states; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 211; - tmp_expression_name_18 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[27]); - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[28]; - tmp_assign_source_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_18, tmp_subscript_name_3, 1); - Py_DECREF(tmp_expression_name_18); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_seq_length == NULL); - var_seq_length = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_instance_7; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_20; - tmp_expression_name_19 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_19 == NULL)) { - tmp_expression_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[21]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_seq_length); - tmp_tuple_element_4 = var_seq_length; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_4); - tmp_dict_key_1 = mod_consts[68]; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[69]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_21; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[70]; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_21 = par_hidden_states; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[70]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 212; - tmp_called_instance_7 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 212; - tmp_assign_source_16 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_7, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[71], 0) - ); - - Py_DECREF(tmp_called_instance_7); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_position_ids_l == NULL); - var_position_ids_l = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_instance_8; - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_23; - tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_22 == NULL)) { - tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[21]); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_seq_length == NULL) { - Py_DECREF(tmp_called_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_5 = var_seq_length; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_5); - tmp_dict_key_2 = mod_consts[68]; - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_4); - - exception_lineno = 216; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[69]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_4); - - exception_lineno = 216; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_24; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[70]; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_expression_name_24 = par_hidden_states; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[70]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 215; - tmp_called_instance_8 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 215; - tmp_assign_source_17 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_8, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[73], 0) - ); - - Py_DECREF(tmp_called_instance_8); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_position_ids_r == NULL); - var_position_ids_r = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_position_ids_l); - tmp_left_name_1 = var_position_ids_l; - CHECK_OBJECT(var_position_ids_r); - tmp_right_name_1 = var_position_ids_r; - tmp_assign_source_18 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_distance == NULL); - var_distance = tmp_assign_source_18; - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_25; - PyObject *tmp_args_element_name_17; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_26; - PyObject *tmp_right_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[50]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_distance); - tmp_left_name_3 = var_distance; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_26 = par_self; - tmp_right_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[10]); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 220; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 220; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_3 = mod_consts[28]; - tmp_args_element_name_17 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 220; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 219; - tmp_assign_source_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_17); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_17); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_positional_embedding == NULL); - var_positional_embedding = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_27; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(var_positional_embedding); - tmp_expression_name_27 = var_positional_embedding; - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[74]); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 222; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[68]; - if (var_query_layer == NULL) { - Py_DECREF(tmp_called_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 223; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = var_query_layer; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[68]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 223; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_5 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 222; - tmp_assign_source_20 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_17, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 222; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_positional_embedding; - var_positional_embedding = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_expression_name_29; - PyObject *tmp_tmp_condition_result_4_object_1; - int tmp_truth_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = par_self; - tmp_compexpr_left_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[24]); - if (tmp_compexpr_left_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_5 = mod_consts[47]; - tmp_tmp_condition_result_4_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - Py_DECREF(tmp_compexpr_left_5); - if (tmp_tmp_condition_result_4_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_tmp_condition_result_4_object_1); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_4_object_1); - - exception_lineno = 226; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_4_object_1); - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_30; - PyObject *tmp_args_element_name_18; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - tmp_expression_name_30 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_30 == NULL)) { - tmp_expression_name_30 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[76]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_18 = mod_consts[77]; - if (var_query_layer == NULL) { - Py_DECREF(tmp_called_name_18); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 228; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_19 = var_query_layer; - CHECK_OBJECT(var_positional_embedding); - tmp_args_element_name_20 = var_positional_embedding; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 227; - { - PyObject *call_args[] = {tmp_args_element_name_18, tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_assign_source_21 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_18, call_args); - } - - Py_DECREF(tmp_called_name_18); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_relative_position_scores == NULL); - var_relative_position_scores = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - CHECK_OBJECT(var_attention_scores); - tmp_left_name_4 = var_attention_scores; - CHECK_OBJECT(var_relative_position_scores); - tmp_right_name_4 = var_relative_position_scores; - tmp_assign_source_22 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attention_scores; - var_attention_scores = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - goto branch_end_4; - branch_no_4:; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_expression_name_31; - PyObject *tmp_tmp_condition_result_5_object_1; - int tmp_truth_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 231; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_compexpr_left_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[24]); - if (tmp_compexpr_left_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_6 = mod_consts[48]; - tmp_tmp_condition_result_5_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_6, tmp_compexpr_right_6); - Py_DECREF(tmp_compexpr_left_6); - if (tmp_tmp_condition_result_5_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_tmp_condition_result_5_object_1); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_5_object_1); - - exception_lineno = 231; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_5_object_1); - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_19; - PyObject *tmp_expression_name_32; - PyObject *tmp_args_element_name_21; - PyObject *tmp_args_element_name_22; - PyObject *tmp_args_element_name_23; - tmp_expression_name_32 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_32 == NULL)) { - tmp_expression_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[76]); - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_21 = mod_consts[77]; - if (var_query_layer == NULL) { - Py_DECREF(tmp_called_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 233; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_22 = var_query_layer; - CHECK_OBJECT(var_positional_embedding); - tmp_args_element_name_23 = var_positional_embedding; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 232; - { - PyObject *call_args[] = {tmp_args_element_name_21, tmp_args_element_name_22, tmp_args_element_name_23}; - tmp_assign_source_23 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_19, call_args); - } - - Py_DECREF(tmp_called_name_19); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_relative_position_scores_query == NULL); - var_relative_position_scores_query = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_33; - PyObject *tmp_args_element_name_24; - PyObject *tmp_args_element_name_25; - PyObject *tmp_args_element_name_26; - tmp_expression_name_33 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_33 == NULL)) { - tmp_expression_name_33 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[76]); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_24 = mod_consts[78]; - if (var_key_layer == NULL) { - Py_DECREF(tmp_called_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_25 = var_key_layer; - if (var_positional_embedding == NULL) { - Py_DECREF(tmp_called_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_26 = var_positional_embedding; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 235; - { - PyObject *call_args[] = {tmp_args_element_name_24, tmp_args_element_name_25, tmp_args_element_name_26}; - tmp_assign_source_24 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_20, call_args); - } - - Py_DECREF(tmp_called_name_20); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_relative_position_scores_key == NULL); - var_relative_position_scores_key = tmp_assign_source_24; - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_5; - PyObject *tmp_right_name_6; - CHECK_OBJECT(var_attention_scores); - tmp_left_name_6 = var_attention_scores; - CHECK_OBJECT(var_relative_position_scores_query); - tmp_right_name_5 = var_relative_position_scores_query; - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_relative_position_scores_key); - tmp_right_name_6 = var_relative_position_scores_key; - tmp_assign_source_25 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attention_scores; - var_attention_scores = tmp_assign_source_25; - Py_XDECREF(old); - } - - } - branch_no_5:; - branch_end_4:; - branch_no_3:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_called_name_21; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_35; - if (var_attention_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[80]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_7 = var_attention_scores; - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[81]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[81]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[82]); - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_21); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_35 = par_self; - tmp_args_element_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[39]); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 244; - tmp_right_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_21, tmp_args_element_name_27); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_element_name_27); - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_26 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attention_scores; - var_attention_scores = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_7 = par_attention_mask; - tmp_compexpr_right_7 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_7 != tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - CHECK_OBJECT(var_attention_scores); - tmp_left_name_8 = var_attention_scores; - CHECK_OBJECT(par_attention_mask); - tmp_right_name_8 = par_attention_mask; - tmp_assign_source_27 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_8, tmp_right_name_8); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attention_scores; - var_attention_scores = tmp_assign_source_27; - Py_XDECREF(old); - } - - } - branch_no_6:; - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_22; - PyObject *tmp_called_name_23; - PyObject *tmp_expression_name_36; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_args_element_name_28; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[83]); - if (tmp_called_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_6 = PyDict_Copy(mod_consts[84]); - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 250; - tmp_called_name_22 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_23, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_attention_scores); - tmp_args_element_name_28 = var_attention_scores; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 250; - tmp_assign_source_28 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_22, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_22); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_probs == NULL); - var_attention_probs = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_7; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - int tmp_truth_name_5; - PyObject *tmp_expression_name_37; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_6; - CHECK_OBJECT(var_is_cross_attention); - tmp_truth_name_5 = CHECK_IF_TRUE(var_is_cross_attention); - assert(!(tmp_truth_name_5 == -1)); - tmp_and_left_value_1 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 252; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_37 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[51]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 252; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - tmp_condition_result_7 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_7 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_called_instance_9; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_29; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 253; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_9 = par_self; - CHECK_OBJECT(var_attention_probs); - tmp_args_element_name_29 = var_attention_probs; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 253; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_9, mod_consts[85], tmp_args_element_name_29); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_38; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_30; - PyObject *tmp_expression_name_39; - if (var_attention_probs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_38 = var_attention_probs; - tmp_called_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[87]); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_24); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_39 = par_self; - tmp_args_element_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[88]); - if (tmp_args_element_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 254; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 254; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_24, tmp_args_element_name_30); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_30); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_7:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_25; - PyObject *tmp_expression_name_40; - PyObject *tmp_args_element_name_31; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 258; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_40 = par_self; - tmp_called_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[17]); - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 258; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_attention_probs == NULL) { - Py_DECREF(tmp_called_name_25); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 258; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_31 = var_attention_probs; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 258; - tmp_assign_source_29 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_25, tmp_args_element_name_31); - Py_DECREF(tmp_called_name_25); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 258; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_probs_dropped == NULL); - var_attention_probs_dropped = tmp_assign_source_29; - } - { - bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(par_head_mask); - tmp_compexpr_left_8 = par_head_mask; - tmp_compexpr_right_8 = Py_None; - tmp_condition_result_8 = (tmp_compexpr_left_8 != tmp_compexpr_right_8) ? true : false; - if (tmp_condition_result_8 != false) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - CHECK_OBJECT(var_attention_probs_dropped); - tmp_left_name_9 = var_attention_probs_dropped; - CHECK_OBJECT(par_head_mask); - tmp_right_name_9 = par_head_mask; - tmp_assign_source_30 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_9, tmp_right_name_9); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attention_probs_dropped; - var_attention_probs_dropped = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - branch_no_8:; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_name_26; - PyObject *tmp_expression_name_41; - PyObject *tmp_args_element_name_32; - PyObject *tmp_args_element_name_33; - tmp_expression_name_41 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_41 == NULL)) { - tmp_expression_name_41 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[65]); - if (tmp_called_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_attention_probs_dropped); - tmp_args_element_name_32 = var_attention_probs_dropped; - if (var_value_layer == NULL) { - Py_DECREF(tmp_called_name_26); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 264; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_33 = var_value_layer; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 264; - { - PyObject *call_args[] = {tmp_args_element_name_32, tmp_args_element_name_33}; - tmp_assign_source_31 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_26, call_args); - } - - Py_DECREF(tmp_called_name_26); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_context_layer == NULL); - var_context_layer = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_instance_10; - PyObject *tmp_called_instance_11; - CHECK_OBJECT(var_context_layer); - tmp_called_instance_11 = var_context_layer; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 266; - tmp_called_instance_10 = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_11, - mod_consts[57], - &PyTuple_GET_ITEM(mod_consts[58], 0) - ); - - if (tmp_called_instance_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 266; - tmp_assign_source_32 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[89]); - Py_DECREF(tmp_called_instance_10); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_context_layer; - var_context_layer = tmp_assign_source_32; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_left_name_10; - PyObject *tmp_expression_name_42; - PyObject *tmp_called_instance_12; - PyObject *tmp_subscript_name_4; - PyObject *tmp_right_name_10; - PyObject *tmp_tuple_element_6; - PyObject *tmp_expression_name_43; - CHECK_OBJECT(var_context_layer); - tmp_called_instance_12 = var_context_layer; - frame_222d3cb8bbe72424730d64c2fb38796b->m_frame.f_lineno = 267; - tmp_expression_name_42 = CALL_METHOD_NO_ARGS(tmp_called_instance_12, mod_consts[27]); - if (tmp_expression_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[90]; - tmp_left_name_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_42, tmp_subscript_name_4); - Py_DECREF(tmp_expression_name_42); - if (tmp_left_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_43 = par_self; - tmp_tuple_element_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[40]); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_10); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_10 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_10, 0, tmp_tuple_element_6); - tmp_assign_source_33 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_left_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_new_context_layer_shape == NULL); - var_new_context_layer_shape = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_44; - PyObject *tmp_dircall_arg2_1; - if (var_context_layer == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[91]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 268; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_44 = var_context_layer; - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_44, mod_consts[56]); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_new_context_layer_shape); - tmp_dircall_arg2_1 = var_new_context_layer_shape; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_assign_source_34 = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_context_layer; - var_context_layer = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_35; - nuitka_bool tmp_condition_result_9; - int tmp_truth_name_7; - PyObject *tmp_tuple_element_7; - PyObject *tmp_tuple_element_8; - CHECK_OBJECT(par_output_attentions); - tmp_truth_name_7 = CHECK_IF_TRUE(par_output_attentions); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 271; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_9 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(var_context_layer); - tmp_tuple_element_7 = var_context_layer; - tmp_assign_source_35 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_assign_source_35, 0, tmp_tuple_element_7); - if (var_attention_probs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 271; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_7 = var_attention_probs; - PyTuple_SET_ITEM0(tmp_assign_source_35, 1, tmp_tuple_element_7); - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_assign_source_35); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(var_context_layer); - tmp_tuple_element_8 = var_context_layer; - tmp_assign_source_35 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_35, 0, tmp_tuple_element_8); - condexpr_end_1:; - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_35; - } - { - PyObject *tmp_assign_source_36; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - PyObject *tmp_tuple_element_9; - CHECK_OBJECT(var_outputs); - tmp_left_name_11 = var_outputs; - CHECK_OBJECT(par_past_key_value); - tmp_tuple_element_9 = par_past_key_value; - tmp_right_name_11 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_11, 0, tmp_tuple_element_9); - tmp_assign_source_36 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_right_name_11); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 274; - type_description_1 = "ooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_outputs; - var_outputs = tmp_assign_source_36; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_222d3cb8bbe72424730d64c2fb38796b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_222d3cb8bbe72424730d64c2fb38796b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_222d3cb8bbe72424730d64c2fb38796b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_222d3cb8bbe72424730d64c2fb38796b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_222d3cb8bbe72424730d64c2fb38796b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_222d3cb8bbe72424730d64c2fb38796b, - type_description_1, - par_self, - par_hidden_states, - par_attention_mask, - par_head_mask, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_past_key_value, - par_output_attentions, - var_is_cross_attention, - var_key_layer, - var_value_layer, - var_mixed_query_layer, - var_query_layer, - var_attention_scores, - var_seq_length, - var_position_ids_l, - var_position_ids_r, - var_distance, - var_positional_embedding, - var_relative_position_scores, - var_relative_position_scores_query, - var_relative_position_scores_key, - var_attention_probs, - var_attention_probs_dropped, - var_context_layer, - var_new_context_layer_shape, - var_outputs - ); - - - // Release cached frame if used for exception. - if (frame_222d3cb8bbe72424730d64c2fb38796b == cache_frame_222d3cb8bbe72424730d64c2fb38796b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_222d3cb8bbe72424730d64c2fb38796b); - cache_frame_222d3cb8bbe72424730d64c2fb38796b = NULL; - } - - assertFrameObject(frame_222d3cb8bbe72424730d64c2fb38796b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_outputs); - tmp_return_value = var_outputs; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - CHECK_OBJECT(par_encoder_attention_mask); - Py_DECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - CHECK_OBJECT(par_past_key_value); - Py_DECREF(par_past_key_value); - par_past_key_value = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(var_is_cross_attention); - Py_DECREF(var_is_cross_attention); - var_is_cross_attention = NULL; - Py_XDECREF(var_key_layer); - var_key_layer = NULL; - Py_XDECREF(var_value_layer); - var_value_layer = NULL; - Py_XDECREF(var_mixed_query_layer); - var_mixed_query_layer = NULL; - Py_XDECREF(var_query_layer); - var_query_layer = NULL; - Py_XDECREF(var_attention_scores); - var_attention_scores = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_position_ids_l); - var_position_ids_l = NULL; - Py_XDECREF(var_position_ids_r); - var_position_ids_r = NULL; - Py_XDECREF(var_distance); - var_distance = NULL; - Py_XDECREF(var_positional_embedding); - var_positional_embedding = NULL; - Py_XDECREF(var_relative_position_scores); - var_relative_position_scores = NULL; - Py_XDECREF(var_relative_position_scores_query); - var_relative_position_scores_query = NULL; - Py_XDECREF(var_relative_position_scores_key); - var_relative_position_scores_key = NULL; - Py_XDECREF(var_attention_probs); - var_attention_probs = NULL; - Py_XDECREF(var_attention_probs_dropped); - var_attention_probs_dropped = NULL; - CHECK_OBJECT(var_context_layer); - Py_DECREF(var_context_layer); - var_context_layer = NULL; - CHECK_OBJECT(var_new_context_layer_shape); - Py_DECREF(var_new_context_layer_shape); - var_new_context_layer_shape = NULL; - CHECK_OBJECT(var_outputs); - Py_DECREF(var_outputs); - var_outputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - CHECK_OBJECT(par_encoder_attention_mask); - Py_DECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - CHECK_OBJECT(par_past_key_value); - Py_DECREF(par_past_key_value); - par_past_key_value = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(var_is_cross_attention); - Py_DECREF(var_is_cross_attention); - var_is_cross_attention = NULL; - Py_XDECREF(var_key_layer); - var_key_layer = NULL; - Py_XDECREF(var_value_layer); - var_value_layer = NULL; - Py_XDECREF(var_mixed_query_layer); - var_mixed_query_layer = NULL; - Py_XDECREF(var_query_layer); - var_query_layer = NULL; - Py_XDECREF(var_attention_scores); - var_attention_scores = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_position_ids_l); - var_position_ids_l = NULL; - Py_XDECREF(var_position_ids_r); - var_position_ids_r = NULL; - Py_XDECREF(var_distance); - var_distance = NULL; - Py_XDECREF(var_positional_embedding); - var_positional_embedding = NULL; - Py_XDECREF(var_relative_position_scores); - var_relative_position_scores = NULL; - Py_XDECREF(var_relative_position_scores_query); - var_relative_position_scores_query = NULL; - Py_XDECREF(var_relative_position_scores_key); - var_relative_position_scores_key = NULL; - Py_XDECREF(var_attention_probs); - var_attention_probs = NULL; - Py_XDECREF(var_attention_probs_dropped); - var_attention_probs_dropped = NULL; - Py_XDECREF(var_context_layer); - var_context_layer = NULL; - Py_XDECREF(var_new_context_layer_shape); - var_new_context_layer_shape = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__10___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_3ffa23d628f575a2f740dcb6fe8c1a15; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15)) { - Py_XDECREF(cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15 = MAKE_FUNCTION_FRAME(codeobj_3ffa23d628f575a2f740dcb6fe8c1a15, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15->m_type_description == NULL); - frame_3ffa23d628f575a2f740dcb6fe8c1a15 = cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3ffa23d628f575a2f740dcb6fe8c1a15); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3ffa23d628f575a2f740dcb6fe8c1a15) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 280; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_3ffa23d628f575a2f740dcb6fe8c1a15->m_frame.f_lineno = 280; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[6]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_3ffa23d628f575a2f740dcb6fe8c1a15->m_frame.f_lineno = 281; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[92], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_2; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[12]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[6]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[13]; - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[14]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_3ffa23d628f575a2f740dcb6fe8c1a15->m_frame.f_lineno = 282; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[12], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[15]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 283; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_config; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[16]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 283; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_3ffa23d628f575a2f740dcb6fe8c1a15->m_frame.f_lineno = 283; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[17], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3ffa23d628f575a2f740dcb6fe8c1a15); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3ffa23d628f575a2f740dcb6fe8c1a15); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3ffa23d628f575a2f740dcb6fe8c1a15, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3ffa23d628f575a2f740dcb6fe8c1a15->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3ffa23d628f575a2f740dcb6fe8c1a15, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3ffa23d628f575a2f740dcb6fe8c1a15, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_3ffa23d628f575a2f740dcb6fe8c1a15 == cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15); - cache_frame_3ffa23d628f575a2f740dcb6fe8c1a15 = NULL; - } - - assertFrameObject(frame_3ffa23d628f575a2f740dcb6fe8c1a15); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__11_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_input_tensor = python_pars[2]; - struct Nuitka_FrameObject *frame_e2c151c9b0676788eee114d75e2c1886; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e2c151c9b0676788eee114d75e2c1886 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e2c151c9b0676788eee114d75e2c1886)) { - Py_XDECREF(cache_frame_e2c151c9b0676788eee114d75e2c1886); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e2c151c9b0676788eee114d75e2c1886 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e2c151c9b0676788eee114d75e2c1886 = MAKE_FUNCTION_FRAME(codeobj_e2c151c9b0676788eee114d75e2c1886, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e2c151c9b0676788eee114d75e2c1886->m_type_description == NULL); - frame_e2c151c9b0676788eee114d75e2c1886 = cache_frame_e2c151c9b0676788eee114d75e2c1886; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e2c151c9b0676788eee114d75e2c1886); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e2c151c9b0676788eee114d75e2c1886) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - frame_e2c151c9b0676788eee114d75e2c1886->m_frame.f_lineno = 286; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[92], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 287; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_2 = par_hidden_states; - frame_e2c151c9b0676788eee114d75e2c1886->m_frame.f_lineno = 287; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[17], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_states); - tmp_left_name_1 = par_hidden_states; - CHECK_OBJECT(par_input_tensor); - tmp_right_name_1 = par_input_tensor; - tmp_args_element_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 288; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_e2c151c9b0676788eee114d75e2c1886->m_frame.f_lineno = 288; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2c151c9b0676788eee114d75e2c1886); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2c151c9b0676788eee114d75e2c1886); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e2c151c9b0676788eee114d75e2c1886, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e2c151c9b0676788eee114d75e2c1886->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e2c151c9b0676788eee114d75e2c1886, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e2c151c9b0676788eee114d75e2c1886, - type_description_1, - par_self, - par_hidden_states, - par_input_tensor - ); - - - // Release cached frame if used for exception. - if (frame_e2c151c9b0676788eee114d75e2c1886 == cache_frame_e2c151c9b0676788eee114d75e2c1886) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e2c151c9b0676788eee114d75e2c1886); - cache_frame_e2c151c9b0676788eee114d75e2c1886 = NULL; - } - - assertFrameObject(frame_e2c151c9b0676788eee114d75e2c1886); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_hidden_states); - tmp_return_value = par_hidden_states; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_input_tensor); - par_input_tensor = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_input_tensor); - par_input_tensor = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__12___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - PyObject *par_is_cross_attention = python_pars[2]; - struct Nuitka_FrameObject *frame_269652cb22803d15cde90d439879a1a2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_269652cb22803d15cde90d439879a1a2 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_269652cb22803d15cde90d439879a1a2)) { - Py_XDECREF(cache_frame_269652cb22803d15cde90d439879a1a2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_269652cb22803d15cde90d439879a1a2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_269652cb22803d15cde90d439879a1a2 = MAKE_FUNCTION_FRAME(codeobj_269652cb22803d15cde90d439879a1a2, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_269652cb22803d15cde90d439879a1a2->m_type_description == NULL); - frame_269652cb22803d15cde90d439879a1a2 = cache_frame_269652cb22803d15cde90d439879a1a2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_269652cb22803d15cde90d439879a1a2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_269652cb22803d15cde90d439879a1a2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 294; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_269652cb22803d15cde90d439879a1a2->m_frame.f_lineno = 294; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[93]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[93]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - CHECK_OBJECT(par_is_cross_attention); - tmp_args_element_name_2 = par_is_cross_attention; - frame_269652cb22803d15cde90d439879a1a2->m_frame.f_lineno = 295; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[26], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[94]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[94]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_3 = par_config; - frame_269652cb22803d15cde90d439879a1a2->m_frame.f_lineno = 296; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[95], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - tmp_assattr_name_3 = PySet_New(NULL); - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[96], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_269652cb22803d15cde90d439879a1a2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_269652cb22803d15cde90d439879a1a2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_269652cb22803d15cde90d439879a1a2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_269652cb22803d15cde90d439879a1a2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_269652cb22803d15cde90d439879a1a2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_269652cb22803d15cde90d439879a1a2, - type_description_1, - par_self, - par_config, - par_is_cross_attention, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_269652cb22803d15cde90d439879a1a2 == cache_frame_269652cb22803d15cde90d439879a1a2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_269652cb22803d15cde90d439879a1a2); - cache_frame_269652cb22803d15cde90d439879a1a2 = NULL; - } - - assertFrameObject(frame_269652cb22803d15cde90d439879a1a2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_is_cross_attention); - Py_DECREF(par_is_cross_attention); - par_is_cross_attention = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_is_cross_attention); - Py_DECREF(par_is_cross_attention); - par_is_cross_attention = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__13_prune_heads(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_heads = python_pars[1]; - PyObject *var_index = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_0b0b36faf8277ec302d6c6695f619e8c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_0b0b36faf8277ec302d6c6695f619e8c = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0b0b36faf8277ec302d6c6695f619e8c)) { - Py_XDECREF(cache_frame_0b0b36faf8277ec302d6c6695f619e8c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0b0b36faf8277ec302d6c6695f619e8c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0b0b36faf8277ec302d6c6695f619e8c = MAKE_FUNCTION_FRAME(codeobj_0b0b36faf8277ec302d6c6695f619e8c, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0b0b36faf8277ec302d6c6695f619e8c->m_type_description == NULL); - frame_0b0b36faf8277ec302d6c6695f619e8c = cache_frame_0b0b36faf8277ec302d6c6695f619e8c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0b0b36faf8277ec302d6c6695f619e8c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0b0b36faf8277ec302d6c6695f619e8c) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_len_arg_1; - PyObject *tmp_tmp_condition_result_1_object_1; - CHECK_OBJECT(par_heads); - tmp_len_arg_1 = par_heads; - tmp_compexpr_left_1 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[29]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - assert(!(tmp_tmp_condition_result_1_object_1 == NULL)); - tmp_condition_result_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1) == 1; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_5; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[97]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[97]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_heads == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[98]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 303; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_1 = par_heads; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[26]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[36]); - Py_DECREF(tmp_expression_name_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[26]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 305; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[39]); - Py_DECREF(tmp_expression_name_3); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 305; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 306; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[96]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 306; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame.f_lineno = 302; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 302; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 302; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 302; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[99]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 302; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_heads; - par_heads = tmp_assign_source_4; - Py_INCREF(par_heads); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_index == NULL); - Py_INCREF(tmp_assign_source_5); - var_index = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_6; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_8; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[100]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[100]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[26]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[42]); - Py_DECREF(tmp_expression_name_6); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_index); - tmp_args_element_name_6 = var_index; - frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame.f_lineno = 310; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_args_element_name_5); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[26]); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_1); - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[42], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_8; - PyObject *tmp_assattr_target_2; - PyObject *tmp_expression_name_11; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[100]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[100]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[26]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[44]); - Py_DECREF(tmp_expression_name_9); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_index); - tmp_args_element_name_8 = var_index; - frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame.f_lineno = 311; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_args_element_name_7); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_assattr_target_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[26]); - if (tmp_assattr_target_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_2); - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[44], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - Py_DECREF(tmp_assattr_target_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_10; - PyObject *tmp_assattr_target_3; - PyObject *tmp_expression_name_14; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[100]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[100]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_expression_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[26]); - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[45]); - Py_DECREF(tmp_expression_name_12); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_index); - tmp_args_element_name_10 = var_index; - frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame.f_lineno = 312; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_args_element_name_9); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_self; - tmp_assattr_target_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[26]); - if (tmp_assattr_target_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_3); - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[45], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - Py_DECREF(tmp_assattr_target_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_4; - PyObject *tmp_expression_name_17; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[100]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[100]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_expression_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[95]); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[92]); - Py_DECREF(tmp_expression_name_15); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_index); - tmp_tuple_element_1 = var_index; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[34]); - frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame.f_lineno = 313; - tmp_assattr_name_4 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_assattr_target_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[95]); - if (tmp_assattr_target_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_4); - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[92], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - Py_DECREF(tmp_assattr_target_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_18; - PyObject *tmp_expression_name_19; - PyObject *tmp_right_name_1; - PyObject *tmp_len_arg_2; - PyObject *tmp_assattr_target_5; - PyObject *tmp_expression_name_20; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_self; - tmp_expression_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[26]); - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[36]); - Py_DECREF(tmp_expression_name_18); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_heads); - tmp_len_arg_2 = par_heads; - tmp_right_name_1 = BUILTIN_LEN(tmp_len_arg_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assattr_name_5 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_20 = par_self; - tmp_assattr_target_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[26]); - if (tmp_assattr_target_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_5); - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[36], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - Py_DECREF(tmp_assattr_target_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_21; - PyObject *tmp_expression_name_22; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_23; - PyObject *tmp_expression_name_24; - PyObject *tmp_assattr_target_6; - PyObject *tmp_expression_name_25; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_self; - tmp_expression_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[26]); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[39]); - Py_DECREF(tmp_expression_name_21); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_24 = par_self; - tmp_expression_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[26]); - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[36]); - Py_DECREF(tmp_expression_name_23); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assattr_name_6 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 317; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_assattr_target_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[26]); - if (tmp_assattr_target_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_6); - - exception_lineno = 317; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[40], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - Py_DECREF(tmp_assattr_target_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_26; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_element_name_11; - PyObject *tmp_assattr_target_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_self; - tmp_expression_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[96]); - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[101]); - Py_DECREF(tmp_expression_name_26); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_heads == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[98]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_11 = par_heads; - frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame.f_lineno = 320; - tmp_assattr_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_6); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[96], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b0b36faf8277ec302d6c6695f619e8c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b0b36faf8277ec302d6c6695f619e8c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b0b36faf8277ec302d6c6695f619e8c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0b0b36faf8277ec302d6c6695f619e8c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0b0b36faf8277ec302d6c6695f619e8c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0b0b36faf8277ec302d6c6695f619e8c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0b0b36faf8277ec302d6c6695f619e8c, - type_description_1, - par_self, - par_heads, - var_index - ); - - - // Release cached frame if used for exception. - if (frame_0b0b36faf8277ec302d6c6695f619e8c == cache_frame_0b0b36faf8277ec302d6c6695f619e8c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0b0b36faf8277ec302d6c6695f619e8c); - cache_frame_0b0b36faf8277ec302d6c6695f619e8c = NULL; - } - - assertFrameObject(frame_0b0b36faf8277ec302d6c6695f619e8c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_heads); - par_heads = NULL; - Py_XDECREF(var_index); - var_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_heads); - par_heads = NULL; - Py_XDECREF(var_index); - var_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__14_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_head_mask = python_pars[3]; - PyObject *par_encoder_hidden_states = python_pars[4]; - PyObject *par_encoder_attention_mask = python_pars[5]; - PyObject *par_past_key_value = python_pars[6]; - PyObject *par_output_attentions = python_pars[7]; - PyObject *var_self_outputs = NULL; - PyObject *var_attention_output = NULL; - PyObject *var_outputs = NULL; - struct Nuitka_FrameObject *frame_02c26eebaf2303eb7380395e131d8a5e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_02c26eebaf2303eb7380395e131d8a5e = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_02c26eebaf2303eb7380395e131d8a5e)) { - Py_XDECREF(cache_frame_02c26eebaf2303eb7380395e131d8a5e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_02c26eebaf2303eb7380395e131d8a5e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_02c26eebaf2303eb7380395e131d8a5e = MAKE_FUNCTION_FRAME(codeobj_02c26eebaf2303eb7380395e131d8a5e, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_02c26eebaf2303eb7380395e131d8a5e->m_type_description == NULL); - frame_02c26eebaf2303eb7380395e131d8a5e = cache_frame_02c26eebaf2303eb7380395e131d8a5e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_02c26eebaf2303eb7380395e131d8a5e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_02c26eebaf2303eb7380395e131d8a5e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - CHECK_OBJECT(par_attention_mask); - tmp_args_element_name_2 = par_attention_mask; - CHECK_OBJECT(par_head_mask); - tmp_args_element_name_3 = par_head_mask; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_args_element_name_4 = par_encoder_hidden_states; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_args_element_name_5 = par_encoder_attention_mask; - CHECK_OBJECT(par_past_key_value); - tmp_args_element_name_6 = par_past_key_value; - CHECK_OBJECT(par_output_attentions); - tmp_args_element_name_7 = par_output_attentions; - frame_02c26eebaf2303eb7380395e131d8a5e->m_frame.f_lineno = 332; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS7( - tmp_called_instance_1, - mod_consts[26], - call_args - ); - } - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_self_outputs == NULL); - var_self_outputs = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 341; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[95]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_self_outputs); - tmp_expression_name_2 = var_self_outputs; - tmp_subscript_name_1 = mod_consts[29]; - tmp_args_element_name_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 341; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 341; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_9 = par_hidden_states; - frame_02c26eebaf2303eb7380395e131d8a5e->m_frame.f_lineno = 341; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_output == NULL); - var_attention_output = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_attention_output); - tmp_tuple_element_1 = var_attention_output; - tmp_left_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_self_outputs); - tmp_expression_name_3 = var_self_outputs; - tmp_subscript_name_2 = mod_consts[102]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 343; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_02c26eebaf2303eb7380395e131d8a5e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_02c26eebaf2303eb7380395e131d8a5e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_02c26eebaf2303eb7380395e131d8a5e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_02c26eebaf2303eb7380395e131d8a5e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_02c26eebaf2303eb7380395e131d8a5e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_02c26eebaf2303eb7380395e131d8a5e, - type_description_1, - par_self, - par_hidden_states, - par_attention_mask, - par_head_mask, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_past_key_value, - par_output_attentions, - var_self_outputs, - var_attention_output, - var_outputs - ); - - - // Release cached frame if used for exception. - if (frame_02c26eebaf2303eb7380395e131d8a5e == cache_frame_02c26eebaf2303eb7380395e131d8a5e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_02c26eebaf2303eb7380395e131d8a5e); - cache_frame_02c26eebaf2303eb7380395e131d8a5e = NULL; - } - - assertFrameObject(frame_02c26eebaf2303eb7380395e131d8a5e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_outputs); - tmp_return_value = var_outputs; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_past_key_value); - par_past_key_value = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(var_self_outputs); - Py_DECREF(var_self_outputs); - var_self_outputs = NULL; - CHECK_OBJECT(var_attention_output); - Py_DECREF(var_attention_output); - var_attention_output = NULL; - CHECK_OBJECT(var_outputs); - Py_DECREF(var_outputs); - var_outputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_past_key_value); - par_past_key_value = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(var_self_outputs); - var_self_outputs = NULL; - Py_XDECREF(var_attention_output); - var_attention_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__15___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_bc386502a8ad779e82b56ce3a01a046c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_bc386502a8ad779e82b56ce3a01a046c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_bc386502a8ad779e82b56ce3a01a046c)) { - Py_XDECREF(cache_frame_bc386502a8ad779e82b56ce3a01a046c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bc386502a8ad779e82b56ce3a01a046c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bc386502a8ad779e82b56ce3a01a046c = MAKE_FUNCTION_FRAME(codeobj_bc386502a8ad779e82b56ce3a01a046c, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bc386502a8ad779e82b56ce3a01a046c->m_type_description == NULL); - frame_bc386502a8ad779e82b56ce3a01a046c = cache_frame_bc386502a8ad779e82b56ce3a01a046c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bc386502a8ad779e82b56ce3a01a046c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bc386502a8ad779e82b56ce3a01a046c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 351; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_bc386502a8ad779e82b56ce3a01a046c->m_frame.f_lineno = 351; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[6]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[103]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_bc386502a8ad779e82b56ce3a01a046c->m_frame.f_lineno = 352; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[92], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_4; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 353; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_config; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[104]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = (PyObject *)&PyUnicode_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[105]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[105]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 354; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[104]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[106], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_3; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 356; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_config; - tmp_assattr_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[104]); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[106], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bc386502a8ad779e82b56ce3a01a046c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bc386502a8ad779e82b56ce3a01a046c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bc386502a8ad779e82b56ce3a01a046c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bc386502a8ad779e82b56ce3a01a046c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bc386502a8ad779e82b56ce3a01a046c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bc386502a8ad779e82b56ce3a01a046c, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_bc386502a8ad779e82b56ce3a01a046c == cache_frame_bc386502a8ad779e82b56ce3a01a046c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bc386502a8ad779e82b56ce3a01a046c); - cache_frame_bc386502a8ad779e82b56ce3a01a046c = NULL; - } - - assertFrameObject(frame_bc386502a8ad779e82b56ce3a01a046c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__16_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - struct Nuitka_FrameObject *frame_ef7df7f2aae603ea3cb921a91d68b297; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ef7df7f2aae603ea3cb921a91d68b297 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ef7df7f2aae603ea3cb921a91d68b297)) { - Py_XDECREF(cache_frame_ef7df7f2aae603ea3cb921a91d68b297); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ef7df7f2aae603ea3cb921a91d68b297 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ef7df7f2aae603ea3cb921a91d68b297 = MAKE_FUNCTION_FRAME(codeobj_ef7df7f2aae603ea3cb921a91d68b297, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ef7df7f2aae603ea3cb921a91d68b297->m_type_description == NULL); - frame_ef7df7f2aae603ea3cb921a91d68b297 = cache_frame_ef7df7f2aae603ea3cb921a91d68b297; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ef7df7f2aae603ea3cb921a91d68b297); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ef7df7f2aae603ea3cb921a91d68b297) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - frame_ef7df7f2aae603ea3cb921a91d68b297->m_frame.f_lineno = 359; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[92], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 360; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_2 = par_hidden_states; - frame_ef7df7f2aae603ea3cb921a91d68b297->m_frame.f_lineno = 360; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[106], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ef7df7f2aae603ea3cb921a91d68b297); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ef7df7f2aae603ea3cb921a91d68b297); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ef7df7f2aae603ea3cb921a91d68b297, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ef7df7f2aae603ea3cb921a91d68b297->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ef7df7f2aae603ea3cb921a91d68b297, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ef7df7f2aae603ea3cb921a91d68b297, - type_description_1, - par_self, - par_hidden_states - ); - - - // Release cached frame if used for exception. - if (frame_ef7df7f2aae603ea3cb921a91d68b297 == cache_frame_ef7df7f2aae603ea3cb921a91d68b297) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ef7df7f2aae603ea3cb921a91d68b297); - cache_frame_ef7df7f2aae603ea3cb921a91d68b297 = NULL; - } - - assertFrameObject(frame_ef7df7f2aae603ea3cb921a91d68b297); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_hidden_states); - tmp_return_value = par_hidden_states; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__17___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_da381dec774f92fc3fdec9b27fb9d857; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_da381dec774f92fc3fdec9b27fb9d857 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_da381dec774f92fc3fdec9b27fb9d857)) { - Py_XDECREF(cache_frame_da381dec774f92fc3fdec9b27fb9d857); - -#if _DEBUG_REFCOUNTS - if (cache_frame_da381dec774f92fc3fdec9b27fb9d857 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_da381dec774f92fc3fdec9b27fb9d857 = MAKE_FUNCTION_FRAME(codeobj_da381dec774f92fc3fdec9b27fb9d857, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_da381dec774f92fc3fdec9b27fb9d857->m_type_description == NULL); - frame_da381dec774f92fc3fdec9b27fb9d857 = cache_frame_da381dec774f92fc3fdec9b27fb9d857; - - // Push the new frame as the currently active one. - pushFrameStack(frame_da381dec774f92fc3fdec9b27fb9d857); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_da381dec774f92fc3fdec9b27fb9d857) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 366; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 366; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_da381dec774f92fc3fdec9b27fb9d857->m_frame.f_lineno = 366; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 366; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[103]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_da381dec774f92fc3fdec9b27fb9d857->m_frame.f_lineno = 367; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[92], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_2; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[12]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[6]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[13]; - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[14]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_da381dec774f92fc3fdec9b27fb9d857->m_frame.f_lineno = 368; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[12], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[15]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 369; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_config; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[16]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 369; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_da381dec774f92fc3fdec9b27fb9d857->m_frame.f_lineno = 369; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[17], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_da381dec774f92fc3fdec9b27fb9d857); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_da381dec774f92fc3fdec9b27fb9d857); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_da381dec774f92fc3fdec9b27fb9d857, exception_lineno); - } else if (exception_tb->tb_frame != &frame_da381dec774f92fc3fdec9b27fb9d857->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_da381dec774f92fc3fdec9b27fb9d857, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_da381dec774f92fc3fdec9b27fb9d857, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_da381dec774f92fc3fdec9b27fb9d857 == cache_frame_da381dec774f92fc3fdec9b27fb9d857) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_da381dec774f92fc3fdec9b27fb9d857); - cache_frame_da381dec774f92fc3fdec9b27fb9d857 = NULL; - } - - assertFrameObject(frame_da381dec774f92fc3fdec9b27fb9d857); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__18_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_input_tensor = python_pars[2]; - struct Nuitka_FrameObject *frame_ac223922169c79b32778e1fea6b86d12; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ac223922169c79b32778e1fea6b86d12 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ac223922169c79b32778e1fea6b86d12)) { - Py_XDECREF(cache_frame_ac223922169c79b32778e1fea6b86d12); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ac223922169c79b32778e1fea6b86d12 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ac223922169c79b32778e1fea6b86d12 = MAKE_FUNCTION_FRAME(codeobj_ac223922169c79b32778e1fea6b86d12, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ac223922169c79b32778e1fea6b86d12->m_type_description == NULL); - frame_ac223922169c79b32778e1fea6b86d12 = cache_frame_ac223922169c79b32778e1fea6b86d12; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ac223922169c79b32778e1fea6b86d12); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ac223922169c79b32778e1fea6b86d12) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - frame_ac223922169c79b32778e1fea6b86d12->m_frame.f_lineno = 372; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[92], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 373; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_2 = par_hidden_states; - frame_ac223922169c79b32778e1fea6b86d12->m_frame.f_lineno = 373; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[17], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 373; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 374; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_states); - tmp_left_name_1 = par_hidden_states; - CHECK_OBJECT(par_input_tensor); - tmp_right_name_1 = par_input_tensor; - tmp_args_element_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 374; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_ac223922169c79b32778e1fea6b86d12->m_frame.f_lineno = 374; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ac223922169c79b32778e1fea6b86d12); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ac223922169c79b32778e1fea6b86d12); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ac223922169c79b32778e1fea6b86d12, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ac223922169c79b32778e1fea6b86d12->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ac223922169c79b32778e1fea6b86d12, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ac223922169c79b32778e1fea6b86d12, - type_description_1, - par_self, - par_hidden_states, - par_input_tensor - ); - - - // Release cached frame if used for exception. - if (frame_ac223922169c79b32778e1fea6b86d12 == cache_frame_ac223922169c79b32778e1fea6b86d12) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ac223922169c79b32778e1fea6b86d12); - cache_frame_ac223922169c79b32778e1fea6b86d12 = NULL; - } - - assertFrameObject(frame_ac223922169c79b32778e1fea6b86d12); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_hidden_states); - tmp_return_value = par_hidden_states; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_input_tensor); - par_input_tensor = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_input_tensor); - par_input_tensor = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__19___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - PyObject *par_layer_num = python_pars[2]; - struct Nuitka_FrameObject *frame_9044624cc871cfe54b3607752fe57f1c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_9044624cc871cfe54b3607752fe57f1c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9044624cc871cfe54b3607752fe57f1c)) { - Py_XDECREF(cache_frame_9044624cc871cfe54b3607752fe57f1c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9044624cc871cfe54b3607752fe57f1c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9044624cc871cfe54b3607752fe57f1c = MAKE_FUNCTION_FRAME(codeobj_9044624cc871cfe54b3607752fe57f1c, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9044624cc871cfe54b3607752fe57f1c->m_type_description == NULL); - frame_9044624cc871cfe54b3607752fe57f1c = cache_frame_9044624cc871cfe54b3607752fe57f1c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9044624cc871cfe54b3607752fe57f1c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9044624cc871cfe54b3607752fe57f1c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 380; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 380; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_config); - tmp_assattr_name_1 = par_config; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[5], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 381; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_assattr_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[107]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[107], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - tmp_assattr_name_3 = mod_consts[28]; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[108], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 383; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[109]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[109]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 384; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_config; - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 384; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[110], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_assattr_target_5; - CHECK_OBJECT(par_layer_num); - tmp_assattr_name_5 = par_layer_num; - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[111], tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 385; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_tmp_and_right_value_1_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[5]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[112]); - Py_DECREF(tmp_expression_name_2); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 387; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_layer_num); - tmp_left_name_1 = par_layer_num; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[5]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[113]); - Py_DECREF(tmp_expression_name_4); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_left_1 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[29]; - tmp_tmp_and_right_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_and_right_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_and_right_value_1_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_and_right_value_1_object_1); - - exception_lineno = 388; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_and_right_value_1_object_1); - tmp_condition_result_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_1 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_6; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[109]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[109]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 390; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 391; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_config; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[114]; - if (par_self == NULL) { - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 391; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[5]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 391; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[112]); - Py_DECREF(tmp_expression_name_6); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 391; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 390; - tmp_assattr_name_6 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 390; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 390; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[115], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 390; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_assattr_target_7; - tmp_assattr_name_7 = Py_True; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 393; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[116], tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_assattr_target_8; - tmp_assattr_name_8 = Py_False; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 395; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[116], tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_9; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[117]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[117]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 396; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_config; - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 396; - tmp_assattr_name_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 396; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[118], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_10; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[119]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[119]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 397; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_config; - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 397; - tmp_assattr_name_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - if (tmp_assattr_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 397; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[95], tmp_assattr_name_10); - Py_DECREF(tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_11; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[117]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[117]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 399; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_config; - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 399; - tmp_assattr_name_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_4); - if (tmp_assattr_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 399; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[120], tmp_assattr_name_11); - Py_DECREF(tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_called_name_6; - PyObject *tmp_args_element_name_5; - PyObject *tmp_assattr_target_12; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[119]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[119]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 400; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 400; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_config; - frame_9044624cc871cfe54b3607752fe57f1c->m_frame.f_lineno = 400; - tmp_assattr_name_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_5); - if (tmp_assattr_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 400; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 400; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_12 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[121], tmp_assattr_name_12); - Py_DECREF(tmp_assattr_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 400; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9044624cc871cfe54b3607752fe57f1c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9044624cc871cfe54b3607752fe57f1c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9044624cc871cfe54b3607752fe57f1c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9044624cc871cfe54b3607752fe57f1c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9044624cc871cfe54b3607752fe57f1c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9044624cc871cfe54b3607752fe57f1c, - type_description_1, - par_self, - par_config, - par_layer_num, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_9044624cc871cfe54b3607752fe57f1c == cache_frame_9044624cc871cfe54b3607752fe57f1c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9044624cc871cfe54b3607752fe57f1c); - cache_frame_9044624cc871cfe54b3607752fe57f1c = NULL; - } - - assertFrameObject(frame_9044624cc871cfe54b3607752fe57f1c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - Py_XDECREF(par_layer_num); - par_layer_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - Py_XDECREF(par_layer_num); - par_layer_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__20_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_head_mask = python_pars[3]; - PyObject *par_encoder_hidden_states = python_pars[4]; - PyObject *par_encoder_attention_mask = python_pars[5]; - PyObject *par_past_key_value = python_pars[6]; - PyObject *par_output_attentions = python_pars[7]; - PyObject *par_query_length = python_pars[8]; - PyObject *var_self_attn_past_key_value = NULL; - PyObject *var_self_attention_outputs = NULL; - PyObject *var_attention_output = NULL; - PyObject *var_outputs = NULL; - PyObject *var_present_key_value = NULL; - PyObject *var_query_attention_output = NULL; - PyObject *var_cross_attention_outputs = NULL; - PyObject *var_layer_output = NULL; - PyObject *var_layer_output_text = NULL; - struct Nuitka_FrameObject *frame_38c0c92910efd854dc73aa8a49f61b57; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_38c0c92910efd854dc73aa8a49f61b57 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_38c0c92910efd854dc73aa8a49f61b57)) { - Py_XDECREF(cache_frame_38c0c92910efd854dc73aa8a49f61b57); - -#if _DEBUG_REFCOUNTS - if (cache_frame_38c0c92910efd854dc73aa8a49f61b57 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_38c0c92910efd854dc73aa8a49f61b57 = MAKE_FUNCTION_FRAME(codeobj_38c0c92910efd854dc73aa8a49f61b57, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_38c0c92910efd854dc73aa8a49f61b57->m_type_description == NULL); - frame_38c0c92910efd854dc73aa8a49f61b57 = cache_frame_38c0c92910efd854dc73aa8a49f61b57; - - // Push the new frame as the currently active one. - pushFrameStack(frame_38c0c92910efd854dc73aa8a49f61b57); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_38c0c92910efd854dc73aa8a49f61b57) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_past_key_value); - tmp_compexpr_left_1 = par_past_key_value; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_past_key_value); - tmp_expression_name_1 = par_past_key_value; - tmp_subscript_name_1 = mod_consts[122]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_assign_source_1 = Py_None; - Py_INCREF(tmp_assign_source_1); - condexpr_end_1:; - assert(var_self_attn_past_key_value == NULL); - var_self_attn_past_key_value = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[110]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_states); - tmp_tuple_element_1 = par_hidden_states; - tmp_args_name_1 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_attention_mask); - tmp_tuple_element_1 = par_attention_mask; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - CHECK_OBJECT(par_head_mask); - tmp_tuple_element_1 = par_head_mask; - PyTuple_SET_ITEM0(tmp_args_name_1, 2, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[123]; - CHECK_OBJECT(par_output_attentions); - tmp_dict_value_1 = par_output_attentions; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[124]; - CHECK_OBJECT(var_self_attn_past_key_value); - tmp_dict_value_1 = var_self_attn_past_key_value; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_38c0c92910efd854dc73aa8a49f61b57->m_frame.f_lineno = 417; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_self_attention_outputs == NULL); - var_self_attention_outputs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_self_attention_outputs); - tmp_expression_name_3 = var_self_attention_outputs; - tmp_subscript_name_2 = mod_consts[29]; - tmp_assign_source_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 0); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_output == NULL); - var_attention_output = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(var_self_attention_outputs); - tmp_expression_name_4 = var_self_attention_outputs; - tmp_subscript_name_3 = mod_consts[125]; - tmp_assign_source_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_3); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 425; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(var_self_attention_outputs); - tmp_expression_name_5 = var_self_attention_outputs; - tmp_subscript_name_4 = mod_consts[126]; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_4, -1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 427; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_present_key_value == NULL); - var_present_key_value = tmp_assign_source_5; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_query_length); - tmp_compexpr_left_2 = par_query_length; - tmp_compexpr_right_2 = mod_consts[29]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 429; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_5; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_attention_output); - tmp_expression_name_6 = var_attention_output; - tmp_tuple_element_2 = mod_consts[30]; - tmp_subscript_name_5 = PyTuple_New(3); - { - PyObject *tmp_stop_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_query_length); - tmp_stop_name_1 = par_query_length; - tmp_tuple_element_2 = MAKE_SLICEOBJ1(tmp_stop_name_1); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_5, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[30]; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 2, tmp_tuple_element_2); - } - tmp_assign_source_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_5); - Py_DECREF(tmp_subscript_name_5); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_query_attention_output == NULL); - var_query_attention_output = tmp_assign_source_6; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 432; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[116]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 432; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_compexpr_left_3 = par_encoder_hidden_states; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[127]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 433; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 436; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[115]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_query_attention_output); - tmp_tuple_element_3 = var_query_attention_output; - tmp_args_name_2 = PyTuple_New(5); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_3); - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 438; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_3 = par_attention_mask; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_3); - if (par_head_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[129]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 439; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_3 = par_head_mask; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_3); - CHECK_OBJECT(par_encoder_hidden_states); - tmp_tuple_element_3 = par_encoder_hidden_states; - PyTuple_SET_ITEM0(tmp_args_name_2, 3, tmp_tuple_element_3); - CHECK_OBJECT(par_encoder_attention_mask); - tmp_tuple_element_3 = par_encoder_attention_mask; - PyTuple_SET_ITEM0(tmp_args_name_2, 4, tmp_tuple_element_3); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_2 = mod_consts[123]; - if (par_output_attentions == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[123]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 442; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_2 = par_output_attentions; - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_38c0c92910efd854dc73aa8a49f61b57->m_frame.f_lineno = 436; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_cross_attention_outputs == NULL); - var_cross_attention_outputs = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_6; - CHECK_OBJECT(var_cross_attention_outputs); - tmp_expression_name_9 = var_cross_attention_outputs; - tmp_subscript_name_6 = mod_consts[29]; - tmp_assign_source_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_6, 0); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_query_attention_output; - var_query_attention_output = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_7; - CHECK_OBJECT(var_outputs); - tmp_left_name_1 = var_outputs; - CHECK_OBJECT(var_cross_attention_outputs); - tmp_expression_name_10 = var_cross_attention_outputs; - tmp_subscript_name_7 = mod_consts[125]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_7); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_9 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_outputs; - var_outputs = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_4; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[130]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[130]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 449; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 450; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[131]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 451; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[107]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 451; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 452; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[108]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 452; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_query_attention_output); - tmp_args_element_name_4 = var_query_attention_output; - frame_38c0c92910efd854dc73aa8a49f61b57->m_frame.f_lineno = 449; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_10 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 449; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_layer_output == NULL); - var_layer_output = tmp_assign_source_10; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_8; - CHECK_OBJECT(var_attention_output); - tmp_expression_name_15 = var_attention_output; - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[132]); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_8 = mod_consts[28]; - tmp_compexpr_left_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_8, 1); - Py_DECREF(tmp_expression_name_14); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_query_length); - tmp_compexpr_right_4 = par_query_length; - tmp_condition_result_5 = RICH_COMPARE_GT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - Py_DECREF(tmp_compexpr_left_4); - if (tmp_condition_result_5 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_5 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_9; - PyObject *tmp_tuple_element_4; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[130]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[130]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 457; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[133]); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 458; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[107]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 458; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 459; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_self; - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[108]); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 459; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_attention_output == NULL) { - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 460; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = var_attention_output; - tmp_tuple_element_4 = mod_consts[30]; - tmp_subscript_name_9 = PyTuple_New(3); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_2; - PyTuple_SET_ITEM0(tmp_subscript_name_9, 0, tmp_tuple_element_4); - CHECK_OBJECT(par_query_length); - tmp_start_name_1 = par_query_length; - tmp_stop_name_2 = Py_None; - tmp_tuple_element_4 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_2); - assert(!(tmp_tuple_element_4 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_9, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[30]; - PyTuple_SET_ITEM0(tmp_subscript_name_9, 2, tmp_tuple_element_4); - } - tmp_args_element_name_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_9); - Py_DECREF(tmp_subscript_name_9); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 460; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_38c0c92910efd854dc73aa8a49f61b57->m_frame.f_lineno = 456; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_layer_output_text == NULL); - var_layer_output_text = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_5; - PyObject *tmp_list_element_1; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 462; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[33]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 462; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_layer_output); - tmp_list_element_1 = var_layer_output; - tmp_tuple_element_5 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_5, 0, tmp_list_element_1); - CHECK_OBJECT(var_layer_output_text); - tmp_list_element_1 = var_layer_output_text; - PyList_SET_ITEM0(tmp_tuple_element_5, 1, tmp_list_element_1); - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_5); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[34]); - frame_38c0c92910efd854dc73aa8a49f61b57->m_frame.f_lineno = 462; - tmp_assign_source_12 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 462; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_layer_output; - var_layer_output = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - branch_no_4:; - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_6; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_element_name_12; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[130]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[130]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 464; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 465; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_21 = par_self; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[133]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 465; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 466; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_self; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[107]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_9); - - exception_lineno = 466; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_9); - Py_DECREF(tmp_args_element_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 467; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_23 = par_self; - tmp_args_element_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[108]); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_9); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 467; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_attention_output); - tmp_args_element_name_12 = var_attention_output; - frame_38c0c92910efd854dc73aa8a49f61b57->m_frame.f_lineno = 464; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_assign_source_13 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_args_element_name_9); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_11); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 464; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_layer_output == NULL); - var_layer_output = tmp_assign_source_13; - } - branch_end_1:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_2; - PyObject *tmp_tuple_element_6; - PyObject *tmp_right_name_2; - if (var_layer_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[135]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 470; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_6 = var_layer_output; - tmp_left_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_2, 0, tmp_tuple_element_6); - if (var_outputs == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[136]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 470; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = var_outputs; - tmp_assign_source_14 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_outputs; - var_outputs = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_7; - CHECK_OBJECT(var_outputs); - tmp_left_name_3 = var_outputs; - CHECK_OBJECT(var_present_key_value); - tmp_tuple_element_7 = var_present_key_value; - tmp_right_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_3, 0, tmp_tuple_element_7); - tmp_assign_source_15 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 472; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_outputs; - var_outputs = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_38c0c92910efd854dc73aa8a49f61b57); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_38c0c92910efd854dc73aa8a49f61b57); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_38c0c92910efd854dc73aa8a49f61b57, exception_lineno); - } else if (exception_tb->tb_frame != &frame_38c0c92910efd854dc73aa8a49f61b57->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_38c0c92910efd854dc73aa8a49f61b57, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_38c0c92910efd854dc73aa8a49f61b57, - type_description_1, - par_self, - par_hidden_states, - par_attention_mask, - par_head_mask, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_past_key_value, - par_output_attentions, - par_query_length, - var_self_attn_past_key_value, - var_self_attention_outputs, - var_attention_output, - var_outputs, - var_present_key_value, - var_query_attention_output, - var_cross_attention_outputs, - var_layer_output, - var_layer_output_text - ); - - - // Release cached frame if used for exception. - if (frame_38c0c92910efd854dc73aa8a49f61b57 == cache_frame_38c0c92910efd854dc73aa8a49f61b57) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_38c0c92910efd854dc73aa8a49f61b57); - cache_frame_38c0c92910efd854dc73aa8a49f61b57 = NULL; - } - - assertFrameObject(frame_38c0c92910efd854dc73aa8a49f61b57); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_outputs); - tmp_return_value = var_outputs; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - CHECK_OBJECT(par_past_key_value); - Py_DECREF(par_past_key_value); - par_past_key_value = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(par_query_length); - Py_DECREF(par_query_length); - par_query_length = NULL; - Py_XDECREF(var_self_attn_past_key_value); - var_self_attn_past_key_value = NULL; - CHECK_OBJECT(var_self_attention_outputs); - Py_DECREF(var_self_attention_outputs); - var_self_attention_outputs = NULL; - Py_XDECREF(var_attention_output); - var_attention_output = NULL; - CHECK_OBJECT(var_outputs); - Py_DECREF(var_outputs); - var_outputs = NULL; - CHECK_OBJECT(var_present_key_value); - Py_DECREF(var_present_key_value); - var_present_key_value = NULL; - Py_XDECREF(var_query_attention_output); - var_query_attention_output = NULL; - Py_XDECREF(var_cross_attention_outputs); - var_cross_attention_outputs = NULL; - Py_XDECREF(var_layer_output); - var_layer_output = NULL; - Py_XDECREF(var_layer_output_text); - var_layer_output_text = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - CHECK_OBJECT(par_past_key_value); - Py_DECREF(par_past_key_value); - par_past_key_value = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(par_query_length); - Py_DECREF(par_query_length); - par_query_length = NULL; - Py_XDECREF(var_self_attn_past_key_value); - var_self_attn_past_key_value = NULL; - Py_XDECREF(var_self_attention_outputs); - var_self_attention_outputs = NULL; - Py_XDECREF(var_attention_output); - var_attention_output = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_present_key_value); - var_present_key_value = NULL; - Py_XDECREF(var_query_attention_output); - var_query_attention_output = NULL; - Py_XDECREF(var_cross_attention_outputs); - var_cross_attention_outputs = NULL; - Py_XDECREF(var_layer_output); - var_layer_output = NULL; - Py_XDECREF(var_layer_output_text); - var_layer_output_text = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__21_feed_forward_chunk(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_attention_output = python_pars[1]; - PyObject *var_intermediate_output = NULL; - PyObject *var_layer_output = NULL; - struct Nuitka_FrameObject *frame_c4755f7ecaad447ef5e0ea80f9a42013; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_c4755f7ecaad447ef5e0ea80f9a42013 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c4755f7ecaad447ef5e0ea80f9a42013)) { - Py_XDECREF(cache_frame_c4755f7ecaad447ef5e0ea80f9a42013); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c4755f7ecaad447ef5e0ea80f9a42013 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c4755f7ecaad447ef5e0ea80f9a42013 = MAKE_FUNCTION_FRAME(codeobj_c4755f7ecaad447ef5e0ea80f9a42013, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c4755f7ecaad447ef5e0ea80f9a42013->m_type_description == NULL); - frame_c4755f7ecaad447ef5e0ea80f9a42013 = cache_frame_c4755f7ecaad447ef5e0ea80f9a42013; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c4755f7ecaad447ef5e0ea80f9a42013); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c4755f7ecaad447ef5e0ea80f9a42013) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_attention_output); - tmp_args_element_name_1 = par_attention_output; - frame_c4755f7ecaad447ef5e0ea80f9a42013->m_frame.f_lineno = 477; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[118], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_intermediate_output == NULL); - var_intermediate_output = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 478; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[95]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 478; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_intermediate_output); - tmp_args_element_name_2 = var_intermediate_output; - if (par_attention_output == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 478; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_attention_output; - frame_c4755f7ecaad447ef5e0ea80f9a42013->m_frame.f_lineno = 478; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 478; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_layer_output == NULL); - var_layer_output = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c4755f7ecaad447ef5e0ea80f9a42013); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c4755f7ecaad447ef5e0ea80f9a42013); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c4755f7ecaad447ef5e0ea80f9a42013, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c4755f7ecaad447ef5e0ea80f9a42013->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c4755f7ecaad447ef5e0ea80f9a42013, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c4755f7ecaad447ef5e0ea80f9a42013, - type_description_1, - par_self, - par_attention_output, - var_intermediate_output, - var_layer_output - ); - - - // Release cached frame if used for exception. - if (frame_c4755f7ecaad447ef5e0ea80f9a42013 == cache_frame_c4755f7ecaad447ef5e0ea80f9a42013) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c4755f7ecaad447ef5e0ea80f9a42013); - cache_frame_c4755f7ecaad447ef5e0ea80f9a42013 = NULL; - } - - assertFrameObject(frame_c4755f7ecaad447ef5e0ea80f9a42013); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_layer_output); - tmp_return_value = var_layer_output; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_attention_output); - par_attention_output = NULL; - Py_XDECREF(var_intermediate_output); - var_intermediate_output = NULL; - CHECK_OBJECT(var_layer_output); - Py_DECREF(var_layer_output); - var_layer_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_attention_output); - par_attention_output = NULL; - Py_XDECREF(var_intermediate_output); - var_intermediate_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__22_feed_forward_chunk_query(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_attention_output = python_pars[1]; - PyObject *var_intermediate_output = NULL; - PyObject *var_layer_output = NULL; - struct Nuitka_FrameObject *frame_bc4467ccc7610a81a2b180cada5c22ef; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_bc4467ccc7610a81a2b180cada5c22ef = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_bc4467ccc7610a81a2b180cada5c22ef)) { - Py_XDECREF(cache_frame_bc4467ccc7610a81a2b180cada5c22ef); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bc4467ccc7610a81a2b180cada5c22ef == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bc4467ccc7610a81a2b180cada5c22ef = MAKE_FUNCTION_FRAME(codeobj_bc4467ccc7610a81a2b180cada5c22ef, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bc4467ccc7610a81a2b180cada5c22ef->m_type_description == NULL); - frame_bc4467ccc7610a81a2b180cada5c22ef = cache_frame_bc4467ccc7610a81a2b180cada5c22ef; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bc4467ccc7610a81a2b180cada5c22ef); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bc4467ccc7610a81a2b180cada5c22ef) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_attention_output); - tmp_args_element_name_1 = par_attention_output; - frame_bc4467ccc7610a81a2b180cada5c22ef->m_frame.f_lineno = 482; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[120], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_intermediate_output == NULL); - var_intermediate_output = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 483; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[121]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 483; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_intermediate_output); - tmp_args_element_name_2 = var_intermediate_output; - if (par_attention_output == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 483; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_attention_output; - frame_bc4467ccc7610a81a2b180cada5c22ef->m_frame.f_lineno = 483; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 483; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_layer_output == NULL); - var_layer_output = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bc4467ccc7610a81a2b180cada5c22ef); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bc4467ccc7610a81a2b180cada5c22ef); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bc4467ccc7610a81a2b180cada5c22ef, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bc4467ccc7610a81a2b180cada5c22ef->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bc4467ccc7610a81a2b180cada5c22ef, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bc4467ccc7610a81a2b180cada5c22ef, - type_description_1, - par_self, - par_attention_output, - var_intermediate_output, - var_layer_output - ); - - - // Release cached frame if used for exception. - if (frame_bc4467ccc7610a81a2b180cada5c22ef == cache_frame_bc4467ccc7610a81a2b180cada5c22ef) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bc4467ccc7610a81a2b180cada5c22ef); - cache_frame_bc4467ccc7610a81a2b180cada5c22ef = NULL; - } - - assertFrameObject(frame_bc4467ccc7610a81a2b180cada5c22ef); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_layer_output); - tmp_return_value = var_layer_output; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_attention_output); - par_attention_output = NULL; - Py_XDECREF(var_intermediate_output); - var_intermediate_output = NULL; - CHECK_OBJECT(var_layer_output); - Py_DECREF(var_layer_output); - var_layer_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_attention_output); - par_attention_output = NULL; - Py_XDECREF(var_intermediate_output); - var_intermediate_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__23___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - PyObject *outline_0_var_i = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_dbb5244b0ee9d68abb3ae7983cb8df4b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - struct Nuitka_FrameObject *frame_67be2144f29b126bccab22fc958e7dc4_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_67be2144f29b126bccab22fc958e7dc4_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b)) { - Py_XDECREF(cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b = MAKE_FUNCTION_FRAME(codeobj_dbb5244b0ee9d68abb3ae7983cb8df4b, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b->m_type_description == NULL); - frame_dbb5244b0ee9d68abb3ae7983cb8df4b = cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_dbb5244b0ee9d68abb3ae7983cb8df4b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_dbb5244b0ee9d68abb3ae7983cb8df4b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 489; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 489; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_dbb5244b0ee9d68abb3ae7983cb8df4b->m_frame.f_lineno = 489; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 489; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_config); - tmp_assattr_name_1 = par_config; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[5], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 490; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 491; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[137]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 491; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_xrange_low_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[138]); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_67be2144f29b126bccab22fc958e7dc4_2)) { - Py_XDECREF(cache_frame_67be2144f29b126bccab22fc958e7dc4_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_67be2144f29b126bccab22fc958e7dc4_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_67be2144f29b126bccab22fc958e7dc4_2 = MAKE_FUNCTION_FRAME(codeobj_67be2144f29b126bccab22fc958e7dc4, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_67be2144f29b126bccab22fc958e7dc4_2->m_type_description == NULL); - frame_67be2144f29b126bccab22fc958e7dc4_2 = cache_frame_67be2144f29b126bccab22fc958e7dc4_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_67be2144f29b126bccab22fc958e7dc4_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_67be2144f29b126bccab22fc958e7dc4_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 492; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_4 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_i; - outline_0_var_i = tmp_assign_source_4; - Py_INCREF(outline_0_var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[139]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[139]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_2 = "oo"; - goto try_except_handler_3; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 492; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_args_element_name_2 = par_config; - CHECK_OBJECT(outline_0_var_i); - tmp_args_element_name_3 = outline_0_var_i; - frame_67be2144f29b126bccab22fc958e7dc4_2->m_frame.f_lineno = 492; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_append_value_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_args_element_name_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_args_element_name_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_67be2144f29b126bccab22fc958e7dc4_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_67be2144f29b126bccab22fc958e7dc4_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_67be2144f29b126bccab22fc958e7dc4_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_67be2144f29b126bccab22fc958e7dc4_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_67be2144f29b126bccab22fc958e7dc4_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_67be2144f29b126bccab22fc958e7dc4_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_67be2144f29b126bccab22fc958e7dc4_2, - type_description_2, - outline_0_var_i, - par_config - ); - - - // Release cached frame if used for exception. - if (frame_67be2144f29b126bccab22fc958e7dc4_2 == cache_frame_67be2144f29b126bccab22fc958e7dc4_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_67be2144f29b126bccab22fc958e7dc4_2); - cache_frame_67be2144f29b126bccab22fc958e7dc4_2 = NULL; - } - - assertFrameObject(frame_67be2144f29b126bccab22fc958e7dc4_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooc"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_i); - outline_0_var_i = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_i); - outline_0_var_i = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 492; - goto frame_exception_exit_1; - outline_result_1:; - frame_dbb5244b0ee9d68abb3ae7983cb8df4b->m_frame.f_lineno = 491; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 491; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[140], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 491; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dbb5244b0ee9d68abb3ae7983cb8df4b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dbb5244b0ee9d68abb3ae7983cb8df4b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_dbb5244b0ee9d68abb3ae7983cb8df4b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_dbb5244b0ee9d68abb3ae7983cb8df4b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_dbb5244b0ee9d68abb3ae7983cb8df4b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_dbb5244b0ee9d68abb3ae7983cb8df4b, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_dbb5244b0ee9d68abb3ae7983cb8df4b == cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b); - cache_frame_dbb5244b0ee9d68abb3ae7983cb8df4b = NULL; - } - - assertFrameObject(frame_dbb5244b0ee9d68abb3ae7983cb8df4b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__24_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_head_mask = python_pars[3]; - PyObject *par_encoder_hidden_states = python_pars[4]; - PyObject *par_encoder_attention_mask = python_pars[5]; - PyObject *par_past_key_values = python_pars[6]; - PyObject *par_use_cache = python_pars[7]; - struct Nuitka_CellObject *par_output_attentions = Nuitka_Cell_New1(python_pars[8]); - PyObject *par_output_hidden_states = python_pars[9]; - PyObject *par_return_dict = python_pars[10]; - struct Nuitka_CellObject *par_query_length = Nuitka_Cell_New1(python_pars[11]); - PyObject *var_all_hidden_states = NULL; - PyObject *var_all_self_attentions = NULL; - PyObject *var_all_cross_attentions = NULL; - PyObject *var_next_decoder_cache = NULL; - PyObject *var_i = NULL; - PyObject *var_layer_module = NULL; - PyObject *var_layer_head_mask = NULL; - struct Nuitka_CellObject *var_past_key_value = Nuitka_Cell_Empty(); - PyObject *var_create_custom_forward = NULL; - PyObject *var_layer_outputs = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_genexpr_1__$0 = NULL; - struct Nuitka_FrameObject *frame_fb4ac8ca5f5c6cf5999268c801f1a60e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e)) { - Py_XDECREF(cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e = MAKE_FUNCTION_FRAME(codeobj_fb4ac8ca5f5c6cf5999268c801f1a60e, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_type_description == NULL); - frame_fb4ac8ca5f5c6cf5999268c801f1a60e = cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fb4ac8ca5f5c6cf5999268c801f1a60e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fb4ac8ca5f5c6cf5999268c801f1a60e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_output_hidden_states); - tmp_truth_name_1 = CHECK_IF_TRUE(par_output_hidden_states); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 509; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_assign_source_1 = mod_consts[141]; - goto condexpr_end_1; - condexpr_false_1:; - tmp_assign_source_1 = Py_None; - condexpr_end_1:; - assert(var_all_hidden_states == NULL); - Py_INCREF(tmp_assign_source_1); - var_all_hidden_states = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - CHECK_OBJECT(Nuitka_Cell_GET(par_output_attentions)); - tmp_truth_name_2 = CHECK_IF_TRUE(Nuitka_Cell_GET(par_output_attentions)); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 510; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - tmp_assign_source_2 = mod_consts[141]; - goto condexpr_end_2; - condexpr_false_2:; - tmp_assign_source_2 = Py_None; - condexpr_end_2:; - assert(var_all_self_attentions == NULL); - Py_INCREF(tmp_assign_source_2); - var_all_self_attentions = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - nuitka_bool tmp_condition_result_3; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - int tmp_truth_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_4; - CHECK_OBJECT(Nuitka_Cell_GET(par_output_attentions)); - tmp_truth_name_3 = CHECK_IF_TRUE(Nuitka_Cell_GET(par_output_attentions)); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[5]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[112]); - Py_DECREF(tmp_expression_name_1); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 512; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - tmp_condition_result_3 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_3 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - tmp_assign_source_3 = mod_consts[141]; - goto condexpr_end_3; - condexpr_false_3:; - tmp_assign_source_3 = Py_None; - condexpr_end_3:; - assert(var_all_cross_attentions == NULL); - Py_INCREF(tmp_assign_source_3); - var_all_cross_attentions = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_5; - CHECK_OBJECT(par_use_cache); - tmp_truth_name_5 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 515; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - tmp_assign_source_4 = mod_consts[141]; - goto condexpr_end_4; - condexpr_false_4:; - tmp_assign_source_4 = Py_None; - condexpr_end_4:; - assert(var_next_decoder_cache == NULL); - Py_INCREF(tmp_assign_source_4); - var_next_decoder_cache = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 517; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[5]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 517; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_xrange_low_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[138]); - Py_DECREF(tmp_expression_name_3); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 517; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 517; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_assign_source_5 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 517; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_5; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_6 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_6 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooocoocooooooocoo"; - exception_lineno = 517; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_7 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_7; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 518; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[140]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_i); - tmp_subscript_name_1 = var_i; - tmp_assign_source_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = var_layer_module; - var_layer_module = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_5; - int tmp_truth_name_6; - if (par_output_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 519; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_truth_name_6 = CHECK_IF_TRUE(par_output_hidden_states); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 519; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_condition_result_5 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 520; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_left_name_1 = var_all_hidden_states; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 520; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_tuple_element_1 = par_hidden_states; - tmp_right_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_1, 0, tmp_tuple_element_1); - tmp_assign_source_9 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 520; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = var_all_hidden_states; - var_all_hidden_states = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_10; - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_2; - if (par_head_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[129]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 522; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_head_mask; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_6 != false) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - if (par_head_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[129]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 522; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_expression_name_7 = par_head_mask; - CHECK_OBJECT(var_i); - tmp_subscript_name_2 = var_i; - tmp_assign_source_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - goto condexpr_end_5; - condexpr_false_5:; - tmp_assign_source_10 = Py_None; - Py_INCREF(tmp_assign_source_10); - condexpr_end_5:; - { - PyObject *old = var_layer_head_mask; - var_layer_head_mask = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_3; - if (par_past_key_values == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[144]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 523; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_2 = par_past_key_values; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_7 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_7 != false) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - if (par_past_key_values == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[144]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 523; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_expression_name_8 = par_past_key_values; - CHECK_OBJECT(var_i); - tmp_subscript_name_3 = var_i; - tmp_assign_source_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_8, tmp_subscript_name_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 523; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_assign_source_11 = Py_None; - Py_INCREF(tmp_assign_source_11); - condexpr_end_6:; - { - PyObject *old = Nuitka_Cell_GET(var_past_key_value); - PyCell_SET(var_past_key_value, tmp_assign_source_11); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_8; - int tmp_and_left_truth_2; - nuitka_bool tmp_and_left_value_2; - nuitka_bool tmp_and_right_value_2; - PyObject *tmp_getattr_target_1; - PyObject *tmp_expression_name_9; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - PyObject *tmp_capi_result_1; - int tmp_truth_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_attribute_value_2; - int tmp_truth_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = par_self; - tmp_getattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[5]); - if (tmp_getattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_getattr_attr_1 = mod_consts[145]; - tmp_getattr_default_1 = Py_False; - tmp_capi_result_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - Py_DECREF(tmp_getattr_target_1); - if (tmp_capi_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_capi_result_1); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_capi_result_1); - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_and_left_value_2 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_capi_result_1); - tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - if (tmp_and_left_truth_2 == 1) { - goto and_right_2; - } else { - goto and_left_2; - } - and_right_2:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_expression_name_10 = par_self; - tmp_attribute_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[146]); - if (tmp_attribute_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_attribute_value_2); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_2); - - exception_lineno = 525; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_and_right_value_2 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_2); - tmp_condition_result_8 = tmp_and_right_value_2; - goto and_end_2; - and_left_2:; - tmp_condition_result_8 = tmp_and_left_value_2; - and_end_2:; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - nuitka_bool tmp_condition_result_9; - int tmp_truth_name_9; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[147]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 527; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_truth_name_9 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 527; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_condition_result_9 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[148]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[148]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 528; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_frame.f_lineno = 528; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[149], - &PyTuple_GET_ITEM(mod_consts[150], 0) - ); - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 528; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_12; - tmp_assign_source_12 = Py_False; - { - PyObject *old = par_use_cache; - par_use_cache = tmp_assign_source_12; - Py_INCREF(par_use_cache); - Py_XDECREF(old); - } - - } - branch_no_3:; - { - PyObject *tmp_assign_source_13; - struct Nuitka_CellObject *tmp_closure_1[3]; - - tmp_closure_1[0] = par_output_attentions; - Py_INCREF(tmp_closure_1[0]); - tmp_closure_1[1] = var_past_key_value; - Py_INCREF(tmp_closure_1[1]); - tmp_closure_1[2] = par_query_length; - Py_INCREF(tmp_closure_1[2]); - - tmp_assign_source_13 = MAKE_FUNCTION_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward(tmp_closure_1); - - { - PyObject *old = var_create_custom_forward; - var_create_custom_forward = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 541; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_expression_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[153]); - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 541; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[154]); - Py_DECREF(tmp_expression_name_12); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 541; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[154]); - Py_DECREF(tmp_expression_name_11); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 541; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_create_custom_forward); - tmp_called_name_2 = var_create_custom_forward; - CHECK_OBJECT(var_layer_module); - tmp_args_element_name_2 = var_layer_module; - frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_frame.f_lineno = 542; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 542; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 543; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_3 = par_hidden_states; - if (par_attention_mask == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 544; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_4 = par_attention_mask; - CHECK_OBJECT(var_layer_head_mask); - tmp_args_element_name_5 = var_layer_head_mask; - if (par_encoder_hidden_states == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[60]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 546; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_6 = par_encoder_hidden_states; - if (par_encoder_attention_mask == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[155]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 547; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_7 = par_encoder_attention_mask; - frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_frame.f_lineno = 541; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_14 = CALL_FUNCTION_WITH_ARGS6(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 541; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = var_layer_outputs; - var_layer_outputs = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - CHECK_OBJECT(var_layer_module); - tmp_called_name_3 = var_layer_module; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 551; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_8 = par_hidden_states; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 552; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_9 = par_attention_mask; - CHECK_OBJECT(var_layer_head_mask); - tmp_args_element_name_10 = var_layer_head_mask; - if (par_encoder_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[60]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 554; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_11 = par_encoder_hidden_states; - if (par_encoder_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[155]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 555; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_12 = par_encoder_attention_mask; - if (Nuitka_Cell_GET(var_past_key_value) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[124]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 556; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_13 = Nuitka_Cell_GET(var_past_key_value); - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[123]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 557; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_14 = Nuitka_Cell_GET(par_output_attentions); - if (Nuitka_Cell_GET(par_query_length) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[156]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 558; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_args_element_name_15 = Nuitka_Cell_GET(par_query_length); - frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_frame.f_lineno = 550; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9, tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_assign_source_15 = CALL_FUNCTION_WITH_ARGS8(tmp_called_name_3, call_args); - } - - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 550; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = var_layer_outputs; - var_layer_outputs = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - branch_end_2:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_14 = var_layer_outputs; - tmp_subscript_name_4 = mod_consts[29]; - tmp_assign_source_16 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_4, 0); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 561; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_10; - int tmp_truth_name_10; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[147]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 562; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_truth_name_10 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_10 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 562; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_condition_result_10 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_5; - if (var_next_decoder_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[157]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 563; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_left_name_2 = var_next_decoder_cache; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_15 = var_layer_outputs; - tmp_subscript_name_5 = mod_consts[126]; - tmp_tuple_element_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_5, -1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 563; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_right_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_2); - tmp_result = BINARY_OPERATION_ADD_OBJECT_TUPLE_INPLACE(&tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 563; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_assign_source_17 = tmp_left_name_2; - var_next_decoder_cache = tmp_assign_source_17; - - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_11; - int tmp_truth_name_11; - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[123]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 564; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_truth_name_11 = CHECK_IF_TRUE(Nuitka_Cell_GET(par_output_attentions)); - if (tmp_truth_name_11 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 564; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_condition_result_11 = tmp_truth_name_11 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_6; - if (var_all_self_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[158]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 565; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_left_name_3 = var_all_self_attentions; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_16 = var_layer_outputs; - tmp_subscript_name_6 = mod_consts[28]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_6, 1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 565; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_right_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_3); - tmp_assign_source_18 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 565; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = var_all_self_attentions; - var_all_self_attentions = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_7; - if (var_all_cross_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[159]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 566; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - - tmp_left_name_4 = var_all_cross_attentions; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_17 = var_layer_outputs; - tmp_subscript_name_7 = mod_consts[49]; - tmp_tuple_element_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_17, tmp_subscript_name_7, 2); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 566; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - tmp_right_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_4); - tmp_assign_source_19 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 566; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - { - PyObject *old = var_all_cross_attentions; - var_all_cross_attentions = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - branch_no_5:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 517; - type_description_1 = "oooooooocoocooooooocoo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - nuitka_bool tmp_condition_result_12; - int tmp_truth_name_12; - if (par_output_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 568; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_12 = CHECK_IF_TRUE(par_output_hidden_states); - if (tmp_truth_name_12 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 568; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_condition_result_12 = tmp_truth_name_12 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_20; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_5; - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 569; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - - tmp_left_name_5 = var_all_hidden_states; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 569; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_5 = par_hidden_states; - tmp_right_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_5, 0, tmp_tuple_element_5); - tmp_assign_source_20 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 569; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_all_hidden_states; - var_all_hidden_states = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - branch_no_6:; - { - nuitka_bool tmp_condition_result_13; - PyObject *tmp_operand_name_1; - CHECK_OBJECT(par_return_dict); - tmp_operand_name_1 = par_return_dict; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 571; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_condition_result_13 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_tuple_arg_1; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_iter_arg_2; - PyObject *tmp_tuple_element_6; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 575; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_6 = par_hidden_states; - tmp_iter_arg_2 = PyTuple_New(5); - PyTuple_SET_ITEM0(tmp_iter_arg_2, 0, tmp_tuple_element_6); - if (var_next_decoder_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[157]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 576; - type_description_1 = "oooooooocoocooooooocoo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_6 = var_next_decoder_cache; - PyTuple_SET_ITEM0(tmp_iter_arg_2, 1, tmp_tuple_element_6); - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 577; - type_description_1 = "oooooooocoocooooooocoo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_6 = var_all_hidden_states; - PyTuple_SET_ITEM0(tmp_iter_arg_2, 2, tmp_tuple_element_6); - if (var_all_self_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[158]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 578; - type_description_1 = "oooooooocoocooooooocoo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_6 = var_all_self_attentions; - PyTuple_SET_ITEM0(tmp_iter_arg_2, 3, tmp_tuple_element_6); - if (var_all_cross_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[159]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 579; - type_description_1 = "oooooooocoocooooooocoo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_6 = var_all_cross_attentions; - PyTuple_SET_ITEM0(tmp_iter_arg_2, 4, tmp_tuple_element_6); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_iter_arg_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_21 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - assert(!(tmp_assign_source_21 == NULL)); - assert(tmp_genexpr_1__$0 == NULL); - tmp_genexpr_1__$0 = tmp_assign_source_21; - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_2[1]; - - tmp_closure_2[0] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_tuple_arg_1 = MAKE_GENERATOR_models$Qformer$$$function__24_forward$$$genexpr__1_genexpr(tmp_closure_2); - - goto try_return_handler_3; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_1; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - tmp_return_value = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 572; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_7:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[160]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[160]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 583; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[161]; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 584; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_1 = par_hidden_states; - tmp_kwargs_name_1 = _PyDict_NewPresized( 5 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[144]; - if (var_next_decoder_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[157]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 585; - type_description_1 = "oooooooocoocooooooocoo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = var_next_decoder_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[61]; - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 586; - type_description_1 = "oooooooocoocooooooocoo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = var_all_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[162]; - if (var_all_self_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[158]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 587; - type_description_1 = "oooooooocoocooooooocoo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = var_all_self_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[163]; - if (var_all_cross_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[159]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 588; - type_description_1 = "oooooooocoocooooooocoo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = var_all_cross_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_frame.f_lineno = 583; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 583; - type_description_1 = "oooooooocoocooooooocoo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb4ac8ca5f5c6cf5999268c801f1a60e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb4ac8ca5f5c6cf5999268c801f1a60e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb4ac8ca5f5c6cf5999268c801f1a60e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fb4ac8ca5f5c6cf5999268c801f1a60e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fb4ac8ca5f5c6cf5999268c801f1a60e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fb4ac8ca5f5c6cf5999268c801f1a60e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fb4ac8ca5f5c6cf5999268c801f1a60e, - type_description_1, - par_self, - par_hidden_states, - par_attention_mask, - par_head_mask, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_past_key_values, - par_use_cache, - par_output_attentions, - par_output_hidden_states, - par_return_dict, - par_query_length, - var_all_hidden_states, - var_all_self_attentions, - var_all_cross_attentions, - var_next_decoder_cache, - var_i, - var_layer_module, - var_layer_head_mask, - var_past_key_value, - var_create_custom_forward, - var_layer_outputs - ); - - - // Release cached frame if used for exception. - if (frame_fb4ac8ca5f5c6cf5999268c801f1a60e == cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e); - cache_frame_fb4ac8ca5f5c6cf5999268c801f1a60e = NULL; - } - - assertFrameObject(frame_fb4ac8ca5f5c6cf5999268c801f1a60e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - CHECK_OBJECT(par_return_dict); - Py_DECREF(par_return_dict); - par_return_dict = NULL; - CHECK_OBJECT(par_query_length); - Py_DECREF(par_query_length); - par_query_length = NULL; - Py_XDECREF(var_all_hidden_states); - var_all_hidden_states = NULL; - Py_XDECREF(var_all_self_attentions); - var_all_self_attentions = NULL; - Py_XDECREF(var_all_cross_attentions); - var_all_cross_attentions = NULL; - Py_XDECREF(var_next_decoder_cache); - var_next_decoder_cache = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_layer_module); - var_layer_module = NULL; - Py_XDECREF(var_layer_head_mask); - var_layer_head_mask = NULL; - CHECK_OBJECT(var_past_key_value); - Py_DECREF(var_past_key_value); - var_past_key_value = NULL; - Py_XDECREF(var_create_custom_forward); - var_create_custom_forward = NULL; - Py_XDECREF(var_layer_outputs); - var_layer_outputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - CHECK_OBJECT(par_return_dict); - Py_DECREF(par_return_dict); - par_return_dict = NULL; - CHECK_OBJECT(par_query_length); - Py_DECREF(par_query_length); - par_query_length = NULL; - Py_XDECREF(var_all_hidden_states); - var_all_hidden_states = NULL; - Py_XDECREF(var_all_self_attentions); - var_all_self_attentions = NULL; - Py_XDECREF(var_all_cross_attentions); - var_all_cross_attentions = NULL; - Py_XDECREF(var_next_decoder_cache); - var_next_decoder_cache = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_layer_module); - var_layer_module = NULL; - Py_XDECREF(var_layer_head_mask); - var_layer_head_mask = NULL; - CHECK_OBJECT(var_past_key_value); - Py_DECREF(var_past_key_value); - var_past_key_value = NULL; - Py_XDECREF(var_create_custom_forward); - var_create_custom_forward = NULL; - Py_XDECREF(var_layer_outputs); - var_layer_outputs = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - struct Nuitka_CellObject *par_module = Nuitka_Cell_New1(python_pars[0]); - PyObject *var_custom_forward = NULL; - PyObject *tmp_return_value = NULL; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - struct Nuitka_CellObject *tmp_closure_1[4]; - - tmp_closure_1[0] = par_module; - Py_INCREF(tmp_closure_1[0]); - tmp_closure_1[1] = self->m_closure[0]; - Py_INCREF(tmp_closure_1[1]); - tmp_closure_1[2] = self->m_closure[1]; - Py_INCREF(tmp_closure_1[2]); - tmp_closure_1[3] = self->m_closure[2]; - Py_INCREF(tmp_closure_1[3]); - - tmp_assign_source_1 = MAKE_FUNCTION_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(tmp_closure_1); - - assert(var_custom_forward == NULL); - var_custom_forward = tmp_assign_source_1; - } - // Tried code: - CHECK_OBJECT(var_custom_forward); - tmp_return_value = var_custom_forward; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_module); - Py_DECREF(par_module); - par_module = NULL; - CHECK_OBJECT(var_custom_forward); - Py_DECREF(var_custom_forward); - var_custom_forward = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_inputs = python_pars[0]; - struct Nuitka_FrameObject *frame_340e4e883925405252be80b1c8cda477; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_340e4e883925405252be80b1c8cda477 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_340e4e883925405252be80b1c8cda477)) { - Py_XDECREF(cache_frame_340e4e883925405252be80b1c8cda477); - -#if _DEBUG_REFCOUNTS - if (cache_frame_340e4e883925405252be80b1c8cda477 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_340e4e883925405252be80b1c8cda477 = MAKE_FUNCTION_FRAME(codeobj_340e4e883925405252be80b1c8cda477, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_340e4e883925405252be80b1c8cda477->m_type_description == NULL); - frame_340e4e883925405252be80b1c8cda477 = cache_frame_340e4e883925405252be80b1c8cda477; - - // Push the new frame as the currently active one. - pushFrameStack(frame_340e4e883925405252be80b1c8cda477); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_340e4e883925405252be80b1c8cda477) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dircall_arg1_2; - PyObject *tmp_tuple_element_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 535; - type_description_1 = "occcc"; - goto frame_exception_exit_1; - } - - tmp_dircall_arg1_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_inputs); - tmp_tuple_element_1 = par_inputs; - tmp_dircall_arg1_2 = PyTuple_New(4); - { - PyObject *tmp_tuple_element_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_tuple_element_4; - PyTuple_SET_ITEM0(tmp_dircall_arg1_2, 0, tmp_tuple_element_1); - if (Nuitka_Cell_GET(self->m_closure[2]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[124]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 536; - type_description_1 = "occcc"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = Nuitka_Cell_GET(self->m_closure[2]); - tmp_tuple_element_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - PyTuple_SET_ITEM(tmp_dircall_arg1_2, 1, tmp_tuple_element_1); - if (Nuitka_Cell_GET(self->m_closure[1]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[123]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 536; - type_description_1 = "occcc"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_3 = Nuitka_Cell_GET(self->m_closure[1]); - tmp_tuple_element_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_3); - PyTuple_SET_ITEM(tmp_dircall_arg1_2, 2, tmp_tuple_element_1); - if (Nuitka_Cell_GET(self->m_closure[3]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[156]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 536; - type_description_1 = "occcc"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_4 = Nuitka_Cell_GET(self->m_closure[3]); - tmp_tuple_element_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_4); - PyTuple_SET_ITEM(tmp_dircall_arg1_2, 3, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_dircall_arg1_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_dircall_arg2_1 = impl_models$$$function__4__unpack_list(dir_call_args); - } - if (tmp_dircall_arg2_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 535; - type_description_1 = "occcc"; - goto frame_exception_exit_1; - } - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 535; - type_description_1 = "occcc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_340e4e883925405252be80b1c8cda477); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_340e4e883925405252be80b1c8cda477); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_340e4e883925405252be80b1c8cda477); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_340e4e883925405252be80b1c8cda477, exception_lineno); - } else if (exception_tb->tb_frame != &frame_340e4e883925405252be80b1c8cda477->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_340e4e883925405252be80b1c8cda477, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_340e4e883925405252be80b1c8cda477, - type_description_1, - par_inputs, - self->m_closure[0], - self->m_closure[2], - self->m_closure[1], - self->m_closure[3] - ); - - - // Release cached frame if used for exception. - if (frame_340e4e883925405252be80b1c8cda477 == cache_frame_340e4e883925405252be80b1c8cda477) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_340e4e883925405252be80b1c8cda477); - cache_frame_340e4e883925405252be80b1c8cda477 = NULL; - } - - assertFrameObject(frame_340e4e883925405252be80b1c8cda477); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_inputs); - Py_DECREF(par_inputs); - par_inputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_inputs); - Py_DECREF(par_inputs); - par_inputs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$Qformer$$$function__24_forward$$$genexpr__1_genexpr_locals { - PyObject *var_v; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$Qformer$$$function__24_forward$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$Qformer$$$function__24_forward$$$genexpr__1_genexpr_locals *generator_heap = (struct models$Qformer$$$function__24_forward$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_v = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_d4ada818f6656268c254961d6faa630a, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[0])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[0]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "No"; - generator_heap->exception_lineno = 572; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_v; - generator_heap->var_v = tmp_assign_source_2; - Py_INCREF(generator_heap->var_v); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(generator_heap->var_v); - tmp_compexpr_left_1 = generator_heap->var_v; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_expression_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - CHECK_OBJECT(generator_heap->var_v); - tmp_expression_name_1 = generator_heap->var_v; - Py_INCREF(tmp_expression_name_1); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 572; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 572; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_v - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_v); - generator_heap->var_v = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_v); - generator_heap->var_v = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$Qformer$$$function__24_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$Qformer$$$function__24_forward$$$genexpr__1_genexpr_context, - module_models$Qformer, - mod_consts[167], -#if PYTHON_VERSION >= 0x350 - mod_consts[168], -#endif - codeobj_d4ada818f6656268c254961d6faa630a, - closure, - 1, - sizeof(struct models$Qformer$$$function__24_forward$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$Qformer$$$function__25___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_3183350d90f44f69878dab33e80e4921; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_3183350d90f44f69878dab33e80e4921 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3183350d90f44f69878dab33e80e4921)) { - Py_XDECREF(cache_frame_3183350d90f44f69878dab33e80e4921); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3183350d90f44f69878dab33e80e4921 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3183350d90f44f69878dab33e80e4921 = MAKE_FUNCTION_FRAME(codeobj_3183350d90f44f69878dab33e80e4921, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3183350d90f44f69878dab33e80e4921->m_type_description == NULL); - frame_3183350d90f44f69878dab33e80e4921 = cache_frame_3183350d90f44f69878dab33e80e4921; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3183350d90f44f69878dab33e80e4921); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3183350d90f44f69878dab33e80e4921) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 594; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 594; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_3183350d90f44f69878dab33e80e4921->m_frame.f_lineno = 594; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 594; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[6]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_3183350d90f44f69878dab33e80e4921->m_frame.f_lineno = 595; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[92], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 595; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 596; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_3183350d90f44f69878dab33e80e4921->m_frame.f_lineno = 596; - tmp_assattr_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[169]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 596; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[170], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 596; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3183350d90f44f69878dab33e80e4921); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3183350d90f44f69878dab33e80e4921); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3183350d90f44f69878dab33e80e4921, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3183350d90f44f69878dab33e80e4921->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3183350d90f44f69878dab33e80e4921, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3183350d90f44f69878dab33e80e4921, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_3183350d90f44f69878dab33e80e4921 == cache_frame_3183350d90f44f69878dab33e80e4921) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3183350d90f44f69878dab33e80e4921); - cache_frame_3183350d90f44f69878dab33e80e4921 = NULL; - } - - assertFrameObject(frame_3183350d90f44f69878dab33e80e4921); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__26_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *var_first_token_tensor = NULL; - PyObject *var_pooled_output = NULL; - struct Nuitka_FrameObject *frame_efe9f30d4ed10b98b0f8cc575424636a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_efe9f30d4ed10b98b0f8cc575424636a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_efe9f30d4ed10b98b0f8cc575424636a)) { - Py_XDECREF(cache_frame_efe9f30d4ed10b98b0f8cc575424636a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_efe9f30d4ed10b98b0f8cc575424636a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_efe9f30d4ed10b98b0f8cc575424636a = MAKE_FUNCTION_FRAME(codeobj_efe9f30d4ed10b98b0f8cc575424636a, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_efe9f30d4ed10b98b0f8cc575424636a->m_type_description == NULL); - frame_efe9f30d4ed10b98b0f8cc575424636a = cache_frame_efe9f30d4ed10b98b0f8cc575424636a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_efe9f30d4ed10b98b0f8cc575424636a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_efe9f30d4ed10b98b0f8cc575424636a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_hidden_states); - tmp_expression_name_1 = par_hidden_states; - tmp_subscript_name_1 = mod_consts[171]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 601; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_first_token_tensor == NULL); - var_first_token_tensor = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(var_first_token_tensor); - tmp_args_element_name_1 = var_first_token_tensor; - frame_efe9f30d4ed10b98b0f8cc575424636a->m_frame.f_lineno = 602; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[92], tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 602; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_pooled_output == NULL); - var_pooled_output = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 603; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_pooled_output); - tmp_args_element_name_2 = var_pooled_output; - frame_efe9f30d4ed10b98b0f8cc575424636a->m_frame.f_lineno = 603; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[170], tmp_args_element_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 603; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_pooled_output; - var_pooled_output = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efe9f30d4ed10b98b0f8cc575424636a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efe9f30d4ed10b98b0f8cc575424636a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_efe9f30d4ed10b98b0f8cc575424636a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_efe9f30d4ed10b98b0f8cc575424636a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_efe9f30d4ed10b98b0f8cc575424636a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_efe9f30d4ed10b98b0f8cc575424636a, - type_description_1, - par_self, - par_hidden_states, - var_first_token_tensor, - var_pooled_output - ); - - - // Release cached frame if used for exception. - if (frame_efe9f30d4ed10b98b0f8cc575424636a == cache_frame_efe9f30d4ed10b98b0f8cc575424636a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_efe9f30d4ed10b98b0f8cc575424636a); - cache_frame_efe9f30d4ed10b98b0f8cc575424636a = NULL; - } - - assertFrameObject(frame_efe9f30d4ed10b98b0f8cc575424636a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_pooled_output); - tmp_return_value = var_pooled_output; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(var_first_token_tensor); - var_first_token_tensor = NULL; - CHECK_OBJECT(var_pooled_output); - Py_DECREF(var_pooled_output); - var_pooled_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(var_first_token_tensor); - var_first_token_tensor = NULL; - Py_XDECREF(var_pooled_output); - var_pooled_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__27___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_ca40fb07238f33d953447de3e31806fd; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_ca40fb07238f33d953447de3e31806fd = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ca40fb07238f33d953447de3e31806fd)) { - Py_XDECREF(cache_frame_ca40fb07238f33d953447de3e31806fd); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ca40fb07238f33d953447de3e31806fd == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ca40fb07238f33d953447de3e31806fd = MAKE_FUNCTION_FRAME(codeobj_ca40fb07238f33d953447de3e31806fd, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ca40fb07238f33d953447de3e31806fd->m_type_description == NULL); - frame_ca40fb07238f33d953447de3e31806fd = cache_frame_ca40fb07238f33d953447de3e31806fd; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ca40fb07238f33d953447de3e31806fd); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ca40fb07238f33d953447de3e31806fd) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 609; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 609; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_ca40fb07238f33d953447de3e31806fd->m_frame.f_lineno = 609; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 609; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[6]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_ca40fb07238f33d953447de3e31806fd->m_frame.f_lineno = 610; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[92], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 610; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_4; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 611; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_config; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[104]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 611; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = (PyObject *)&PyUnicode_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 611; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[105]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[105]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 612; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 612; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[104]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 612; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 612; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[172], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 612; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_3; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 614; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_config; - tmp_assattr_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[104]); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 614; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[172], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 614; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_9; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_10; - PyObject *tmp_assattr_target_4; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[12]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[6]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[13]; - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_config; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[14]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_ca40fb07238f33d953447de3e31806fd->m_frame.f_lineno = 615; - tmp_assattr_name_4 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[12], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 615; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca40fb07238f33d953447de3e31806fd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca40fb07238f33d953447de3e31806fd); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ca40fb07238f33d953447de3e31806fd, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ca40fb07238f33d953447de3e31806fd->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ca40fb07238f33d953447de3e31806fd, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ca40fb07238f33d953447de3e31806fd, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ca40fb07238f33d953447de3e31806fd == cache_frame_ca40fb07238f33d953447de3e31806fd) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ca40fb07238f33d953447de3e31806fd); - cache_frame_ca40fb07238f33d953447de3e31806fd = NULL; - } - - assertFrameObject(frame_ca40fb07238f33d953447de3e31806fd); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__28_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - struct Nuitka_FrameObject *frame_ef32505124b25b3c551fd3017e359336; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ef32505124b25b3c551fd3017e359336 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ef32505124b25b3c551fd3017e359336)) { - Py_XDECREF(cache_frame_ef32505124b25b3c551fd3017e359336); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ef32505124b25b3c551fd3017e359336 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ef32505124b25b3c551fd3017e359336 = MAKE_FUNCTION_FRAME(codeobj_ef32505124b25b3c551fd3017e359336, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ef32505124b25b3c551fd3017e359336->m_type_description == NULL); - frame_ef32505124b25b3c551fd3017e359336 = cache_frame_ef32505124b25b3c551fd3017e359336; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ef32505124b25b3c551fd3017e359336); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ef32505124b25b3c551fd3017e359336) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - frame_ef32505124b25b3c551fd3017e359336->m_frame.f_lineno = 618; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[92], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 618; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 619; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_2 = par_hidden_states; - frame_ef32505124b25b3c551fd3017e359336->m_frame.f_lineno = 619; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[172], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 619; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 620; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_3 = par_hidden_states; - frame_ef32505124b25b3c551fd3017e359336->m_frame.f_lineno = 620; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[12], tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 620; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ef32505124b25b3c551fd3017e359336); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ef32505124b25b3c551fd3017e359336); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ef32505124b25b3c551fd3017e359336, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ef32505124b25b3c551fd3017e359336->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ef32505124b25b3c551fd3017e359336, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ef32505124b25b3c551fd3017e359336, - type_description_1, - par_self, - par_hidden_states - ); - - - // Release cached frame if used for exception. - if (frame_ef32505124b25b3c551fd3017e359336 == cache_frame_ef32505124b25b3c551fd3017e359336) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ef32505124b25b3c551fd3017e359336); - cache_frame_ef32505124b25b3c551fd3017e359336 = NULL; - } - - assertFrameObject(frame_ef32505124b25b3c551fd3017e359336); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_hidden_states); - tmp_return_value = par_hidden_states; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__29___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_9c6e6b2c3e0641a7465eeb0788b5b6dd; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd)) { - Py_XDECREF(cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd = MAKE_FUNCTION_FRAME(codeobj_9c6e6b2c3e0641a7465eeb0788b5b6dd, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_type_description == NULL); - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd = cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9c6e6b2c3e0641a7465eeb0788b5b6dd); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9c6e6b2c3e0641a7465eeb0788b5b6dd) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 626; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 626; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_frame.f_lineno = 626; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 626; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[173]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[173]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 627; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_frame.f_lineno = 627; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 627; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[174], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 627; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 631; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 631; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_2 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[6]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 631; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_3; - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 631; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - - tmp_expression_name_3 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[4]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 631; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[175]); - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_frame.f_lineno = 631; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 631; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[176], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 631; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_3; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[177]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[178]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[4]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_frame.f_lineno = 633; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_frame.f_lineno = 633; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[179], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 633; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_4; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(par_self); - tmp_expression_name_7 = par_self; - tmp_assattr_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[179]); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 636; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 636; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_assattr_target_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[176]); - if (tmp_assattr_target_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_4); - - exception_lineno = 636; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[179], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - Py_DECREF(tmp_assattr_target_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 636; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9c6e6b2c3e0641a7465eeb0788b5b6dd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9c6e6b2c3e0641a7465eeb0788b5b6dd); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9c6e6b2c3e0641a7465eeb0788b5b6dd, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9c6e6b2c3e0641a7465eeb0788b5b6dd->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9c6e6b2c3e0641a7465eeb0788b5b6dd, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9c6e6b2c3e0641a7465eeb0788b5b6dd, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_9c6e6b2c3e0641a7465eeb0788b5b6dd == cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd); - cache_frame_9c6e6b2c3e0641a7465eeb0788b5b6dd = NULL; - } - - assertFrameObject(frame_9c6e6b2c3e0641a7465eeb0788b5b6dd); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__30_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - struct Nuitka_FrameObject *frame_e5d530bc114f61caefcc8e7e58348d97; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e5d530bc114f61caefcc8e7e58348d97 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e5d530bc114f61caefcc8e7e58348d97)) { - Py_XDECREF(cache_frame_e5d530bc114f61caefcc8e7e58348d97); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e5d530bc114f61caefcc8e7e58348d97 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e5d530bc114f61caefcc8e7e58348d97 = MAKE_FUNCTION_FRAME(codeobj_e5d530bc114f61caefcc8e7e58348d97, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e5d530bc114f61caefcc8e7e58348d97->m_type_description == NULL); - frame_e5d530bc114f61caefcc8e7e58348d97 = cache_frame_e5d530bc114f61caefcc8e7e58348d97; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e5d530bc114f61caefcc8e7e58348d97); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e5d530bc114f61caefcc8e7e58348d97) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - frame_e5d530bc114f61caefcc8e7e58348d97->m_frame.f_lineno = 639; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[174], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 639; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 640; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_2 = par_hidden_states; - frame_e5d530bc114f61caefcc8e7e58348d97->m_frame.f_lineno = 640; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[176], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 640; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5d530bc114f61caefcc8e7e58348d97); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5d530bc114f61caefcc8e7e58348d97); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e5d530bc114f61caefcc8e7e58348d97, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e5d530bc114f61caefcc8e7e58348d97->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e5d530bc114f61caefcc8e7e58348d97, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e5d530bc114f61caefcc8e7e58348d97, - type_description_1, - par_self, - par_hidden_states - ); - - - // Release cached frame if used for exception. - if (frame_e5d530bc114f61caefcc8e7e58348d97 == cache_frame_e5d530bc114f61caefcc8e7e58348d97) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e5d530bc114f61caefcc8e7e58348d97); - cache_frame_e5d530bc114f61caefcc8e7e58348d97 = NULL; - } - - assertFrameObject(frame_e5d530bc114f61caefcc8e7e58348d97); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_hidden_states); - tmp_return_value = par_hidden_states; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__31___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_fa49026615d06e8f214b8591603bbecd; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_fa49026615d06e8f214b8591603bbecd = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fa49026615d06e8f214b8591603bbecd)) { - Py_XDECREF(cache_frame_fa49026615d06e8f214b8591603bbecd); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fa49026615d06e8f214b8591603bbecd == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fa49026615d06e8f214b8591603bbecd = MAKE_FUNCTION_FRAME(codeobj_fa49026615d06e8f214b8591603bbecd, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fa49026615d06e8f214b8591603bbecd->m_type_description == NULL); - frame_fa49026615d06e8f214b8591603bbecd = cache_frame_fa49026615d06e8f214b8591603bbecd; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fa49026615d06e8f214b8591603bbecd); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fa49026615d06e8f214b8591603bbecd) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 646; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 646; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_fa49026615d06e8f214b8591603bbecd->m_frame.f_lineno = 646; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 646; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[180]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[180]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 647; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_fa49026615d06e8f214b8591603bbecd->m_frame.f_lineno = 647; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 647; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[181], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 647; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fa49026615d06e8f214b8591603bbecd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fa49026615d06e8f214b8591603bbecd); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fa49026615d06e8f214b8591603bbecd, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fa49026615d06e8f214b8591603bbecd->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fa49026615d06e8f214b8591603bbecd, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fa49026615d06e8f214b8591603bbecd, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_fa49026615d06e8f214b8591603bbecd == cache_frame_fa49026615d06e8f214b8591603bbecd) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fa49026615d06e8f214b8591603bbecd); - cache_frame_fa49026615d06e8f214b8591603bbecd = NULL; - } - - assertFrameObject(frame_fa49026615d06e8f214b8591603bbecd); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__32_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_sequence_output = python_pars[1]; - PyObject *var_prediction_scores = NULL; - struct Nuitka_FrameObject *frame_0eb4b4b7e57523c96bf4c60654493887; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_0eb4b4b7e57523c96bf4c60654493887 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0eb4b4b7e57523c96bf4c60654493887)) { - Py_XDECREF(cache_frame_0eb4b4b7e57523c96bf4c60654493887); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0eb4b4b7e57523c96bf4c60654493887 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0eb4b4b7e57523c96bf4c60654493887 = MAKE_FUNCTION_FRAME(codeobj_0eb4b4b7e57523c96bf4c60654493887, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0eb4b4b7e57523c96bf4c60654493887->m_type_description == NULL); - frame_0eb4b4b7e57523c96bf4c60654493887 = cache_frame_0eb4b4b7e57523c96bf4c60654493887; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0eb4b4b7e57523c96bf4c60654493887); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0eb4b4b7e57523c96bf4c60654493887) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_sequence_output); - tmp_args_element_name_1 = par_sequence_output; - frame_0eb4b4b7e57523c96bf4c60654493887->m_frame.f_lineno = 650; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[181], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 650; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_scores == NULL); - var_prediction_scores = tmp_assign_source_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0eb4b4b7e57523c96bf4c60654493887); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0eb4b4b7e57523c96bf4c60654493887); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0eb4b4b7e57523c96bf4c60654493887, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0eb4b4b7e57523c96bf4c60654493887->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0eb4b4b7e57523c96bf4c60654493887, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0eb4b4b7e57523c96bf4c60654493887, - type_description_1, - par_self, - par_sequence_output, - var_prediction_scores - ); - - - // Release cached frame if used for exception. - if (frame_0eb4b4b7e57523c96bf4c60654493887 == cache_frame_0eb4b4b7e57523c96bf4c60654493887) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0eb4b4b7e57523c96bf4c60654493887); - cache_frame_0eb4b4b7e57523c96bf4c60654493887 = NULL; - } - - assertFrameObject(frame_0eb4b4b7e57523c96bf4c60654493887); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_prediction_scores); - tmp_return_value = var_prediction_scores; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_sequence_output); - par_sequence_output = NULL; - CHECK_OBJECT(var_prediction_scores); - Py_DECREF(var_prediction_scores); - var_prediction_scores = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_sequence_output); - par_sequence_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__33__init_weights(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_module = python_pars[1]; - struct Nuitka_FrameObject *frame_4147f3aad460337a90fc69f511dba483; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_4147f3aad460337a90fc69f511dba483 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4147f3aad460337a90fc69f511dba483)) { - Py_XDECREF(cache_frame_4147f3aad460337a90fc69f511dba483); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4147f3aad460337a90fc69f511dba483 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4147f3aad460337a90fc69f511dba483 = MAKE_FUNCTION_FRAME(codeobj_4147f3aad460337a90fc69f511dba483, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4147f3aad460337a90fc69f511dba483->m_type_description == NULL); - frame_4147f3aad460337a90fc69f511dba483 = cache_frame_4147f3aad460337a90fc69f511dba483; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4147f3aad460337a90fc69f511dba483); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4147f3aad460337a90fc69f511dba483) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_module); - tmp_isinstance_inst_1 = par_module; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 666; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 666; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_2; - PyTuple_SET_ITEM(tmp_isinstance_cls_1, 0, tmp_tuple_element_1); - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 666; - type_description_1 = "oo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 666; - type_description_1 = "oo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_isinstance_cls_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_isinstance_cls_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 666; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_module); - tmp_expression_name_5 = par_module; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[182]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 669; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[183]); - Py_DECREF(tmp_expression_name_4); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 669; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[184]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 669; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[185]; - tmp_dict_value_1 = mod_consts[186]; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[187]; - CHECK_OBJECT(par_self); - tmp_expression_name_7 = par_self; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[5]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 669; - type_description_1 = "oo"; - goto dict_build_exception_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[188]); - Py_DECREF(tmp_expression_name_6); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 669; - type_description_1 = "oo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_4147f3aad460337a90fc69f511dba483->m_frame.f_lineno = 669; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 669; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(par_module); - tmp_isinstance_inst_2 = par_module; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 670; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[12]); - if (tmp_isinstance_cls_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 670; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - Py_DECREF(tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 670; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_module); - tmp_expression_name_10 = par_module; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[179]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 671; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[183]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 671; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_4147f3aad460337a90fc69f511dba483->m_frame.f_lineno = 671; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[189]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 671; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_3; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 672; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_module; - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[182]); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 672; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[183]); - Py_DECREF(tmp_expression_name_11); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 672; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_4147f3aad460337a90fc69f511dba483->m_frame.f_lineno = 672; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 672; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_2:; - branch_end_1:; - { - nuitka_bool tmp_condition_result_3; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_isinstance_inst_3; - PyObject *tmp_isinstance_cls_3; - PyObject *tmp_expression_name_13; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_14; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_isinstance_inst_3 = par_module; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[41]); - if (tmp_isinstance_cls_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_3, tmp_isinstance_cls_3); - Py_DECREF(tmp_isinstance_cls_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_module; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[179]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 673; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_and_right_value_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - Py_DECREF(tmp_compexpr_left_1); - tmp_condition_result_3 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_3 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_4; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 674; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_module; - tmp_expression_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[179]); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 674; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[183]); - Py_DECREF(tmp_expression_name_15); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 674; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_4147f3aad460337a90fc69f511dba483->m_frame.f_lineno = 674; - tmp_call_result_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[189]); - Py_DECREF(tmp_called_instance_3); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 674; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4147f3aad460337a90fc69f511dba483); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4147f3aad460337a90fc69f511dba483); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4147f3aad460337a90fc69f511dba483, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4147f3aad460337a90fc69f511dba483->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4147f3aad460337a90fc69f511dba483, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4147f3aad460337a90fc69f511dba483, - type_description_1, - par_self, - par_module - ); - - - // Release cached frame if used for exception. - if (frame_4147f3aad460337a90fc69f511dba483 == cache_frame_4147f3aad460337a90fc69f511dba483) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4147f3aad460337a90fc69f511dba483); - cache_frame_4147f3aad460337a90fc69f511dba483 = NULL; - } - - assertFrameObject(frame_4147f3aad460337a90fc69f511dba483); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_module); - par_module = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_module); - par_module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__34___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - PyObject *par_add_pooling_layer = python_pars[2]; - struct Nuitka_FrameObject *frame_8e16adea762727bda11361e993d1476d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_8e16adea762727bda11361e993d1476d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8e16adea762727bda11361e993d1476d)) { - Py_XDECREF(cache_frame_8e16adea762727bda11361e993d1476d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8e16adea762727bda11361e993d1476d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8e16adea762727bda11361e993d1476d = MAKE_FUNCTION_FRAME(codeobj_8e16adea762727bda11361e993d1476d, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8e16adea762727bda11361e993d1476d->m_type_description == NULL); - frame_8e16adea762727bda11361e993d1476d = cache_frame_8e16adea762727bda11361e993d1476d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8e16adea762727bda11361e993d1476d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8e16adea762727bda11361e993d1476d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 688; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 688; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_8e16adea762727bda11361e993d1476d->m_frame.f_lineno = 688; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[1], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 688; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 689; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_1 = par_config; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[5], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 689; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[193]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[193]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 691; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 691; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_config; - frame_8e16adea762727bda11361e993d1476d->m_frame.f_lineno = 691; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 691; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[35], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 691; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_3; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[194]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[194]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 693; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 693; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_config; - frame_8e16adea762727bda11361e993d1476d->m_frame.f_lineno = 693; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 693; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[195], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 693; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_add_pooling_layer); - tmp_truth_name_1 = CHECK_IF_TRUE(par_add_pooling_layer); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 695; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[196]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[196]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 695; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 695; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_config; - frame_8e16adea762727bda11361e993d1476d->m_frame.f_lineno = 695; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 695; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_assattr_name_4 = Py_None; - Py_INCREF(tmp_assattr_name_4); - condexpr_end_1:; - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[197], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 695; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - frame_8e16adea762727bda11361e993d1476d->m_frame.f_lineno = 697; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[198]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 697; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e16adea762727bda11361e993d1476d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e16adea762727bda11361e993d1476d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8e16adea762727bda11361e993d1476d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8e16adea762727bda11361e993d1476d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8e16adea762727bda11361e993d1476d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8e16adea762727bda11361e993d1476d, - type_description_1, - par_self, - par_config, - par_add_pooling_layer, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_8e16adea762727bda11361e993d1476d == cache_frame_8e16adea762727bda11361e993d1476d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8e16adea762727bda11361e993d1476d); - cache_frame_8e16adea762727bda11361e993d1476d = NULL; - } - - assertFrameObject(frame_8e16adea762727bda11361e993d1476d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_add_pooling_layer); - Py_DECREF(par_add_pooling_layer); - par_add_pooling_layer = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_add_pooling_layer); - Py_DECREF(par_add_pooling_layer); - par_add_pooling_layer = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__35_get_input_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_64584954755a32f374a421edcbab9154; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_64584954755a32f374a421edcbab9154 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_64584954755a32f374a421edcbab9154)) { - Py_XDECREF(cache_frame_64584954755a32f374a421edcbab9154); - -#if _DEBUG_REFCOUNTS - if (cache_frame_64584954755a32f374a421edcbab9154 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_64584954755a32f374a421edcbab9154 = MAKE_FUNCTION_FRAME(codeobj_64584954755a32f374a421edcbab9154, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_64584954755a32f374a421edcbab9154->m_type_description == NULL); - frame_64584954755a32f374a421edcbab9154 = cache_frame_64584954755a32f374a421edcbab9154; - - // Push the new frame as the currently active one. - pushFrameStack(frame_64584954755a32f374a421edcbab9154); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_64584954755a32f374a421edcbab9154) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[35]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 700; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[9]); - Py_DECREF(tmp_expression_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 700; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_64584954755a32f374a421edcbab9154); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_64584954755a32f374a421edcbab9154); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_64584954755a32f374a421edcbab9154); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_64584954755a32f374a421edcbab9154, exception_lineno); - } else if (exception_tb->tb_frame != &frame_64584954755a32f374a421edcbab9154->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_64584954755a32f374a421edcbab9154, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_64584954755a32f374a421edcbab9154, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_64584954755a32f374a421edcbab9154 == cache_frame_64584954755a32f374a421edcbab9154) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_64584954755a32f374a421edcbab9154); - cache_frame_64584954755a32f374a421edcbab9154 = NULL; - } - - assertFrameObject(frame_64584954755a32f374a421edcbab9154); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__36_set_input_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_value = python_pars[1]; - struct Nuitka_FrameObject *frame_721775a04cb45ee2837ea767c0780001; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_721775a04cb45ee2837ea767c0780001 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_721775a04cb45ee2837ea767c0780001)) { - Py_XDECREF(cache_frame_721775a04cb45ee2837ea767c0780001); - -#if _DEBUG_REFCOUNTS - if (cache_frame_721775a04cb45ee2837ea767c0780001 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_721775a04cb45ee2837ea767c0780001 = MAKE_FUNCTION_FRAME(codeobj_721775a04cb45ee2837ea767c0780001, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_721775a04cb45ee2837ea767c0780001->m_type_description == NULL); - frame_721775a04cb45ee2837ea767c0780001 = cache_frame_721775a04cb45ee2837ea767c0780001; - - // Push the new frame as the currently active one. - pushFrameStack(frame_721775a04cb45ee2837ea767c0780001); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_721775a04cb45ee2837ea767c0780001) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_value); - tmp_assattr_name_1 = par_value; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[35]); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 703; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[9], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 703; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_721775a04cb45ee2837ea767c0780001); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_721775a04cb45ee2837ea767c0780001); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_721775a04cb45ee2837ea767c0780001, exception_lineno); - } else if (exception_tb->tb_frame != &frame_721775a04cb45ee2837ea767c0780001->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_721775a04cb45ee2837ea767c0780001, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_721775a04cb45ee2837ea767c0780001, - type_description_1, - par_self, - par_value - ); - - - // Release cached frame if used for exception. - if (frame_721775a04cb45ee2837ea767c0780001 == cache_frame_721775a04cb45ee2837ea767c0780001) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_721775a04cb45ee2837ea767c0780001); - cache_frame_721775a04cb45ee2837ea767c0780001 = NULL; - } - - assertFrameObject(frame_721775a04cb45ee2837ea767c0780001); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__37__prune_heads(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_heads_to_prune = python_pars[1]; - PyObject *var_layer = NULL; - PyObject *var_heads = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_99e6e0fbfb9cc4282b3a8f4787f1fc90; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90)) { - Py_XDECREF(cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90); - -#if _DEBUG_REFCOUNTS - if (cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90 = MAKE_FUNCTION_FRAME(codeobj_99e6e0fbfb9cc4282b3a8f4787f1fc90, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90->m_type_description == NULL); - frame_99e6e0fbfb9cc4282b3a8f4787f1fc90 = cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90; - - // Push the new frame as the currently active one. - pushFrameStack(frame_99e6e0fbfb9cc4282b3a8f4787f1fc90); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_99e6e0fbfb9cc4282b3a8f4787f1fc90) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_heads_to_prune); - tmp_called_instance_1 = par_heads_to_prune; - frame_99e6e0fbfb9cc4282b3a8f4787f1fc90->m_frame.f_lineno = 710; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[199]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 710; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 710; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 710; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 710; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 710; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 710; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 710; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[99]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 710; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_layer; - var_layer = tmp_assign_source_6; - Py_INCREF(var_layer); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_heads; - var_heads = tmp_assign_source_7; - Py_INCREF(var_heads); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 711; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[195]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 711; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[140]); - Py_DECREF(tmp_expression_name_3); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 711; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_layer); - tmp_subscript_name_1 = var_layer; - tmp_expression_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 711; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[110]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 711; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_heads); - tmp_args_element_name_1 = var_heads; - frame_99e6e0fbfb9cc4282b3a8f4787f1fc90->m_frame.f_lineno = 711; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[200], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 711; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 710; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_99e6e0fbfb9cc4282b3a8f4787f1fc90); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_99e6e0fbfb9cc4282b3a8f4787f1fc90); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_99e6e0fbfb9cc4282b3a8f4787f1fc90, exception_lineno); - } else if (exception_tb->tb_frame != &frame_99e6e0fbfb9cc4282b3a8f4787f1fc90->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_99e6e0fbfb9cc4282b3a8f4787f1fc90, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_99e6e0fbfb9cc4282b3a8f4787f1fc90, - type_description_1, - par_self, - par_heads_to_prune, - var_layer, - var_heads - ); - - - // Release cached frame if used for exception. - if (frame_99e6e0fbfb9cc4282b3a8f4787f1fc90 == cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90); - cache_frame_99e6e0fbfb9cc4282b3a8f4787f1fc90 = NULL; - } - - assertFrameObject(frame_99e6e0fbfb9cc4282b3a8f4787f1fc90); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_heads_to_prune); - par_heads_to_prune = NULL; - Py_XDECREF(var_layer); - var_layer = NULL; - Py_XDECREF(var_heads); - var_heads = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_heads_to_prune); - par_heads_to_prune = NULL; - Py_XDECREF(var_layer); - var_layer = NULL; - Py_XDECREF(var_heads); - var_heads = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__38_get_extended_attention_mask(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_attention_mask = python_pars[1]; - PyObject *par_input_shape = python_pars[2]; - PyObject *par_device = python_pars[3]; - PyObject *par_is_decoder = python_pars[4]; - PyObject *par_has_query = python_pars[5]; - PyObject *var_extended_attention_mask = NULL; - PyObject *var_batch_size = NULL; - PyObject *var_seq_length = NULL; - PyObject *var_seq_ids = NULL; - PyObject *var_causal_mask = NULL; - PyObject *var_prefix_seq_len = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_a5b726196dc433c291a911837adced9c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_a5b726196dc433c291a911837adced9c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a5b726196dc433c291a911837adced9c)) { - Py_XDECREF(cache_frame_a5b726196dc433c291a911837adced9c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a5b726196dc433c291a911837adced9c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a5b726196dc433c291a911837adced9c = MAKE_FUNCTION_FRAME(codeobj_a5b726196dc433c291a911837adced9c, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a5b726196dc433c291a911837adced9c->m_type_description == NULL); - frame_a5b726196dc433c291a911837adced9c = cache_frame_a5b726196dc433c291a911837adced9c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a5b726196dc433c291a911837adced9c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a5b726196dc433c291a911837adced9c) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_attention_mask); - tmp_called_instance_1 = par_attention_mask; - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 737; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[202]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 737; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[203]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 737; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 737; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 738; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_attention_mask; - tmp_subscript_name_1 = mod_consts[204]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 738; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_extended_attention_mask == NULL); - var_extended_attention_mask = tmp_assign_source_1; - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_2; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 739; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_attention_mask; - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 739; - tmp_compexpr_left_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[202]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 739; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[49]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 739; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 739; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_3; - CHECK_OBJECT(par_is_decoder); - tmp_truth_name_3 = CHECK_IF_TRUE(par_is_decoder); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 743; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input_shape); - tmp_iter_arg_1 = par_input_shape; - tmp_assign_source_2 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 744; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooo"; - exception_lineno = 744; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooo"; - exception_lineno = 744; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooo"; - exception_lineno = 744; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[99]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooo"; - exception_lineno = 744; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_5); - var_batch_size = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_seq_length == NULL); - Py_INCREF(tmp_assign_source_6); - var_seq_length = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 746; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[21]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 746; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_seq_length); - tmp_tuple_element_1 = var_seq_length; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[70]; - CHECK_OBJECT(par_device); - tmp_dict_value_1 = par_device; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 746; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 746; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_seq_ids == NULL); - var_seq_ids = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(var_seq_ids); - tmp_expression_name_4 = var_seq_ids; - tmp_subscript_name_2 = mod_consts[205]; - tmp_expression_name_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_2); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 748; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[206]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 748; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_1 = var_batch_size; - if (var_seq_length == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 748; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = var_seq_length; - tmp_args_element_name_3 = mod_consts[28]; - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 748; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_compexpr_left_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 748; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_seq_ids); - tmp_expression_name_5 = var_seq_ids; - tmp_subscript_name_3 = mod_consts[207]; - tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_3); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_3); - - exception_lineno = 749; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = RICH_COMPARE_LE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 748; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_causal_mask == NULL); - var_causal_mask = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_7; - CHECK_OBJECT(var_causal_mask); - tmp_expression_name_6 = var_causal_mask; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[74]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 754; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_attention_mask == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 754; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_attention_mask; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[68]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 754; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 754; - tmp_assign_source_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 754; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_causal_mask; - var_causal_mask = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_5; - CHECK_OBJECT(var_causal_mask); - tmp_expression_name_9 = var_causal_mask; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[132]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 756; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[28]; - tmp_compexpr_left_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_4, 1); - Py_DECREF(tmp_expression_name_8); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 756; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_attention_mask == NULL) { - Py_DECREF(tmp_compexpr_left_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 756; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_attention_mask; - tmp_expression_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[132]); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_4); - - exception_lineno = 756; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_5 = mod_consts[28]; - tmp_compexpr_right_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_5, 1); - Py_DECREF(tmp_expression_name_10); - if (tmp_compexpr_right_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_4); - - exception_lineno = 756; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = RICH_COMPARE_LT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - Py_DECREF(tmp_compexpr_left_4); - Py_DECREF(tmp_compexpr_right_4); - if (tmp_condition_result_4 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 756; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_4 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_6; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_7; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_attention_mask; - tmp_expression_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[132]); - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_6 = mod_consts[28]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_12, tmp_subscript_name_6, 1); - Py_DECREF(tmp_expression_name_12); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (var_causal_mask == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = var_causal_mask; - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[132]); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_7 = mod_consts[28]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_7, 1); - Py_DECREF(tmp_expression_name_14); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_10 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 757; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prefix_seq_len == NULL); - var_prefix_seq_len = tmp_assign_source_10; - } - { - nuitka_bool tmp_condition_result_5; - int tmp_truth_name_4; - CHECK_OBJECT(par_has_query); - tmp_truth_name_4 = CHECK_IF_TRUE(par_has_query); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 758; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_list_element_1; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 759; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[33]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 759; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_17 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_17 == NULL)) { - tmp_expression_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 761; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[178]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 761; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (var_batch_size == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[209]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 762; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_4 = var_batch_size; - tmp_tuple_element_3 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_tuple_element_3, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_prefix_seq_len); - tmp_tuple_element_4 = var_prefix_seq_len; - PyTuple_SET_ITEM0(tmp_tuple_element_3, 1, tmp_tuple_element_4); - if (var_seq_length == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 762; - type_description_1 = "oooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_4 = var_seq_length; - PyTuple_SET_ITEM0(tmp_tuple_element_3, 2, tmp_tuple_element_4); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_tuple_element_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[70]; - if (par_device == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 763; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_2 = par_device; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_18; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[68]; - if (var_causal_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 764; - type_description_1 = "oooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_18 = var_causal_mask; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[68]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 764; - type_description_1 = "oooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 761; - tmp_list_element_1 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_3, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 761; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_2, 0, tmp_list_element_1); - if (var_causal_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 766; - type_description_1 = "oooooooooooo"; - goto list_build_exception_1; - } - - tmp_list_element_1 = var_causal_mask; - PyList_SET_ITEM0(tmp_tuple_element_2, 1, tmp_list_element_1); - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_tuple_element_2); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[210]); - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 759; - tmp_assign_source_11 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 759; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_causal_mask; - var_causal_mask = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - branch_no_5:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_list_element_2; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_6; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_kwargs_name_5; - tmp_expression_name_19 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_19 == NULL)) { - tmp_expression_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 770; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[33]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 770; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 772; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[211]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 772; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (var_batch_size == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[209]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 773; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_7 = var_batch_size; - tmp_tuple_element_6 = PyTuple_New(3); - { - PyObject *tmp_expression_name_21; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_8; - PyTuple_SET_ITEM0(tmp_tuple_element_6, 0, tmp_tuple_element_7); - if (var_causal_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 773; - type_description_1 = "oooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_22 = var_causal_mask; - tmp_expression_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[132]); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 773; - type_description_1 = "oooooooooooo"; - goto tuple_build_exception_2; - } - tmp_subscript_name_8 = mod_consts[28]; - tmp_tuple_element_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_21, tmp_subscript_name_8, 1); - Py_DECREF(tmp_expression_name_21); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 773; - type_description_1 = "oooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_tuple_element_6, 1, tmp_tuple_element_7); - if (var_prefix_seq_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[212]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 773; - type_description_1 = "oooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_7 = var_prefix_seq_len; - PyTuple_SET_ITEM0(tmp_tuple_element_6, 2, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_tuple_element_6); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_5, 0, tmp_tuple_element_6); - tmp_dict_key_3 = mod_consts[70]; - if (par_device == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 774; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_3 = par_device; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_23; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[68]; - if (var_causal_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 775; - type_description_1 = "oooooooooooo"; - goto dict_build_exception_2; - } - - tmp_expression_name_23 = var_causal_mask; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[68]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 775; - type_description_1 = "oooooooooooo"; - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_4); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 772; - tmp_list_element_2 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_5, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_list_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 772; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_5 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_5, 0, tmp_list_element_2); - if (var_causal_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 777; - type_description_1 = "oooooooooooo"; - goto list_build_exception_2; - } - - tmp_list_element_2 = var_causal_mask; - PyList_SET_ITEM0(tmp_tuple_element_5, 1, tmp_list_element_2); - goto list_build_noexception_2; - // Exception handling pass through code for list_build: - list_build_exception_2:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_tuple_element_5); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_2:; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_4, 0, tmp_tuple_element_5); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[213]); - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 770; - tmp_assign_source_12 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 770; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_causal_mask; - var_causal_mask = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - branch_no_4:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_24; - PyObject *tmp_subscript_name_9; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_25; - PyObject *tmp_subscript_name_10; - if (var_causal_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[208]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 782; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_24 = var_causal_mask; - tmp_subscript_name_9 = mod_consts[204]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_24, tmp_subscript_name_9); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 782; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_attention_mask == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 782; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_attention_mask; - tmp_subscript_name_10 = mod_consts[214]; - tmp_right_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_25, tmp_subscript_name_10); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 782; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_13 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 782; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_extended_attention_mask == NULL); - var_extended_attention_mask = tmp_assign_source_13; - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_expression_name_26; - PyObject *tmp_subscript_name_11; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 785; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_26 = par_attention_mask; - tmp_subscript_name_11 = mod_consts[214]; - tmp_assign_source_14 = LOOKUP_SUBSCRIPT(tmp_expression_name_26, tmp_subscript_name_11); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 785; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_extended_attention_mask == NULL); - var_extended_attention_mask = tmp_assign_source_14; - } - branch_end_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_28; - tmp_expression_name_27 = mod_consts[215]; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[216]); - assert(!(tmp_called_name_8 == NULL)); - CHECK_OBJECT(par_input_shape); - tmp_args_element_name_5 = par_input_shape; - if (par_attention_mask == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 789; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_attention_mask; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[132]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 789; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 788; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_make_exception_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_8, call_args); - } - - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_6); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 788; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 787; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 787; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - branch_end_2:; - branch_end_1:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_29; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_expression_name_30; - if (var_extended_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[217]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 798; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = var_extended_attention_mask; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[74]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 798; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_4 = mod_consts[68]; - CHECK_OBJECT(par_self); - tmp_expression_name_30 = par_self; - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[68]); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 799; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_6 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_a5b726196dc433c291a911837adced9c->m_frame.f_lineno = 798; - tmp_assign_source_15 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_9, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 798; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_extended_attention_mask; - var_extended_attention_mask = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - tmp_left_name_4 = mod_consts[218]; - CHECK_OBJECT(var_extended_attention_mask); - tmp_right_name_3 = var_extended_attention_mask; - tmp_left_name_3 = BINARY_OPERATION_SUB_OBJECT_FLOAT_OBJECT(tmp_left_name_4, tmp_right_name_3); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 801; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_4 = mod_consts[219]; - tmp_assign_source_16 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_3, tmp_right_name_4); - Py_DECREF(tmp_left_name_3); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 801; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_extended_attention_mask; - var_extended_attention_mask = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a5b726196dc433c291a911837adced9c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a5b726196dc433c291a911837adced9c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a5b726196dc433c291a911837adced9c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a5b726196dc433c291a911837adced9c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a5b726196dc433c291a911837adced9c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a5b726196dc433c291a911837adced9c, - type_description_1, - par_self, - par_attention_mask, - par_input_shape, - par_device, - par_is_decoder, - par_has_query, - var_extended_attention_mask, - var_batch_size, - var_seq_length, - var_seq_ids, - var_causal_mask, - var_prefix_seq_len - ); - - - // Release cached frame if used for exception. - if (frame_a5b726196dc433c291a911837adced9c == cache_frame_a5b726196dc433c291a911837adced9c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a5b726196dc433c291a911837adced9c); - cache_frame_a5b726196dc433c291a911837adced9c = NULL; - } - - assertFrameObject(frame_a5b726196dc433c291a911837adced9c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_extended_attention_mask); - tmp_return_value = var_extended_attention_mask; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_input_shape); - par_input_shape = NULL; - Py_XDECREF(par_device); - par_device = NULL; - CHECK_OBJECT(par_is_decoder); - Py_DECREF(par_is_decoder); - par_is_decoder = NULL; - CHECK_OBJECT(par_has_query); - Py_DECREF(par_has_query); - par_has_query = NULL; - CHECK_OBJECT(var_extended_attention_mask); - Py_DECREF(var_extended_attention_mask); - var_extended_attention_mask = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_seq_ids); - var_seq_ids = NULL; - Py_XDECREF(var_causal_mask); - var_causal_mask = NULL; - Py_XDECREF(var_prefix_seq_len); - var_prefix_seq_len = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_input_shape); - par_input_shape = NULL; - Py_XDECREF(par_device); - par_device = NULL; - CHECK_OBJECT(par_is_decoder); - Py_DECREF(par_is_decoder); - par_is_decoder = NULL; - CHECK_OBJECT(par_has_query); - Py_DECREF(par_has_query); - par_has_query = NULL; - Py_XDECREF(var_extended_attention_mask); - var_extended_attention_mask = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_seq_ids); - var_seq_ids = NULL; - Py_XDECREF(var_causal_mask); - var_causal_mask = NULL; - Py_XDECREF(var_prefix_seq_len); - var_prefix_seq_len = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__39_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_head_mask = python_pars[4]; - PyObject *par_query_embeds = python_pars[5]; - PyObject *par_encoder_hidden_states = python_pars[6]; - PyObject *par_encoder_attention_mask = python_pars[7]; - PyObject *par_past_key_values = python_pars[8]; - PyObject *par_use_cache = python_pars[9]; - PyObject *par_output_attentions = python_pars[10]; - PyObject *par_output_hidden_states = python_pars[11]; - PyObject *par_return_dict = python_pars[12]; - PyObject *par_is_decoder = python_pars[13]; - PyObject *var_past_key_values_length = NULL; - PyObject *var_query_length = NULL; - PyObject *var_embedding_output = NULL; - PyObject *var_input_shape = NULL; - PyObject *var_batch_size = NULL; - PyObject *var_seq_length = NULL; - PyObject *var_device = NULL; - PyObject *var_extended_attention_mask = NULL; - PyObject *var_encoder_batch_size = NULL; - PyObject *var_encoder_sequence_length = NULL; - PyObject *var__ = NULL; - PyObject *var_encoder_hidden_shape = NULL; - PyObject *var_encoder_extended_attention_mask = NULL; - PyObject *var_encoder_outputs = NULL; - PyObject *var_sequence_output = NULL; - PyObject *var_pooled_output = NULL; - PyObject *outline_0_var_mask = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__element_3 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - struct Nuitka_FrameObject *frame_960ad736510918980c376a071f656626; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - struct Nuitka_FrameObject *frame_3b8e99b3705bb48cdf88a9a082001f87_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - static struct Nuitka_FrameObject *cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_960ad736510918980c376a071f656626 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_960ad736510918980c376a071f656626)) { - Py_XDECREF(cache_frame_960ad736510918980c376a071f656626); - -#if _DEBUG_REFCOUNTS - if (cache_frame_960ad736510918980c376a071f656626 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_960ad736510918980c376a071f656626 = MAKE_FUNCTION_FRAME(codeobj_960ad736510918980c376a071f656626, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_960ad736510918980c376a071f656626->m_type_description == NULL); - frame_960ad736510918980c376a071f656626 = cache_frame_960ad736510918980c376a071f656626; - - // Push the new frame as the currently active one. - pushFrameStack(frame_960ad736510918980c376a071f656626); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_960ad736510918980c376a071f656626) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_output_attentions); - tmp_compexpr_left_1 = par_output_attentions; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_output_attentions); - tmp_assign_source_1 = par_output_attentions; - Py_INCREF(tmp_assign_source_1); - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[5]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 841; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[123]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 841; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - { - PyObject *old = par_output_attentions; - assert(old != NULL); - par_output_attentions = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(par_output_hidden_states); - tmp_compexpr_left_2 = par_output_hidden_states; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(par_output_hidden_states); - tmp_assign_source_2 = par_output_hidden_states; - Py_INCREF(tmp_assign_source_2); - goto condexpr_end_2; - condexpr_false_2:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 846; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[5]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 846; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[142]); - Py_DECREF(tmp_expression_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 846; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_2:; - { - PyObject *old = par_output_hidden_states; - assert(old != NULL); - par_output_hidden_states = tmp_assign_source_2; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(par_return_dict); - tmp_compexpr_left_3 = par_return_dict; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(par_return_dict); - tmp_assign_source_3 = par_return_dict; - Py_INCREF(tmp_assign_source_3); - goto condexpr_end_3; - condexpr_false_3:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 849; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[5]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 849; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[221]); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 849; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_3:; - { - PyObject *old = par_return_dict; - assert(old != NULL); - par_return_dict = tmp_assign_source_3; - Py_DECREF(old); - } - - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(par_input_ids); - tmp_compexpr_left_4 = par_input_ids; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(par_query_embeds); - tmp_compexpr_left_5 = par_query_embeds; - tmp_compexpr_right_5 = Py_None; - tmp_condition_result_5 = (tmp_compexpr_left_5 == tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[222]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 855; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_2:; - branch_no_1:; - { - PyObject *tmp_assign_source_4; - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_1; - PyObject *tmp_subscript_name_2; - PyObject *tmp_subscript_name_3; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(par_past_key_values); - tmp_compexpr_left_6 = par_past_key_values; - tmp_compexpr_right_6 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_6 != tmp_compexpr_right_6) ? true : false; - if (tmp_condition_result_6 != false) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(par_past_key_values); - tmp_expression_name_10 = par_past_key_values; - tmp_subscript_name_1 = mod_consts[29]; - tmp_expression_name_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_1, 0); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[29]; - tmp_expression_name_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_9); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[132]); - Py_DECREF(tmp_expression_name_8); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[49]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_3, 2); - Py_DECREF(tmp_expression_name_7); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[5]); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[156]); - Py_DECREF(tmp_expression_name_11); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 861; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_assign_source_4 = mod_consts[29]; - Py_INCREF(tmp_assign_source_4); - condexpr_end_4:; - assert(var_past_key_values_length == NULL); - var_past_key_values_length = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(par_query_embeds); - tmp_compexpr_left_7 = par_query_embeds; - tmp_compexpr_right_7 = Py_None; - tmp_condition_result_7 = (tmp_compexpr_left_7 != tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_7 != false) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(par_query_embeds); - tmp_expression_name_14 = par_query_embeds; - tmp_expression_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[132]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 866; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[28]; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_4, 1); - Py_DECREF(tmp_expression_name_13); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 866; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_5; - condexpr_false_5:; - tmp_assign_source_5 = mod_consts[29]; - Py_INCREF(tmp_assign_source_5); - condexpr_end_5:; - assert(var_query_length == NULL); - var_query_length = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_15; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 868; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[35]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 868; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[32]; - CHECK_OBJECT(par_input_ids); - tmp_dict_value_1 = par_input_ids; - tmp_kwargs_name_1 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - CHECK_OBJECT(par_position_ids); - tmp_dict_value_1 = par_position_ids; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[223]; - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 871; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_query_embeds; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[224]; - CHECK_OBJECT(var_past_key_values_length); - tmp_dict_value_1 = var_past_key_values_length; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 868; - tmp_assign_source_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 868; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_embedding_output == NULL); - var_embedding_output = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_16; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_5; - CHECK_OBJECT(var_embedding_output); - tmp_called_instance_1 = var_embedding_output; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 875; - tmp_expression_name_16 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[27]); - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 875; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_5 = mod_consts[54]; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_16, tmp_subscript_name_5); - Py_DECREF(tmp_expression_name_16); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 875; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_input_shape == NULL); - var_input_shape = tmp_assign_source_7; - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(var_input_shape); - tmp_iter_arg_1 = var_input_shape; - tmp_assign_source_8 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 876; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 876; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 876; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_10; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 876; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[99]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 876; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_11); - var_batch_size = tmp_assign_source_11; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_12 = tmp_tuple_unpack_1__element_2; - assert(var_seq_length == NULL); - Py_INCREF(tmp_assign_source_12); - var_seq_length = tmp_assign_source_12; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_expression_name_17; - if (var_embedding_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[225]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 877; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = var_embedding_output; - tmp_assign_source_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[70]); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 877; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_device == NULL); - var_device = tmp_assign_source_13; - } - { - bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_8 = par_attention_mask; - tmp_compexpr_right_8 = Py_None; - tmp_condition_result_8 = (tmp_compexpr_left_8 == tmp_compexpr_right_8) ? true : false; - if (tmp_condition_result_8 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_expression_name_18 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_18 == NULL)) { - tmp_expression_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 880; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[211]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 880; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_tuple_element_2 = var_batch_size; - tmp_tuple_element_1 = PyTuple_New(2); - { - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_seq_length); - tmp_left_name_2 = var_seq_length; - if (var_past_key_values_length == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[224]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 881; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_right_name_2 = var_past_key_values_length; - tmp_tuple_element_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 881; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_tuple_element_1, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_tuple_element_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_2 = mod_consts[70]; - CHECK_OBJECT(var_device); - tmp_dict_value_2 = var_device; - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 880; - tmp_assign_source_14 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 880; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_attention_mask; - assert(old != NULL); - par_attention_mask = tmp_assign_source_14; - Py_DECREF(old); - } - - } - branch_no_3:; - { - nuitka_bool tmp_condition_result_9; - int tmp_truth_name_1; - CHECK_OBJECT(par_is_decoder); - tmp_truth_name_1 = CHECK_IF_TRUE(par_is_decoder); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 886; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_9 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 887; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[226]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 887; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_attention_mask); - tmp_tuple_element_3 = par_attention_mask; - tmp_args_name_2 = PyTuple_New(4); - { - PyObject *tmp_expression_name_20; - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_3); - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 889; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_20 = par_input_ids; - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[132]); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 889; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_name_2, 1, tmp_tuple_element_3); - if (var_device == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 890; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_3 = var_device; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_3); - CHECK_OBJECT(par_is_decoder); - tmp_tuple_element_3 = par_is_decoder; - PyTuple_SET_ITEM0(tmp_args_name_2, 3, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_dict_key_3 = mod_consts[227]; - if (par_query_embeds == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 892; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_9 = par_query_embeds; - tmp_compexpr_right_9 = Py_None; - tmp_dict_value_3 = (tmp_compexpr_left_9 != tmp_compexpr_right_9) ? Py_True : Py_False; - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 887; - tmp_assign_source_15 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 887; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_extended_attention_mask == NULL); - var_extended_attention_mask = tmp_assign_source_15; - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 895; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_21 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[226]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 895; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_attention_mask); - tmp_args_element_name_1 = par_attention_mask; - if (var_input_shape == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[228]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 896; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = var_input_shape; - if (var_device == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 896; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_device; - CHECK_OBJECT(par_is_decoder); - tmp_args_element_name_4 = par_is_decoder; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 895; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_16 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 895; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_extended_attention_mask == NULL); - var_extended_attention_mask = tmp_assign_source_16; - } - branch_end_4:; - { - bool tmp_condition_result_10; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_compexpr_left_10 = par_encoder_hidden_states; - tmp_compexpr_right_10 = Py_None; - tmp_condition_result_10 = (tmp_compexpr_left_10 != tmp_compexpr_right_10) ? true : false; - if (tmp_condition_result_10 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - PyObject *tmp_type_arg_1; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_type_arg_1 = par_encoder_hidden_states; - tmp_compexpr_left_11 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_compexpr_left_11 == NULL)); - tmp_compexpr_right_11 = (PyObject *)&PyList_Type; - tmp_condition_result_11 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_11, tmp_compexpr_right_11); - Py_DECREF(tmp_compexpr_left_11); - assert(!(tmp_condition_result_11 == NUITKA_BOOL_EXCEPTION)); - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - assert(tmp_condition_result_11 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_6:; - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_6; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_expression_name_22 = par_encoder_hidden_states; - tmp_subscript_name_6 = mod_consts[29]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_6, 0); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 903; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 903; - tmp_iter_arg_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[27]); - Py_DECREF(tmp_called_instance_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 903; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_17 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 903; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_17; - } - // Tried code: - { - PyObject *tmp_assign_source_18; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_18 = UNPACK_NEXT(tmp_unpack_3, 0, 3); - if (tmp_assign_source_18 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 903; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_18; - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_19 = UNPACK_NEXT(tmp_unpack_4, 1, 3); - if (tmp_assign_source_19 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 903; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_20 = UNPACK_NEXT(tmp_unpack_5, 2, 3); - if (tmp_assign_source_20 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 903; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_3 == NULL); - tmp_tuple_unpack_2__element_3 = tmp_assign_source_20; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 903; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[229]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 903; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_21 = tmp_tuple_unpack_2__element_1; - assert(var_encoder_batch_size == NULL); - Py_INCREF(tmp_assign_source_21); - var_encoder_batch_size = tmp_assign_source_21; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_22; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_22 = tmp_tuple_unpack_2__element_2; - assert(var_encoder_sequence_length == NULL); - Py_INCREF(tmp_assign_source_22); - var_encoder_sequence_length = tmp_assign_source_22; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_23 = tmp_tuple_unpack_2__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_23); - var__ = tmp_assign_source_23; - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - goto branch_end_6; - branch_no_6:; - // Tried code: - { - PyObject *tmp_assign_source_24; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_called_instance_3 = par_encoder_hidden_states; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 911; - tmp_iter_arg_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[27]); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 911; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_24 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 907; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - assert(tmp_tuple_unpack_3__source_iter == NULL); - tmp_tuple_unpack_3__source_iter = tmp_assign_source_24; - } - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_25 = UNPACK_NEXT(tmp_unpack_6, 0, 3); - if (tmp_assign_source_25 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 907; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_1 == NULL); - tmp_tuple_unpack_3__element_1 = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_26 = UNPACK_NEXT(tmp_unpack_7, 1, 3); - if (tmp_assign_source_26 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 907; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_2 == NULL); - tmp_tuple_unpack_3__element_2 = tmp_assign_source_26; - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_27 = UNPACK_NEXT(tmp_unpack_8, 2, 3); - if (tmp_assign_source_27 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 907; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_3 == NULL); - tmp_tuple_unpack_3__element_3 = tmp_assign_source_27; - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 907; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[229]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooooooooooooooo"; - exception_lineno = 907; - goto try_except_handler_7; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_28; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_28 = tmp_tuple_unpack_3__element_1; - assert(var_encoder_batch_size == NULL); - Py_INCREF(tmp_assign_source_28); - var_encoder_batch_size = tmp_assign_source_28; - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_29; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_29 = tmp_tuple_unpack_3__element_2; - assert(var_encoder_sequence_length == NULL); - Py_INCREF(tmp_assign_source_29); - var_encoder_sequence_length = tmp_assign_source_29; - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - { - PyObject *tmp_assign_source_30; - CHECK_OBJECT(tmp_tuple_unpack_3__element_3); - tmp_assign_source_30 = tmp_tuple_unpack_3__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_30); - var__ = tmp_assign_source_30; - } - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - branch_end_6:; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_tuple_element_4; - CHECK_OBJECT(var_encoder_batch_size); - tmp_tuple_element_4 = var_encoder_batch_size; - tmp_assign_source_31 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_assign_source_31, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_encoder_sequence_length); - tmp_tuple_element_4 = var_encoder_sequence_length; - PyTuple_SET_ITEM0(tmp_assign_source_31, 1, tmp_tuple_element_4); - assert(var_encoder_hidden_shape == NULL); - var_encoder_hidden_shape = tmp_assign_source_31; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_12; - PyObject *tmp_compexpr_right_12; - PyObject *tmp_type_arg_2; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_type_arg_2 = par_encoder_attention_mask; - tmp_compexpr_left_12 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_compexpr_left_12 == NULL)); - tmp_compexpr_right_12 = (PyObject *)&PyList_Type; - tmp_condition_result_12 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_12, tmp_compexpr_right_12); - Py_DECREF(tmp_compexpr_left_12); - assert(!(tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION)); - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_7:; - { - PyObject *tmp_assign_source_32; - // Tried code: - { - PyObject *tmp_assign_source_33; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_iter_arg_4 = par_encoder_attention_mask; - tmp_assign_source_33 = MAKE_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 915; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_8; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_34; - } - if (isFrameUnusable(cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2)) { - Py_XDECREF(cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2 = MAKE_FUNCTION_FRAME(codeobj_3b8e99b3705bb48cdf88a9a082001f87, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2->m_type_description == NULL); - frame_3b8e99b3705bb48cdf88a9a082001f87_2 = cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3b8e99b3705bb48cdf88a9a082001f87_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3b8e99b3705bb48cdf88a9a082001f87_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_35; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_35 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_35 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 915; - goto try_except_handler_9; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_36; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_36 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_mask; - outline_0_var_mask = tmp_assign_source_36; - Py_INCREF(outline_0_var_mask); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (par_self == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 916; - type_description_2 = "oo"; - goto try_except_handler_9; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(outline_0_var_mask); - tmp_args_element_name_5 = outline_0_var_mask; - frame_3b8e99b3705bb48cdf88a9a082001f87_2->m_frame.f_lineno = 916; - tmp_append_value_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[230], tmp_args_element_name_5); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 916; - type_description_2 = "oo"; - goto try_except_handler_9; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 915; - type_description_2 = "oo"; - goto try_except_handler_9; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 915; - type_description_2 = "oo"; - goto try_except_handler_9; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_32 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_32); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3b8e99b3705bb48cdf88a9a082001f87_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3b8e99b3705bb48cdf88a9a082001f87_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_8; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3b8e99b3705bb48cdf88a9a082001f87_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3b8e99b3705bb48cdf88a9a082001f87_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3b8e99b3705bb48cdf88a9a082001f87_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3b8e99b3705bb48cdf88a9a082001f87_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3b8e99b3705bb48cdf88a9a082001f87_2, - type_description_2, - outline_0_var_mask, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_3b8e99b3705bb48cdf88a9a082001f87_2 == cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2); - cache_frame_3b8e99b3705bb48cdf88a9a082001f87_2 = NULL; - } - - assertFrameObject(frame_3b8e99b3705bb48cdf88a9a082001f87_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto try_except_handler_8; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_XDECREF(outline_0_var_mask); - outline_0_var_mask = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_mask); - outline_0_var_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 915; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_encoder_extended_attention_mask == NULL); - var_encoder_extended_attention_mask = tmp_assign_source_32; - } - goto branch_end_7; - branch_no_7:; - { - bool tmp_condition_result_13; - PyObject *tmp_compexpr_left_13; - PyObject *tmp_compexpr_right_13; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_compexpr_left_13 = par_encoder_attention_mask; - tmp_compexpr_right_13 = Py_None; - tmp_condition_result_13 = (tmp_compexpr_left_13 == tmp_compexpr_right_13) ? true : false; - if (tmp_condition_result_13 != false) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 919; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[211]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 919; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_encoder_hidden_shape); - tmp_tuple_element_5 = var_encoder_hidden_shape; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_5); - tmp_dict_key_4 = mod_consts[70]; - if (var_device == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 919; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_4 = var_device; - tmp_kwargs_name_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 919; - tmp_assign_source_37 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 919; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_encoder_attention_mask; - assert(old != NULL); - par_encoder_attention_mask = tmp_assign_source_37; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 920; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_args_element_name_6 = par_encoder_attention_mask; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 920; - tmp_assign_source_38 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[230], tmp_args_element_name_6); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 920; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_encoder_extended_attention_mask == NULL); - var_encoder_extended_attention_mask = tmp_assign_source_38; - } - goto branch_end_8; - branch_no_8:; - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_instance_6; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 924; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = par_self; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_args_element_name_7 = par_encoder_attention_mask; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 924; - tmp_assign_source_39 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_6, mod_consts[230], tmp_args_element_name_7); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 924; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_encoder_extended_attention_mask == NULL); - var_encoder_extended_attention_mask = tmp_assign_source_39; - } - branch_end_8:; - branch_end_7:; - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assign_source_40; - tmp_assign_source_40 = Py_None; - assert(var_encoder_extended_attention_mask == NULL); - Py_INCREF(tmp_assign_source_40); - var_encoder_extended_attention_mask = tmp_assign_source_40; - } - branch_end_5:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_25; - PyObject *tmp_expression_name_26; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 935; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_24 = par_self; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[231]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 935; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_head_mask); - tmp_args_element_name_8 = par_head_mask; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 935; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_26 = par_self; - tmp_expression_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[5]); - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 935; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[138]); - Py_DECREF(tmp_expression_name_25); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 935; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 935; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_41 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 935; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_head_mask; - par_head_mask = tmp_assign_source_41; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 937; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[195]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 937; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_embedding_output == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[225]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 938; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_6 = var_embedding_output; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_6); - tmp_dict_key_5 = mod_consts[128]; - CHECK_OBJECT(var_extended_attention_mask); - tmp_dict_value_5 = var_extended_attention_mask; - tmp_kwargs_name_5 = _PyDict_NewPresized( 10 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[129]; - CHECK_OBJECT(par_head_mask); - tmp_dict_value_5 = par_head_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[60]; - if (par_encoder_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[60]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 941; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_5 = par_encoder_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[155]; - if (var_encoder_extended_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[232]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 942; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_5 = var_encoder_extended_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[144]; - CHECK_OBJECT(par_past_key_values); - tmp_dict_value_5 = par_past_key_values; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[147]; - CHECK_OBJECT(par_use_cache); - tmp_dict_value_5 = par_use_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[123]; - CHECK_OBJECT(par_output_attentions); - tmp_dict_value_5 = par_output_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[142]; - CHECK_OBJECT(par_output_hidden_states); - tmp_dict_value_5 = par_output_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[233]; - CHECK_OBJECT(par_return_dict); - tmp_dict_value_5 = par_return_dict; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[156]; - CHECK_OBJECT(var_query_length); - tmp_dict_value_5 = var_query_length; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_5); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 937; - tmp_assign_source_42 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 937; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_encoder_outputs == NULL); - var_encoder_outputs = tmp_assign_source_42; - } - { - PyObject *tmp_assign_source_43; - PyObject *tmp_expression_name_28; - PyObject *tmp_subscript_name_7; - CHECK_OBJECT(var_encoder_outputs); - tmp_expression_name_28 = var_encoder_outputs; - tmp_subscript_name_7 = mod_consts[29]; - tmp_assign_source_43 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_28, tmp_subscript_name_7, 0); - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 950; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_sequence_output == NULL); - var_sequence_output = tmp_assign_source_43; - } - { - PyObject *tmp_assign_source_44; - bool tmp_condition_result_14; - PyObject *tmp_compexpr_left_14; - PyObject *tmp_compexpr_right_14; - PyObject *tmp_expression_name_29; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 952; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = par_self; - tmp_compexpr_left_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[197]); - if (tmp_compexpr_left_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 952; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_14 = Py_None; - tmp_condition_result_14 = (tmp_compexpr_left_14 != tmp_compexpr_right_14) ? true : false; - Py_DECREF(tmp_compexpr_left_14); - if (tmp_condition_result_14 != false) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 952; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_7 = par_self; - CHECK_OBJECT(var_sequence_output); - tmp_args_element_name_10 = var_sequence_output; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 952; - tmp_assign_source_44 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[197], tmp_args_element_name_10); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 952; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_assign_source_44 = Py_None; - Py_INCREF(tmp_assign_source_44); - condexpr_end_6:; - assert(var_pooled_output == NULL); - var_pooled_output = tmp_assign_source_44; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_operand_name_1; - if (par_return_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[233]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 955; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_1 = par_return_dict; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 955; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_15 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_left_name_3; - PyObject *tmp_tuple_element_7; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_30; - PyObject *tmp_subscript_name_8; - if (var_sequence_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[234]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 956; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_7 = var_sequence_output; - tmp_left_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_left_name_3, 0, tmp_tuple_element_7); - CHECK_OBJECT(var_pooled_output); - tmp_tuple_element_7 = var_pooled_output; - PyTuple_SET_ITEM0(tmp_left_name_3, 1, tmp_tuple_element_7); - CHECK_OBJECT(var_encoder_outputs); - tmp_expression_name_30 = var_encoder_outputs; - tmp_subscript_name_8 = mod_consts[102]; - tmp_right_name_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_30, tmp_subscript_name_8); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 956; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 956; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_9:; - { - PyObject *tmp_called_name_8; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[235]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[235]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 958; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_6 = mod_consts[161]; - if (var_sequence_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[234]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 959; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_6 = var_sequence_output; - tmp_kwargs_name_6 = _PyDict_NewPresized( 6 ); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_expression_name_32; - PyObject *tmp_expression_name_33; - PyObject *tmp_expression_name_34; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[236]; - CHECK_OBJECT(var_pooled_output); - tmp_dict_value_6 = var_pooled_output; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[144]; - CHECK_OBJECT(var_encoder_outputs); - tmp_expression_name_31 = var_encoder_outputs; - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[144]); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 961; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[61]; - if (var_encoder_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[237]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 962; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_expression_name_32 = var_encoder_outputs; - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[61]); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 962; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[162]; - if (var_encoder_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[237]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 963; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_expression_name_33 = var_encoder_outputs; - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[162]); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 963; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[163]; - if (var_encoder_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[237]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 964; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_expression_name_34 = var_encoder_outputs; - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[163]); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 964; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_3; - // Exception handling pass through code for dict_build: - dict_build_exception_3:; - Py_DECREF(tmp_kwargs_name_6); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_3:; - frame_960ad736510918980c376a071f656626->m_frame.f_lineno = 958; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_8, tmp_kwargs_name_6); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 958; - type_description_1 = "oooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_960ad736510918980c376a071f656626); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_960ad736510918980c376a071f656626); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_960ad736510918980c376a071f656626); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_960ad736510918980c376a071f656626, exception_lineno); - } else if (exception_tb->tb_frame != &frame_960ad736510918980c376a071f656626->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_960ad736510918980c376a071f656626, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_960ad736510918980c376a071f656626, - type_description_1, - par_self, - par_input_ids, - par_attention_mask, - par_position_ids, - par_head_mask, - par_query_embeds, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_past_key_values, - par_use_cache, - par_output_attentions, - par_output_hidden_states, - par_return_dict, - par_is_decoder, - var_past_key_values_length, - var_query_length, - var_embedding_output, - var_input_shape, - var_batch_size, - var_seq_length, - var_device, - var_extended_attention_mask, - var_encoder_batch_size, - var_encoder_sequence_length, - var__, - var_encoder_hidden_shape, - var_encoder_extended_attention_mask, - var_encoder_outputs, - var_sequence_output, - var_pooled_output - ); - - - // Release cached frame if used for exception. - if (frame_960ad736510918980c376a071f656626 == cache_frame_960ad736510918980c376a071f656626) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_960ad736510918980c376a071f656626); - cache_frame_960ad736510918980c376a071f656626 = NULL; - } - - assertFrameObject(frame_960ad736510918980c376a071f656626); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - Py_XDECREF(par_is_decoder); - par_is_decoder = NULL; - Py_XDECREF(var_past_key_values_length); - var_past_key_values_length = NULL; - Py_XDECREF(var_query_length); - var_query_length = NULL; - Py_XDECREF(var_embedding_output); - var_embedding_output = NULL; - Py_XDECREF(var_input_shape); - var_input_shape = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_extended_attention_mask); - var_extended_attention_mask = NULL; - Py_XDECREF(var_encoder_batch_size); - var_encoder_batch_size = NULL; - Py_XDECREF(var_encoder_sequence_length); - var_encoder_sequence_length = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_encoder_hidden_shape); - var_encoder_hidden_shape = NULL; - Py_XDECREF(var_encoder_extended_attention_mask); - var_encoder_extended_attention_mask = NULL; - Py_XDECREF(var_encoder_outputs); - var_encoder_outputs = NULL; - Py_XDECREF(var_sequence_output); - var_sequence_output = NULL; - CHECK_OBJECT(var_pooled_output); - Py_DECREF(var_pooled_output); - var_pooled_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - Py_XDECREF(par_is_decoder); - par_is_decoder = NULL; - Py_XDECREF(var_past_key_values_length); - var_past_key_values_length = NULL; - Py_XDECREF(var_query_length); - var_query_length = NULL; - Py_XDECREF(var_embedding_output); - var_embedding_output = NULL; - Py_XDECREF(var_input_shape); - var_input_shape = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_extended_attention_mask); - var_extended_attention_mask = NULL; - Py_XDECREF(var_encoder_batch_size); - var_encoder_batch_size = NULL; - Py_XDECREF(var_encoder_sequence_length); - var_encoder_sequence_length = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_encoder_hidden_shape); - var_encoder_hidden_shape = NULL; - Py_XDECREF(var_encoder_extended_attention_mask); - var_encoder_extended_attention_mask = NULL; - Py_XDECREF(var_encoder_outputs); - var_encoder_outputs = NULL; - Py_XDECREF(var_sequence_output); - var_sequence_output = NULL; - Py_XDECREF(var_pooled_output); - var_pooled_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__40___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_3fed784111b2af0b6a6ffc26ac50d650; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_3fed784111b2af0b6a6ffc26ac50d650 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3fed784111b2af0b6a6ffc26ac50d650)) { - Py_XDECREF(cache_frame_3fed784111b2af0b6a6ffc26ac50d650); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3fed784111b2af0b6a6ffc26ac50d650 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3fed784111b2af0b6a6ffc26ac50d650 = MAKE_FUNCTION_FRAME(codeobj_3fed784111b2af0b6a6ffc26ac50d650, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3fed784111b2af0b6a6ffc26ac50d650->m_type_description == NULL); - frame_3fed784111b2af0b6a6ffc26ac50d650 = cache_frame_3fed784111b2af0b6a6ffc26ac50d650; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3fed784111b2af0b6a6ffc26ac50d650); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3fed784111b2af0b6a6ffc26ac50d650) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 974; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 974; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_3fed784111b2af0b6a6ffc26ac50d650->m_frame.f_lineno = 974; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[1], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 974; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 976; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 976; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_config; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[240]); - frame_3fed784111b2af0b6a6ffc26ac50d650->m_frame.f_lineno = 976; - tmp_assattr_name_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 976; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[241], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 976; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[242]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[242]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 977; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 977; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_config; - frame_3fed784111b2af0b6a6ffc26ac50d650->m_frame.f_lineno = 977; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 977; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[243], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 977; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - frame_3fed784111b2af0b6a6ffc26ac50d650->m_frame.f_lineno = 979; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[198]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 979; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3fed784111b2af0b6a6ffc26ac50d650); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3fed784111b2af0b6a6ffc26ac50d650); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3fed784111b2af0b6a6ffc26ac50d650, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3fed784111b2af0b6a6ffc26ac50d650->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3fed784111b2af0b6a6ffc26ac50d650, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3fed784111b2af0b6a6ffc26ac50d650, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_3fed784111b2af0b6a6ffc26ac50d650 == cache_frame_3fed784111b2af0b6a6ffc26ac50d650) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3fed784111b2af0b6a6ffc26ac50d650); - cache_frame_3fed784111b2af0b6a6ffc26ac50d650 = NULL; - } - - assertFrameObject(frame_3fed784111b2af0b6a6ffc26ac50d650); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__41_get_output_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_d801348fdc3b19f91ac75fd50193d3b0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_d801348fdc3b19f91ac75fd50193d3b0 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d801348fdc3b19f91ac75fd50193d3b0)) { - Py_XDECREF(cache_frame_d801348fdc3b19f91ac75fd50193d3b0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d801348fdc3b19f91ac75fd50193d3b0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d801348fdc3b19f91ac75fd50193d3b0 = MAKE_FUNCTION_FRAME(codeobj_d801348fdc3b19f91ac75fd50193d3b0, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d801348fdc3b19f91ac75fd50193d3b0->m_type_description == NULL); - frame_d801348fdc3b19f91ac75fd50193d3b0 = cache_frame_d801348fdc3b19f91ac75fd50193d3b0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d801348fdc3b19f91ac75fd50193d3b0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d801348fdc3b19f91ac75fd50193d3b0) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[243]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 982; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[181]); - Py_DECREF(tmp_expression_name_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 982; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[176]); - Py_DECREF(tmp_expression_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 982; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d801348fdc3b19f91ac75fd50193d3b0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d801348fdc3b19f91ac75fd50193d3b0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d801348fdc3b19f91ac75fd50193d3b0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d801348fdc3b19f91ac75fd50193d3b0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d801348fdc3b19f91ac75fd50193d3b0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d801348fdc3b19f91ac75fd50193d3b0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d801348fdc3b19f91ac75fd50193d3b0, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_d801348fdc3b19f91ac75fd50193d3b0 == cache_frame_d801348fdc3b19f91ac75fd50193d3b0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d801348fdc3b19f91ac75fd50193d3b0); - cache_frame_d801348fdc3b19f91ac75fd50193d3b0 = NULL; - } - - assertFrameObject(frame_d801348fdc3b19f91ac75fd50193d3b0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__42_set_output_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_new_embeddings = python_pars[1]; - struct Nuitka_FrameObject *frame_74af6475e06de1d3e4323696e9d6b171; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_74af6475e06de1d3e4323696e9d6b171 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_74af6475e06de1d3e4323696e9d6b171)) { - Py_XDECREF(cache_frame_74af6475e06de1d3e4323696e9d6b171); - -#if _DEBUG_REFCOUNTS - if (cache_frame_74af6475e06de1d3e4323696e9d6b171 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_74af6475e06de1d3e4323696e9d6b171 = MAKE_FUNCTION_FRAME(codeobj_74af6475e06de1d3e4323696e9d6b171, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_74af6475e06de1d3e4323696e9d6b171->m_type_description == NULL); - frame_74af6475e06de1d3e4323696e9d6b171 = cache_frame_74af6475e06de1d3e4323696e9d6b171; - - // Push the new frame as the currently active one. - pushFrameStack(frame_74af6475e06de1d3e4323696e9d6b171); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_74af6475e06de1d3e4323696e9d6b171) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_new_embeddings); - tmp_assattr_name_1 = par_new_embeddings; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[243]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 985; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[181]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 985; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[176], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 985; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_74af6475e06de1d3e4323696e9d6b171); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_74af6475e06de1d3e4323696e9d6b171); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_74af6475e06de1d3e4323696e9d6b171, exception_lineno); - } else if (exception_tb->tb_frame != &frame_74af6475e06de1d3e4323696e9d6b171->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_74af6475e06de1d3e4323696e9d6b171, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_74af6475e06de1d3e4323696e9d6b171, - type_description_1, - par_self, - par_new_embeddings - ); - - - // Release cached frame if used for exception. - if (frame_74af6475e06de1d3e4323696e9d6b171 == cache_frame_74af6475e06de1d3e4323696e9d6b171) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_74af6475e06de1d3e4323696e9d6b171); - cache_frame_74af6475e06de1d3e4323696e9d6b171 = NULL; - } - - assertFrameObject(frame_74af6475e06de1d3e4323696e9d6b171); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_new_embeddings); - Py_DECREF(par_new_embeddings); - par_new_embeddings = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_new_embeddings); - Py_DECREF(par_new_embeddings); - par_new_embeddings = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__43_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_head_mask = python_pars[4]; - PyObject *par_query_embeds = python_pars[5]; - PyObject *par_encoder_hidden_states = python_pars[6]; - PyObject *par_encoder_attention_mask = python_pars[7]; - PyObject *par_labels = python_pars[8]; - PyObject *par_past_key_values = python_pars[9]; - PyObject *par_use_cache = python_pars[10]; - PyObject *par_output_attentions = python_pars[11]; - PyObject *par_output_hidden_states = python_pars[12]; - PyObject *par_return_dict = python_pars[13]; - PyObject *par_return_logits = python_pars[14]; - PyObject *par_is_decoder = python_pars[15]; - PyObject *par_reduction = python_pars[16]; - PyObject *var_outputs = NULL; - PyObject *var_sequence_output = NULL; - PyObject *var_prediction_scores = NULL; - PyObject *var_lm_loss = NULL; - PyObject *var_shifted_prediction_scores = NULL; - PyObject *var_loss_fct = NULL; - PyObject *var_output = NULL; - struct Nuitka_FrameObject *frame_7c295c83a4e918fa0e86389ee3693174; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_7c295c83a4e918fa0e86389ee3693174 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7c295c83a4e918fa0e86389ee3693174)) { - Py_XDECREF(cache_frame_7c295c83a4e918fa0e86389ee3693174); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7c295c83a4e918fa0e86389ee3693174 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7c295c83a4e918fa0e86389ee3693174 = MAKE_FUNCTION_FRAME(codeobj_7c295c83a4e918fa0e86389ee3693174, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7c295c83a4e918fa0e86389ee3693174->m_type_description == NULL); - frame_7c295c83a4e918fa0e86389ee3693174 = cache_frame_7c295c83a4e918fa0e86389ee3693174; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7c295c83a4e918fa0e86389ee3693174); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7c295c83a4e918fa0e86389ee3693174) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_return_dict); - tmp_compexpr_left_1 = par_return_dict; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_return_dict); - tmp_assign_source_1 = par_return_dict; - Py_INCREF(tmp_assign_source_1); - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[5]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1039; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[221]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1039; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - { - PyObject *old = par_return_dict; - assert(old != NULL); - par_return_dict = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_labels); - tmp_compexpr_left_2 = par_labels; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = Py_False; - { - PyObject *old = par_use_cache; - assert(old != NULL); - par_use_cache = tmp_assign_source_2; - Py_INCREF(par_use_cache); - Py_DECREF(old); - } - - } - branch_no_1:; - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(par_past_key_values); - tmp_compexpr_left_3 = par_past_key_values; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - { - PyObject *old = par_query_embeds; - assert(old != NULL); - par_query_embeds = tmp_assign_source_3; - Py_INCREF(par_query_embeds); - Py_DECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1046; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[241]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1046; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input_ids); - tmp_tuple_element_1 = par_input_ids; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[128]; - CHECK_OBJECT(par_attention_mask); - tmp_dict_value_1 = par_attention_mask; - tmp_kwargs_name_1 = _PyDict_NewPresized( 12 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - CHECK_OBJECT(par_position_ids); - tmp_dict_value_1 = par_position_ids; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[129]; - CHECK_OBJECT(par_head_mask); - tmp_dict_value_1 = par_head_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[223]; - CHECK_OBJECT(par_query_embeds); - tmp_dict_value_1 = par_query_embeds; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[60]; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_dict_value_1 = par_encoder_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[155]; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_dict_value_1 = par_encoder_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[144]; - CHECK_OBJECT(par_past_key_values); - tmp_dict_value_1 = par_past_key_values; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[147]; - CHECK_OBJECT(par_use_cache); - tmp_dict_value_1 = par_use_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[123]; - CHECK_OBJECT(par_output_attentions); - tmp_dict_value_1 = par_output_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[142]; - CHECK_OBJECT(par_output_hidden_states); - tmp_dict_value_1 = par_output_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[233]; - CHECK_OBJECT(par_return_dict); - tmp_dict_value_1 = par_return_dict; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[244]; - CHECK_OBJECT(par_is_decoder); - tmp_dict_value_1 = par_is_decoder; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1046; - tmp_assign_source_4 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1046; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_outputs); - tmp_expression_name_4 = var_outputs; - tmp_subscript_name_1 = mod_consts[29]; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_1, 0); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1062; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_sequence_output == NULL); - var_sequence_output = tmp_assign_source_5; - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1063; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_4 = par_query_embeds; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_2; - PyObject *tmp_subscript_name_3; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_outputs); - tmp_expression_name_6 = var_outputs; - tmp_subscript_name_2 = mod_consts[29]; - tmp_expression_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_2, 0); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1064; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[30]; - tmp_subscript_name_3 = PyTuple_New(3); - { - PyObject *tmp_start_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_4; - PyObject *tmp_stop_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_3, 0, tmp_tuple_element_2); - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1064; - type_description_1 = "oooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_8 = par_query_embeds; - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[132]); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1064; - type_description_1 = "oooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_subscript_name_4 = mod_consts[28]; - tmp_start_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_4, 1); - Py_DECREF(tmp_expression_name_7); - if (tmp_start_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1064; - type_description_1 = "oooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_stop_name_1 = Py_None; - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_start_name_1); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_3, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[30]; - PyTuple_SET_ITEM0(tmp_subscript_name_3, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_expression_name_5); - Py_DECREF(tmp_subscript_name_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_3); - Py_DECREF(tmp_expression_name_5); - Py_DECREF(tmp_subscript_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1064; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_sequence_output; - assert(old != NULL); - var_sequence_output = tmp_assign_source_6; - Py_DECREF(old); - } - - } - branch_no_3:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1066; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(var_sequence_output); - tmp_args_element_name_1 = var_sequence_output; - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1066; - tmp_assign_source_7 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[243], tmp_args_element_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1066; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_scores == NULL); - var_prediction_scores = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_5; - int tmp_truth_name_1; - CHECK_OBJECT(par_return_logits); - tmp_truth_name_1 = CHECK_IF_TRUE(par_return_logits); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1068; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_5; - CHECK_OBJECT(var_prediction_scores); - tmp_expression_name_9 = var_prediction_scores; - tmp_subscript_name_5 = mod_consts[245]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_5); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1069; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1069; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[89]); - Py_DECREF(tmp_called_instance_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1069; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_4:; - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = Py_None; - assert(var_lm_loss == NULL); - Py_INCREF(tmp_assign_source_8); - var_lm_loss = tmp_assign_source_8; - } - { - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(par_labels); - tmp_compexpr_left_5 = par_labels; - tmp_compexpr_right_5 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_5 != tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_6; - CHECK_OBJECT(var_prediction_scores); - tmp_expression_name_10 = var_prediction_scores; - tmp_subscript_name_6 = mod_consts[245]; - tmp_called_instance_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_6); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1074; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1074; - tmp_assign_source_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[89]); - Py_DECREF(tmp_called_instance_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1074; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_shifted_prediction_scores == NULL); - var_shifted_prediction_scores = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_7; - CHECK_OBJECT(par_labels); - tmp_expression_name_11 = par_labels; - tmp_subscript_name_7 = mod_consts[246]; - tmp_called_instance_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_7); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1075; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1075; - tmp_assign_source_10 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[89]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1075; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_labels; - assert(old != NULL); - par_labels = tmp_assign_source_10; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[247]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[247]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1076; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[248]; - CHECK_OBJECT(par_reduction); - tmp_dict_value_2 = par_reduction; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[249]; - tmp_dict_value_2 = mod_consts[250]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1076; - tmp_assign_source_11 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1076; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss_fct == NULL); - var_loss_fct = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(var_loss_fct); - tmp_called_name_3 = var_loss_fct; - CHECK_OBJECT(var_shifted_prediction_scores); - tmp_expression_name_12 = var_shifted_prediction_scores; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[56]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1078; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = mod_consts[126]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1078; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_self; - tmp_expression_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[5]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 1078; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[4]); - Py_DECREF(tmp_expression_name_13); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 1078; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1078; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_4); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1078; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_labels); - tmp_called_instance_5 = par_labels; - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1079; - tmp_args_element_name_5 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[251], 0) - ); - - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 1079; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1077; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_5}; - tmp_assign_source_12 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1077; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_lm_loss; - assert(old != NULL); - var_lm_loss = tmp_assign_source_12; - Py_DECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_tmp_condition_result_7_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_reduction); - tmp_compexpr_left_6 = par_reduction; - tmp_compexpr_right_6 = mod_consts[252]; - tmp_tmp_condition_result_7_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_tmp_condition_result_7_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1081; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_7_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_7_object_1); - - exception_lineno = 1081; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_7 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_7_object_1); - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_instance_6; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_7; - CHECK_OBJECT(var_lm_loss); - tmp_expression_name_15 = var_lm_loss; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[56]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1082; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_prediction_scores); - tmp_called_instance_7 = var_prediction_scores; - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1082; - tmp_args_element_name_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_7, - mod_consts[27], - &PyTuple_GET_ITEM(mod_consts[253], 0) - ); - - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 1082; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = mod_consts[126]; - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1082; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_called_instance_6 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1082; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1082; - tmp_assign_source_13 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[254], - &PyTuple_GET_ITEM(mod_consts[255], 0) - ); - - Py_DECREF(tmp_called_instance_6); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1082; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_lm_loss; - var_lm_loss = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - branch_no_6:; - branch_no_5:; - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_operand_name_1; - if (par_return_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[233]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1084; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_1 = par_return_dict; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1084; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_8 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_8; - if (var_prediction_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[256]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1085; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = var_prediction_scores; - tmp_left_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_outputs); - tmp_expression_name_16 = var_outputs; - tmp_subscript_name_8 = mod_consts[257]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_16, tmp_subscript_name_8); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 1085; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_14 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1085; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_14; - } - { - bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - PyObject *tmp_left_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_right_name_2; - if (var_lm_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[258]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1086; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_7 = var_lm_loss; - tmp_compexpr_right_7 = Py_None; - tmp_condition_result_9 = (tmp_compexpr_left_7 != tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_9 != false) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - if (var_lm_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[258]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1086; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_4 = var_lm_loss; - tmp_left_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_output); - tmp_right_name_2 = var_output; - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1086; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_2; - condexpr_false_2:; - CHECK_OBJECT(var_output); - tmp_return_value = var_output; - Py_INCREF(tmp_return_value); - condexpr_end_2:; - goto frame_return_exit_1; - } - branch_no_7:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[259]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[259]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1088; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[260]; - if (var_lm_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[258]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1089; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_3 = var_lm_loss; - tmp_kwargs_name_3 = _PyDict_NewPresized( 6 ); - { - PyObject *tmp_expression_name_17; - PyObject *tmp_expression_name_18; - PyObject *tmp_expression_name_19; - PyObject *tmp_expression_name_20; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[261]; - if (var_prediction_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[256]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1090; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_3 = var_prediction_scores; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[144]; - CHECK_OBJECT(var_outputs); - tmp_expression_name_17 = var_outputs; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[144]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1091; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[61]; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[136]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1092; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_18 = var_outputs; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[61]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1092; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[162]; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[136]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1093; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_19 = var_outputs; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[162]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1093; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[163]; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[136]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1094; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_20 = var_outputs; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[163]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1094; - type_description_1 = "oooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_3); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_7c295c83a4e918fa0e86389ee3693174->m_frame.f_lineno = 1088; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1088; - type_description_1 = "oooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7c295c83a4e918fa0e86389ee3693174); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7c295c83a4e918fa0e86389ee3693174); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7c295c83a4e918fa0e86389ee3693174); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7c295c83a4e918fa0e86389ee3693174, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7c295c83a4e918fa0e86389ee3693174->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7c295c83a4e918fa0e86389ee3693174, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7c295c83a4e918fa0e86389ee3693174, - type_description_1, - par_self, - par_input_ids, - par_attention_mask, - par_position_ids, - par_head_mask, - par_query_embeds, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_labels, - par_past_key_values, - par_use_cache, - par_output_attentions, - par_output_hidden_states, - par_return_dict, - par_return_logits, - par_is_decoder, - par_reduction, - var_outputs, - var_sequence_output, - var_prediction_scores, - var_lm_loss, - var_shifted_prediction_scores, - var_loss_fct, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_7c295c83a4e918fa0e86389ee3693174 == cache_frame_7c295c83a4e918fa0e86389ee3693174) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7c295c83a4e918fa0e86389ee3693174); - cache_frame_7c295c83a4e918fa0e86389ee3693174 = NULL; - } - - assertFrameObject(frame_7c295c83a4e918fa0e86389ee3693174); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_labels); - par_labels = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - CHECK_OBJECT(par_return_logits); - Py_DECREF(par_return_logits); - par_return_logits = NULL; - Py_XDECREF(par_is_decoder); - par_is_decoder = NULL; - CHECK_OBJECT(par_reduction); - Py_DECREF(par_reduction); - par_reduction = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_sequence_output); - var_sequence_output = NULL; - Py_XDECREF(var_prediction_scores); - var_prediction_scores = NULL; - Py_XDECREF(var_lm_loss); - var_lm_loss = NULL; - Py_XDECREF(var_shifted_prediction_scores); - var_shifted_prediction_scores = NULL; - Py_XDECREF(var_loss_fct); - var_loss_fct = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_labels); - par_labels = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - CHECK_OBJECT(par_return_logits); - Py_DECREF(par_return_logits); - par_return_logits = NULL; - Py_XDECREF(par_is_decoder); - par_is_decoder = NULL; - CHECK_OBJECT(par_reduction); - Py_DECREF(par_reduction); - par_reduction = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_sequence_output); - var_sequence_output = NULL; - Py_XDECREF(var_prediction_scores); - var_prediction_scores = NULL; - Py_XDECREF(var_lm_loss); - var_lm_loss = NULL; - Py_XDECREF(var_shifted_prediction_scores); - var_shifted_prediction_scores = NULL; - Py_XDECREF(var_loss_fct); - var_loss_fct = NULL; - Py_XDECREF(var_output); - var_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__44_prepare_inputs_for_generation(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_query_embeds = python_pars[2]; - PyObject *par_past = python_pars[3]; - PyObject *par_attention_mask = python_pars[4]; - PyObject *par_model_kwargs = python_pars[5]; - PyObject *var_query_mask = NULL; - struct Nuitka_FrameObject *frame_ded4b18b08a0de899e2560321c2271bc; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_ded4b18b08a0de899e2560321c2271bc = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ded4b18b08a0de899e2560321c2271bc)) { - Py_XDECREF(cache_frame_ded4b18b08a0de899e2560321c2271bc); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ded4b18b08a0de899e2560321c2271bc == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ded4b18b08a0de899e2560321c2271bc = MAKE_FUNCTION_FRAME(codeobj_ded4b18b08a0de899e2560321c2271bc, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ded4b18b08a0de899e2560321c2271bc->m_type_description == NULL); - frame_ded4b18b08a0de899e2560321c2271bc = cache_frame_ded4b18b08a0de899e2560321c2271bc; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ded4b18b08a0de899e2560321c2271bc); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ded4b18b08a0de899e2560321c2271bc) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_1 = par_attention_mask; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_input_ids); - tmp_expression_name_1 = par_input_ids; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[263]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1102; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_input_ids == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1102; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_input_ids; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[132]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 1102; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_ded4b18b08a0de899e2560321c2271bc->m_frame.f_lineno = 1102; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1102; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_attention_mask; - assert(old != NULL); - par_attention_mask = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_1; - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1103; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_input_ids; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[263]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1103; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_query_embeds); - tmp_expression_name_5 = par_query_embeds; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[132]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 1103; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[54]; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_4); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 1103; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_ded4b18b08a0de899e2560321c2271bc->m_frame.f_lineno = 1103; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1103; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_query_mask == NULL); - var_query_mask = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_list_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1104; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[33]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1104; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_query_mask); - tmp_list_element_1 = var_query_mask; - tmp_tuple_element_1 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_1, 0, tmp_list_element_1); - CHECK_OBJECT(par_attention_mask); - tmp_list_element_1 = par_attention_mask; - PyList_SET_ITEM0(tmp_tuple_element_1, 1, tmp_list_element_1); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[84]); - frame_ded4b18b08a0de899e2560321c2271bc->m_frame.f_lineno = 1104; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1104; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_attention_mask; - par_attention_mask = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_past); - tmp_compexpr_left_2 = par_past; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_2; - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1108; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_input_ids; - tmp_subscript_name_2 = mod_consts[264]; - tmp_assign_source_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1108; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input_ids; - par_input_ids = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_dict_key_1 = mod_consts[32]; - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1111; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_1 = par_input_ids; - tmp_return_value = _PyDict_NewPresized( 7 ); - { - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[223]; - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1112; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_query_embeds; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[128]; - CHECK_OBJECT(par_attention_mask); - tmp_dict_value_1 = par_attention_mask; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[144]; - CHECK_OBJECT(par_past); - tmp_dict_value_1 = par_past; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[60]; - CHECK_OBJECT(par_model_kwargs); - tmp_called_instance_1 = par_model_kwargs; - frame_ded4b18b08a0de899e2560321c2271bc->m_frame.f_lineno = 1115; - tmp_dict_value_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[265], - &PyTuple_GET_ITEM(mod_consts[266], 0) - ); - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1115; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[155]; - if (par_model_kwargs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[267]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1116; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - - tmp_called_instance_2 = par_model_kwargs; - frame_ded4b18b08a0de899e2560321c2271bc->m_frame.f_lineno = 1116; - tmp_dict_value_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[265], - &PyTuple_GET_ITEM(mod_consts[268], 0) - ); - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1116; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[244]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ded4b18b08a0de899e2560321c2271bc); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ded4b18b08a0de899e2560321c2271bc); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ded4b18b08a0de899e2560321c2271bc); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ded4b18b08a0de899e2560321c2271bc, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ded4b18b08a0de899e2560321c2271bc->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ded4b18b08a0de899e2560321c2271bc, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ded4b18b08a0de899e2560321c2271bc, - type_description_1, - par_self, - par_input_ids, - par_query_embeds, - par_past, - par_attention_mask, - par_model_kwargs, - var_query_mask - ); - - - // Release cached frame if used for exception. - if (frame_ded4b18b08a0de899e2560321c2271bc == cache_frame_ded4b18b08a0de899e2560321c2271bc) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ded4b18b08a0de899e2560321c2271bc); - cache_frame_ded4b18b08a0de899e2560321c2271bc = NULL; - } - - assertFrameObject(frame_ded4b18b08a0de899e2560321c2271bc); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - CHECK_OBJECT(par_past); - Py_DECREF(par_past); - par_past = NULL; - CHECK_OBJECT(par_attention_mask); - Py_DECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_model_kwargs); - par_model_kwargs = NULL; - Py_XDECREF(var_query_mask); - var_query_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - CHECK_OBJECT(par_past); - Py_DECREF(par_past); - par_past = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_model_kwargs); - par_model_kwargs = NULL; - Py_XDECREF(var_query_mask); - var_query_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__45__reorder_cache(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_past = python_pars[1]; - struct Nuitka_CellObject *par_beam_idx = Nuitka_Cell_New1(python_pars[2]); - PyObject *var_reordered_past = NULL; - PyObject *var_layer_past = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_genexpr_1__$0 = NULL; - struct Nuitka_FrameObject *frame_be03d43782ce0c74a753536e9a4f0743; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_be03d43782ce0c74a753536e9a4f0743 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[141]; - assert(var_reordered_past == NULL); - Py_INCREF(tmp_assign_source_1); - var_reordered_past = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_be03d43782ce0c74a753536e9a4f0743)) { - Py_XDECREF(cache_frame_be03d43782ce0c74a753536e9a4f0743); - -#if _DEBUG_REFCOUNTS - if (cache_frame_be03d43782ce0c74a753536e9a4f0743 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_be03d43782ce0c74a753536e9a4f0743 = MAKE_FUNCTION_FRAME(codeobj_be03d43782ce0c74a753536e9a4f0743, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_be03d43782ce0c74a753536e9a4f0743->m_type_description == NULL); - frame_be03d43782ce0c74a753536e9a4f0743 = cache_frame_be03d43782ce0c74a753536e9a4f0743; - - // Push the new frame as the currently active one. - pushFrameStack(frame_be03d43782ce0c74a753536e9a4f0743); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_be03d43782ce0c74a753536e9a4f0743) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_past); - tmp_iter_arg_1 = par_past; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1122; - type_description_1 = "oocoo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oocoo"; - exception_lineno = 1122; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_layer_past; - var_layer_past = tmp_assign_source_4; - Py_INCREF(var_layer_past); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_arg_1; - if (var_reordered_past == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[269]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1123; - type_description_1 = "oocoo"; - goto try_except_handler_2; - } - - tmp_left_name_1 = var_reordered_past; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_layer_past); - tmp_iter_arg_2 = var_layer_past; - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1124; - type_description_1 = "oocoo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_genexpr_1__$0; - tmp_genexpr_1__$0 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_1[2]; - - tmp_closure_1[0] = par_beam_idx; - Py_INCREF(tmp_closure_1[0]); - tmp_closure_1[1] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_tuple_arg_1 = MAKE_GENERATOR_models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr(tmp_closure_1); - - goto try_return_handler_3; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_1; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - tmp_tuple_element_1 = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1124; - type_description_1 = "oocoo"; - goto try_except_handler_2; - } - tmp_right_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - tmp_result = BINARY_OPERATION_ADD_TUPLE_TUPLE_INPLACE(&tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_5 = tmp_left_name_1; - var_reordered_past = tmp_assign_source_5; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1122; - type_description_1 = "oocoo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_reordered_past == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[269]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1128; - type_description_1 = "oocoo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_reordered_past; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be03d43782ce0c74a753536e9a4f0743); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be03d43782ce0c74a753536e9a4f0743); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be03d43782ce0c74a753536e9a4f0743); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_be03d43782ce0c74a753536e9a4f0743, exception_lineno); - } else if (exception_tb->tb_frame != &frame_be03d43782ce0c74a753536e9a4f0743->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_be03d43782ce0c74a753536e9a4f0743, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_be03d43782ce0c74a753536e9a4f0743, - type_description_1, - par_self, - par_past, - par_beam_idx, - var_reordered_past, - var_layer_past - ); - - - // Release cached frame if used for exception. - if (frame_be03d43782ce0c74a753536e9a4f0743 == cache_frame_be03d43782ce0c74a753536e9a4f0743) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_be03d43782ce0c74a753536e9a4f0743); - cache_frame_be03d43782ce0c74a753536e9a4f0743 = NULL; - } - - assertFrameObject(frame_be03d43782ce0c74a753536e9a4f0743); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_past); - par_past = NULL; - CHECK_OBJECT(par_beam_idx); - Py_DECREF(par_beam_idx); - par_beam_idx = NULL; - Py_XDECREF(var_reordered_past); - var_reordered_past = NULL; - Py_XDECREF(var_layer_past); - var_layer_past = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_past); - par_past = NULL; - CHECK_OBJECT(par_beam_idx); - Py_DECREF(par_beam_idx); - par_beam_idx = NULL; - Py_XDECREF(var_reordered_past); - var_reordered_past = NULL; - Py_XDECREF(var_layer_past); - var_layer_past = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr_locals { - PyObject *var_past_state; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - char yield_tmps[1024]; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr_locals *generator_heap = (struct models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_past_state = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_1a1e9c3c58d7ea5e2798e2bba549af89, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[1])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[1]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "Noc"; - generator_heap->exception_lineno = 1124; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_past_state; - generator_heap->var_past_state = tmp_assign_source_2; - Py_INCREF(generator_heap->var_past_state); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - CHECK_OBJECT(generator_heap->var_past_state); - tmp_expression_name_2 = generator_heap->var_past_state; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[270]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 1125; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - tmp_args_element_name_1 = mod_consts[29]; - if (Nuitka_Cell_GET(generator->m_closure[0]) == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_CLOSURE_ERROR(&generator_heap->exception_type, &generator_heap->exception_value, mod_consts[271]); - generator_heap->exception_tb = NULL; - NORMALIZE_EXCEPTION(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - CHAIN_EXCEPTION(generator_heap->exception_value); - - generator_heap->exception_lineno = 1125; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - - tmp_args_element_name_2 = Nuitka_Cell_GET(generator->m_closure[0]); - generator->m_frame->m_frame.f_lineno = 1125; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_expression_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 1125; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - Nuitka_PreserveHeap(generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_expression_name_2, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), &tmp_args_element_name_2, sizeof(PyObject *), NULL); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - Nuitka_RestoreHeap(generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_expression_name_2, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), &tmp_args_element_name_2, sizeof(PyObject *), NULL); - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 1124; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 1124; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_past_state, - generator->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_past_state); - generator_heap->var_past_state = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_past_state); - generator_heap->var_past_state = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr_context, - module_models$Qformer, - mod_consts[167], -#if PYTHON_VERSION >= 0x350 - mod_consts[272], -#endif - codeobj_1a1e9c3c58d7ea5e2798e2bba549af89, - closure, - 2, - sizeof(struct models$Qformer$$$function__45__reorder_cache$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$Qformer$$$function__46___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_e2b0deaa42e6635507b21870f60576c4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_e2b0deaa42e6635507b21870f60576c4 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e2b0deaa42e6635507b21870f60576c4)) { - Py_XDECREF(cache_frame_e2b0deaa42e6635507b21870f60576c4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e2b0deaa42e6635507b21870f60576c4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e2b0deaa42e6635507b21870f60576c4 = MAKE_FUNCTION_FRAME(codeobj_e2b0deaa42e6635507b21870f60576c4, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e2b0deaa42e6635507b21870f60576c4->m_type_description == NULL); - frame_e2b0deaa42e6635507b21870f60576c4 = cache_frame_e2b0deaa42e6635507b21870f60576c4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e2b0deaa42e6635507b21870f60576c4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e2b0deaa42e6635507b21870f60576c4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1137; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1137; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_e2b0deaa42e6635507b21870f60576c4->m_frame.f_lineno = 1137; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[1], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1137; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1139; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1139; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_config; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[240]); - frame_e2b0deaa42e6635507b21870f60576c4->m_frame.f_lineno = 1139; - tmp_assattr_name_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1139; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[241], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1139; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[242]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[242]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1140; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1140; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_config; - frame_e2b0deaa42e6635507b21870f60576c4->m_frame.f_lineno = 1140; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1140; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[243], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1140; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - frame_e2b0deaa42e6635507b21870f60576c4->m_frame.f_lineno = 1142; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[198]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1142; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2b0deaa42e6635507b21870f60576c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2b0deaa42e6635507b21870f60576c4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e2b0deaa42e6635507b21870f60576c4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e2b0deaa42e6635507b21870f60576c4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e2b0deaa42e6635507b21870f60576c4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e2b0deaa42e6635507b21870f60576c4, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_e2b0deaa42e6635507b21870f60576c4 == cache_frame_e2b0deaa42e6635507b21870f60576c4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e2b0deaa42e6635507b21870f60576c4); - cache_frame_e2b0deaa42e6635507b21870f60576c4 = NULL; - } - - assertFrameObject(frame_e2b0deaa42e6635507b21870f60576c4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__47_get_output_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_ca38f33a6576fe8e2962a38a6c08a7da; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ca38f33a6576fe8e2962a38a6c08a7da = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ca38f33a6576fe8e2962a38a6c08a7da)) { - Py_XDECREF(cache_frame_ca38f33a6576fe8e2962a38a6c08a7da); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ca38f33a6576fe8e2962a38a6c08a7da == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ca38f33a6576fe8e2962a38a6c08a7da = MAKE_FUNCTION_FRAME(codeobj_ca38f33a6576fe8e2962a38a6c08a7da, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ca38f33a6576fe8e2962a38a6c08a7da->m_type_description == NULL); - frame_ca38f33a6576fe8e2962a38a6c08a7da = cache_frame_ca38f33a6576fe8e2962a38a6c08a7da; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ca38f33a6576fe8e2962a38a6c08a7da); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ca38f33a6576fe8e2962a38a6c08a7da) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[243]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1145; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[181]); - Py_DECREF(tmp_expression_name_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1145; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[176]); - Py_DECREF(tmp_expression_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1145; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca38f33a6576fe8e2962a38a6c08a7da); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca38f33a6576fe8e2962a38a6c08a7da); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca38f33a6576fe8e2962a38a6c08a7da); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ca38f33a6576fe8e2962a38a6c08a7da, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ca38f33a6576fe8e2962a38a6c08a7da->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ca38f33a6576fe8e2962a38a6c08a7da, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ca38f33a6576fe8e2962a38a6c08a7da, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_ca38f33a6576fe8e2962a38a6c08a7da == cache_frame_ca38f33a6576fe8e2962a38a6c08a7da) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ca38f33a6576fe8e2962a38a6c08a7da); - cache_frame_ca38f33a6576fe8e2962a38a6c08a7da = NULL; - } - - assertFrameObject(frame_ca38f33a6576fe8e2962a38a6c08a7da); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__48_set_output_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_new_embeddings = python_pars[1]; - struct Nuitka_FrameObject *frame_0fd009d1dbe4c7c46c53f9bdc210148d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d)) { - Py_XDECREF(cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d = MAKE_FUNCTION_FRAME(codeobj_0fd009d1dbe4c7c46c53f9bdc210148d, module_models$Qformer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d->m_type_description == NULL); - frame_0fd009d1dbe4c7c46c53f9bdc210148d = cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0fd009d1dbe4c7c46c53f9bdc210148d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0fd009d1dbe4c7c46c53f9bdc210148d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_new_embeddings); - tmp_assattr_name_1 = par_new_embeddings; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[243]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1148; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[181]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1148; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[176], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1148; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0fd009d1dbe4c7c46c53f9bdc210148d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0fd009d1dbe4c7c46c53f9bdc210148d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0fd009d1dbe4c7c46c53f9bdc210148d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0fd009d1dbe4c7c46c53f9bdc210148d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0fd009d1dbe4c7c46c53f9bdc210148d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0fd009d1dbe4c7c46c53f9bdc210148d, - type_description_1, - par_self, - par_new_embeddings - ); - - - // Release cached frame if used for exception. - if (frame_0fd009d1dbe4c7c46c53f9bdc210148d == cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d); - cache_frame_0fd009d1dbe4c7c46c53f9bdc210148d = NULL; - } - - assertFrameObject(frame_0fd009d1dbe4c7c46c53f9bdc210148d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_new_embeddings); - Py_DECREF(par_new_embeddings); - par_new_embeddings = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_new_embeddings); - Py_DECREF(par_new_embeddings); - par_new_embeddings = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$Qformer$$$function__49_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_head_mask = python_pars[4]; - PyObject *par_query_embeds = python_pars[5]; - PyObject *par_encoder_hidden_states = python_pars[6]; - PyObject *par_encoder_attention_mask = python_pars[7]; - PyObject *par_labels = python_pars[8]; - PyObject *par_output_attentions = python_pars[9]; - PyObject *par_output_hidden_states = python_pars[10]; - PyObject *par_return_dict = python_pars[11]; - PyObject *par_return_logits = python_pars[12]; - PyObject *par_is_decoder = python_pars[13]; - PyObject *var_outputs = NULL; - PyObject *var_sequence_output = NULL; - PyObject *var_prediction_scores = NULL; - PyObject *var_masked_lm_loss = NULL; - PyObject *var_loss_fct = NULL; - PyObject *var_output = NULL; - struct Nuitka_FrameObject *frame_d74dc7aa09a16c42b6aa4ce3077a906f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f)) { - Py_XDECREF(cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f = MAKE_FUNCTION_FRAME(codeobj_d74dc7aa09a16c42b6aa4ce3077a906f, module_models$Qformer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_type_description == NULL); - frame_d74dc7aa09a16c42b6aa4ce3077a906f = cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d74dc7aa09a16c42b6aa4ce3077a906f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d74dc7aa09a16c42b6aa4ce3077a906f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_return_dict); - tmp_compexpr_left_1 = par_return_dict; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_return_dict); - tmp_assign_source_1 = par_return_dict; - Py_INCREF(tmp_assign_source_1); - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[5]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1174; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[221]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1174; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - { - PyObject *old = par_return_dict; - assert(old != NULL); - par_return_dict = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1177; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[241]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1177; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input_ids); - tmp_tuple_element_1 = par_input_ids; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[128]; - CHECK_OBJECT(par_attention_mask); - tmp_dict_value_1 = par_attention_mask; - tmp_kwargs_name_1 = _PyDict_NewPresized( 10 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - CHECK_OBJECT(par_position_ids); - tmp_dict_value_1 = par_position_ids; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[129]; - CHECK_OBJECT(par_head_mask); - tmp_dict_value_1 = par_head_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[223]; - CHECK_OBJECT(par_query_embeds); - tmp_dict_value_1 = par_query_embeds; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[60]; - CHECK_OBJECT(par_encoder_hidden_states); - tmp_dict_value_1 = par_encoder_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[155]; - CHECK_OBJECT(par_encoder_attention_mask); - tmp_dict_value_1 = par_encoder_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[123]; - CHECK_OBJECT(par_output_attentions); - tmp_dict_value_1 = par_output_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[142]; - CHECK_OBJECT(par_output_hidden_states); - tmp_dict_value_1 = par_output_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[233]; - CHECK_OBJECT(par_return_dict); - tmp_dict_value_1 = par_return_dict; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[244]; - CHECK_OBJECT(par_is_decoder); - tmp_dict_value_1 = par_is_decoder; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1177; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1177; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_2; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1191; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_2 = par_query_embeds; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_1; - PyObject *tmp_subscript_name_2; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_outputs); - tmp_expression_name_5 = var_outputs; - tmp_subscript_name_1 = mod_consts[29]; - tmp_expression_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_1, 0); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1192; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[30]; - tmp_subscript_name_2 = PyTuple_New(3); - { - PyObject *tmp_start_name_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_3; - PyObject *tmp_stop_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_2, 0, tmp_tuple_element_2); - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[223]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1192; - type_description_1 = "oooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_7 = par_query_embeds; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[132]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1192; - type_description_1 = "oooooooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_subscript_name_3 = mod_consts[28]; - tmp_start_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_3, 1); - Py_DECREF(tmp_expression_name_6); - if (tmp_start_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1192; - type_description_1 = "oooooooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_stop_name_1 = Py_None; - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_start_name_1); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[30]; - PyTuple_SET_ITEM0(tmp_subscript_name_2, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_expression_name_4); - Py_DECREF(tmp_subscript_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_4); - Py_DECREF(tmp_subscript_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1192; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_sequence_output == NULL); - var_sequence_output = tmp_assign_source_3; - } - branch_no_1:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1193; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[243]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1193; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_sequence_output == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[234]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1193; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = var_sequence_output; - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1193; - tmp_assign_source_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1193; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_scores == NULL); - var_prediction_scores = tmp_assign_source_4; - } - { - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_1; - CHECK_OBJECT(par_return_logits); - tmp_truth_name_1 = CHECK_IF_TRUE(par_return_logits); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1195; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - CHECK_OBJECT(var_prediction_scores); - tmp_return_value = var_prediction_scores; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_2:; - { - PyObject *tmp_assign_source_5; - tmp_assign_source_5 = Py_None; - assert(var_masked_lm_loss == NULL); - Py_INCREF(tmp_assign_source_5); - var_masked_lm_loss = tmp_assign_source_5; - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(par_labels); - tmp_compexpr_left_3 = par_labels; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[247]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[247]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1200; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1200; - tmp_assign_source_6 = CALL_FUNCTION_NO_ARGS(tmp_called_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1200; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss_fct == NULL); - var_loss_fct = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(var_loss_fct); - tmp_called_name_4 = var_loss_fct; - CHECK_OBJECT(var_prediction_scores); - tmp_expression_name_9 = var_prediction_scores; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[56]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1202; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = mod_consts[126]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1202; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_expression_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[5]); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 1202; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[4]); - Py_DECREF(tmp_expression_name_10); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 1202; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1202; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_4); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1202; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_labels); - tmp_called_instance_1 = par_labels; - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1202; - tmp_args_element_name_5 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[251], 0) - ); - - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 1202; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1201; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_5}; - tmp_assign_source_7 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1201; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_masked_lm_loss; - assert(old != NULL); - var_masked_lm_loss = tmp_assign_source_7; - Py_DECREF(old); - } - - } - branch_no_3:; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - if (par_return_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[233]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1205; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_1 = par_return_dict; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1205; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_left_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_4; - if (var_prediction_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[256]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1206; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = var_prediction_scores; - tmp_left_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_outputs); - tmp_expression_name_12 = var_outputs; - tmp_subscript_name_4 = mod_consts[257]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_12, tmp_subscript_name_4); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 1206; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1206; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_8; - } - { - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_left_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_right_name_2; - CHECK_OBJECT(var_masked_lm_loss); - tmp_compexpr_left_4 = var_masked_lm_loss; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_6 != false) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(var_masked_lm_loss); - tmp_tuple_element_4 = var_masked_lm_loss; - tmp_left_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_output); - tmp_right_name_2 = var_output; - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1208; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_2; - condexpr_false_2:; - CHECK_OBJECT(var_output); - tmp_return_value = var_output; - Py_INCREF(tmp_return_value); - condexpr_end_2:; - goto frame_return_exit_1; - } - branch_no_4:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[273]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[273]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1211; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[260]; - CHECK_OBJECT(var_masked_lm_loss); - tmp_dict_value_2 = var_masked_lm_loss; - tmp_kwargs_name_2 = _PyDict_NewPresized( 4 ); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[261]; - if (var_prediction_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[256]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1213; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_2 = var_prediction_scores; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[61]; - CHECK_OBJECT(var_outputs); - tmp_expression_name_13 = var_outputs; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[61]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1214; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[162]; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[136]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 1215; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_14 = var_outputs; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[162]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1215; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame.f_lineno = 1211; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1211; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d74dc7aa09a16c42b6aa4ce3077a906f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d74dc7aa09a16c42b6aa4ce3077a906f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d74dc7aa09a16c42b6aa4ce3077a906f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d74dc7aa09a16c42b6aa4ce3077a906f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d74dc7aa09a16c42b6aa4ce3077a906f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d74dc7aa09a16c42b6aa4ce3077a906f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d74dc7aa09a16c42b6aa4ce3077a906f, - type_description_1, - par_self, - par_input_ids, - par_attention_mask, - par_position_ids, - par_head_mask, - par_query_embeds, - par_encoder_hidden_states, - par_encoder_attention_mask, - par_labels, - par_output_attentions, - par_output_hidden_states, - par_return_dict, - par_return_logits, - par_is_decoder, - var_outputs, - var_sequence_output, - var_prediction_scores, - var_masked_lm_loss, - var_loss_fct, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_d74dc7aa09a16c42b6aa4ce3077a906f == cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f); - cache_frame_d74dc7aa09a16c42b6aa4ce3077a906f = NULL; - } - - assertFrameObject(frame_d74dc7aa09a16c42b6aa4ce3077a906f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_labels); - par_labels = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - CHECK_OBJECT(par_return_logits); - Py_DECREF(par_return_logits); - par_return_logits = NULL; - Py_XDECREF(par_is_decoder); - par_is_decoder = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_sequence_output); - var_sequence_output = NULL; - Py_XDECREF(var_prediction_scores); - var_prediction_scores = NULL; - Py_XDECREF(var_masked_lm_loss); - var_masked_lm_loss = NULL; - Py_XDECREF(var_loss_fct); - var_loss_fct = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_head_mask); - par_head_mask = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_encoder_hidden_states); - par_encoder_hidden_states = NULL; - Py_XDECREF(par_encoder_attention_mask); - par_encoder_attention_mask = NULL; - Py_XDECREF(par_labels); - par_labels = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - CHECK_OBJECT(par_return_logits); - Py_DECREF(par_return_logits); - par_return_logits = NULL; - Py_XDECREF(par_is_decoder); - par_is_decoder = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_sequence_output); - var_sequence_output = NULL; - Py_XDECREF(var_prediction_scores); - var_prediction_scores = NULL; - Py_XDECREF(var_masked_lm_loss); - var_masked_lm_loss = NULL; - Py_XDECREF(var_loss_fct); - var_loss_fct = NULL; - Py_XDECREF(var_output); - var_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__10___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__10___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[349], -#endif - codeobj_3ffa23d628f575a2f740dcb6fe8c1a15, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__11_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__11_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[350], -#endif - codeobj_e2c151c9b0676788eee114d75e2c1886, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__12___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[352], -#endif - codeobj_269652cb22803d15cde90d439879a1a2, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__13_prune_heads() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__13_prune_heads, - mod_consts[200], -#if PYTHON_VERSION >= 0x300 - mod_consts[353], -#endif - codeobj_0b0b36faf8277ec302d6c6695f619e8c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__14_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__14_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[354], -#endif - codeobj_02c26eebaf2303eb7380395e131d8a5e, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__15___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__15___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[355], -#endif - codeobj_bc386502a8ad779e82b56ce3a01a046c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__16_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__16_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[356], -#endif - codeobj_ef7df7f2aae603ea3cb921a91d68b297, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__17___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__17___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[357], -#endif - codeobj_da381dec774f92fc3fdec9b27fb9d857, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__18_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__18_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[358], -#endif - codeobj_ac223922169c79b32778e1fea6b86d12, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__19___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__19___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[359], -#endif - codeobj_9044624cc871cfe54b3607752fe57f1c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__1___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__1___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[334], -#endif - codeobj_5cc68962f3dad1def9ff2c335252cee0, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__20_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__20_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[361], -#endif - codeobj_38c0c92910efd854dc73aa8a49f61b57, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__21_feed_forward_chunk() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__21_feed_forward_chunk, - mod_consts[133], -#if PYTHON_VERSION >= 0x300 - mod_consts[362], -#endif - codeobj_c4755f7ecaad447ef5e0ea80f9a42013, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__22_feed_forward_chunk_query() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__22_feed_forward_chunk_query, - mod_consts[131], -#if PYTHON_VERSION >= 0x300 - mod_consts[363], -#endif - codeobj_bc4467ccc7610a81a2b180cada5c22ef, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__23___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__23___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[364], -#endif - codeobj_dbb5244b0ee9d68abb3ae7983cb8df4b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__24_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__24_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[366], -#endif - codeobj_fb4ac8ca5f5c6cf5999268c801f1a60e, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward, - mod_consts[151], -#if PYTHON_VERSION >= 0x300 - mod_consts[152], -#endif - codeobj_9bc2c26bc51f7651d0836f8203f94193, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 3 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward$$$function__1_custom_forward, - mod_consts[164], -#if PYTHON_VERSION >= 0x300 - mod_consts[165], -#endif - codeobj_340e4e883925405252be80b1c8cda477, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 4 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__25___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__25___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[367], -#endif - codeobj_3183350d90f44f69878dab33e80e4921, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__26_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__26_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[368], -#endif - codeobj_efe9f30d4ed10b98b0f8cc575424636a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__27___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__27___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[369], -#endif - codeobj_ca40fb07238f33d953447de3e31806fd, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__28_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__28_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[370], -#endif - codeobj_ef32505124b25b3c551fd3017e359336, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__29___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__29___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[371], -#endif - codeobj_9c6e6b2c3e0641a7465eeb0788b5b6dd, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__2_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__2_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[337], -#endif - codeobj_0d13c366fa26a472a6b7f1562ae363de, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__30_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__30_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[372], -#endif - codeobj_e5d530bc114f61caefcc8e7e58348d97, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__31___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__31___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[373], -#endif - codeobj_fa49026615d06e8f214b8591603bbecd, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__32_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__32_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[374], -#endif - codeobj_0eb4b4b7e57523c96bf4c60654493887, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__33__init_weights() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__33__init_weights, - mod_consts[381], -#if PYTHON_VERSION >= 0x300 - mod_consts[382], -#endif - codeobj_4147f3aad460337a90fc69f511dba483, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - mod_consts[192], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__34___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__34___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[384], -#endif - codeobj_8e16adea762727bda11361e993d1476d, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__35_get_input_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__35_get_input_embeddings, - mod_consts[385], -#if PYTHON_VERSION >= 0x300 - mod_consts[386], -#endif - codeobj_64584954755a32f374a421edcbab9154, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__36_set_input_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__36_set_input_embeddings, - mod_consts[387], -#if PYTHON_VERSION >= 0x300 - mod_consts[388], -#endif - codeobj_721775a04cb45ee2837ea767c0780001, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__37__prune_heads() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__37__prune_heads, - mod_consts[389], -#if PYTHON_VERSION >= 0x300 - mod_consts[390], -#endif - codeobj_99e6e0fbfb9cc4282b3a8f4787f1fc90, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - mod_consts[201], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__38_get_extended_attention_mask(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__38_get_extended_attention_mask, - mod_consts[226], -#if PYTHON_VERSION >= 0x300 - mod_consts[394], -#endif - codeobj_a5b726196dc433c291a911837adced9c, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$Qformer, - mod_consts[220], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__39_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__39_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[396], -#endif - codeobj_960ad736510918980c376a071f656626, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - mod_consts[238], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__3___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__3___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[339], -#endif - codeobj_df9ac5d0a974d8e6803dbf3d6f292953, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__40___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__40___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[401], -#endif - codeobj_3fed784111b2af0b6a6ffc26ac50d650, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__41_get_output_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__41_get_output_embeddings, - mod_consts[402], -#if PYTHON_VERSION >= 0x300 - mod_consts[403], -#endif - codeobj_d801348fdc3b19f91ac75fd50193d3b0, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__42_set_output_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__42_set_output_embeddings, - mod_consts[404], -#if PYTHON_VERSION >= 0x300 - mod_consts[405], -#endif - codeobj_74af6475e06de1d3e4323696e9d6b171, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__43_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__43_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[407], -#endif - codeobj_7c295c83a4e918fa0e86389ee3693174, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - mod_consts[262], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__44_prepare_inputs_for_generation(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__44_prepare_inputs_for_generation, - mod_consts[409], -#if PYTHON_VERSION >= 0x300 - mod_consts[410], -#endif - codeobj_ded4b18b08a0de899e2560321c2271bc, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__45__reorder_cache() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__45__reorder_cache, - mod_consts[411], -#if PYTHON_VERSION >= 0x300 - mod_consts[412], -#endif - codeobj_be03d43782ce0c74a753536e9a4f0743, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__46___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__46___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[414], -#endif - codeobj_e2b0deaa42e6635507b21870f60576c4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__47_get_output_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__47_get_output_embeddings, - mod_consts[402], -#if PYTHON_VERSION >= 0x300 - mod_consts[415], -#endif - codeobj_ca38f33a6576fe8e2962a38a6c08a7da, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__48_set_output_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__48_set_output_embeddings, - mod_consts[404], -#if PYTHON_VERSION >= 0x300 - mod_consts[416], -#endif - codeobj_0fd009d1dbe4c7c46c53f9bdc210148d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__49_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__49_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[418], -#endif - codeobj_d74dc7aa09a16c42b6aa4ce3077a906f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - mod_consts[274], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__4_save_attn_gradients() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__4_save_attn_gradients, - mod_consts[88], -#if PYTHON_VERSION >= 0x300 - mod_consts[340], -#endif - codeobj_45b23ddb210e7fae6e94b686bdca3187, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__5_get_attn_gradients() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__5_get_attn_gradients, - mod_consts[341], -#if PYTHON_VERSION >= 0x300 - mod_consts[342], -#endif - codeobj_527cb4fbc9a5e67eae366d93117b1142, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__6_save_attention_map() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__6_save_attention_map, - mod_consts[85], -#if PYTHON_VERSION >= 0x300 - mod_consts[343], -#endif - codeobj_7dc435c7821988f8361240f6dacceca5, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__7_get_attention_map() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__7_get_attention_map, - mod_consts[344], -#if PYTHON_VERSION >= 0x300 - mod_consts[345], -#endif - codeobj_00cbf7e5232472b130db964e018f1f81, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__8_transpose_for_scores() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__8_transpose_for_scores, - mod_consts[59], -#if PYTHON_VERSION >= 0x300 - mod_consts[346], -#endif - codeobj_d1badd3898339991bfdc4579ffa91ae1, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$Qformer$$$function__9_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$Qformer$$$function__9_forward, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[348], -#endif - codeobj_222d3cb8bbe72424730d64c2fb38796b, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$Qformer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$Qformer[] = { - impl_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward, - impl_models$Qformer$$$function__24_forward$$$function__1_create_custom_forward$$$function__1_custom_forward, - impl_models$Qformer$$$function__1___init__, - impl_models$Qformer$$$function__2_forward, - impl_models$Qformer$$$function__3___init__, - impl_models$Qformer$$$function__4_save_attn_gradients, - impl_models$Qformer$$$function__5_get_attn_gradients, - impl_models$Qformer$$$function__6_save_attention_map, - impl_models$Qformer$$$function__7_get_attention_map, - impl_models$Qformer$$$function__8_transpose_for_scores, - impl_models$Qformer$$$function__9_forward, - impl_models$Qformer$$$function__10___init__, - impl_models$Qformer$$$function__11_forward, - impl_models$Qformer$$$function__12___init__, - impl_models$Qformer$$$function__13_prune_heads, - impl_models$Qformer$$$function__14_forward, - impl_models$Qformer$$$function__15___init__, - impl_models$Qformer$$$function__16_forward, - impl_models$Qformer$$$function__17___init__, - impl_models$Qformer$$$function__18_forward, - impl_models$Qformer$$$function__19___init__, - impl_models$Qformer$$$function__20_forward, - impl_models$Qformer$$$function__21_feed_forward_chunk, - impl_models$Qformer$$$function__22_feed_forward_chunk_query, - impl_models$Qformer$$$function__23___init__, - impl_models$Qformer$$$function__24_forward, - impl_models$Qformer$$$function__25___init__, - impl_models$Qformer$$$function__26_forward, - impl_models$Qformer$$$function__27___init__, - impl_models$Qformer$$$function__28_forward, - impl_models$Qformer$$$function__29___init__, - impl_models$Qformer$$$function__30_forward, - impl_models$Qformer$$$function__31___init__, - impl_models$Qformer$$$function__32_forward, - impl_models$Qformer$$$function__33__init_weights, - impl_models$Qformer$$$function__34___init__, - impl_models$Qformer$$$function__35_get_input_embeddings, - impl_models$Qformer$$$function__36_set_input_embeddings, - impl_models$Qformer$$$function__37__prune_heads, - impl_models$Qformer$$$function__38_get_extended_attention_mask, - impl_models$Qformer$$$function__39_forward, - impl_models$Qformer$$$function__40___init__, - impl_models$Qformer$$$function__41_get_output_embeddings, - impl_models$Qformer$$$function__42_set_output_embeddings, - impl_models$Qformer$$$function__43_forward, - impl_models$Qformer$$$function__44_prepare_inputs_for_generation, - impl_models$Qformer$$$function__45__reorder_cache, - impl_models$Qformer$$$function__46___init__, - impl_models$Qformer$$$function__47_get_output_embeddings, - impl_models$Qformer$$$function__48_set_output_embeddings, - impl_models$Qformer$$$function__49_forward, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$Qformer; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$Qformer) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$Qformer[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$Qformer, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$Qformer(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$Qformer = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.Qformer: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.Qformer: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.Qformer: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$Qformer\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$Qformer = MODULE_DICT(module_models$Qformer); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$Qformer, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$Qformer, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$Qformer, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$Qformer, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$Qformer, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$Qformer); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$Qformer); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_5_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_6_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_7_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_8_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_9_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_10_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_11_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_12_var___class__ = NULL; - struct Nuitka_CellObject *outline_13_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_14_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_15_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_10__bases = NULL; - PyObject *tmp_class_creation_10__bases_orig = NULL; - PyObject *tmp_class_creation_10__class_decl_dict = NULL; - PyObject *tmp_class_creation_10__metaclass = NULL; - PyObject *tmp_class_creation_10__prepared = NULL; - PyObject *tmp_class_creation_11__bases = NULL; - PyObject *tmp_class_creation_11__bases_orig = NULL; - PyObject *tmp_class_creation_11__class_decl_dict = NULL; - PyObject *tmp_class_creation_11__metaclass = NULL; - PyObject *tmp_class_creation_11__prepared = NULL; - PyObject *tmp_class_creation_12__bases = NULL; - PyObject *tmp_class_creation_12__bases_orig = NULL; - PyObject *tmp_class_creation_12__class_decl_dict = NULL; - PyObject *tmp_class_creation_12__metaclass = NULL; - PyObject *tmp_class_creation_12__prepared = NULL; - PyObject *tmp_class_creation_13__bases = NULL; - PyObject *tmp_class_creation_13__bases_orig = NULL; - PyObject *tmp_class_creation_13__class_decl_dict = NULL; - PyObject *tmp_class_creation_13__metaclass = NULL; - PyObject *tmp_class_creation_13__prepared = NULL; - PyObject *tmp_class_creation_14__bases = NULL; - PyObject *tmp_class_creation_14__bases_orig = NULL; - PyObject *tmp_class_creation_14__class_decl_dict = NULL; - PyObject *tmp_class_creation_14__metaclass = NULL; - PyObject *tmp_class_creation_14__prepared = NULL; - PyObject *tmp_class_creation_15__bases = NULL; - PyObject *tmp_class_creation_15__bases_orig = NULL; - PyObject *tmp_class_creation_15__class_decl_dict = NULL; - PyObject *tmp_class_creation_15__metaclass = NULL; - PyObject *tmp_class_creation_15__prepared = NULL; - PyObject *tmp_class_creation_16__bases = NULL; - PyObject *tmp_class_creation_16__bases_orig = NULL; - PyObject *tmp_class_creation_16__class_decl_dict = NULL; - PyObject *tmp_class_creation_16__metaclass = NULL; - PyObject *tmp_class_creation_16__prepared = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__bases = NULL; - PyObject *tmp_class_creation_6__bases_orig = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_class_creation_8__bases = NULL; - PyObject *tmp_class_creation_8__bases_orig = NULL; - PyObject *tmp_class_creation_8__class_decl_dict = NULL; - PyObject *tmp_class_creation_8__metaclass = NULL; - PyObject *tmp_class_creation_8__prepared = NULL; - PyObject *tmp_class_creation_9__bases = NULL; - PyObject *tmp_class_creation_9__bases_orig = NULL; - PyObject *tmp_class_creation_9__class_decl_dict = NULL; - PyObject *tmp_class_creation_9__metaclass = NULL; - PyObject *tmp_class_creation_9__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - PyObject *tmp_import_from_3__module = NULL; - PyObject *tmp_import_from_4__module = NULL; - struct Nuitka_FrameObject *frame_2bb9003dfff85549a8e8392e723ec6c8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$Qformer$$$class__1_BertEmbeddings_51 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_0c0a0597d4b4257046a86687ff948770_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_0c0a0597d4b4257046a86687ff948770_2 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *locals_models$Qformer$$$class__2_BertSelfAttention_111 = NULL; - struct Nuitka_FrameObject *frame_39fcb37e2c2b36c20e772de986f100d1_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_39fcb37e2c2b36c20e772de986f100d1_3 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *locals_models$Qformer$$$class__3_BertSelfOutput_278 = NULL; - struct Nuitka_FrameObject *frame_cc56a3d4cf1124558e66a811713c588d_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_cc56a3d4cf1124558e66a811713c588d_4 = NULL; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *locals_models$Qformer$$$class__4_BertAttention_292 = NULL; - struct Nuitka_FrameObject *frame_5bfea05f5a06871ae56cfaab6dbe57ba_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5 = NULL; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *locals_models$Qformer$$$class__5_BertIntermediate_349 = NULL; - struct Nuitka_FrameObject *frame_7007713779c26360c0f6632cb2047835_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_7007713779c26360c0f6632cb2047835_6 = NULL; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *locals_models$Qformer$$$class__6_BertOutput_364 = NULL; - struct Nuitka_FrameObject *frame_2997152d8a9cec4ec6825b911abbb306_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_2997152d8a9cec4ec6825b911abbb306_7 = NULL; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *locals_models$Qformer$$$class__7_BertLayer_378 = NULL; - struct Nuitka_FrameObject *frame_a081438c9da0f662f5a4de30a72f53eb_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_a081438c9da0f662f5a4de30a72f53eb_8 = NULL; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *locals_models$Qformer$$$class__8_BertEncoder_487 = NULL; - struct Nuitka_FrameObject *frame_e1623af249db2190f4f0a833e30e71e3_9; - NUITKA_MAY_BE_UNUSED char const *type_description_9 = NULL; - static struct Nuitka_FrameObject *cache_frame_e1623af249db2190f4f0a833e30e71e3_9 = NULL; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - PyObject *locals_models$Qformer$$$class__9_BertPooler_592 = NULL; - struct Nuitka_FrameObject *frame_ab5a99313f9b6e1e298f4606848400d8_10; - NUITKA_MAY_BE_UNUSED char const *type_description_10 = NULL; - static struct Nuitka_FrameObject *cache_frame_ab5a99313f9b6e1e298f4606848400d8_10 = NULL; - PyObject *exception_keeper_type_29; - PyObject *exception_keeper_value_29; - PyTracebackObject *exception_keeper_tb_29; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_29; - PyObject *exception_keeper_type_30; - PyObject *exception_keeper_value_30; - PyTracebackObject *exception_keeper_tb_30; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_30; - PyObject *exception_keeper_type_31; - PyObject *exception_keeper_value_31; - PyTracebackObject *exception_keeper_tb_31; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_31; - PyObject *locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607 = NULL; - struct Nuitka_FrameObject *frame_1e694c28c1cb7b88d842a0230f304b37_11; - NUITKA_MAY_BE_UNUSED char const *type_description_11 = NULL; - static struct Nuitka_FrameObject *cache_frame_1e694c28c1cb7b88d842a0230f304b37_11 = NULL; - PyObject *exception_keeper_type_32; - PyObject *exception_keeper_value_32; - PyTracebackObject *exception_keeper_tb_32; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_32; - PyObject *exception_keeper_type_33; - PyObject *exception_keeper_value_33; - PyTracebackObject *exception_keeper_tb_33; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_33; - PyObject *exception_keeper_type_34; - PyObject *exception_keeper_value_34; - PyTracebackObject *exception_keeper_tb_34; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_34; - PyObject *locals_models$Qformer$$$class__11_BertLMPredictionHead_624 = NULL; - struct Nuitka_FrameObject *frame_6e22728e3deba4360239f923eb721087_12; - NUITKA_MAY_BE_UNUSED char const *type_description_12 = NULL; - static struct Nuitka_FrameObject *cache_frame_6e22728e3deba4360239f923eb721087_12 = NULL; - PyObject *exception_keeper_type_35; - PyObject *exception_keeper_value_35; - PyTracebackObject *exception_keeper_tb_35; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_35; - PyObject *exception_keeper_type_36; - PyObject *exception_keeper_value_36; - PyTracebackObject *exception_keeper_tb_36; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_36; - PyObject *exception_keeper_type_37; - PyObject *exception_keeper_value_37; - PyTracebackObject *exception_keeper_tb_37; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_37; - PyObject *locals_models$Qformer$$$class__12_BertOnlyMLMHead_644 = NULL; - struct Nuitka_FrameObject *frame_2f024c1c2781aa4346c9360dc9ca9c37_13; - NUITKA_MAY_BE_UNUSED char const *type_description_13 = NULL; - static struct Nuitka_FrameObject *cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13 = NULL; - PyObject *exception_keeper_type_38; - PyObject *exception_keeper_value_38; - PyTracebackObject *exception_keeper_tb_38; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_38; - PyObject *exception_keeper_type_39; - PyObject *exception_keeper_value_39; - PyTracebackObject *exception_keeper_tb_39; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_39; - PyObject *exception_keeper_type_40; - PyObject *exception_keeper_value_40; - PyTracebackObject *exception_keeper_tb_40; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_40; - PyObject *locals_models$Qformer$$$class__13_BertPreTrainedModel_654 = NULL; - struct Nuitka_FrameObject *frame_2ba10c444d39cd9fbc64d82f9cd4789e_14; - NUITKA_MAY_BE_UNUSED char const *type_description_14 = NULL; - static struct Nuitka_FrameObject *cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14 = NULL; - PyObject *exception_keeper_type_41; - PyObject *exception_keeper_value_41; - PyTracebackObject *exception_keeper_tb_41; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_41; - PyObject *exception_keeper_type_42; - PyObject *exception_keeper_value_42; - PyTracebackObject *exception_keeper_tb_42; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_42; - PyObject *exception_keeper_type_43; - PyObject *exception_keeper_value_43; - PyTracebackObject *exception_keeper_tb_43; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_43; - PyObject *locals_models$Qformer$$$class__14_BertModel_677 = NULL; - struct Nuitka_FrameObject *frame_25865ea0df4a3f86bdd137c22518ab84_15; - NUITKA_MAY_BE_UNUSED char const *type_description_15 = NULL; - static struct Nuitka_FrameObject *cache_frame_25865ea0df4a3f86bdd137c22518ab84_15 = NULL; - PyObject *exception_keeper_type_44; - PyObject *exception_keeper_value_44; - PyTracebackObject *exception_keeper_tb_44; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_44; - PyObject *exception_keeper_type_45; - PyObject *exception_keeper_value_45; - PyTracebackObject *exception_keeper_tb_45; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_45; - PyObject *exception_keeper_type_46; - PyObject *exception_keeper_value_46; - PyTracebackObject *exception_keeper_tb_46; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_46; - PyObject *locals_models$Qformer$$$class__15_BertLMHeadModel_968 = NULL; - struct Nuitka_FrameObject *frame_aa454e092d5abc9f5e4553a289907508_16; - NUITKA_MAY_BE_UNUSED char const *type_description_16 = NULL; - static struct Nuitka_FrameObject *cache_frame_aa454e092d5abc9f5e4553a289907508_16 = NULL; - PyObject *exception_keeper_type_47; - PyObject *exception_keeper_value_47; - PyTracebackObject *exception_keeper_tb_47; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_47; - PyObject *exception_keeper_type_48; - PyObject *exception_keeper_value_48; - PyTracebackObject *exception_keeper_tb_48; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_48; - PyObject *exception_keeper_type_49; - PyObject *exception_keeper_value_49; - PyTracebackObject *exception_keeper_tb_49; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_49; - PyObject *locals_models$Qformer$$$class__16_BertForMaskedLM_1131 = NULL; - struct Nuitka_FrameObject *frame_e5264d356d902ef78943e91fb87114a1_17; - NUITKA_MAY_BE_UNUSED char const *type_description_17 = NULL; - static struct Nuitka_FrameObject *cache_frame_e5264d356d902ef78943e91fb87114a1_17 = NULL; - PyObject *exception_keeper_type_50; - PyObject *exception_keeper_value_50; - PyTracebackObject *exception_keeper_tb_50; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_50; - PyObject *exception_keeper_type_51; - PyObject *exception_keeper_value_51; - PyTracebackObject *exception_keeper_tb_51; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_51; - PyObject *exception_keeper_type_52; - PyObject *exception_keeper_value_52; - PyTracebackObject *exception_keeper_tb_52; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_52; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[275]; - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[276], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[277], tmp_assign_source_2); - } - // Frame without reuse. - frame_2bb9003dfff85549a8e8392e723ec6c8 = MAKE_MODULE_FRAME(codeobj_2bb9003dfff85549a8e8392e723ec6c8, module_models$Qformer); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_2bb9003dfff85549a8e8392e723ec6c8); - assert(Py_REFCNT(frame_2bb9003dfff85549a8e8392e723ec6c8) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[278]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[278]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[279], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[278]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[278]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[280], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[281], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[81]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 11; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[81], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 12; - tmp_assign_source_5 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_5 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[282], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[283]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 13; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[283], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[284]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[285]; - tmp_level_name_3 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 14; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$Qformer, - mod_consts[286], - mod_consts[29] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[286]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[286], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[287]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[288]; - tmp_level_name_4 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 15; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$Qformer, - mod_consts[289], - mod_consts[29] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[289]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[289], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$Qformer, - mod_consts[290], - mod_consts[29] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[290]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[290], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$Qformer, - mod_consts[291], - mod_consts[29] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[291]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[291], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$Qformer, - mod_consts[292], - mod_consts[29] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[292]); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[292], tmp_assign_source_12); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[20]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = Py_None; - tmp_level_name_5 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 17; - tmp_assign_source_13 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[20]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[293]; - tmp_level_name_6 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 18; - tmp_assign_source_14 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_14; - } - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_6 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$Qformer, - mod_consts[294], - mod_consts[29] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[294]); - } - - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[294], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_7 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$Qformer, - mod_consts[70], - mod_consts[29] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[70]); - } - - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[70], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_8 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$Qformer, - mod_consts[68], - mod_consts[29] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[68]); - } - - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[68], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_import_name_from_9; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_9 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_18 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$Qformer, - mod_consts[2], - mod_consts[29] - ); - } else { - tmp_assign_source_18 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[2]); - } - - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_18); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[295]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = Py_None; - tmp_level_name_7 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 19; - tmp_assign_source_19 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_19); - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_import_name_from_10; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[20]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[296]; - tmp_level_name_8 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 20; - tmp_import_name_from_10 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_import_name_from_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$Qformer, - mod_consts[2], - mod_consts[29] - ); - } else { - tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[2]); - } - - Py_DECREF(tmp_import_name_from_10); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_import_name_from_11; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[297]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[298]; - tmp_level_name_9 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 21; - tmp_import_name_from_11 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_import_name_from_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$Qformer, - mod_consts[247], - mod_consts[29] - ); - } else { - tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[247]); - } - - Py_DECREF(tmp_import_name_from_11); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[247], tmp_assign_source_21); - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_import_name_from_12; - PyObject *tmp_import_name_from_13; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[299]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = Py_None; - tmp_level_name_10 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 22; - tmp_import_name_from_13 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_import_name_from_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_import_name_from_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$Qformer, - mod_consts[2], - mod_consts[29] - ); - } else { - tmp_import_name_from_12 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[2]); - } - - Py_DECREF(tmp_import_name_from_13); - if (tmp_import_name_from_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_22 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$Qformer, - mod_consts[300], - mod_consts[29] - ); - } else { - tmp_assign_source_22 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[300]); - } - - Py_DECREF(tmp_import_name_from_12); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[301], tmp_assign_source_22); - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_import_name_from_14; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[302]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[303]; - tmp_level_name_11 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 24; - tmp_import_name_from_14 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_14)) { - tmp_assign_source_23 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_14, - (PyObject *)moduledict_models$Qformer, - mod_consts[105], - mod_consts[29] - ); - } else { - tmp_assign_source_23 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[105]); - } - - Py_DECREF(tmp_import_name_from_14); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[105], tmp_assign_source_23); - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_import_name_from_15; - PyObject *tmp_name_name_12; - PyObject *tmp_globals_arg_name_12; - PyObject *tmp_locals_arg_name_12; - PyObject *tmp_fromlist_name_12; - PyObject *tmp_level_name_12; - tmp_name_name_12 = mod_consts[304]; - tmp_globals_arg_name_12 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_12 = Py_None; - tmp_fromlist_name_12 = mod_consts[305]; - tmp_level_name_12 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 25; - tmp_import_name_from_15 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); - if (tmp_import_name_from_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_15)) { - tmp_assign_source_24 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_15, - (PyObject *)moduledict_models$Qformer, - mod_consts[306], - mod_consts[29] - ); - } else { - tmp_assign_source_24 = IMPORT_NAME(tmp_import_name_from_15, mod_consts[306]); - } - - Py_DECREF(tmp_import_name_from_15); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[306], tmp_assign_source_24); - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_name_name_13; - PyObject *tmp_globals_arg_name_13; - PyObject *tmp_locals_arg_name_13; - PyObject *tmp_fromlist_name_13; - PyObject *tmp_level_name_13; - tmp_name_name_13 = mod_consts[307]; - tmp_globals_arg_name_13 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_13 = Py_None; - tmp_fromlist_name_13 = mod_consts[308]; - tmp_level_name_13 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 28; - tmp_assign_source_25 = IMPORT_MODULE5(tmp_name_name_13, tmp_globals_arg_name_13, tmp_locals_arg_name_13, tmp_fromlist_name_13, tmp_level_name_13); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_3__module == NULL); - tmp_import_from_3__module = tmp_assign_source_25; - } - // Tried code: - { - PyObject *tmp_assign_source_26; - PyObject *tmp_import_name_from_16; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_16 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_16)) { - tmp_assign_source_26 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_16, - (PyObject *)moduledict_models$Qformer, - mod_consts[160], - mod_consts[29] - ); - } else { - tmp_assign_source_26 = IMPORT_NAME(tmp_import_name_from_16, mod_consts[160]); - } - - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[160], tmp_assign_source_26); - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_import_name_from_17; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_17 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_17)) { - tmp_assign_source_27 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_17, - (PyObject *)moduledict_models$Qformer, - mod_consts[235], - mod_consts[29] - ); - } else { - tmp_assign_source_27 = IMPORT_NAME(tmp_import_name_from_17, mod_consts[235]); - } - - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[235], tmp_assign_source_27); - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_import_name_from_18; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_18 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_18)) { - tmp_assign_source_28 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_18, - (PyObject *)moduledict_models$Qformer, - mod_consts[259], - mod_consts[29] - ); - } else { - tmp_assign_source_28 = IMPORT_NAME(tmp_import_name_from_18, mod_consts[259]); - } - - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[259], tmp_assign_source_28); - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_import_name_from_19; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_19 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_19)) { - tmp_assign_source_29 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_19, - (PyObject *)moduledict_models$Qformer, - mod_consts[273], - mod_consts[29] - ); - } else { - tmp_assign_source_29 = IMPORT_NAME(tmp_import_name_from_19, mod_consts[273]); - } - - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[273], tmp_assign_source_29); - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_import_name_from_20; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_20 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_20)) { - tmp_assign_source_30 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_20, - (PyObject *)moduledict_models$Qformer, - mod_consts[309], - mod_consts[29] - ); - } else { - tmp_assign_source_30 = IMPORT_NAME(tmp_import_name_from_20, mod_consts[309]); - } - - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[309], tmp_assign_source_30); - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_import_name_from_21; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_21 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_21)) { - tmp_assign_source_31 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_21, - (PyObject *)moduledict_models$Qformer, - mod_consts[310], - mod_consts[29] - ); - } else { - tmp_assign_source_31 = IMPORT_NAME(tmp_import_name_from_21, mod_consts[310]); - } - - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[310], tmp_assign_source_31); - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_import_name_from_22; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_22 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_22)) { - tmp_assign_source_32 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_22, - (PyObject *)moduledict_models$Qformer, - mod_consts[311], - mod_consts[29] - ); - } else { - tmp_assign_source_32 = IMPORT_NAME(tmp_import_name_from_22, mod_consts[311]); - } - - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[311], tmp_assign_source_32); - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_import_name_from_23; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_23 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_23)) { - tmp_assign_source_33 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_23, - (PyObject *)moduledict_models$Qformer, - mod_consts[312], - mod_consts[29] - ); - } else { - tmp_assign_source_33 = IMPORT_NAME(tmp_import_name_from_23, mod_consts[312]); - } - - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[312], tmp_assign_source_33); - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_import_name_from_24; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_24 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_24)) { - tmp_assign_source_34 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_24, - (PyObject *)moduledict_models$Qformer, - mod_consts[313], - mod_consts[29] - ); - } else { - tmp_assign_source_34 = IMPORT_NAME(tmp_import_name_from_24, mod_consts[313]); - } - - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[313], tmp_assign_source_34); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_name_name_14; - PyObject *tmp_globals_arg_name_14; - PyObject *tmp_locals_arg_name_14; - PyObject *tmp_fromlist_name_14; - PyObject *tmp_level_name_14; - tmp_name_name_14 = mod_consts[314]; - tmp_globals_arg_name_14 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_14 = Py_None; - tmp_fromlist_name_14 = mod_consts[315]; - tmp_level_name_14 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 39; - tmp_assign_source_35 = IMPORT_MODULE5(tmp_name_name_14, tmp_globals_arg_name_14, tmp_locals_arg_name_14, tmp_fromlist_name_14, tmp_level_name_14); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_4__module == NULL); - tmp_import_from_4__module = tmp_assign_source_35; - } - // Tried code: - { - PyObject *tmp_assign_source_36; - PyObject *tmp_import_name_from_25; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_25 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_25)) { - tmp_assign_source_36 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_25, - (PyObject *)moduledict_models$Qformer, - mod_consts[316], - mod_consts[29] - ); - } else { - tmp_assign_source_36 = IMPORT_NAME(tmp_import_name_from_25, mod_consts[316]); - } - - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[316], tmp_assign_source_36); - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_import_name_from_26; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_26 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_26)) { - tmp_assign_source_37 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_26, - (PyObject *)moduledict_models$Qformer, - mod_consts[130], - mod_consts[29] - ); - } else { - tmp_assign_source_37 = IMPORT_NAME(tmp_import_name_from_26, mod_consts[130]); - } - - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[130], tmp_assign_source_37); - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_import_name_from_27; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_27 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_27)) { - tmp_assign_source_38 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_27, - (PyObject *)moduledict_models$Qformer, - mod_consts[97], - mod_consts[29] - ); - } else { - tmp_assign_source_38 = IMPORT_NAME(tmp_import_name_from_27, mod_consts[97]); - } - - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[97], tmp_assign_source_38); - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_import_name_from_28; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_28 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_28)) { - tmp_assign_source_39 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_28, - (PyObject *)moduledict_models$Qformer, - mod_consts[100], - mod_consts[29] - ); - } else { - tmp_assign_source_39 = IMPORT_NAME(tmp_import_name_from_28, mod_consts[100]); - } - - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[100], tmp_assign_source_39); - } - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_4__module); - Py_DECREF(tmp_import_from_4__module); - tmp_import_from_4__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_import_from_4__module); - Py_DECREF(tmp_import_from_4__module); - tmp_import_from_4__module = NULL; - { - PyObject *tmp_assign_source_40; - PyObject *tmp_import_name_from_29; - PyObject *tmp_name_name_15; - PyObject *tmp_globals_arg_name_15; - PyObject *tmp_locals_arg_name_15; - PyObject *tmp_fromlist_name_15; - PyObject *tmp_level_name_15; - tmp_name_name_15 = mod_consts[317]; - tmp_globals_arg_name_15 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_15 = Py_None; - tmp_fromlist_name_15 = mod_consts[318]; - tmp_level_name_15 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 45; - tmp_import_name_from_29 = IMPORT_MODULE5(tmp_name_name_15, tmp_globals_arg_name_15, tmp_locals_arg_name_15, tmp_fromlist_name_15, tmp_level_name_15); - if (tmp_import_name_from_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_29)) { - tmp_assign_source_40 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_29, - (PyObject *)moduledict_models$Qformer, - mod_consts[319], - mod_consts[29] - ); - } else { - tmp_assign_source_40 = IMPORT_NAME(tmp_import_name_from_29, mod_consts[319]); - } - - Py_DECREF(tmp_import_name_from_29); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[319], tmp_assign_source_40); - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_import_name_from_30; - PyObject *tmp_name_name_16; - PyObject *tmp_globals_arg_name_16; - PyObject *tmp_locals_arg_name_16; - PyObject *tmp_fromlist_name_16; - PyObject *tmp_level_name_16; - tmp_name_name_16 = mod_consts[320]; - tmp_globals_arg_name_16 = (PyObject *)moduledict_models$Qformer; - tmp_locals_arg_name_16 = Py_None; - tmp_fromlist_name_16 = mod_consts[321]; - tmp_level_name_16 = mod_consts[29]; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 46; - tmp_import_name_from_30 = IMPORT_MODULE5(tmp_name_name_16, tmp_globals_arg_name_16, tmp_locals_arg_name_16, tmp_fromlist_name_16, tmp_level_name_16); - if (tmp_import_name_from_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_30)) { - tmp_assign_source_41 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_30, - (PyObject *)moduledict_models$Qformer, - mod_consts[322], - mod_consts[29] - ); - } else { - tmp_assign_source_41 = IMPORT_NAME(tmp_import_name_from_30, mod_consts[322]); - } - - Py_DECREF(tmp_import_name_from_30); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[322], tmp_assign_source_41); - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[319]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[319]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[323]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_args_element_name_1 == NULL)) { - tmp_args_element_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_args_element_name_1 == NULL)); - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 48; - tmp_assign_source_42 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[148], tmp_assign_source_42); - } - // Tried code: - { - PyObject *tmp_assign_source_43; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[325]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_assign_source_43 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_43, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_43; - } - { - PyObject *tmp_assign_source_44; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_44 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_44; - } - { - PyObject *tmp_assign_source_45; - tmp_assign_source_45 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_46; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[326]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_3 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[29]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_46 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_46; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_4, mod_consts[327]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_47; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_5 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[327]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_tuple_element_2 = mod_consts[193]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 51; - tmp_assign_source_47 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_47; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_6 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_6, mod_consts[328]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[324]; - tmp_getattr_default_1 = mod_consts[330]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_7; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_7 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_7 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[324]); - Py_DECREF(tmp_expression_name_7); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_5; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 51; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_5; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_48; - tmp_assign_source_48 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_48; - } - branch_end_2:; - { - PyObject *tmp_assign_source_49; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$Qformer$$$class__1_BertEmbeddings_51 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__1_BertEmbeddings_51, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[332]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__1_BertEmbeddings_51, mod_consts[276], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[193]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__1_BertEmbeddings_51, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_7; - } - if (isFrameUnusable(cache_frame_0c0a0597d4b4257046a86687ff948770_2)) { - Py_XDECREF(cache_frame_0c0a0597d4b4257046a86687ff948770_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0c0a0597d4b4257046a86687ff948770_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0c0a0597d4b4257046a86687ff948770_2 = MAKE_FUNCTION_FRAME(codeobj_0c0a0597d4b4257046a86687ff948770, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0c0a0597d4b4257046a86687ff948770_2->m_type_description == NULL); - frame_0c0a0597d4b4257046a86687ff948770_2 = cache_frame_0c0a0597d4b4257046a86687ff948770_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0c0a0597d4b4257046a86687ff948770_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0c0a0597d4b4257046a86687ff948770_2) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__1___init__(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__1_BertEmbeddings_51, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[335]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__2_forward(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__1_BertEmbeddings_51, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0c0a0597d4b4257046a86687ff948770_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0c0a0597d4b4257046a86687ff948770_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0c0a0597d4b4257046a86687ff948770_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0c0a0597d4b4257046a86687ff948770_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0c0a0597d4b4257046a86687ff948770_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0c0a0597d4b4257046a86687ff948770_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_0c0a0597d4b4257046a86687ff948770_2 == cache_frame_0c0a0597d4b4257046a86687ff948770_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0c0a0597d4b4257046a86687ff948770_2); - cache_frame_0c0a0597d4b4257046a86687ff948770_2 = NULL; - } - - assertFrameObject(frame_0c0a0597d4b4257046a86687ff948770_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_7; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_7; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__1_BertEmbeddings_51, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_7; - } - branch_no_4:; - { - PyObject *tmp_assign_source_50; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_3 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[193]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$Qformer$$$class__1_BertEmbeddings_51; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 51; - tmp_assign_source_50 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - - goto try_except_handler_7; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_50); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_49 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_49); - goto try_return_handler_7; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_DECREF(locals_models$Qformer$$$class__1_BertEmbeddings_51); - locals_models$Qformer$$$class__1_BertEmbeddings_51 = NULL; - goto try_return_handler_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__1_BertEmbeddings_51); - locals_models$Qformer$$$class__1_BertEmbeddings_51 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 51; - goto try_except_handler_5; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[193], tmp_assign_source_49); - } - goto try_end_5; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_51; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_8; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[325]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_assign_source_51 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_51, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_51; - } - { - PyObject *tmp_assign_source_52; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_52 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_52; - } - { - PyObject *tmp_assign_source_53; - tmp_assign_source_53 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_53; - } - { - PyObject *tmp_assign_source_54; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[326]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_9 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[29]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_54 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_54; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_10, mod_consts[327]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_55; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_11 = tmp_class_creation_2__metaclass; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[327]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_tuple_element_6 = mod_consts[93]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 111; - tmp_assign_source_55 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_55; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_12 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_12, mod_consts[328]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[324]; - tmp_getattr_default_2 = mod_consts[330]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_13 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_13 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[324]); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_8; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_8; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 111; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_8; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_56; - tmp_assign_source_56 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_56; - } - branch_end_6:; - { - PyObject *tmp_assign_source_57; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$Qformer$$$class__2_BertSelfAttention_111 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[93]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_10; - } - if (isFrameUnusable(cache_frame_39fcb37e2c2b36c20e772de986f100d1_3)) { - Py_XDECREF(cache_frame_39fcb37e2c2b36c20e772de986f100d1_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_39fcb37e2c2b36c20e772de986f100d1_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_39fcb37e2c2b36c20e772de986f100d1_3 = MAKE_FUNCTION_FRAME(codeobj_39fcb37e2c2b36c20e772de986f100d1, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_39fcb37e2c2b36c20e772de986f100d1_3->m_type_description == NULL); - frame_39fcb37e2c2b36c20e772de986f100d1_3 = cache_frame_39fcb37e2c2b36c20e772de986f100d1_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_39fcb37e2c2b36c20e772de986f100d1_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_39fcb37e2c2b36c20e772de986f100d1_3) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_2[1]; - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__3___init__(tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__4_save_attn_gradients(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[88], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__5_get_attn_gradients(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[341], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__6_save_attention_map(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[85], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__7_get_attention_map(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[344], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__8_transpose_for_scores(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[59], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[347]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__9_forward(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_39fcb37e2c2b36c20e772de986f100d1_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_39fcb37e2c2b36c20e772de986f100d1_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_39fcb37e2c2b36c20e772de986f100d1_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_39fcb37e2c2b36c20e772de986f100d1_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_39fcb37e2c2b36c20e772de986f100d1_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_39fcb37e2c2b36c20e772de986f100d1_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_39fcb37e2c2b36c20e772de986f100d1_3 == cache_frame_39fcb37e2c2b36c20e772de986f100d1_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_39fcb37e2c2b36c20e772de986f100d1_3); - cache_frame_39fcb37e2c2b36c20e772de986f100d1_3 = NULL; - } - - assertFrameObject(frame_39fcb37e2c2b36c20e772de986f100d1_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_10; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_10; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__2_BertSelfAttention_111, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_10; - } - branch_no_8:; - { - PyObject *tmp_assign_source_58; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_5 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[93]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$Qformer$$$class__2_BertSelfAttention_111; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 111; - tmp_assign_source_58 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - - goto try_except_handler_10; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_58); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_57 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_57); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_DECREF(locals_models$Qformer$$$class__2_BertSelfAttention_111); - locals_models$Qformer$$$class__2_BertSelfAttention_111 = NULL; - goto try_return_handler_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__2_BertSelfAttention_111); - locals_models$Qformer$$$class__2_BertSelfAttention_111 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_9; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 111; - goto try_except_handler_8; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[93], tmp_assign_source_57); - } - goto try_end_6; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_59; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_14; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[325]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_assign_source_59 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_59, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_59; - } - { - PyObject *tmp_assign_source_60; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_60 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_60; - } - { - PyObject *tmp_assign_source_61; - tmp_assign_source_61 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[326]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_15 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[29]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_62 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_62; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_16 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_16, mod_consts[327]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_63; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_17 = tmp_class_creation_3__metaclass; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[327]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_tuple_element_10 = mod_consts[94]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 278; - tmp_assign_source_63 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_63; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_18; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_18 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_18, mod_consts[328]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[324]; - tmp_getattr_default_3 = mod_consts[330]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_19; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_19 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_19 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[324]); - Py_DECREF(tmp_expression_name_19); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_11; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_11; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 278; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_11; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_64; - tmp_assign_source_64 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_64; - } - branch_end_10:; - { - PyObject *tmp_assign_source_65; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$Qformer$$$class__3_BertSelfOutput_278 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__3_BertSelfOutput_278, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[94]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__3_BertSelfOutput_278, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_13; - } - if (isFrameUnusable(cache_frame_cc56a3d4cf1124558e66a811713c588d_4)) { - Py_XDECREF(cache_frame_cc56a3d4cf1124558e66a811713c588d_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_cc56a3d4cf1124558e66a811713c588d_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_cc56a3d4cf1124558e66a811713c588d_4 = MAKE_FUNCTION_FRAME(codeobj_cc56a3d4cf1124558e66a811713c588d, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_cc56a3d4cf1124558e66a811713c588d_4->m_type_description == NULL); - frame_cc56a3d4cf1124558e66a811713c588d_4 = cache_frame_cc56a3d4cf1124558e66a811713c588d_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_cc56a3d4cf1124558e66a811713c588d_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_cc56a3d4cf1124558e66a811713c588d_4) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_3[1]; - - tmp_closure_3[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__10___init__(tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__3_BertSelfOutput_278, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__11_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__3_BertSelfOutput_278, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cc56a3d4cf1124558e66a811713c588d_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cc56a3d4cf1124558e66a811713c588d_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_cc56a3d4cf1124558e66a811713c588d_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_cc56a3d4cf1124558e66a811713c588d_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_cc56a3d4cf1124558e66a811713c588d_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_cc56a3d4cf1124558e66a811713c588d_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_cc56a3d4cf1124558e66a811713c588d_4 == cache_frame_cc56a3d4cf1124558e66a811713c588d_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_cc56a3d4cf1124558e66a811713c588d_4); - cache_frame_cc56a3d4cf1124558e66a811713c588d_4 = NULL; - } - - assertFrameObject(frame_cc56a3d4cf1124558e66a811713c588d_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_13; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_13; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__3_BertSelfOutput_278, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_13; - } - branch_no_12:; - { - PyObject *tmp_assign_source_66; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_7 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[94]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$Qformer$$$class__3_BertSelfOutput_278; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 278; - tmp_assign_source_66 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_66 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - - goto try_except_handler_13; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_66); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_65 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_65); - goto try_return_handler_13; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - Py_DECREF(locals_models$Qformer$$$class__3_BertSelfOutput_278); - locals_models$Qformer$$$class__3_BertSelfOutput_278 = NULL; - goto try_return_handler_12; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__3_BertSelfOutput_278); - locals_models$Qformer$$$class__3_BertSelfOutput_278 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_12; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 278; - goto try_except_handler_11; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[94], tmp_assign_source_65); - } - goto try_end_7; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_67; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_20; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[325]); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_assign_source_67 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_67, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_67; - } - { - PyObject *tmp_assign_source_68; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_68 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_68; - } - { - PyObject *tmp_assign_source_69; - tmp_assign_source_69 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[326]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_21 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[29]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_21, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_70 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_70; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_22; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_22 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_22, mod_consts[327]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_71; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_23 = tmp_class_creation_4__metaclass; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[327]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_tuple_element_14 = mod_consts[109]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 292; - tmp_assign_source_71 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_71; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_24; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_24 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_24, mod_consts[328]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[324]; - tmp_getattr_default_4 = mod_consts[330]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_25; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_25 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_25 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[324]); - Py_DECREF(tmp_expression_name_25); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_14; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 292; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_14; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_72; - tmp_assign_source_72 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_72; - } - branch_end_14:; - { - PyObject *tmp_assign_source_73; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$Qformer$$$class__4_BertAttention_292 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__4_BertAttention_292, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[109]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__4_BertAttention_292, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_16; - } - if (isFrameUnusable(cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5)) { - Py_XDECREF(cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5 = MAKE_FUNCTION_FRAME(codeobj_5bfea05f5a06871ae56cfaab6dbe57ba, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5->m_type_description == NULL); - frame_5bfea05f5a06871ae56cfaab6dbe57ba_5 = cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5bfea05f5a06871ae56cfaab6dbe57ba_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5bfea05f5a06871ae56cfaab6dbe57ba_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - struct Nuitka_CellObject *tmp_closure_4[1]; - tmp_defaults_3 = mod_consts[351]; - Py_INCREF(tmp_defaults_3); - - tmp_closure_4[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__12___init__(tmp_defaults_3, tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__4_BertAttention_292, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__13_prune_heads(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__4_BertAttention_292, mod_consts[200], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 299; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - { - PyObject *tmp_defaults_4; - tmp_defaults_4 = mod_consts[347]; - Py_INCREF(tmp_defaults_4); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__14_forward(tmp_defaults_4); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__4_BertAttention_292, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5bfea05f5a06871ae56cfaab6dbe57ba_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5bfea05f5a06871ae56cfaab6dbe57ba_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5bfea05f5a06871ae56cfaab6dbe57ba_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5bfea05f5a06871ae56cfaab6dbe57ba_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5bfea05f5a06871ae56cfaab6dbe57ba_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5bfea05f5a06871ae56cfaab6dbe57ba_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_5bfea05f5a06871ae56cfaab6dbe57ba_5 == cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5); - cache_frame_5bfea05f5a06871ae56cfaab6dbe57ba_5 = NULL; - } - - assertFrameObject(frame_5bfea05f5a06871ae56cfaab6dbe57ba_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_16; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_16; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__4_BertAttention_292, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_16; - } - branch_no_16:; - { - PyObject *tmp_assign_source_74; - PyObject *tmp_called_name_9; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_9 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[109]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$Qformer$$$class__4_BertAttention_292; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 292; - tmp_assign_source_74 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - - goto try_except_handler_16; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_74); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_73 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_73); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_DECREF(locals_models$Qformer$$$class__4_BertAttention_292); - locals_models$Qformer$$$class__4_BertAttention_292 = NULL; - goto try_return_handler_15; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__4_BertAttention_292); - locals_models$Qformer$$$class__4_BertAttention_292 = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto try_except_handler_15; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 292; - goto try_except_handler_14; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[109], tmp_assign_source_73); - } - goto try_end_8; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_75; - PyObject *tmp_tuple_element_17; - PyObject *tmp_expression_name_26; - tmp_expression_name_26 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_26 == NULL)) { - tmp_expression_name_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_tuple_element_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[325]); - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_assign_source_75 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_75, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_75; - } - { - PyObject *tmp_assign_source_76; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_76 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_76; - } - { - PyObject *tmp_assign_source_77; - tmp_assign_source_77 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_77; - } - { - PyObject *tmp_assign_source_78; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[326]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_27 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[29]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_78 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_78; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_28 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[327]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_79; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_29 = tmp_class_creation_5__metaclass; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[327]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_tuple_element_18 = mod_consts[117]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 349; - tmp_assign_source_79 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_79; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_30 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[328]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[324]; - tmp_getattr_default_5 = mod_consts[330]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_31 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_31 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[324]); - Py_DECREF(tmp_expression_name_31); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_17; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_17; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 349; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_17; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_80; - tmp_assign_source_80 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_80; - } - branch_end_18:; - { - PyObject *tmp_assign_source_81; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$Qformer$$$class__5_BertIntermediate_349 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__5_BertIntermediate_349, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_19; - } - tmp_dictset_value = mod_consts[117]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__5_BertIntermediate_349, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_19; - } - if (isFrameUnusable(cache_frame_7007713779c26360c0f6632cb2047835_6)) { - Py_XDECREF(cache_frame_7007713779c26360c0f6632cb2047835_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7007713779c26360c0f6632cb2047835_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7007713779c26360c0f6632cb2047835_6 = MAKE_FUNCTION_FRAME(codeobj_7007713779c26360c0f6632cb2047835, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7007713779c26360c0f6632cb2047835_6->m_type_description == NULL); - frame_7007713779c26360c0f6632cb2047835_6 = cache_frame_7007713779c26360c0f6632cb2047835_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7007713779c26360c0f6632cb2047835_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7007713779c26360c0f6632cb2047835_6) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_5[1]; - - tmp_closure_5[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__15___init__(tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__5_BertIntermediate_349, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__16_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__5_BertIntermediate_349, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7007713779c26360c0f6632cb2047835_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7007713779c26360c0f6632cb2047835_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7007713779c26360c0f6632cb2047835_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7007713779c26360c0f6632cb2047835_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7007713779c26360c0f6632cb2047835_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7007713779c26360c0f6632cb2047835_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_7007713779c26360c0f6632cb2047835_6 == cache_frame_7007713779c26360c0f6632cb2047835_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7007713779c26360c0f6632cb2047835_6); - cache_frame_7007713779c26360c0f6632cb2047835_6 = NULL; - } - - assertFrameObject(frame_7007713779c26360c0f6632cb2047835_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_19; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_19; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__5_BertIntermediate_349, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_19; - } - branch_no_20:; - { - PyObject *tmp_assign_source_82; - PyObject *tmp_called_name_11; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_11 = tmp_class_creation_5__metaclass; - tmp_tuple_element_20 = mod_consts[117]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$Qformer$$$class__5_BertIntermediate_349; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 349; - tmp_assign_source_82 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - - goto try_except_handler_19; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_82); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_81 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_81); - goto try_return_handler_19; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - Py_DECREF(locals_models$Qformer$$$class__5_BertIntermediate_349); - locals_models$Qformer$$$class__5_BertIntermediate_349 = NULL; - goto try_return_handler_18; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__5_BertIntermediate_349); - locals_models$Qformer$$$class__5_BertIntermediate_349 = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto try_except_handler_18; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 349; - goto try_except_handler_17; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[117], tmp_assign_source_81); - } - goto try_end_9; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_83; - PyObject *tmp_tuple_element_21; - PyObject *tmp_expression_name_32; - tmp_expression_name_32 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_32 == NULL)) { - tmp_expression_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_tuple_element_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[325]); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_assign_source_83 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_83, 0, tmp_tuple_element_21); - assert(tmp_class_creation_6__bases_orig == NULL); - tmp_class_creation_6__bases_orig = tmp_assign_source_83; - } - { - PyObject *tmp_assign_source_84; - PyObject *tmp_dircall_arg1_6; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig; - Py_INCREF(tmp_dircall_arg1_6); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_6}; - tmp_assign_source_84 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - assert(tmp_class_creation_6__bases == NULL); - tmp_class_creation_6__bases = tmp_assign_source_84; - } - { - PyObject *tmp_assign_source_85; - tmp_assign_source_85 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_85; - } - { - PyObject *tmp_assign_source_86; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - nuitka_bool tmp_condition_result_32; - int tmp_truth_name_6; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_33; - PyObject *tmp_subscript_name_6; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[326]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_class_creation_6__bases); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_condition_result_32 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_expression_name_33 = tmp_class_creation_6__bases; - tmp_subscript_name_6 = mod_consts[29]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_33, tmp_subscript_name_6, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_metaclass_name_6 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_bases_name_6 = tmp_class_creation_6__bases; - tmp_assign_source_86 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_86; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_33 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_expression_name_34; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_34 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_34, mod_consts[327]); - tmp_condition_result_34 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_87; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_35; - PyObject *tmp_args_name_11; - PyObject *tmp_tuple_element_22; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_35 = tmp_class_creation_6__metaclass; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[327]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_tuple_element_22 = mod_consts[119]; - tmp_args_name_11 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_11, 0, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_22 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_11, 1, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 364; - tmp_assign_source_87 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_name_11); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_87; - } - { - nuitka_bool tmp_condition_result_35; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_36; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_36 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_36, mod_consts[328]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_condition_result_35 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_23; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[324]; - tmp_getattr_default_6 = mod_consts[330]; - tmp_tuple_element_23 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_37; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_12 = tmp_class_creation_6__prepared; - tmp_expression_name_37 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_37 == NULL)); - tmp_tuple_element_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[324]); - Py_DECREF(tmp_expression_name_37); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_23); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_20; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_20; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 364; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_20; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_88; - tmp_assign_source_88 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_88; - } - branch_end_22:; - { - PyObject *tmp_assign_source_89; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$Qformer$$$class__6_BertOutput_364 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__6_BertOutput_364, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_22; - } - tmp_dictset_value = mod_consts[119]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__6_BertOutput_364, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_22; - } - if (isFrameUnusable(cache_frame_2997152d8a9cec4ec6825b911abbb306_7)) { - Py_XDECREF(cache_frame_2997152d8a9cec4ec6825b911abbb306_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2997152d8a9cec4ec6825b911abbb306_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2997152d8a9cec4ec6825b911abbb306_7 = MAKE_FUNCTION_FRAME(codeobj_2997152d8a9cec4ec6825b911abbb306, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2997152d8a9cec4ec6825b911abbb306_7->m_type_description == NULL); - frame_2997152d8a9cec4ec6825b911abbb306_7 = cache_frame_2997152d8a9cec4ec6825b911abbb306_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2997152d8a9cec4ec6825b911abbb306_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2997152d8a9cec4ec6825b911abbb306_7) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_6[1]; - - tmp_closure_6[0] = outline_5_var___class__; - Py_INCREF(tmp_closure_6[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__17___init__(tmp_closure_6); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__6_BertOutput_364, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_2 = "c"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__18_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__6_BertOutput_364, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "c"; - goto frame_exception_exit_7; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2997152d8a9cec4ec6825b911abbb306_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2997152d8a9cec4ec6825b911abbb306_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2997152d8a9cec4ec6825b911abbb306_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2997152d8a9cec4ec6825b911abbb306_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2997152d8a9cec4ec6825b911abbb306_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2997152d8a9cec4ec6825b911abbb306_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2997152d8a9cec4ec6825b911abbb306_7 == cache_frame_2997152d8a9cec4ec6825b911abbb306_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2997152d8a9cec4ec6825b911abbb306_7); - cache_frame_2997152d8a9cec4ec6825b911abbb306_7 = NULL; - } - - assertFrameObject(frame_2997152d8a9cec4ec6825b911abbb306_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_22; - skip_nested_handling_6:; - { - nuitka_bool tmp_condition_result_36; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_compexpr_left_6 = tmp_class_creation_6__bases; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_compexpr_right_6 = tmp_class_creation_6__bases_orig; - tmp_condition_result_36 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_condition_result_36 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_22; - } - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_36 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dictset_value = tmp_class_creation_6__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__6_BertOutput_364, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_22; - } - branch_no_24:; - { - PyObject *tmp_assign_source_90; - PyObject *tmp_called_name_13; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_24; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_13 = tmp_class_creation_6__metaclass; - tmp_tuple_element_24 = mod_consts[119]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_24 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_24); - tmp_tuple_element_24 = locals_models$Qformer$$$class__6_BertOutput_364; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 364; - tmp_assign_source_90 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - - goto try_except_handler_22; - } - { - PyObject *old = Nuitka_Cell_GET(outline_5_var___class__); - PyCell_SET(outline_5_var___class__, tmp_assign_source_90); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_5_var___class__)); - tmp_assign_source_89 = Nuitka_Cell_GET(outline_5_var___class__); - Py_INCREF(tmp_assign_source_89); - goto try_return_handler_22; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_22:; - Py_DECREF(locals_models$Qformer$$$class__6_BertOutput_364); - locals_models$Qformer$$$class__6_BertOutput_364 = NULL; - goto try_return_handler_21; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__6_BertOutput_364); - locals_models$Qformer$$$class__6_BertOutput_364 = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto try_except_handler_21; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_21:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 364; - goto try_except_handler_20; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[119], tmp_assign_source_89); - } - goto try_end_10; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - Py_DECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_91; - PyObject *tmp_tuple_element_25; - PyObject *tmp_expression_name_38; - tmp_expression_name_38 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_38 == NULL)) { - tmp_expression_name_38 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_tuple_element_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[325]); - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_assign_source_91 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_91, 0, tmp_tuple_element_25); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_91; - } - { - PyObject *tmp_assign_source_92; - PyObject *tmp_dircall_arg1_7; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_7 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_7); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_7}; - tmp_assign_source_92 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_92; - } - { - PyObject *tmp_assign_source_93; - tmp_assign_source_93 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_93; - } - { - PyObject *tmp_assign_source_94; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_37; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_38; - int tmp_truth_name_7; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_39; - PyObject *tmp_subscript_name_7; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_37 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[326]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - goto condexpr_end_13; - condexpr_false_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_condition_result_38 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_39 = tmp_class_creation_7__bases; - tmp_subscript_name_7 = mod_consts[29]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_39, tmp_subscript_name_7, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - goto condexpr_end_14; - condexpr_false_14:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_14:; - condexpr_end_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_94 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_94 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_94; - } - { - nuitka_bool tmp_condition_result_39; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_39 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_expression_name_40; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_40 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_40, mod_consts[327]); - tmp_condition_result_40 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_95; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_41; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_26; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_41 = tmp_class_creation_7__metaclass; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[327]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_tuple_element_26 = mod_consts[139]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_26 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 378; - tmp_assign_source_95 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_95 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_95; - } - { - nuitka_bool tmp_condition_result_41; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_42; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_42 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_42, mod_consts[328]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_condition_result_41 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_27; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[324]; - tmp_getattr_default_7 = mod_consts[330]; - tmp_tuple_element_27 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_43; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_27); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_14 = tmp_class_creation_7__prepared; - tmp_expression_name_43 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_43 == NULL)); - tmp_tuple_element_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[324]); - Py_DECREF(tmp_expression_name_43); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_27); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_23; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_23; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 378; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_23; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_96; - tmp_assign_source_96 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_96; - } - branch_end_26:; - { - PyObject *tmp_assign_source_97; - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$Qformer$$$class__7_BertLayer_378 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_25; - } - tmp_dictset_value = mod_consts[139]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_25; - } - if (isFrameUnusable(cache_frame_a081438c9da0f662f5a4de30a72f53eb_8)) { - Py_XDECREF(cache_frame_a081438c9da0f662f5a4de30a72f53eb_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a081438c9da0f662f5a4de30a72f53eb_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a081438c9da0f662f5a4de30a72f53eb_8 = MAKE_FUNCTION_FRAME(codeobj_a081438c9da0f662f5a4de30a72f53eb, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a081438c9da0f662f5a4de30a72f53eb_8->m_type_description == NULL); - frame_a081438c9da0f662f5a4de30a72f53eb_8 = cache_frame_a081438c9da0f662f5a4de30a72f53eb_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a081438c9da0f662f5a4de30a72f53eb_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a081438c9da0f662f5a4de30a72f53eb_8) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_7[1]; - - tmp_closure_7[0] = outline_6_var___class__; - Py_INCREF(tmp_closure_7[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__19___init__(tmp_closure_7); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - { - PyObject *tmp_defaults_5; - tmp_defaults_5 = mod_consts[360]; - Py_INCREF(tmp_defaults_5); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__20_forward(tmp_defaults_5); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__21_feed_forward_chunk(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[133], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 476; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__22_feed_forward_chunk_query(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[131], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 481; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a081438c9da0f662f5a4de30a72f53eb_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a081438c9da0f662f5a4de30a72f53eb_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a081438c9da0f662f5a4de30a72f53eb_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a081438c9da0f662f5a4de30a72f53eb_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a081438c9da0f662f5a4de30a72f53eb_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a081438c9da0f662f5a4de30a72f53eb_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_a081438c9da0f662f5a4de30a72f53eb_8 == cache_frame_a081438c9da0f662f5a4de30a72f53eb_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a081438c9da0f662f5a4de30a72f53eb_8); - cache_frame_a081438c9da0f662f5a4de30a72f53eb_8 = NULL; - } - - assertFrameObject(frame_a081438c9da0f662f5a4de30a72f53eb_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_25; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_42; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_7 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_7 = tmp_class_creation_7__bases_orig; - tmp_condition_result_42 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_7, tmp_compexpr_right_7); - if (tmp_condition_result_42 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_25; - } - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_42 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__7_BertLayer_378, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_25; - } - branch_no_28:; - { - PyObject *tmp_assign_source_98; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_28; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_15 = tmp_class_creation_7__metaclass; - tmp_tuple_element_28 = mod_consts[139]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_28 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_28); - tmp_tuple_element_28 = locals_models$Qformer$$$class__7_BertLayer_378; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 378; - tmp_assign_source_98 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_98 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - - goto try_except_handler_25; - } - { - PyObject *old = Nuitka_Cell_GET(outline_6_var___class__); - PyCell_SET(outline_6_var___class__, tmp_assign_source_98); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_6_var___class__)); - tmp_assign_source_97 = Nuitka_Cell_GET(outline_6_var___class__); - Py_INCREF(tmp_assign_source_97); - goto try_return_handler_25; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_25:; - Py_DECREF(locals_models$Qformer$$$class__7_BertLayer_378); - locals_models$Qformer$$$class__7_BertLayer_378 = NULL; - goto try_return_handler_24; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__7_BertLayer_378); - locals_models$Qformer$$$class__7_BertLayer_378 = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto try_except_handler_24; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_24:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 378; - goto try_except_handler_23; - outline_result_7:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[139], tmp_assign_source_97); - } - goto try_end_11; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_25; - exception_value = exception_keeper_value_25; - exception_tb = exception_keeper_tb_25; - exception_lineno = exception_keeper_lineno_25; - - goto frame_exception_exit_1; - // End of try: - try_end_11:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_99; - PyObject *tmp_tuple_element_29; - PyObject *tmp_expression_name_44; - tmp_expression_name_44 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_44 == NULL)) { - tmp_expression_name_44 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_tuple_element_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_44, mod_consts[325]); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_assign_source_99 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_99, 0, tmp_tuple_element_29); - assert(tmp_class_creation_8__bases_orig == NULL); - tmp_class_creation_8__bases_orig = tmp_assign_source_99; - } - { - PyObject *tmp_assign_source_100; - PyObject *tmp_dircall_arg1_8; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dircall_arg1_8 = tmp_class_creation_8__bases_orig; - Py_INCREF(tmp_dircall_arg1_8); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_8}; - tmp_assign_source_100 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_100 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - assert(tmp_class_creation_8__bases == NULL); - tmp_class_creation_8__bases = tmp_assign_source_100; - } - { - PyObject *tmp_assign_source_101; - tmp_assign_source_101 = PyDict_New(); - assert(tmp_class_creation_8__class_decl_dict == NULL); - tmp_class_creation_8__class_decl_dict = tmp_assign_source_101; - } - { - PyObject *tmp_assign_source_102; - PyObject *tmp_metaclass_name_8; - nuitka_bool tmp_condition_result_43; - PyObject *tmp_key_name_22; - PyObject *tmp_dict_arg_name_22; - PyObject *tmp_dict_arg_name_23; - PyObject *tmp_key_name_23; - nuitka_bool tmp_condition_result_44; - int tmp_truth_name_8; - PyObject *tmp_type_arg_15; - PyObject *tmp_expression_name_45; - PyObject *tmp_subscript_name_8; - PyObject *tmp_bases_name_8; - tmp_key_name_22 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_22 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_22, tmp_key_name_22); - assert(!(tmp_res == -1)); - tmp_condition_result_43 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_43 == NUITKA_BOOL_TRUE) { - goto condexpr_true_15; - } else { - goto condexpr_false_15; - } - condexpr_true_15:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_23 = tmp_class_creation_8__class_decl_dict; - tmp_key_name_23 = mod_consts[326]; - tmp_metaclass_name_8 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_23, tmp_key_name_23); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - goto condexpr_end_15; - condexpr_false_15:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_class_creation_8__bases); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_condition_result_44 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_44 == NUITKA_BOOL_TRUE) { - goto condexpr_true_16; - } else { - goto condexpr_false_16; - } - condexpr_true_16:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_expression_name_45 = tmp_class_creation_8__bases; - tmp_subscript_name_8 = mod_consts[29]; - tmp_type_arg_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_45, tmp_subscript_name_8, 0); - if (tmp_type_arg_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_metaclass_name_8 = BUILTIN_TYPE1(tmp_type_arg_15); - Py_DECREF(tmp_type_arg_15); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - goto condexpr_end_16; - condexpr_false_16:; - tmp_metaclass_name_8 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_8); - condexpr_end_16:; - condexpr_end_15:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_bases_name_8 = tmp_class_creation_8__bases; - tmp_assign_source_102 = SELECT_METACLASS(tmp_metaclass_name_8, tmp_bases_name_8); - Py_DECREF(tmp_metaclass_name_8); - if (tmp_assign_source_102 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - assert(tmp_class_creation_8__metaclass == NULL); - tmp_class_creation_8__metaclass = tmp_assign_source_102; - } - { - nuitka_bool tmp_condition_result_45; - PyObject *tmp_key_name_24; - PyObject *tmp_dict_arg_name_24; - tmp_key_name_24 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_24 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_24, tmp_key_name_24); - assert(!(tmp_res == -1)); - tmp_condition_result_45 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_45 == NUITKA_BOOL_TRUE) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_8__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - branch_no_29:; - { - nuitka_bool tmp_condition_result_46; - PyObject *tmp_expression_name_46; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_46 = tmp_class_creation_8__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_46, mod_consts[327]); - tmp_condition_result_46 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_46 == NUITKA_BOOL_TRUE) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_assign_source_103; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_47; - PyObject *tmp_args_name_15; - PyObject *tmp_tuple_element_30; - PyObject *tmp_kwargs_name_15; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_47 = tmp_class_creation_8__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[327]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_tuple_element_30 = mod_consts[194]; - tmp_args_name_15 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_15, 0, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_30 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_15, 1, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_15 = tmp_class_creation_8__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 487; - tmp_assign_source_103 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_15, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_15); - if (tmp_assign_source_103 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_103; - } - { - nuitka_bool tmp_condition_result_47; - PyObject *tmp_operand_name_8; - PyObject *tmp_expression_name_48; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_expression_name_48 = tmp_class_creation_8__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_48, mod_consts[328]); - tmp_operand_name_8 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_condition_result_47 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_47 == NUITKA_BOOL_TRUE) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - PyObject *tmp_raise_type_8; - PyObject *tmp_raise_value_8; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_tuple_element_31; - PyObject *tmp_getattr_target_8; - PyObject *tmp_getattr_attr_8; - PyObject *tmp_getattr_default_8; - tmp_raise_type_8 = PyExc_TypeError; - tmp_left_name_8 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_getattr_target_8 = tmp_class_creation_8__metaclass; - tmp_getattr_attr_8 = mod_consts[324]; - tmp_getattr_default_8 = mod_consts[330]; - tmp_tuple_element_31 = BUILTIN_GETATTR(tmp_getattr_target_8, tmp_getattr_attr_8, tmp_getattr_default_8); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - tmp_right_name_8 = PyTuple_New(2); - { - PyObject *tmp_expression_name_49; - PyObject *tmp_type_arg_16; - PyTuple_SET_ITEM(tmp_right_name_8, 0, tmp_tuple_element_31); - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_type_arg_16 = tmp_class_creation_8__prepared; - tmp_expression_name_49 = BUILTIN_TYPE1(tmp_type_arg_16); - assert(!(tmp_expression_name_49 == NULL)); - tmp_tuple_element_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[324]); - Py_DECREF(tmp_expression_name_49); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_right_name_8, 1, tmp_tuple_element_31); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_right_name_8); - goto try_except_handler_26; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_raise_value_8 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_raise_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_26; - } - exception_type = tmp_raise_type_8; - Py_INCREF(tmp_raise_type_8); - exception_value = tmp_raise_value_8; - exception_lineno = 487; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_26; - } - branch_no_31:; - goto branch_end_30; - branch_no_30:; - { - PyObject *tmp_assign_source_104; - tmp_assign_source_104 = PyDict_New(); - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_104; - } - branch_end_30:; - { - PyObject *tmp_assign_source_105; - { - PyObject *tmp_set_locals_8; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_set_locals_8 = tmp_class_creation_8__prepared; - locals_models$Qformer$$$class__8_BertEncoder_487 = tmp_set_locals_8; - Py_INCREF(tmp_set_locals_8); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__8_BertEncoder_487, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_28; - } - tmp_dictset_value = mod_consts[194]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__8_BertEncoder_487, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_28; - } - if (isFrameUnusable(cache_frame_e1623af249db2190f4f0a833e30e71e3_9)) { - Py_XDECREF(cache_frame_e1623af249db2190f4f0a833e30e71e3_9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e1623af249db2190f4f0a833e30e71e3_9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e1623af249db2190f4f0a833e30e71e3_9 = MAKE_FUNCTION_FRAME(codeobj_e1623af249db2190f4f0a833e30e71e3, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e1623af249db2190f4f0a833e30e71e3_9->m_type_description == NULL); - frame_e1623af249db2190f4f0a833e30e71e3_9 = cache_frame_e1623af249db2190f4f0a833e30e71e3_9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e1623af249db2190f4f0a833e30e71e3_9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e1623af249db2190f4f0a833e30e71e3_9) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_8[1]; - - tmp_closure_8[0] = outline_7_var___class__; - Py_INCREF(tmp_closure_8[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__23___init__(tmp_closure_8); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__8_BertEncoder_487, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 488; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - { - PyObject *tmp_defaults_6; - tmp_defaults_6 = mod_consts[365]; - Py_INCREF(tmp_defaults_6); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__24_forward(tmp_defaults_6); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__8_BertEncoder_487, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 495; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e1623af249db2190f4f0a833e30e71e3_9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_8; - - frame_exception_exit_9:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e1623af249db2190f4f0a833e30e71e3_9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e1623af249db2190f4f0a833e30e71e3_9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e1623af249db2190f4f0a833e30e71e3_9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e1623af249db2190f4f0a833e30e71e3_9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e1623af249db2190f4f0a833e30e71e3_9, - type_description_2, - outline_7_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e1623af249db2190f4f0a833e30e71e3_9 == cache_frame_e1623af249db2190f4f0a833e30e71e3_9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e1623af249db2190f4f0a833e30e71e3_9); - cache_frame_e1623af249db2190f4f0a833e30e71e3_9 = NULL; - } - - assertFrameObject(frame_e1623af249db2190f4f0a833e30e71e3_9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_8; - - frame_no_exception_8:; - goto skip_nested_handling_8; - nested_frame_exit_8:; - - goto try_except_handler_28; - skip_nested_handling_8:; - { - nuitka_bool tmp_condition_result_48; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_compexpr_left_8 = tmp_class_creation_8__bases; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_compexpr_right_8 = tmp_class_creation_8__bases_orig; - tmp_condition_result_48 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_8, tmp_compexpr_right_8); - if (tmp_condition_result_48 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_28; - } - if (tmp_condition_result_48 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - assert(tmp_condition_result_48 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_32:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dictset_value = tmp_class_creation_8__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__8_BertEncoder_487, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_28; - } - branch_no_32:; - { - PyObject *tmp_assign_source_106; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_16; - PyObject *tmp_tuple_element_32; - PyObject *tmp_kwargs_name_16; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_called_name_17 = tmp_class_creation_8__metaclass; - tmp_tuple_element_32 = mod_consts[194]; - tmp_args_name_16 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_16, 0, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_32 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_16, 1, tmp_tuple_element_32); - tmp_tuple_element_32 = locals_models$Qformer$$$class__8_BertEncoder_487; - PyTuple_SET_ITEM0(tmp_args_name_16, 2, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_16 = tmp_class_creation_8__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 487; - tmp_assign_source_106 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_16, tmp_kwargs_name_16); - Py_DECREF(tmp_args_name_16); - if (tmp_assign_source_106 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - - goto try_except_handler_28; - } - { - PyObject *old = Nuitka_Cell_GET(outline_7_var___class__); - PyCell_SET(outline_7_var___class__, tmp_assign_source_106); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_7_var___class__)); - tmp_assign_source_105 = Nuitka_Cell_GET(outline_7_var___class__); - Py_INCREF(tmp_assign_source_105); - goto try_return_handler_28; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_28:; - Py_DECREF(locals_models$Qformer$$$class__8_BertEncoder_487); - locals_models$Qformer$$$class__8_BertEncoder_487 = NULL; - goto try_return_handler_27; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__8_BertEncoder_487); - locals_models$Qformer$$$class__8_BertEncoder_487 = NULL; - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto try_except_handler_27; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_27:; - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - goto outline_result_8; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto outline_exception_8; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_8:; - exception_lineno = 487; - goto try_except_handler_26; - outline_result_8:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[194], tmp_assign_source_105); - } - goto try_end_12; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - Py_XDECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - Py_DECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_8__prepared); - Py_DECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_107; - PyObject *tmp_tuple_element_33; - PyObject *tmp_expression_name_50; - tmp_expression_name_50 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_50 == NULL)) { - tmp_expression_name_50 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_tuple_element_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[325]); - if (tmp_tuple_element_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_assign_source_107 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_107, 0, tmp_tuple_element_33); - assert(tmp_class_creation_9__bases_orig == NULL); - tmp_class_creation_9__bases_orig = tmp_assign_source_107; - } - { - PyObject *tmp_assign_source_108; - PyObject *tmp_dircall_arg1_9; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dircall_arg1_9 = tmp_class_creation_9__bases_orig; - Py_INCREF(tmp_dircall_arg1_9); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_9}; - tmp_assign_source_108 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_108 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - assert(tmp_class_creation_9__bases == NULL); - tmp_class_creation_9__bases = tmp_assign_source_108; - } - { - PyObject *tmp_assign_source_109; - tmp_assign_source_109 = PyDict_New(); - assert(tmp_class_creation_9__class_decl_dict == NULL); - tmp_class_creation_9__class_decl_dict = tmp_assign_source_109; - } - { - PyObject *tmp_assign_source_110; - PyObject *tmp_metaclass_name_9; - nuitka_bool tmp_condition_result_49; - PyObject *tmp_key_name_25; - PyObject *tmp_dict_arg_name_25; - PyObject *tmp_dict_arg_name_26; - PyObject *tmp_key_name_26; - nuitka_bool tmp_condition_result_50; - int tmp_truth_name_9; - PyObject *tmp_type_arg_17; - PyObject *tmp_expression_name_51; - PyObject *tmp_subscript_name_9; - PyObject *tmp_bases_name_9; - tmp_key_name_25 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_25 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_25, tmp_key_name_25); - assert(!(tmp_res == -1)); - tmp_condition_result_49 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_49 == NUITKA_BOOL_TRUE) { - goto condexpr_true_17; - } else { - goto condexpr_false_17; - } - condexpr_true_17:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_26 = tmp_class_creation_9__class_decl_dict; - tmp_key_name_26 = mod_consts[326]; - tmp_metaclass_name_9 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_26, tmp_key_name_26); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - goto condexpr_end_17; - condexpr_false_17:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_truth_name_9 = CHECK_IF_TRUE(tmp_class_creation_9__bases); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_condition_result_50 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_50 == NUITKA_BOOL_TRUE) { - goto condexpr_true_18; - } else { - goto condexpr_false_18; - } - condexpr_true_18:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_expression_name_51 = tmp_class_creation_9__bases; - tmp_subscript_name_9 = mod_consts[29]; - tmp_type_arg_17 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_51, tmp_subscript_name_9, 0); - if (tmp_type_arg_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_metaclass_name_9 = BUILTIN_TYPE1(tmp_type_arg_17); - Py_DECREF(tmp_type_arg_17); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - goto condexpr_end_18; - condexpr_false_18:; - tmp_metaclass_name_9 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_9); - condexpr_end_18:; - condexpr_end_17:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_bases_name_9 = tmp_class_creation_9__bases; - tmp_assign_source_110 = SELECT_METACLASS(tmp_metaclass_name_9, tmp_bases_name_9); - Py_DECREF(tmp_metaclass_name_9); - if (tmp_assign_source_110 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - assert(tmp_class_creation_9__metaclass == NULL); - tmp_class_creation_9__metaclass = tmp_assign_source_110; - } - { - nuitka_bool tmp_condition_result_51; - PyObject *tmp_key_name_27; - PyObject *tmp_dict_arg_name_27; - tmp_key_name_27 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_27 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_27, tmp_key_name_27); - assert(!(tmp_res == -1)); - tmp_condition_result_51 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_51 == NUITKA_BOOL_TRUE) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_9__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - branch_no_33:; - { - nuitka_bool tmp_condition_result_52; - PyObject *tmp_expression_name_52; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_52 = tmp_class_creation_9__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_52, mod_consts[327]); - tmp_condition_result_52 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_52 == NUITKA_BOOL_TRUE) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_assign_source_111; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_53; - PyObject *tmp_args_name_17; - PyObject *tmp_tuple_element_34; - PyObject *tmp_kwargs_name_17; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_53 = tmp_class_creation_9__metaclass; - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_53, mod_consts[327]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_tuple_element_34 = mod_consts[196]; - tmp_args_name_17 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_17, 0, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_34 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_17, 1, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_17 = tmp_class_creation_9__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 592; - tmp_assign_source_111 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_17, tmp_kwargs_name_17); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_17); - if (tmp_assign_source_111 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_111; - } - { - nuitka_bool tmp_condition_result_53; - PyObject *tmp_operand_name_9; - PyObject *tmp_expression_name_54; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_expression_name_54 = tmp_class_creation_9__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_54, mod_consts[328]); - tmp_operand_name_9 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_condition_result_53 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_53 == NUITKA_BOOL_TRUE) { - goto branch_yes_35; - } else { - goto branch_no_35; - } - } - branch_yes_35:; - { - PyObject *tmp_raise_type_9; - PyObject *tmp_raise_value_9; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_tuple_element_35; - PyObject *tmp_getattr_target_9; - PyObject *tmp_getattr_attr_9; - PyObject *tmp_getattr_default_9; - tmp_raise_type_9 = PyExc_TypeError; - tmp_left_name_9 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_getattr_target_9 = tmp_class_creation_9__metaclass; - tmp_getattr_attr_9 = mod_consts[324]; - tmp_getattr_default_9 = mod_consts[330]; - tmp_tuple_element_35 = BUILTIN_GETATTR(tmp_getattr_target_9, tmp_getattr_attr_9, tmp_getattr_default_9); - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - tmp_right_name_9 = PyTuple_New(2); - { - PyObject *tmp_expression_name_55; - PyObject *tmp_type_arg_18; - PyTuple_SET_ITEM(tmp_right_name_9, 0, tmp_tuple_element_35); - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_type_arg_18 = tmp_class_creation_9__prepared; - tmp_expression_name_55 = BUILTIN_TYPE1(tmp_type_arg_18); - assert(!(tmp_expression_name_55 == NULL)); - tmp_tuple_element_35 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[324]); - Py_DECREF(tmp_expression_name_55); - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_9, 1, tmp_tuple_element_35); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_9); - goto try_except_handler_29; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_9 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_right_name_9); - if (tmp_raise_value_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_29; - } - exception_type = tmp_raise_type_9; - Py_INCREF(tmp_raise_type_9); - exception_value = tmp_raise_value_9; - exception_lineno = 592; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_29; - } - branch_no_35:; - goto branch_end_34; - branch_no_34:; - { - PyObject *tmp_assign_source_112; - tmp_assign_source_112 = PyDict_New(); - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_112; - } - branch_end_34:; - { - PyObject *tmp_assign_source_113; - { - PyObject *tmp_set_locals_9; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_set_locals_9 = tmp_class_creation_9__prepared; - locals_models$Qformer$$$class__9_BertPooler_592 = tmp_set_locals_9; - Py_INCREF(tmp_set_locals_9); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__9_BertPooler_592, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_31; - } - tmp_dictset_value = mod_consts[196]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__9_BertPooler_592, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_31; - } - if (isFrameUnusable(cache_frame_ab5a99313f9b6e1e298f4606848400d8_10)) { - Py_XDECREF(cache_frame_ab5a99313f9b6e1e298f4606848400d8_10); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ab5a99313f9b6e1e298f4606848400d8_10 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ab5a99313f9b6e1e298f4606848400d8_10 = MAKE_FUNCTION_FRAME(codeobj_ab5a99313f9b6e1e298f4606848400d8, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ab5a99313f9b6e1e298f4606848400d8_10->m_type_description == NULL); - frame_ab5a99313f9b6e1e298f4606848400d8_10 = cache_frame_ab5a99313f9b6e1e298f4606848400d8_10; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ab5a99313f9b6e1e298f4606848400d8_10); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ab5a99313f9b6e1e298f4606848400d8_10) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_9[1]; - - tmp_closure_9[0] = outline_8_var___class__; - Py_INCREF(tmp_closure_9[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__25___init__(tmp_closure_9); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__9_BertPooler_592, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 593; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__26_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__9_BertPooler_592, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 598; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ab5a99313f9b6e1e298f4606848400d8_10); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_9; - - frame_exception_exit_10:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ab5a99313f9b6e1e298f4606848400d8_10); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ab5a99313f9b6e1e298f4606848400d8_10, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ab5a99313f9b6e1e298f4606848400d8_10->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ab5a99313f9b6e1e298f4606848400d8_10, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ab5a99313f9b6e1e298f4606848400d8_10, - type_description_2, - outline_8_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_ab5a99313f9b6e1e298f4606848400d8_10 == cache_frame_ab5a99313f9b6e1e298f4606848400d8_10) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ab5a99313f9b6e1e298f4606848400d8_10); - cache_frame_ab5a99313f9b6e1e298f4606848400d8_10 = NULL; - } - - assertFrameObject(frame_ab5a99313f9b6e1e298f4606848400d8_10); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_9; - - frame_no_exception_9:; - goto skip_nested_handling_9; - nested_frame_exit_9:; - - goto try_except_handler_31; - skip_nested_handling_9:; - { - nuitka_bool tmp_condition_result_54; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_compexpr_left_9 = tmp_class_creation_9__bases; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_compexpr_right_9 = tmp_class_creation_9__bases_orig; - tmp_condition_result_54 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_9, tmp_compexpr_right_9); - if (tmp_condition_result_54 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_31; - } - if (tmp_condition_result_54 == NUITKA_BOOL_TRUE) { - goto branch_yes_36; - } else { - goto branch_no_36; - } - assert(tmp_condition_result_54 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_36:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dictset_value = tmp_class_creation_9__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__9_BertPooler_592, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_31; - } - branch_no_36:; - { - PyObject *tmp_assign_source_114; - PyObject *tmp_called_name_19; - PyObject *tmp_args_name_18; - PyObject *tmp_tuple_element_36; - PyObject *tmp_kwargs_name_18; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_called_name_19 = tmp_class_creation_9__metaclass; - tmp_tuple_element_36 = mod_consts[196]; - tmp_args_name_18 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_18, 0, tmp_tuple_element_36); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_36 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_18, 1, tmp_tuple_element_36); - tmp_tuple_element_36 = locals_models$Qformer$$$class__9_BertPooler_592; - PyTuple_SET_ITEM0(tmp_args_name_18, 2, tmp_tuple_element_36); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_18 = tmp_class_creation_9__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 592; - tmp_assign_source_114 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_18, tmp_kwargs_name_18); - Py_DECREF(tmp_args_name_18); - if (tmp_assign_source_114 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - - goto try_except_handler_31; - } - { - PyObject *old = Nuitka_Cell_GET(outline_8_var___class__); - PyCell_SET(outline_8_var___class__, tmp_assign_source_114); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_8_var___class__)); - tmp_assign_source_113 = Nuitka_Cell_GET(outline_8_var___class__); - Py_INCREF(tmp_assign_source_113); - goto try_return_handler_31; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_31:; - Py_DECREF(locals_models$Qformer$$$class__9_BertPooler_592); - locals_models$Qformer$$$class__9_BertPooler_592 = NULL; - goto try_return_handler_30; - // Exception handler code: - try_except_handler_31:; - exception_keeper_type_29 = exception_type; - exception_keeper_value_29 = exception_value; - exception_keeper_tb_29 = exception_tb; - exception_keeper_lineno_29 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__9_BertPooler_592); - locals_models$Qformer$$$class__9_BertPooler_592 = NULL; - // Re-raise. - exception_type = exception_keeper_type_29; - exception_value = exception_keeper_value_29; - exception_tb = exception_keeper_tb_29; - exception_lineno = exception_keeper_lineno_29; - - goto try_except_handler_30; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_30:; - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - goto outline_result_9; - // Exception handler code: - try_except_handler_30:; - exception_keeper_type_30 = exception_type; - exception_keeper_value_30 = exception_value; - exception_keeper_tb_30 = exception_tb; - exception_keeper_lineno_30 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_30; - exception_value = exception_keeper_value_30; - exception_tb = exception_keeper_tb_30; - exception_lineno = exception_keeper_lineno_30; - - goto outline_exception_9; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_9:; - exception_lineno = 592; - goto try_except_handler_29; - outline_result_9:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[196], tmp_assign_source_113); - } - goto try_end_13; - // Exception handler code: - try_except_handler_29:; - exception_keeper_type_31 = exception_type; - exception_keeper_value_31 = exception_value; - exception_keeper_tb_31 = exception_tb; - exception_keeper_lineno_31 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - Py_XDECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_31; - exception_value = exception_keeper_value_31; - exception_tb = exception_keeper_tb_31; - exception_lineno = exception_keeper_lineno_31; - - goto frame_exception_exit_1; - // End of try: - try_end_13:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - Py_DECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_9__prepared); - Py_DECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_115; - PyObject *tmp_tuple_element_37; - PyObject *tmp_expression_name_56; - tmp_expression_name_56 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_56 == NULL)) { - tmp_expression_name_56 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_tuple_element_37 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[325]); - if (tmp_tuple_element_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_assign_source_115 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_115, 0, tmp_tuple_element_37); - assert(tmp_class_creation_10__bases_orig == NULL); - tmp_class_creation_10__bases_orig = tmp_assign_source_115; - } - { - PyObject *tmp_assign_source_116; - PyObject *tmp_dircall_arg1_10; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - tmp_dircall_arg1_10 = tmp_class_creation_10__bases_orig; - Py_INCREF(tmp_dircall_arg1_10); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_10}; - tmp_assign_source_116 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_116 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - assert(tmp_class_creation_10__bases == NULL); - tmp_class_creation_10__bases = tmp_assign_source_116; - } - { - PyObject *tmp_assign_source_117; - tmp_assign_source_117 = PyDict_New(); - assert(tmp_class_creation_10__class_decl_dict == NULL); - tmp_class_creation_10__class_decl_dict = tmp_assign_source_117; - } - { - PyObject *tmp_assign_source_118; - PyObject *tmp_metaclass_name_10; - nuitka_bool tmp_condition_result_55; - PyObject *tmp_key_name_28; - PyObject *tmp_dict_arg_name_28; - PyObject *tmp_dict_arg_name_29; - PyObject *tmp_key_name_29; - nuitka_bool tmp_condition_result_56; - int tmp_truth_name_10; - PyObject *tmp_type_arg_19; - PyObject *tmp_expression_name_57; - PyObject *tmp_subscript_name_10; - PyObject *tmp_bases_name_10; - tmp_key_name_28 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_28 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_28, tmp_key_name_28); - assert(!(tmp_res == -1)); - tmp_condition_result_55 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_55 == NUITKA_BOOL_TRUE) { - goto condexpr_true_19; - } else { - goto condexpr_false_19; - } - condexpr_true_19:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_29 = tmp_class_creation_10__class_decl_dict; - tmp_key_name_29 = mod_consts[326]; - tmp_metaclass_name_10 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_29, tmp_key_name_29); - if (tmp_metaclass_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - goto condexpr_end_19; - condexpr_false_19:; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_truth_name_10 = CHECK_IF_TRUE(tmp_class_creation_10__bases); - if (tmp_truth_name_10 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_condition_result_56 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_56 == NUITKA_BOOL_TRUE) { - goto condexpr_true_20; - } else { - goto condexpr_false_20; - } - condexpr_true_20:; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_expression_name_57 = tmp_class_creation_10__bases; - tmp_subscript_name_10 = mod_consts[29]; - tmp_type_arg_19 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_57, tmp_subscript_name_10, 0); - if (tmp_type_arg_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_metaclass_name_10 = BUILTIN_TYPE1(tmp_type_arg_19); - Py_DECREF(tmp_type_arg_19); - if (tmp_metaclass_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - goto condexpr_end_20; - condexpr_false_20:; - tmp_metaclass_name_10 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_10); - condexpr_end_20:; - condexpr_end_19:; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_bases_name_10 = tmp_class_creation_10__bases; - tmp_assign_source_118 = SELECT_METACLASS(tmp_metaclass_name_10, tmp_bases_name_10); - Py_DECREF(tmp_metaclass_name_10); - if (tmp_assign_source_118 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - assert(tmp_class_creation_10__metaclass == NULL); - tmp_class_creation_10__metaclass = tmp_assign_source_118; - } - { - nuitka_bool tmp_condition_result_57; - PyObject *tmp_key_name_30; - PyObject *tmp_dict_arg_name_30; - tmp_key_name_30 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_30 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_30, tmp_key_name_30); - assert(!(tmp_res == -1)); - tmp_condition_result_57 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_57 == NUITKA_BOOL_TRUE) { - goto branch_yes_37; - } else { - goto branch_no_37; - } - } - branch_yes_37:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_10__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - branch_no_37:; - { - nuitka_bool tmp_condition_result_58; - PyObject *tmp_expression_name_58; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_58 = tmp_class_creation_10__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_58, mod_consts[327]); - tmp_condition_result_58 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_58 == NUITKA_BOOL_TRUE) { - goto branch_yes_38; - } else { - goto branch_no_38; - } - } - branch_yes_38:; - { - PyObject *tmp_assign_source_119; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_59; - PyObject *tmp_args_name_19; - PyObject *tmp_tuple_element_38; - PyObject *tmp_kwargs_name_19; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_59 = tmp_class_creation_10__metaclass; - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[327]); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_tuple_element_38 = mod_consts[173]; - tmp_args_name_19 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_19, 0, tmp_tuple_element_38); - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_tuple_element_38 = tmp_class_creation_10__bases; - PyTuple_SET_ITEM0(tmp_args_name_19, 1, tmp_tuple_element_38); - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_19 = tmp_class_creation_10__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 607; - tmp_assign_source_119 = CALL_FUNCTION(tmp_called_name_20, tmp_args_name_19, tmp_kwargs_name_19); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_args_name_19); - if (tmp_assign_source_119 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_119; - } - { - nuitka_bool tmp_condition_result_59; - PyObject *tmp_operand_name_10; - PyObject *tmp_expression_name_60; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_expression_name_60 = tmp_class_creation_10__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_60, mod_consts[328]); - tmp_operand_name_10 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_10); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_condition_result_59 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_59 == NUITKA_BOOL_TRUE) { - goto branch_yes_39; - } else { - goto branch_no_39; - } - } - branch_yes_39:; - { - PyObject *tmp_raise_type_10; - PyObject *tmp_raise_value_10; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_tuple_element_39; - PyObject *tmp_getattr_target_10; - PyObject *tmp_getattr_attr_10; - PyObject *tmp_getattr_default_10; - tmp_raise_type_10 = PyExc_TypeError; - tmp_left_name_10 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_getattr_target_10 = tmp_class_creation_10__metaclass; - tmp_getattr_attr_10 = mod_consts[324]; - tmp_getattr_default_10 = mod_consts[330]; - tmp_tuple_element_39 = BUILTIN_GETATTR(tmp_getattr_target_10, tmp_getattr_attr_10, tmp_getattr_default_10); - if (tmp_tuple_element_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - tmp_right_name_10 = PyTuple_New(2); - { - PyObject *tmp_expression_name_61; - PyObject *tmp_type_arg_20; - PyTuple_SET_ITEM(tmp_right_name_10, 0, tmp_tuple_element_39); - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_type_arg_20 = tmp_class_creation_10__prepared; - tmp_expression_name_61 = BUILTIN_TYPE1(tmp_type_arg_20); - assert(!(tmp_expression_name_61 == NULL)); - tmp_tuple_element_39 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[324]); - Py_DECREF(tmp_expression_name_61); - if (tmp_tuple_element_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_right_name_10, 1, tmp_tuple_element_39); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_right_name_10); - goto try_except_handler_32; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_raise_value_10 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_raise_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_32; - } - exception_type = tmp_raise_type_10; - Py_INCREF(tmp_raise_type_10); - exception_value = tmp_raise_value_10; - exception_lineno = 607; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_32; - } - branch_no_39:; - goto branch_end_38; - branch_no_38:; - { - PyObject *tmp_assign_source_120; - tmp_assign_source_120 = PyDict_New(); - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_120; - } - branch_end_38:; - { - PyObject *tmp_assign_source_121; - { - PyObject *tmp_set_locals_10; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_set_locals_10 = tmp_class_creation_10__prepared; - locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607 = tmp_set_locals_10; - Py_INCREF(tmp_set_locals_10); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_34; - } - tmp_dictset_value = mod_consts[173]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_34; - } - if (isFrameUnusable(cache_frame_1e694c28c1cb7b88d842a0230f304b37_11)) { - Py_XDECREF(cache_frame_1e694c28c1cb7b88d842a0230f304b37_11); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1e694c28c1cb7b88d842a0230f304b37_11 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1e694c28c1cb7b88d842a0230f304b37_11 = MAKE_FUNCTION_FRAME(codeobj_1e694c28c1cb7b88d842a0230f304b37, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1e694c28c1cb7b88d842a0230f304b37_11->m_type_description == NULL); - frame_1e694c28c1cb7b88d842a0230f304b37_11 = cache_frame_1e694c28c1cb7b88d842a0230f304b37_11; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1e694c28c1cb7b88d842a0230f304b37_11); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1e694c28c1cb7b88d842a0230f304b37_11) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_10[1]; - - tmp_closure_10[0] = outline_9_var___class__; - Py_INCREF(tmp_closure_10[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__27___init__(tmp_closure_10); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 608; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__28_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 617; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1e694c28c1cb7b88d842a0230f304b37_11); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_10; - - frame_exception_exit_11:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1e694c28c1cb7b88d842a0230f304b37_11); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1e694c28c1cb7b88d842a0230f304b37_11, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1e694c28c1cb7b88d842a0230f304b37_11->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1e694c28c1cb7b88d842a0230f304b37_11, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1e694c28c1cb7b88d842a0230f304b37_11, - type_description_2, - outline_9_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_1e694c28c1cb7b88d842a0230f304b37_11 == cache_frame_1e694c28c1cb7b88d842a0230f304b37_11) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1e694c28c1cb7b88d842a0230f304b37_11); - cache_frame_1e694c28c1cb7b88d842a0230f304b37_11 = NULL; - } - - assertFrameObject(frame_1e694c28c1cb7b88d842a0230f304b37_11); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_10; - - frame_no_exception_10:; - goto skip_nested_handling_10; - nested_frame_exit_10:; - - goto try_except_handler_34; - skip_nested_handling_10:; - { - nuitka_bool tmp_condition_result_60; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_compexpr_left_10 = tmp_class_creation_10__bases; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - tmp_compexpr_right_10 = tmp_class_creation_10__bases_orig; - tmp_condition_result_60 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_10, tmp_compexpr_right_10); - if (tmp_condition_result_60 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_34; - } - if (tmp_condition_result_60 == NUITKA_BOOL_TRUE) { - goto branch_yes_40; - } else { - goto branch_no_40; - } - assert(tmp_condition_result_60 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_40:; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - tmp_dictset_value = tmp_class_creation_10__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_34; - } - branch_no_40:; - { - PyObject *tmp_assign_source_122; - PyObject *tmp_called_name_21; - PyObject *tmp_args_name_20; - PyObject *tmp_tuple_element_40; - PyObject *tmp_kwargs_name_20; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_called_name_21 = tmp_class_creation_10__metaclass; - tmp_tuple_element_40 = mod_consts[173]; - tmp_args_name_20 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_20, 0, tmp_tuple_element_40); - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_tuple_element_40 = tmp_class_creation_10__bases; - PyTuple_SET_ITEM0(tmp_args_name_20, 1, tmp_tuple_element_40); - tmp_tuple_element_40 = locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607; - PyTuple_SET_ITEM0(tmp_args_name_20, 2, tmp_tuple_element_40); - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_20 = tmp_class_creation_10__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 607; - tmp_assign_source_122 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_20, tmp_kwargs_name_20); - Py_DECREF(tmp_args_name_20); - if (tmp_assign_source_122 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 607; - - goto try_except_handler_34; - } - { - PyObject *old = Nuitka_Cell_GET(outline_9_var___class__); - PyCell_SET(outline_9_var___class__, tmp_assign_source_122); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_9_var___class__)); - tmp_assign_source_121 = Nuitka_Cell_GET(outline_9_var___class__); - Py_INCREF(tmp_assign_source_121); - goto try_return_handler_34; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_34:; - Py_DECREF(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607); - locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607 = NULL; - goto try_return_handler_33; - // Exception handler code: - try_except_handler_34:; - exception_keeper_type_32 = exception_type; - exception_keeper_value_32 = exception_value; - exception_keeper_tb_32 = exception_tb; - exception_keeper_lineno_32 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607); - locals_models$Qformer$$$class__10_BertPredictionHeadTransform_607 = NULL; - // Re-raise. - exception_type = exception_keeper_type_32; - exception_value = exception_keeper_value_32; - exception_tb = exception_keeper_tb_32; - exception_lineno = exception_keeper_lineno_32; - - goto try_except_handler_33; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_33:; - CHECK_OBJECT(outline_9_var___class__); - Py_DECREF(outline_9_var___class__); - outline_9_var___class__ = NULL; - goto outline_result_10; - // Exception handler code: - try_except_handler_33:; - exception_keeper_type_33 = exception_type; - exception_keeper_value_33 = exception_value; - exception_keeper_tb_33 = exception_tb; - exception_keeper_lineno_33 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_9_var___class__); - Py_DECREF(outline_9_var___class__); - outline_9_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_33; - exception_value = exception_keeper_value_33; - exception_tb = exception_keeper_tb_33; - exception_lineno = exception_keeper_lineno_33; - - goto outline_exception_10; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_10:; - exception_lineno = 607; - goto try_except_handler_32; - outline_result_10:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[173], tmp_assign_source_121); - } - goto try_end_14; - // Exception handler code: - try_except_handler_32:; - exception_keeper_type_34 = exception_type; - exception_keeper_value_34 = exception_value; - exception_keeper_tb_34 = exception_tb; - exception_keeper_lineno_34 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_10__bases_orig); - tmp_class_creation_10__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_10__bases); - tmp_class_creation_10__bases = NULL; - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - Py_XDECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_34; - exception_value = exception_keeper_value_34; - exception_tb = exception_keeper_tb_34; - exception_lineno = exception_keeper_lineno_34; - - goto frame_exception_exit_1; - // End of try: - try_end_14:; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - Py_DECREF(tmp_class_creation_10__bases_orig); - tmp_class_creation_10__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_10__bases); - tmp_class_creation_10__bases = NULL; - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_10__prepared); - Py_DECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_123; - PyObject *tmp_tuple_element_41; - PyObject *tmp_expression_name_62; - tmp_expression_name_62 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_62 == NULL)) { - tmp_expression_name_62 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_tuple_element_41 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[325]); - if (tmp_tuple_element_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_assign_source_123 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_123, 0, tmp_tuple_element_41); - assert(tmp_class_creation_11__bases_orig == NULL); - tmp_class_creation_11__bases_orig = tmp_assign_source_123; - } - { - PyObject *tmp_assign_source_124; - PyObject *tmp_dircall_arg1_11; - CHECK_OBJECT(tmp_class_creation_11__bases_orig); - tmp_dircall_arg1_11 = tmp_class_creation_11__bases_orig; - Py_INCREF(tmp_dircall_arg1_11); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_11}; - tmp_assign_source_124 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_124 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - assert(tmp_class_creation_11__bases == NULL); - tmp_class_creation_11__bases = tmp_assign_source_124; - } - { - PyObject *tmp_assign_source_125; - tmp_assign_source_125 = PyDict_New(); - assert(tmp_class_creation_11__class_decl_dict == NULL); - tmp_class_creation_11__class_decl_dict = tmp_assign_source_125; - } - { - PyObject *tmp_assign_source_126; - PyObject *tmp_metaclass_name_11; - nuitka_bool tmp_condition_result_61; - PyObject *tmp_key_name_31; - PyObject *tmp_dict_arg_name_31; - PyObject *tmp_dict_arg_name_32; - PyObject *tmp_key_name_32; - nuitka_bool tmp_condition_result_62; - int tmp_truth_name_11; - PyObject *tmp_type_arg_21; - PyObject *tmp_expression_name_63; - PyObject *tmp_subscript_name_11; - PyObject *tmp_bases_name_11; - tmp_key_name_31 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_31 = tmp_class_creation_11__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_31, tmp_key_name_31); - assert(!(tmp_res == -1)); - tmp_condition_result_61 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_61 == NUITKA_BOOL_TRUE) { - goto condexpr_true_21; - } else { - goto condexpr_false_21; - } - condexpr_true_21:; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_32 = tmp_class_creation_11__class_decl_dict; - tmp_key_name_32 = mod_consts[326]; - tmp_metaclass_name_11 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_32, tmp_key_name_32); - if (tmp_metaclass_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - goto condexpr_end_21; - condexpr_false_21:; - CHECK_OBJECT(tmp_class_creation_11__bases); - tmp_truth_name_11 = CHECK_IF_TRUE(tmp_class_creation_11__bases); - if (tmp_truth_name_11 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_condition_result_62 = tmp_truth_name_11 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_62 == NUITKA_BOOL_TRUE) { - goto condexpr_true_22; - } else { - goto condexpr_false_22; - } - condexpr_true_22:; - CHECK_OBJECT(tmp_class_creation_11__bases); - tmp_expression_name_63 = tmp_class_creation_11__bases; - tmp_subscript_name_11 = mod_consts[29]; - tmp_type_arg_21 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_63, tmp_subscript_name_11, 0); - if (tmp_type_arg_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_metaclass_name_11 = BUILTIN_TYPE1(tmp_type_arg_21); - Py_DECREF(tmp_type_arg_21); - if (tmp_metaclass_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - goto condexpr_end_22; - condexpr_false_22:; - tmp_metaclass_name_11 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_11); - condexpr_end_22:; - condexpr_end_21:; - CHECK_OBJECT(tmp_class_creation_11__bases); - tmp_bases_name_11 = tmp_class_creation_11__bases; - tmp_assign_source_126 = SELECT_METACLASS(tmp_metaclass_name_11, tmp_bases_name_11); - Py_DECREF(tmp_metaclass_name_11); - if (tmp_assign_source_126 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - assert(tmp_class_creation_11__metaclass == NULL); - tmp_class_creation_11__metaclass = tmp_assign_source_126; - } - { - nuitka_bool tmp_condition_result_63; - PyObject *tmp_key_name_33; - PyObject *tmp_dict_arg_name_33; - tmp_key_name_33 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_33 = tmp_class_creation_11__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_33, tmp_key_name_33); - assert(!(tmp_res == -1)); - tmp_condition_result_63 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_63 == NUITKA_BOOL_TRUE) { - goto branch_yes_41; - } else { - goto branch_no_41; - } - } - branch_yes_41:; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_11__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - branch_no_41:; - { - nuitka_bool tmp_condition_result_64; - PyObject *tmp_expression_name_64; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_expression_name_64 = tmp_class_creation_11__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_64, mod_consts[327]); - tmp_condition_result_64 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_64 == NUITKA_BOOL_TRUE) { - goto branch_yes_42; - } else { - goto branch_no_42; - } - } - branch_yes_42:; - { - PyObject *tmp_assign_source_127; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_65; - PyObject *tmp_args_name_21; - PyObject *tmp_tuple_element_42; - PyObject *tmp_kwargs_name_21; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_expression_name_65 = tmp_class_creation_11__metaclass; - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[327]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_tuple_element_42 = mod_consts[180]; - tmp_args_name_21 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_21, 0, tmp_tuple_element_42); - CHECK_OBJECT(tmp_class_creation_11__bases); - tmp_tuple_element_42 = tmp_class_creation_11__bases; - PyTuple_SET_ITEM0(tmp_args_name_21, 1, tmp_tuple_element_42); - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_kwargs_name_21 = tmp_class_creation_11__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 624; - tmp_assign_source_127 = CALL_FUNCTION(tmp_called_name_22, tmp_args_name_21, tmp_kwargs_name_21); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_name_21); - if (tmp_assign_source_127 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - assert(tmp_class_creation_11__prepared == NULL); - tmp_class_creation_11__prepared = tmp_assign_source_127; - } - { - nuitka_bool tmp_condition_result_65; - PyObject *tmp_operand_name_11; - PyObject *tmp_expression_name_66; - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_expression_name_66 = tmp_class_creation_11__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_66, mod_consts[328]); - tmp_operand_name_11 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_11); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_condition_result_65 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_65 == NUITKA_BOOL_TRUE) { - goto branch_yes_43; - } else { - goto branch_no_43; - } - } - branch_yes_43:; - { - PyObject *tmp_raise_type_11; - PyObject *tmp_raise_value_11; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - PyObject *tmp_tuple_element_43; - PyObject *tmp_getattr_target_11; - PyObject *tmp_getattr_attr_11; - PyObject *tmp_getattr_default_11; - tmp_raise_type_11 = PyExc_TypeError; - tmp_left_name_11 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_getattr_target_11 = tmp_class_creation_11__metaclass; - tmp_getattr_attr_11 = mod_consts[324]; - tmp_getattr_default_11 = mod_consts[330]; - tmp_tuple_element_43 = BUILTIN_GETATTR(tmp_getattr_target_11, tmp_getattr_attr_11, tmp_getattr_default_11); - if (tmp_tuple_element_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - tmp_right_name_11 = PyTuple_New(2); - { - PyObject *tmp_expression_name_67; - PyObject *tmp_type_arg_22; - PyTuple_SET_ITEM(tmp_right_name_11, 0, tmp_tuple_element_43); - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_type_arg_22 = tmp_class_creation_11__prepared; - tmp_expression_name_67 = BUILTIN_TYPE1(tmp_type_arg_22); - assert(!(tmp_expression_name_67 == NULL)); - tmp_tuple_element_43 = LOOKUP_ATTRIBUTE(tmp_expression_name_67, mod_consts[324]); - Py_DECREF(tmp_expression_name_67); - if (tmp_tuple_element_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto tuple_build_exception_11; - } - PyTuple_SET_ITEM(tmp_right_name_11, 1, tmp_tuple_element_43); - } - goto tuple_build_noexception_11; - // Exception handling pass through code for tuple_build: - tuple_build_exception_11:; - Py_DECREF(tmp_right_name_11); - goto try_except_handler_35; - // Finished with no exception for tuple_build: - tuple_build_noexception_11:; - tmp_raise_value_11 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_right_name_11); - if (tmp_raise_value_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_35; - } - exception_type = tmp_raise_type_11; - Py_INCREF(tmp_raise_type_11); - exception_value = tmp_raise_value_11; - exception_lineno = 624; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_35; - } - branch_no_43:; - goto branch_end_42; - branch_no_42:; - { - PyObject *tmp_assign_source_128; - tmp_assign_source_128 = PyDict_New(); - assert(tmp_class_creation_11__prepared == NULL); - tmp_class_creation_11__prepared = tmp_assign_source_128; - } - branch_end_42:; - { - PyObject *tmp_assign_source_129; - { - PyObject *tmp_set_locals_11; - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_set_locals_11 = tmp_class_creation_11__prepared; - locals_models$Qformer$$$class__11_BertLMPredictionHead_624 = tmp_set_locals_11; - Py_INCREF(tmp_set_locals_11); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__11_BertLMPredictionHead_624, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_37; - } - tmp_dictset_value = mod_consts[180]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__11_BertLMPredictionHead_624, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_37; - } - if (isFrameUnusable(cache_frame_6e22728e3deba4360239f923eb721087_12)) { - Py_XDECREF(cache_frame_6e22728e3deba4360239f923eb721087_12); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6e22728e3deba4360239f923eb721087_12 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6e22728e3deba4360239f923eb721087_12 = MAKE_FUNCTION_FRAME(codeobj_6e22728e3deba4360239f923eb721087, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6e22728e3deba4360239f923eb721087_12->m_type_description == NULL); - frame_6e22728e3deba4360239f923eb721087_12 = cache_frame_6e22728e3deba4360239f923eb721087_12; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6e22728e3deba4360239f923eb721087_12); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6e22728e3deba4360239f923eb721087_12) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_11[1]; - - tmp_closure_11[0] = outline_10_var___class__; - Py_INCREF(tmp_closure_11[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__29___init__(tmp_closure_11); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__11_BertLMPredictionHead_624, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 625; - type_description_2 = "c"; - goto frame_exception_exit_12; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__30_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__11_BertLMPredictionHead_624, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 638; - type_description_2 = "c"; - goto frame_exception_exit_12; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6e22728e3deba4360239f923eb721087_12); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_11; - - frame_exception_exit_12:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6e22728e3deba4360239f923eb721087_12); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6e22728e3deba4360239f923eb721087_12, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6e22728e3deba4360239f923eb721087_12->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6e22728e3deba4360239f923eb721087_12, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6e22728e3deba4360239f923eb721087_12, - type_description_2, - outline_10_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_6e22728e3deba4360239f923eb721087_12 == cache_frame_6e22728e3deba4360239f923eb721087_12) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6e22728e3deba4360239f923eb721087_12); - cache_frame_6e22728e3deba4360239f923eb721087_12 = NULL; - } - - assertFrameObject(frame_6e22728e3deba4360239f923eb721087_12); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_11; - - frame_no_exception_11:; - goto skip_nested_handling_11; - nested_frame_exit_11:; - - goto try_except_handler_37; - skip_nested_handling_11:; - { - nuitka_bool tmp_condition_result_66; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - CHECK_OBJECT(tmp_class_creation_11__bases); - tmp_compexpr_left_11 = tmp_class_creation_11__bases; - CHECK_OBJECT(tmp_class_creation_11__bases_orig); - tmp_compexpr_right_11 = tmp_class_creation_11__bases_orig; - tmp_condition_result_66 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_11, tmp_compexpr_right_11); - if (tmp_condition_result_66 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_37; - } - if (tmp_condition_result_66 == NUITKA_BOOL_TRUE) { - goto branch_yes_44; - } else { - goto branch_no_44; - } - assert(tmp_condition_result_66 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_44:; - CHECK_OBJECT(tmp_class_creation_11__bases_orig); - tmp_dictset_value = tmp_class_creation_11__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__11_BertLMPredictionHead_624, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_37; - } - branch_no_44:; - { - PyObject *tmp_assign_source_130; - PyObject *tmp_called_name_23; - PyObject *tmp_args_name_22; - PyObject *tmp_tuple_element_44; - PyObject *tmp_kwargs_name_22; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_called_name_23 = tmp_class_creation_11__metaclass; - tmp_tuple_element_44 = mod_consts[180]; - tmp_args_name_22 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_22, 0, tmp_tuple_element_44); - CHECK_OBJECT(tmp_class_creation_11__bases); - tmp_tuple_element_44 = tmp_class_creation_11__bases; - PyTuple_SET_ITEM0(tmp_args_name_22, 1, tmp_tuple_element_44); - tmp_tuple_element_44 = locals_models$Qformer$$$class__11_BertLMPredictionHead_624; - PyTuple_SET_ITEM0(tmp_args_name_22, 2, tmp_tuple_element_44); - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_kwargs_name_22 = tmp_class_creation_11__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 624; - tmp_assign_source_130 = CALL_FUNCTION(tmp_called_name_23, tmp_args_name_22, tmp_kwargs_name_22); - Py_DECREF(tmp_args_name_22); - if (tmp_assign_source_130 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 624; - - goto try_except_handler_37; - } - { - PyObject *old = Nuitka_Cell_GET(outline_10_var___class__); - PyCell_SET(outline_10_var___class__, tmp_assign_source_130); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_10_var___class__)); - tmp_assign_source_129 = Nuitka_Cell_GET(outline_10_var___class__); - Py_INCREF(tmp_assign_source_129); - goto try_return_handler_37; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_37:; - Py_DECREF(locals_models$Qformer$$$class__11_BertLMPredictionHead_624); - locals_models$Qformer$$$class__11_BertLMPredictionHead_624 = NULL; - goto try_return_handler_36; - // Exception handler code: - try_except_handler_37:; - exception_keeper_type_35 = exception_type; - exception_keeper_value_35 = exception_value; - exception_keeper_tb_35 = exception_tb; - exception_keeper_lineno_35 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__11_BertLMPredictionHead_624); - locals_models$Qformer$$$class__11_BertLMPredictionHead_624 = NULL; - // Re-raise. - exception_type = exception_keeper_type_35; - exception_value = exception_keeper_value_35; - exception_tb = exception_keeper_tb_35; - exception_lineno = exception_keeper_lineno_35; - - goto try_except_handler_36; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_36:; - CHECK_OBJECT(outline_10_var___class__); - Py_DECREF(outline_10_var___class__); - outline_10_var___class__ = NULL; - goto outline_result_11; - // Exception handler code: - try_except_handler_36:; - exception_keeper_type_36 = exception_type; - exception_keeper_value_36 = exception_value; - exception_keeper_tb_36 = exception_tb; - exception_keeper_lineno_36 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_10_var___class__); - Py_DECREF(outline_10_var___class__); - outline_10_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_36; - exception_value = exception_keeper_value_36; - exception_tb = exception_keeper_tb_36; - exception_lineno = exception_keeper_lineno_36; - - goto outline_exception_11; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_11:; - exception_lineno = 624; - goto try_except_handler_35; - outline_result_11:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[180], tmp_assign_source_129); - } - goto try_end_15; - // Exception handler code: - try_except_handler_35:; - exception_keeper_type_37 = exception_type; - exception_keeper_value_37 = exception_value; - exception_keeper_tb_37 = exception_tb; - exception_keeper_lineno_37 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_11__bases_orig); - tmp_class_creation_11__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_11__bases); - tmp_class_creation_11__bases = NULL; - Py_XDECREF(tmp_class_creation_11__class_decl_dict); - tmp_class_creation_11__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_11__metaclass); - tmp_class_creation_11__metaclass = NULL; - Py_XDECREF(tmp_class_creation_11__prepared); - tmp_class_creation_11__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_37; - exception_value = exception_keeper_value_37; - exception_tb = exception_keeper_tb_37; - exception_lineno = exception_keeper_lineno_37; - - goto frame_exception_exit_1; - // End of try: - try_end_15:; - CHECK_OBJECT(tmp_class_creation_11__bases_orig); - Py_DECREF(tmp_class_creation_11__bases_orig); - tmp_class_creation_11__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_11__bases); - tmp_class_creation_11__bases = NULL; - Py_XDECREF(tmp_class_creation_11__class_decl_dict); - tmp_class_creation_11__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_11__metaclass); - tmp_class_creation_11__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_11__prepared); - Py_DECREF(tmp_class_creation_11__prepared); - tmp_class_creation_11__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_131; - PyObject *tmp_tuple_element_45; - PyObject *tmp_expression_name_68; - tmp_expression_name_68 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_68 == NULL)) { - tmp_expression_name_68 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_tuple_element_45 = LOOKUP_ATTRIBUTE(tmp_expression_name_68, mod_consts[325]); - if (tmp_tuple_element_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_assign_source_131 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_131, 0, tmp_tuple_element_45); - assert(tmp_class_creation_12__bases_orig == NULL); - tmp_class_creation_12__bases_orig = tmp_assign_source_131; - } - { - PyObject *tmp_assign_source_132; - PyObject *tmp_dircall_arg1_12; - CHECK_OBJECT(tmp_class_creation_12__bases_orig); - tmp_dircall_arg1_12 = tmp_class_creation_12__bases_orig; - Py_INCREF(tmp_dircall_arg1_12); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_12}; - tmp_assign_source_132 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_132 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - assert(tmp_class_creation_12__bases == NULL); - tmp_class_creation_12__bases = tmp_assign_source_132; - } - { - PyObject *tmp_assign_source_133; - tmp_assign_source_133 = PyDict_New(); - assert(tmp_class_creation_12__class_decl_dict == NULL); - tmp_class_creation_12__class_decl_dict = tmp_assign_source_133; - } - { - PyObject *tmp_assign_source_134; - PyObject *tmp_metaclass_name_12; - nuitka_bool tmp_condition_result_67; - PyObject *tmp_key_name_34; - PyObject *tmp_dict_arg_name_34; - PyObject *tmp_dict_arg_name_35; - PyObject *tmp_key_name_35; - nuitka_bool tmp_condition_result_68; - int tmp_truth_name_12; - PyObject *tmp_type_arg_23; - PyObject *tmp_expression_name_69; - PyObject *tmp_subscript_name_12; - PyObject *tmp_bases_name_12; - tmp_key_name_34 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_12__class_decl_dict); - tmp_dict_arg_name_34 = tmp_class_creation_12__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_34, tmp_key_name_34); - assert(!(tmp_res == -1)); - tmp_condition_result_67 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_67 == NUITKA_BOOL_TRUE) { - goto condexpr_true_23; - } else { - goto condexpr_false_23; - } - condexpr_true_23:; - CHECK_OBJECT(tmp_class_creation_12__class_decl_dict); - tmp_dict_arg_name_35 = tmp_class_creation_12__class_decl_dict; - tmp_key_name_35 = mod_consts[326]; - tmp_metaclass_name_12 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_35, tmp_key_name_35); - if (tmp_metaclass_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - goto condexpr_end_23; - condexpr_false_23:; - CHECK_OBJECT(tmp_class_creation_12__bases); - tmp_truth_name_12 = CHECK_IF_TRUE(tmp_class_creation_12__bases); - if (tmp_truth_name_12 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_condition_result_68 = tmp_truth_name_12 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_68 == NUITKA_BOOL_TRUE) { - goto condexpr_true_24; - } else { - goto condexpr_false_24; - } - condexpr_true_24:; - CHECK_OBJECT(tmp_class_creation_12__bases); - tmp_expression_name_69 = tmp_class_creation_12__bases; - tmp_subscript_name_12 = mod_consts[29]; - tmp_type_arg_23 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_69, tmp_subscript_name_12, 0); - if (tmp_type_arg_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_metaclass_name_12 = BUILTIN_TYPE1(tmp_type_arg_23); - Py_DECREF(tmp_type_arg_23); - if (tmp_metaclass_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - goto condexpr_end_24; - condexpr_false_24:; - tmp_metaclass_name_12 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_12); - condexpr_end_24:; - condexpr_end_23:; - CHECK_OBJECT(tmp_class_creation_12__bases); - tmp_bases_name_12 = tmp_class_creation_12__bases; - tmp_assign_source_134 = SELECT_METACLASS(tmp_metaclass_name_12, tmp_bases_name_12); - Py_DECREF(tmp_metaclass_name_12); - if (tmp_assign_source_134 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - assert(tmp_class_creation_12__metaclass == NULL); - tmp_class_creation_12__metaclass = tmp_assign_source_134; - } - { - nuitka_bool tmp_condition_result_69; - PyObject *tmp_key_name_36; - PyObject *tmp_dict_arg_name_36; - tmp_key_name_36 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_12__class_decl_dict); - tmp_dict_arg_name_36 = tmp_class_creation_12__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_36, tmp_key_name_36); - assert(!(tmp_res == -1)); - tmp_condition_result_69 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_69 == NUITKA_BOOL_TRUE) { - goto branch_yes_45; - } else { - goto branch_no_45; - } - } - branch_yes_45:; - CHECK_OBJECT(tmp_class_creation_12__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_12__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - branch_no_45:; - { - nuitka_bool tmp_condition_result_70; - PyObject *tmp_expression_name_70; - CHECK_OBJECT(tmp_class_creation_12__metaclass); - tmp_expression_name_70 = tmp_class_creation_12__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_70, mod_consts[327]); - tmp_condition_result_70 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_70 == NUITKA_BOOL_TRUE) { - goto branch_yes_46; - } else { - goto branch_no_46; - } - } - branch_yes_46:; - { - PyObject *tmp_assign_source_135; - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_71; - PyObject *tmp_args_name_23; - PyObject *tmp_tuple_element_46; - PyObject *tmp_kwargs_name_23; - CHECK_OBJECT(tmp_class_creation_12__metaclass); - tmp_expression_name_71 = tmp_class_creation_12__metaclass; - tmp_called_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_71, mod_consts[327]); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_tuple_element_46 = mod_consts[242]; - tmp_args_name_23 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_23, 0, tmp_tuple_element_46); - CHECK_OBJECT(tmp_class_creation_12__bases); - tmp_tuple_element_46 = tmp_class_creation_12__bases; - PyTuple_SET_ITEM0(tmp_args_name_23, 1, tmp_tuple_element_46); - CHECK_OBJECT(tmp_class_creation_12__class_decl_dict); - tmp_kwargs_name_23 = tmp_class_creation_12__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 644; - tmp_assign_source_135 = CALL_FUNCTION(tmp_called_name_24, tmp_args_name_23, tmp_kwargs_name_23); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_name_23); - if (tmp_assign_source_135 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - assert(tmp_class_creation_12__prepared == NULL); - tmp_class_creation_12__prepared = tmp_assign_source_135; - } - { - nuitka_bool tmp_condition_result_71; - PyObject *tmp_operand_name_12; - PyObject *tmp_expression_name_72; - CHECK_OBJECT(tmp_class_creation_12__prepared); - tmp_expression_name_72 = tmp_class_creation_12__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_72, mod_consts[328]); - tmp_operand_name_12 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_12); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_condition_result_71 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_71 == NUITKA_BOOL_TRUE) { - goto branch_yes_47; - } else { - goto branch_no_47; - } - } - branch_yes_47:; - { - PyObject *tmp_raise_type_12; - PyObject *tmp_raise_value_12; - PyObject *tmp_left_name_12; - PyObject *tmp_right_name_12; - PyObject *tmp_tuple_element_47; - PyObject *tmp_getattr_target_12; - PyObject *tmp_getattr_attr_12; - PyObject *tmp_getattr_default_12; - tmp_raise_type_12 = PyExc_TypeError; - tmp_left_name_12 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_12__metaclass); - tmp_getattr_target_12 = tmp_class_creation_12__metaclass; - tmp_getattr_attr_12 = mod_consts[324]; - tmp_getattr_default_12 = mod_consts[330]; - tmp_tuple_element_47 = BUILTIN_GETATTR(tmp_getattr_target_12, tmp_getattr_attr_12, tmp_getattr_default_12); - if (tmp_tuple_element_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - tmp_right_name_12 = PyTuple_New(2); - { - PyObject *tmp_expression_name_73; - PyObject *tmp_type_arg_24; - PyTuple_SET_ITEM(tmp_right_name_12, 0, tmp_tuple_element_47); - CHECK_OBJECT(tmp_class_creation_12__prepared); - tmp_type_arg_24 = tmp_class_creation_12__prepared; - tmp_expression_name_73 = BUILTIN_TYPE1(tmp_type_arg_24); - assert(!(tmp_expression_name_73 == NULL)); - tmp_tuple_element_47 = LOOKUP_ATTRIBUTE(tmp_expression_name_73, mod_consts[324]); - Py_DECREF(tmp_expression_name_73); - if (tmp_tuple_element_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto tuple_build_exception_12; - } - PyTuple_SET_ITEM(tmp_right_name_12, 1, tmp_tuple_element_47); - } - goto tuple_build_noexception_12; - // Exception handling pass through code for tuple_build: - tuple_build_exception_12:; - Py_DECREF(tmp_right_name_12); - goto try_except_handler_38; - // Finished with no exception for tuple_build: - tuple_build_noexception_12:; - tmp_raise_value_12 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_12, tmp_right_name_12); - Py_DECREF(tmp_right_name_12); - if (tmp_raise_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_38; - } - exception_type = tmp_raise_type_12; - Py_INCREF(tmp_raise_type_12); - exception_value = tmp_raise_value_12; - exception_lineno = 644; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_38; - } - branch_no_47:; - goto branch_end_46; - branch_no_46:; - { - PyObject *tmp_assign_source_136; - tmp_assign_source_136 = PyDict_New(); - assert(tmp_class_creation_12__prepared == NULL); - tmp_class_creation_12__prepared = tmp_assign_source_136; - } - branch_end_46:; - { - PyObject *tmp_assign_source_137; - { - PyObject *tmp_set_locals_12; - CHECK_OBJECT(tmp_class_creation_12__prepared); - tmp_set_locals_12 = tmp_class_creation_12__prepared; - locals_models$Qformer$$$class__12_BertOnlyMLMHead_644 = tmp_set_locals_12; - Py_INCREF(tmp_set_locals_12); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_40; - } - tmp_dictset_value = mod_consts[242]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_40; - } - if (isFrameUnusable(cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13)) { - Py_XDECREF(cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13 = MAKE_FUNCTION_FRAME(codeobj_2f024c1c2781aa4346c9360dc9ca9c37, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13->m_type_description == NULL); - frame_2f024c1c2781aa4346c9360dc9ca9c37_13 = cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2f024c1c2781aa4346c9360dc9ca9c37_13); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2f024c1c2781aa4346c9360dc9ca9c37_13) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_12[1]; - - tmp_closure_12[0] = outline_11_var___class__; - Py_INCREF(tmp_closure_12[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__31___init__(tmp_closure_12); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 645; - type_description_2 = "c"; - goto frame_exception_exit_13; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__32_forward(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 649; - type_description_2 = "c"; - goto frame_exception_exit_13; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2f024c1c2781aa4346c9360dc9ca9c37_13); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_12; - - frame_exception_exit_13:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2f024c1c2781aa4346c9360dc9ca9c37_13); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2f024c1c2781aa4346c9360dc9ca9c37_13, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2f024c1c2781aa4346c9360dc9ca9c37_13->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2f024c1c2781aa4346c9360dc9ca9c37_13, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2f024c1c2781aa4346c9360dc9ca9c37_13, - type_description_2, - outline_11_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2f024c1c2781aa4346c9360dc9ca9c37_13 == cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13); - cache_frame_2f024c1c2781aa4346c9360dc9ca9c37_13 = NULL; - } - - assertFrameObject(frame_2f024c1c2781aa4346c9360dc9ca9c37_13); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_12; - - frame_no_exception_12:; - goto skip_nested_handling_12; - nested_frame_exit_12:; - - goto try_except_handler_40; - skip_nested_handling_12:; - { - nuitka_bool tmp_condition_result_72; - PyObject *tmp_compexpr_left_12; - PyObject *tmp_compexpr_right_12; - CHECK_OBJECT(tmp_class_creation_12__bases); - tmp_compexpr_left_12 = tmp_class_creation_12__bases; - CHECK_OBJECT(tmp_class_creation_12__bases_orig); - tmp_compexpr_right_12 = tmp_class_creation_12__bases_orig; - tmp_condition_result_72 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_12, tmp_compexpr_right_12); - if (tmp_condition_result_72 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_40; - } - if (tmp_condition_result_72 == NUITKA_BOOL_TRUE) { - goto branch_yes_48; - } else { - goto branch_no_48; - } - assert(tmp_condition_result_72 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_48:; - CHECK_OBJECT(tmp_class_creation_12__bases_orig); - tmp_dictset_value = tmp_class_creation_12__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_40; - } - branch_no_48:; - { - PyObject *tmp_assign_source_138; - PyObject *tmp_called_name_25; - PyObject *tmp_args_name_24; - PyObject *tmp_tuple_element_48; - PyObject *tmp_kwargs_name_24; - CHECK_OBJECT(tmp_class_creation_12__metaclass); - tmp_called_name_25 = tmp_class_creation_12__metaclass; - tmp_tuple_element_48 = mod_consts[242]; - tmp_args_name_24 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_24, 0, tmp_tuple_element_48); - CHECK_OBJECT(tmp_class_creation_12__bases); - tmp_tuple_element_48 = tmp_class_creation_12__bases; - PyTuple_SET_ITEM0(tmp_args_name_24, 1, tmp_tuple_element_48); - tmp_tuple_element_48 = locals_models$Qformer$$$class__12_BertOnlyMLMHead_644; - PyTuple_SET_ITEM0(tmp_args_name_24, 2, tmp_tuple_element_48); - CHECK_OBJECT(tmp_class_creation_12__class_decl_dict); - tmp_kwargs_name_24 = tmp_class_creation_12__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 644; - tmp_assign_source_138 = CALL_FUNCTION(tmp_called_name_25, tmp_args_name_24, tmp_kwargs_name_24); - Py_DECREF(tmp_args_name_24); - if (tmp_assign_source_138 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 644; - - goto try_except_handler_40; - } - { - PyObject *old = Nuitka_Cell_GET(outline_11_var___class__); - PyCell_SET(outline_11_var___class__, tmp_assign_source_138); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_11_var___class__)); - tmp_assign_source_137 = Nuitka_Cell_GET(outline_11_var___class__); - Py_INCREF(tmp_assign_source_137); - goto try_return_handler_40; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_40:; - Py_DECREF(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644); - locals_models$Qformer$$$class__12_BertOnlyMLMHead_644 = NULL; - goto try_return_handler_39; - // Exception handler code: - try_except_handler_40:; - exception_keeper_type_38 = exception_type; - exception_keeper_value_38 = exception_value; - exception_keeper_tb_38 = exception_tb; - exception_keeper_lineno_38 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__12_BertOnlyMLMHead_644); - locals_models$Qformer$$$class__12_BertOnlyMLMHead_644 = NULL; - // Re-raise. - exception_type = exception_keeper_type_38; - exception_value = exception_keeper_value_38; - exception_tb = exception_keeper_tb_38; - exception_lineno = exception_keeper_lineno_38; - - goto try_except_handler_39; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_39:; - CHECK_OBJECT(outline_11_var___class__); - Py_DECREF(outline_11_var___class__); - outline_11_var___class__ = NULL; - goto outline_result_12; - // Exception handler code: - try_except_handler_39:; - exception_keeper_type_39 = exception_type; - exception_keeper_value_39 = exception_value; - exception_keeper_tb_39 = exception_tb; - exception_keeper_lineno_39 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_11_var___class__); - Py_DECREF(outline_11_var___class__); - outline_11_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_39; - exception_value = exception_keeper_value_39; - exception_tb = exception_keeper_tb_39; - exception_lineno = exception_keeper_lineno_39; - - goto outline_exception_12; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_12:; - exception_lineno = 644; - goto try_except_handler_38; - outline_result_12:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[242], tmp_assign_source_137); - } - goto try_end_16; - // Exception handler code: - try_except_handler_38:; - exception_keeper_type_40 = exception_type; - exception_keeper_value_40 = exception_value; - exception_keeper_tb_40 = exception_tb; - exception_keeper_lineno_40 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_12__bases_orig); - tmp_class_creation_12__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_12__bases); - tmp_class_creation_12__bases = NULL; - Py_XDECREF(tmp_class_creation_12__class_decl_dict); - tmp_class_creation_12__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_12__metaclass); - tmp_class_creation_12__metaclass = NULL; - Py_XDECREF(tmp_class_creation_12__prepared); - tmp_class_creation_12__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_40; - exception_value = exception_keeper_value_40; - exception_tb = exception_keeper_tb_40; - exception_lineno = exception_keeper_lineno_40; - - goto frame_exception_exit_1; - // End of try: - try_end_16:; - CHECK_OBJECT(tmp_class_creation_12__bases_orig); - Py_DECREF(tmp_class_creation_12__bases_orig); - tmp_class_creation_12__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_12__bases); - tmp_class_creation_12__bases = NULL; - Py_XDECREF(tmp_class_creation_12__class_decl_dict); - tmp_class_creation_12__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_12__metaclass); - tmp_class_creation_12__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_12__prepared); - Py_DECREF(tmp_class_creation_12__prepared); - tmp_class_creation_12__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_139; - PyObject *tmp_tuple_element_49; - tmp_tuple_element_49 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[316]); - - if (unlikely(tmp_tuple_element_49 == NULL)) { - tmp_tuple_element_49 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[316]); - } - - if (tmp_tuple_element_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - tmp_assign_source_139 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_139, 0, tmp_tuple_element_49); - assert(tmp_class_creation_13__bases_orig == NULL); - tmp_class_creation_13__bases_orig = tmp_assign_source_139; - } - { - PyObject *tmp_assign_source_140; - PyObject *tmp_dircall_arg1_13; - CHECK_OBJECT(tmp_class_creation_13__bases_orig); - tmp_dircall_arg1_13 = tmp_class_creation_13__bases_orig; - Py_INCREF(tmp_dircall_arg1_13); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_13}; - tmp_assign_source_140 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_140 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - assert(tmp_class_creation_13__bases == NULL); - tmp_class_creation_13__bases = tmp_assign_source_140; - } - { - PyObject *tmp_assign_source_141; - tmp_assign_source_141 = PyDict_New(); - assert(tmp_class_creation_13__class_decl_dict == NULL); - tmp_class_creation_13__class_decl_dict = tmp_assign_source_141; - } - { - PyObject *tmp_assign_source_142; - PyObject *tmp_metaclass_name_13; - nuitka_bool tmp_condition_result_73; - PyObject *tmp_key_name_37; - PyObject *tmp_dict_arg_name_37; - PyObject *tmp_dict_arg_name_38; - PyObject *tmp_key_name_38; - nuitka_bool tmp_condition_result_74; - int tmp_truth_name_13; - PyObject *tmp_type_arg_25; - PyObject *tmp_expression_name_74; - PyObject *tmp_subscript_name_13; - PyObject *tmp_bases_name_13; - tmp_key_name_37 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_13__class_decl_dict); - tmp_dict_arg_name_37 = tmp_class_creation_13__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_37, tmp_key_name_37); - assert(!(tmp_res == -1)); - tmp_condition_result_73 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_73 == NUITKA_BOOL_TRUE) { - goto condexpr_true_25; - } else { - goto condexpr_false_25; - } - condexpr_true_25:; - CHECK_OBJECT(tmp_class_creation_13__class_decl_dict); - tmp_dict_arg_name_38 = tmp_class_creation_13__class_decl_dict; - tmp_key_name_38 = mod_consts[326]; - tmp_metaclass_name_13 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_38, tmp_key_name_38); - if (tmp_metaclass_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - goto condexpr_end_25; - condexpr_false_25:; - CHECK_OBJECT(tmp_class_creation_13__bases); - tmp_truth_name_13 = CHECK_IF_TRUE(tmp_class_creation_13__bases); - if (tmp_truth_name_13 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - tmp_condition_result_74 = tmp_truth_name_13 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_74 == NUITKA_BOOL_TRUE) { - goto condexpr_true_26; - } else { - goto condexpr_false_26; - } - condexpr_true_26:; - CHECK_OBJECT(tmp_class_creation_13__bases); - tmp_expression_name_74 = tmp_class_creation_13__bases; - tmp_subscript_name_13 = mod_consts[29]; - tmp_type_arg_25 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_74, tmp_subscript_name_13, 0); - if (tmp_type_arg_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - tmp_metaclass_name_13 = BUILTIN_TYPE1(tmp_type_arg_25); - Py_DECREF(tmp_type_arg_25); - if (tmp_metaclass_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - goto condexpr_end_26; - condexpr_false_26:; - tmp_metaclass_name_13 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_13); - condexpr_end_26:; - condexpr_end_25:; - CHECK_OBJECT(tmp_class_creation_13__bases); - tmp_bases_name_13 = tmp_class_creation_13__bases; - tmp_assign_source_142 = SELECT_METACLASS(tmp_metaclass_name_13, tmp_bases_name_13); - Py_DECREF(tmp_metaclass_name_13); - if (tmp_assign_source_142 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - assert(tmp_class_creation_13__metaclass == NULL); - tmp_class_creation_13__metaclass = tmp_assign_source_142; - } - { - nuitka_bool tmp_condition_result_75; - PyObject *tmp_key_name_39; - PyObject *tmp_dict_arg_name_39; - tmp_key_name_39 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_13__class_decl_dict); - tmp_dict_arg_name_39 = tmp_class_creation_13__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_39, tmp_key_name_39); - assert(!(tmp_res == -1)); - tmp_condition_result_75 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_75 == NUITKA_BOOL_TRUE) { - goto branch_yes_49; - } else { - goto branch_no_49; - } - } - branch_yes_49:; - CHECK_OBJECT(tmp_class_creation_13__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_13__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - branch_no_49:; - { - nuitka_bool tmp_condition_result_76; - PyObject *tmp_expression_name_75; - CHECK_OBJECT(tmp_class_creation_13__metaclass); - tmp_expression_name_75 = tmp_class_creation_13__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_75, mod_consts[327]); - tmp_condition_result_76 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_76 == NUITKA_BOOL_TRUE) { - goto branch_yes_50; - } else { - goto branch_no_50; - } - } - branch_yes_50:; - { - PyObject *tmp_assign_source_143; - PyObject *tmp_called_name_26; - PyObject *tmp_expression_name_76; - PyObject *tmp_args_name_25; - PyObject *tmp_tuple_element_50; - PyObject *tmp_kwargs_name_25; - CHECK_OBJECT(tmp_class_creation_13__metaclass); - tmp_expression_name_76 = tmp_class_creation_13__metaclass; - tmp_called_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_76, mod_consts[327]); - if (tmp_called_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - tmp_tuple_element_50 = mod_consts[375]; - tmp_args_name_25 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_25, 0, tmp_tuple_element_50); - CHECK_OBJECT(tmp_class_creation_13__bases); - tmp_tuple_element_50 = tmp_class_creation_13__bases; - PyTuple_SET_ITEM0(tmp_args_name_25, 1, tmp_tuple_element_50); - CHECK_OBJECT(tmp_class_creation_13__class_decl_dict); - tmp_kwargs_name_25 = tmp_class_creation_13__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 654; - tmp_assign_source_143 = CALL_FUNCTION(tmp_called_name_26, tmp_args_name_25, tmp_kwargs_name_25); - Py_DECREF(tmp_called_name_26); - Py_DECREF(tmp_args_name_25); - if (tmp_assign_source_143 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - assert(tmp_class_creation_13__prepared == NULL); - tmp_class_creation_13__prepared = tmp_assign_source_143; - } - { - nuitka_bool tmp_condition_result_77; - PyObject *tmp_operand_name_13; - PyObject *tmp_expression_name_77; - CHECK_OBJECT(tmp_class_creation_13__prepared); - tmp_expression_name_77 = tmp_class_creation_13__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_77, mod_consts[328]); - tmp_operand_name_13 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_13); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - tmp_condition_result_77 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_77 == NUITKA_BOOL_TRUE) { - goto branch_yes_51; - } else { - goto branch_no_51; - } - } - branch_yes_51:; - { - PyObject *tmp_raise_type_13; - PyObject *tmp_raise_value_13; - PyObject *tmp_left_name_13; - PyObject *tmp_right_name_13; - PyObject *tmp_tuple_element_51; - PyObject *tmp_getattr_target_13; - PyObject *tmp_getattr_attr_13; - PyObject *tmp_getattr_default_13; - tmp_raise_type_13 = PyExc_TypeError; - tmp_left_name_13 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_13__metaclass); - tmp_getattr_target_13 = tmp_class_creation_13__metaclass; - tmp_getattr_attr_13 = mod_consts[324]; - tmp_getattr_default_13 = mod_consts[330]; - tmp_tuple_element_51 = BUILTIN_GETATTR(tmp_getattr_target_13, tmp_getattr_attr_13, tmp_getattr_default_13); - if (tmp_tuple_element_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - tmp_right_name_13 = PyTuple_New(2); - { - PyObject *tmp_expression_name_78; - PyObject *tmp_type_arg_26; - PyTuple_SET_ITEM(tmp_right_name_13, 0, tmp_tuple_element_51); - CHECK_OBJECT(tmp_class_creation_13__prepared); - tmp_type_arg_26 = tmp_class_creation_13__prepared; - tmp_expression_name_78 = BUILTIN_TYPE1(tmp_type_arg_26); - assert(!(tmp_expression_name_78 == NULL)); - tmp_tuple_element_51 = LOOKUP_ATTRIBUTE(tmp_expression_name_78, mod_consts[324]); - Py_DECREF(tmp_expression_name_78); - if (tmp_tuple_element_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto tuple_build_exception_13; - } - PyTuple_SET_ITEM(tmp_right_name_13, 1, tmp_tuple_element_51); - } - goto tuple_build_noexception_13; - // Exception handling pass through code for tuple_build: - tuple_build_exception_13:; - Py_DECREF(tmp_right_name_13); - goto try_except_handler_41; - // Finished with no exception for tuple_build: - tuple_build_noexception_13:; - tmp_raise_value_13 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_13, tmp_right_name_13); - Py_DECREF(tmp_right_name_13); - if (tmp_raise_value_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_41; - } - exception_type = tmp_raise_type_13; - Py_INCREF(tmp_raise_type_13); - exception_value = tmp_raise_value_13; - exception_lineno = 654; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_41; - } - branch_no_51:; - goto branch_end_50; - branch_no_50:; - { - PyObject *tmp_assign_source_144; - tmp_assign_source_144 = PyDict_New(); - assert(tmp_class_creation_13__prepared == NULL); - tmp_class_creation_13__prepared = tmp_assign_source_144; - } - branch_end_50:; - { - PyObject *tmp_assign_source_145; - { - PyObject *tmp_set_locals_13; - CHECK_OBJECT(tmp_class_creation_13__prepared); - tmp_set_locals_13 = tmp_class_creation_13__prepared; - locals_models$Qformer$$$class__13_BertPreTrainedModel_654 = tmp_set_locals_13; - Py_INCREF(tmp_set_locals_13); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_43; - } - tmp_dictset_value = mod_consts[376]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[276], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_43; - } - tmp_dictset_value = mod_consts[375]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_43; - } - if (isFrameUnusable(cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14)) { - Py_XDECREF(cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14 = MAKE_FUNCTION_FRAME(codeobj_2ba10c444d39cd9fbc64d82f9cd4789e, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14->m_type_description == NULL); - frame_2ba10c444d39cd9fbc64d82f9cd4789e_14 = cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2ba10c444d39cd9fbc64d82f9cd4789e_14); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2ba10c444d39cd9fbc64d82f9cd4789e_14) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = PyObject_GetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[322]); - - if (tmp_dictset_value == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[322]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[322]); - } - - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 660; - type_description_2 = "o"; - goto frame_exception_exit_14; - } - Py_INCREF(tmp_dictset_value); - } - } - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[377], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 660; - type_description_2 = "o"; - goto frame_exception_exit_14; - } - tmp_dictset_value = mod_consts[241]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[378], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 661; - type_description_2 = "o"; - goto frame_exception_exit_14; - } - tmp_dictset_value = LIST_COPY(mod_consts[379]); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[380], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 662; - type_description_2 = "o"; - goto frame_exception_exit_14; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__33__init_weights(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[381], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 664; - type_description_2 = "o"; - goto frame_exception_exit_14; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2ba10c444d39cd9fbc64d82f9cd4789e_14); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_13; - - frame_exception_exit_14:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2ba10c444d39cd9fbc64d82f9cd4789e_14); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2ba10c444d39cd9fbc64d82f9cd4789e_14, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2ba10c444d39cd9fbc64d82f9cd4789e_14->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2ba10c444d39cd9fbc64d82f9cd4789e_14, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2ba10c444d39cd9fbc64d82f9cd4789e_14, - type_description_2, - outline_12_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2ba10c444d39cd9fbc64d82f9cd4789e_14 == cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14); - cache_frame_2ba10c444d39cd9fbc64d82f9cd4789e_14 = NULL; - } - - assertFrameObject(frame_2ba10c444d39cd9fbc64d82f9cd4789e_14); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_13; - - frame_no_exception_13:; - goto skip_nested_handling_13; - nested_frame_exit_13:; - - goto try_except_handler_43; - skip_nested_handling_13:; - { - nuitka_bool tmp_condition_result_78; - PyObject *tmp_compexpr_left_13; - PyObject *tmp_compexpr_right_13; - CHECK_OBJECT(tmp_class_creation_13__bases); - tmp_compexpr_left_13 = tmp_class_creation_13__bases; - CHECK_OBJECT(tmp_class_creation_13__bases_orig); - tmp_compexpr_right_13 = tmp_class_creation_13__bases_orig; - tmp_condition_result_78 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_13, tmp_compexpr_right_13); - if (tmp_condition_result_78 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_43; - } - if (tmp_condition_result_78 == NUITKA_BOOL_TRUE) { - goto branch_yes_52; - } else { - goto branch_no_52; - } - assert(tmp_condition_result_78 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_52:; - CHECK_OBJECT(tmp_class_creation_13__bases_orig); - tmp_dictset_value = tmp_class_creation_13__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__13_BertPreTrainedModel_654, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_43; - } - branch_no_52:; - { - PyObject *tmp_assign_source_146; - PyObject *tmp_called_name_27; - PyObject *tmp_args_name_26; - PyObject *tmp_tuple_element_52; - PyObject *tmp_kwargs_name_26; - CHECK_OBJECT(tmp_class_creation_13__metaclass); - tmp_called_name_27 = tmp_class_creation_13__metaclass; - tmp_tuple_element_52 = mod_consts[375]; - tmp_args_name_26 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_26, 0, tmp_tuple_element_52); - CHECK_OBJECT(tmp_class_creation_13__bases); - tmp_tuple_element_52 = tmp_class_creation_13__bases; - PyTuple_SET_ITEM0(tmp_args_name_26, 1, tmp_tuple_element_52); - tmp_tuple_element_52 = locals_models$Qformer$$$class__13_BertPreTrainedModel_654; - PyTuple_SET_ITEM0(tmp_args_name_26, 2, tmp_tuple_element_52); - CHECK_OBJECT(tmp_class_creation_13__class_decl_dict); - tmp_kwargs_name_26 = tmp_class_creation_13__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 654; - tmp_assign_source_146 = CALL_FUNCTION(tmp_called_name_27, tmp_args_name_26, tmp_kwargs_name_26); - Py_DECREF(tmp_args_name_26); - if (tmp_assign_source_146 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 654; - - goto try_except_handler_43; - } - assert(outline_12_var___class__ == NULL); - outline_12_var___class__ = tmp_assign_source_146; - } - CHECK_OBJECT(outline_12_var___class__); - tmp_assign_source_145 = outline_12_var___class__; - Py_INCREF(tmp_assign_source_145); - goto try_return_handler_43; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_43:; - Py_DECREF(locals_models$Qformer$$$class__13_BertPreTrainedModel_654); - locals_models$Qformer$$$class__13_BertPreTrainedModel_654 = NULL; - goto try_return_handler_42; - // Exception handler code: - try_except_handler_43:; - exception_keeper_type_41 = exception_type; - exception_keeper_value_41 = exception_value; - exception_keeper_tb_41 = exception_tb; - exception_keeper_lineno_41 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__13_BertPreTrainedModel_654); - locals_models$Qformer$$$class__13_BertPreTrainedModel_654 = NULL; - // Re-raise. - exception_type = exception_keeper_type_41; - exception_value = exception_keeper_value_41; - exception_tb = exception_keeper_tb_41; - exception_lineno = exception_keeper_lineno_41; - - goto try_except_handler_42; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_42:; - CHECK_OBJECT(outline_12_var___class__); - Py_DECREF(outline_12_var___class__); - outline_12_var___class__ = NULL; - goto outline_result_13; - // Exception handler code: - try_except_handler_42:; - exception_keeper_type_42 = exception_type; - exception_keeper_value_42 = exception_value; - exception_keeper_tb_42 = exception_tb; - exception_keeper_lineno_42 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_42; - exception_value = exception_keeper_value_42; - exception_tb = exception_keeper_tb_42; - exception_lineno = exception_keeper_lineno_42; - - goto outline_exception_13; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_13:; - exception_lineno = 654; - goto try_except_handler_41; - outline_result_13:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[375], tmp_assign_source_145); - } - goto try_end_17; - // Exception handler code: - try_except_handler_41:; - exception_keeper_type_43 = exception_type; - exception_keeper_value_43 = exception_value; - exception_keeper_tb_43 = exception_tb; - exception_keeper_lineno_43 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_13__bases_orig); - tmp_class_creation_13__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_13__bases); - tmp_class_creation_13__bases = NULL; - Py_XDECREF(tmp_class_creation_13__class_decl_dict); - tmp_class_creation_13__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_13__metaclass); - tmp_class_creation_13__metaclass = NULL; - Py_XDECREF(tmp_class_creation_13__prepared); - tmp_class_creation_13__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_43; - exception_value = exception_keeper_value_43; - exception_tb = exception_keeper_tb_43; - exception_lineno = exception_keeper_lineno_43; - - goto frame_exception_exit_1; - // End of try: - try_end_17:; - CHECK_OBJECT(tmp_class_creation_13__bases_orig); - Py_DECREF(tmp_class_creation_13__bases_orig); - tmp_class_creation_13__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_13__bases); - tmp_class_creation_13__bases = NULL; - Py_XDECREF(tmp_class_creation_13__class_decl_dict); - tmp_class_creation_13__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_13__metaclass); - tmp_class_creation_13__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_13__prepared); - Py_DECREF(tmp_class_creation_13__prepared); - tmp_class_creation_13__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_147; - PyObject *tmp_tuple_element_53; - tmp_tuple_element_53 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[375]); - - if (unlikely(tmp_tuple_element_53 == NULL)) { - tmp_tuple_element_53 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[375]); - } - - if (tmp_tuple_element_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - tmp_assign_source_147 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_147, 0, tmp_tuple_element_53); - assert(tmp_class_creation_14__bases_orig == NULL); - tmp_class_creation_14__bases_orig = tmp_assign_source_147; - } - { - PyObject *tmp_assign_source_148; - PyObject *tmp_dircall_arg1_14; - CHECK_OBJECT(tmp_class_creation_14__bases_orig); - tmp_dircall_arg1_14 = tmp_class_creation_14__bases_orig; - Py_INCREF(tmp_dircall_arg1_14); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_14}; - tmp_assign_source_148 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_148 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - assert(tmp_class_creation_14__bases == NULL); - tmp_class_creation_14__bases = tmp_assign_source_148; - } - { - PyObject *tmp_assign_source_149; - tmp_assign_source_149 = PyDict_New(); - assert(tmp_class_creation_14__class_decl_dict == NULL); - tmp_class_creation_14__class_decl_dict = tmp_assign_source_149; - } - { - PyObject *tmp_assign_source_150; - PyObject *tmp_metaclass_name_14; - nuitka_bool tmp_condition_result_79; - PyObject *tmp_key_name_40; - PyObject *tmp_dict_arg_name_40; - PyObject *tmp_dict_arg_name_41; - PyObject *tmp_key_name_41; - nuitka_bool tmp_condition_result_80; - int tmp_truth_name_14; - PyObject *tmp_type_arg_27; - PyObject *tmp_expression_name_79; - PyObject *tmp_subscript_name_14; - PyObject *tmp_bases_name_14; - tmp_key_name_40 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_14__class_decl_dict); - tmp_dict_arg_name_40 = tmp_class_creation_14__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_40, tmp_key_name_40); - assert(!(tmp_res == -1)); - tmp_condition_result_79 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_79 == NUITKA_BOOL_TRUE) { - goto condexpr_true_27; - } else { - goto condexpr_false_27; - } - condexpr_true_27:; - CHECK_OBJECT(tmp_class_creation_14__class_decl_dict); - tmp_dict_arg_name_41 = tmp_class_creation_14__class_decl_dict; - tmp_key_name_41 = mod_consts[326]; - tmp_metaclass_name_14 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_41, tmp_key_name_41); - if (tmp_metaclass_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - goto condexpr_end_27; - condexpr_false_27:; - CHECK_OBJECT(tmp_class_creation_14__bases); - tmp_truth_name_14 = CHECK_IF_TRUE(tmp_class_creation_14__bases); - if (tmp_truth_name_14 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - tmp_condition_result_80 = tmp_truth_name_14 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_80 == NUITKA_BOOL_TRUE) { - goto condexpr_true_28; - } else { - goto condexpr_false_28; - } - condexpr_true_28:; - CHECK_OBJECT(tmp_class_creation_14__bases); - tmp_expression_name_79 = tmp_class_creation_14__bases; - tmp_subscript_name_14 = mod_consts[29]; - tmp_type_arg_27 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_79, tmp_subscript_name_14, 0); - if (tmp_type_arg_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - tmp_metaclass_name_14 = BUILTIN_TYPE1(tmp_type_arg_27); - Py_DECREF(tmp_type_arg_27); - if (tmp_metaclass_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - goto condexpr_end_28; - condexpr_false_28:; - tmp_metaclass_name_14 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_14); - condexpr_end_28:; - condexpr_end_27:; - CHECK_OBJECT(tmp_class_creation_14__bases); - tmp_bases_name_14 = tmp_class_creation_14__bases; - tmp_assign_source_150 = SELECT_METACLASS(tmp_metaclass_name_14, tmp_bases_name_14); - Py_DECREF(tmp_metaclass_name_14); - if (tmp_assign_source_150 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - assert(tmp_class_creation_14__metaclass == NULL); - tmp_class_creation_14__metaclass = tmp_assign_source_150; - } - { - nuitka_bool tmp_condition_result_81; - PyObject *tmp_key_name_42; - PyObject *tmp_dict_arg_name_42; - tmp_key_name_42 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_14__class_decl_dict); - tmp_dict_arg_name_42 = tmp_class_creation_14__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_42, tmp_key_name_42); - assert(!(tmp_res == -1)); - tmp_condition_result_81 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_81 == NUITKA_BOOL_TRUE) { - goto branch_yes_53; - } else { - goto branch_no_53; - } - } - branch_yes_53:; - CHECK_OBJECT(tmp_class_creation_14__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_14__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - branch_no_53:; - { - nuitka_bool tmp_condition_result_82; - PyObject *tmp_expression_name_80; - CHECK_OBJECT(tmp_class_creation_14__metaclass); - tmp_expression_name_80 = tmp_class_creation_14__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_80, mod_consts[327]); - tmp_condition_result_82 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_82 == NUITKA_BOOL_TRUE) { - goto branch_yes_54; - } else { - goto branch_no_54; - } - } - branch_yes_54:; - { - PyObject *tmp_assign_source_151; - PyObject *tmp_called_name_28; - PyObject *tmp_expression_name_81; - PyObject *tmp_args_name_27; - PyObject *tmp_tuple_element_54; - PyObject *tmp_kwargs_name_27; - CHECK_OBJECT(tmp_class_creation_14__metaclass); - tmp_expression_name_81 = tmp_class_creation_14__metaclass; - tmp_called_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_81, mod_consts[327]); - if (tmp_called_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - tmp_tuple_element_54 = mod_consts[239]; - tmp_args_name_27 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_27, 0, tmp_tuple_element_54); - CHECK_OBJECT(tmp_class_creation_14__bases); - tmp_tuple_element_54 = tmp_class_creation_14__bases; - PyTuple_SET_ITEM0(tmp_args_name_27, 1, tmp_tuple_element_54); - CHECK_OBJECT(tmp_class_creation_14__class_decl_dict); - tmp_kwargs_name_27 = tmp_class_creation_14__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 677; - tmp_assign_source_151 = CALL_FUNCTION(tmp_called_name_28, tmp_args_name_27, tmp_kwargs_name_27); - Py_DECREF(tmp_called_name_28); - Py_DECREF(tmp_args_name_27); - if (tmp_assign_source_151 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - assert(tmp_class_creation_14__prepared == NULL); - tmp_class_creation_14__prepared = tmp_assign_source_151; - } - { - nuitka_bool tmp_condition_result_83; - PyObject *tmp_operand_name_14; - PyObject *tmp_expression_name_82; - CHECK_OBJECT(tmp_class_creation_14__prepared); - tmp_expression_name_82 = tmp_class_creation_14__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_82, mod_consts[328]); - tmp_operand_name_14 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_14); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - tmp_condition_result_83 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_83 == NUITKA_BOOL_TRUE) { - goto branch_yes_55; - } else { - goto branch_no_55; - } - } - branch_yes_55:; - { - PyObject *tmp_raise_type_14; - PyObject *tmp_raise_value_14; - PyObject *tmp_left_name_14; - PyObject *tmp_right_name_14; - PyObject *tmp_tuple_element_55; - PyObject *tmp_getattr_target_14; - PyObject *tmp_getattr_attr_14; - PyObject *tmp_getattr_default_14; - tmp_raise_type_14 = PyExc_TypeError; - tmp_left_name_14 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_14__metaclass); - tmp_getattr_target_14 = tmp_class_creation_14__metaclass; - tmp_getattr_attr_14 = mod_consts[324]; - tmp_getattr_default_14 = mod_consts[330]; - tmp_tuple_element_55 = BUILTIN_GETATTR(tmp_getattr_target_14, tmp_getattr_attr_14, tmp_getattr_default_14); - if (tmp_tuple_element_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - tmp_right_name_14 = PyTuple_New(2); - { - PyObject *tmp_expression_name_83; - PyObject *tmp_type_arg_28; - PyTuple_SET_ITEM(tmp_right_name_14, 0, tmp_tuple_element_55); - CHECK_OBJECT(tmp_class_creation_14__prepared); - tmp_type_arg_28 = tmp_class_creation_14__prepared; - tmp_expression_name_83 = BUILTIN_TYPE1(tmp_type_arg_28); - assert(!(tmp_expression_name_83 == NULL)); - tmp_tuple_element_55 = LOOKUP_ATTRIBUTE(tmp_expression_name_83, mod_consts[324]); - Py_DECREF(tmp_expression_name_83); - if (tmp_tuple_element_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto tuple_build_exception_14; - } - PyTuple_SET_ITEM(tmp_right_name_14, 1, tmp_tuple_element_55); - } - goto tuple_build_noexception_14; - // Exception handling pass through code for tuple_build: - tuple_build_exception_14:; - Py_DECREF(tmp_right_name_14); - goto try_except_handler_44; - // Finished with no exception for tuple_build: - tuple_build_noexception_14:; - tmp_raise_value_14 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_14, tmp_right_name_14); - Py_DECREF(tmp_right_name_14); - if (tmp_raise_value_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_44; - } - exception_type = tmp_raise_type_14; - Py_INCREF(tmp_raise_type_14); - exception_value = tmp_raise_value_14; - exception_lineno = 677; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_44; - } - branch_no_55:; - goto branch_end_54; - branch_no_54:; - { - PyObject *tmp_assign_source_152; - tmp_assign_source_152 = PyDict_New(); - assert(tmp_class_creation_14__prepared == NULL); - tmp_class_creation_14__prepared = tmp_assign_source_152; - } - branch_end_54:; - { - PyObject *tmp_assign_source_153; - { - PyObject *tmp_set_locals_14; - CHECK_OBJECT(tmp_class_creation_14__prepared); - tmp_set_locals_14 = tmp_class_creation_14__prepared; - locals_models$Qformer$$$class__14_BertModel_677 = tmp_set_locals_14; - Py_INCREF(tmp_set_locals_14); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_46; - } - tmp_dictset_value = mod_consts[383]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[276], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_46; - } - tmp_dictset_value = mod_consts[239]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_46; - } - if (isFrameUnusable(cache_frame_25865ea0df4a3f86bdd137c22518ab84_15)) { - Py_XDECREF(cache_frame_25865ea0df4a3f86bdd137c22518ab84_15); - -#if _DEBUG_REFCOUNTS - if (cache_frame_25865ea0df4a3f86bdd137c22518ab84_15 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_25865ea0df4a3f86bdd137c22518ab84_15 = MAKE_FUNCTION_FRAME(codeobj_25865ea0df4a3f86bdd137c22518ab84, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_25865ea0df4a3f86bdd137c22518ab84_15->m_type_description == NULL); - frame_25865ea0df4a3f86bdd137c22518ab84_15 = cache_frame_25865ea0df4a3f86bdd137c22518ab84_15; - - // Push the new frame as the currently active one. - pushFrameStack(frame_25865ea0df4a3f86bdd137c22518ab84_15); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_25865ea0df4a3f86bdd137c22518ab84_15) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_7; - struct Nuitka_CellObject *tmp_closure_13[1]; - tmp_defaults_7 = mod_consts[351]; - Py_INCREF(tmp_defaults_7); - - tmp_closure_13[0] = outline_13_var___class__; - Py_INCREF(tmp_closure_13[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__34___init__(tmp_defaults_7, tmp_closure_13); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 687; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__35_get_input_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[385], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 699; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__36_set_input_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[387], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 702; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__37__prune_heads(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[389], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 705; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - { - PyObject *tmp_defaults_8; - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_defaults_8 = mod_consts[351]; - tmp_dict_key_1 = mod_consts[128]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[294]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[294]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[294]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 715; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_annotations_1 = _PyDict_NewPresized( 6 ); - { - PyObject *tmp_expression_name_84; - PyObject *tmp_subscript_name_15; - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[228]; - tmp_expression_name_84 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[290]); - - if (tmp_expression_name_84 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_84 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[290]); - - if (unlikely(tmp_expression_name_84 == NULL)) { - tmp_expression_name_84 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[290]); - } - - if (tmp_expression_name_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 716; - type_description_2 = "c"; - goto dict_build_exception_1; - } - Py_INCREF(tmp_expression_name_84); - } - } - - tmp_subscript_name_15 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[391]); - - if (tmp_subscript_name_15 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_15 = (PyObject *)&PyLong_Type; - Py_INCREF(tmp_subscript_name_15); - } - } - - tmp_dict_value_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_84, tmp_subscript_name_15); - Py_DECREF(tmp_expression_name_84); - Py_DECREF(tmp_subscript_name_15); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 716; - type_description_2 = "c"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[70]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[70]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[70]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[70]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 717; - type_description_2 = "c"; - goto dict_build_exception_1; - } - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[244]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[392]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[227]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[392]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[393]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[294]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[294]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[294]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 720; - type_description_2 = "c"; - goto dict_build_exception_1; - } - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_annotations_1); - goto frame_exception_exit_15; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - Py_INCREF(tmp_defaults_8); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__38_get_extended_attention_mask(tmp_defaults_8, tmp_annotations_1); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[226], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 713; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - } - { - PyObject *tmp_defaults_9; - tmp_defaults_9 = mod_consts[395]; - Py_INCREF(tmp_defaults_9); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__39_forward(tmp_defaults_9); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 804; - type_description_2 = "c"; - goto frame_exception_exit_15; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_25865ea0df4a3f86bdd137c22518ab84_15); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_14; - - frame_exception_exit_15:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_25865ea0df4a3f86bdd137c22518ab84_15); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_25865ea0df4a3f86bdd137c22518ab84_15, exception_lineno); - } else if (exception_tb->tb_frame != &frame_25865ea0df4a3f86bdd137c22518ab84_15->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_25865ea0df4a3f86bdd137c22518ab84_15, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_25865ea0df4a3f86bdd137c22518ab84_15, - type_description_2, - outline_13_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_25865ea0df4a3f86bdd137c22518ab84_15 == cache_frame_25865ea0df4a3f86bdd137c22518ab84_15) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_25865ea0df4a3f86bdd137c22518ab84_15); - cache_frame_25865ea0df4a3f86bdd137c22518ab84_15 = NULL; - } - - assertFrameObject(frame_25865ea0df4a3f86bdd137c22518ab84_15); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_14; - - frame_no_exception_14:; - goto skip_nested_handling_14; - nested_frame_exit_14:; - - goto try_except_handler_46; - skip_nested_handling_14:; - { - nuitka_bool tmp_condition_result_84; - PyObject *tmp_compexpr_left_14; - PyObject *tmp_compexpr_right_14; - CHECK_OBJECT(tmp_class_creation_14__bases); - tmp_compexpr_left_14 = tmp_class_creation_14__bases; - CHECK_OBJECT(tmp_class_creation_14__bases_orig); - tmp_compexpr_right_14 = tmp_class_creation_14__bases_orig; - tmp_condition_result_84 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_14, tmp_compexpr_right_14); - if (tmp_condition_result_84 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_46; - } - if (tmp_condition_result_84 == NUITKA_BOOL_TRUE) { - goto branch_yes_56; - } else { - goto branch_no_56; - } - assert(tmp_condition_result_84 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_56:; - CHECK_OBJECT(tmp_class_creation_14__bases_orig); - tmp_dictset_value = tmp_class_creation_14__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__14_BertModel_677, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_46; - } - branch_no_56:; - { - PyObject *tmp_assign_source_154; - PyObject *tmp_called_name_29; - PyObject *tmp_args_name_28; - PyObject *tmp_tuple_element_56; - PyObject *tmp_kwargs_name_28; - CHECK_OBJECT(tmp_class_creation_14__metaclass); - tmp_called_name_29 = tmp_class_creation_14__metaclass; - tmp_tuple_element_56 = mod_consts[239]; - tmp_args_name_28 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_28, 0, tmp_tuple_element_56); - CHECK_OBJECT(tmp_class_creation_14__bases); - tmp_tuple_element_56 = tmp_class_creation_14__bases; - PyTuple_SET_ITEM0(tmp_args_name_28, 1, tmp_tuple_element_56); - tmp_tuple_element_56 = locals_models$Qformer$$$class__14_BertModel_677; - PyTuple_SET_ITEM0(tmp_args_name_28, 2, tmp_tuple_element_56); - CHECK_OBJECT(tmp_class_creation_14__class_decl_dict); - tmp_kwargs_name_28 = tmp_class_creation_14__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 677; - tmp_assign_source_154 = CALL_FUNCTION(tmp_called_name_29, tmp_args_name_28, tmp_kwargs_name_28); - Py_DECREF(tmp_args_name_28); - if (tmp_assign_source_154 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - - goto try_except_handler_46; - } - { - PyObject *old = Nuitka_Cell_GET(outline_13_var___class__); - PyCell_SET(outline_13_var___class__, tmp_assign_source_154); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_13_var___class__)); - tmp_assign_source_153 = Nuitka_Cell_GET(outline_13_var___class__); - Py_INCREF(tmp_assign_source_153); - goto try_return_handler_46; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_46:; - Py_DECREF(locals_models$Qformer$$$class__14_BertModel_677); - locals_models$Qformer$$$class__14_BertModel_677 = NULL; - goto try_return_handler_45; - // Exception handler code: - try_except_handler_46:; - exception_keeper_type_44 = exception_type; - exception_keeper_value_44 = exception_value; - exception_keeper_tb_44 = exception_tb; - exception_keeper_lineno_44 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__14_BertModel_677); - locals_models$Qformer$$$class__14_BertModel_677 = NULL; - // Re-raise. - exception_type = exception_keeper_type_44; - exception_value = exception_keeper_value_44; - exception_tb = exception_keeper_tb_44; - exception_lineno = exception_keeper_lineno_44; - - goto try_except_handler_45; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_45:; - CHECK_OBJECT(outline_13_var___class__); - Py_DECREF(outline_13_var___class__); - outline_13_var___class__ = NULL; - goto outline_result_14; - // Exception handler code: - try_except_handler_45:; - exception_keeper_type_45 = exception_type; - exception_keeper_value_45 = exception_value; - exception_keeper_tb_45 = exception_tb; - exception_keeper_lineno_45 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_13_var___class__); - Py_DECREF(outline_13_var___class__); - outline_13_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_45; - exception_value = exception_keeper_value_45; - exception_tb = exception_keeper_tb_45; - exception_lineno = exception_keeper_lineno_45; - - goto outline_exception_14; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_14:; - exception_lineno = 677; - goto try_except_handler_44; - outline_result_14:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[239], tmp_assign_source_153); - } - goto try_end_18; - // Exception handler code: - try_except_handler_44:; - exception_keeper_type_46 = exception_type; - exception_keeper_value_46 = exception_value; - exception_keeper_tb_46 = exception_tb; - exception_keeper_lineno_46 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_14__bases_orig); - tmp_class_creation_14__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_14__bases); - tmp_class_creation_14__bases = NULL; - Py_XDECREF(tmp_class_creation_14__class_decl_dict); - tmp_class_creation_14__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_14__metaclass); - tmp_class_creation_14__metaclass = NULL; - Py_XDECREF(tmp_class_creation_14__prepared); - tmp_class_creation_14__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_46; - exception_value = exception_keeper_value_46; - exception_tb = exception_keeper_tb_46; - exception_lineno = exception_keeper_lineno_46; - - goto frame_exception_exit_1; - // End of try: - try_end_18:; - CHECK_OBJECT(tmp_class_creation_14__bases_orig); - Py_DECREF(tmp_class_creation_14__bases_orig); - tmp_class_creation_14__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_14__bases); - tmp_class_creation_14__bases = NULL; - Py_XDECREF(tmp_class_creation_14__class_decl_dict); - tmp_class_creation_14__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_14__metaclass); - tmp_class_creation_14__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_14__prepared); - Py_DECREF(tmp_class_creation_14__prepared); - tmp_class_creation_14__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_155; - PyObject *tmp_tuple_element_57; - tmp_tuple_element_57 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[375]); - - if (unlikely(tmp_tuple_element_57 == NULL)) { - tmp_tuple_element_57 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[375]); - } - - if (tmp_tuple_element_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - tmp_assign_source_155 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_155, 0, tmp_tuple_element_57); - assert(tmp_class_creation_15__bases_orig == NULL); - tmp_class_creation_15__bases_orig = tmp_assign_source_155; - } - { - PyObject *tmp_assign_source_156; - PyObject *tmp_dircall_arg1_15; - CHECK_OBJECT(tmp_class_creation_15__bases_orig); - tmp_dircall_arg1_15 = tmp_class_creation_15__bases_orig; - Py_INCREF(tmp_dircall_arg1_15); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_15}; - tmp_assign_source_156 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_156 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - assert(tmp_class_creation_15__bases == NULL); - tmp_class_creation_15__bases = tmp_assign_source_156; - } - { - PyObject *tmp_assign_source_157; - tmp_assign_source_157 = PyDict_New(); - assert(tmp_class_creation_15__class_decl_dict == NULL); - tmp_class_creation_15__class_decl_dict = tmp_assign_source_157; - } - { - PyObject *tmp_assign_source_158; - PyObject *tmp_metaclass_name_15; - nuitka_bool tmp_condition_result_85; - PyObject *tmp_key_name_43; - PyObject *tmp_dict_arg_name_43; - PyObject *tmp_dict_arg_name_44; - PyObject *tmp_key_name_44; - nuitka_bool tmp_condition_result_86; - int tmp_truth_name_15; - PyObject *tmp_type_arg_29; - PyObject *tmp_expression_name_85; - PyObject *tmp_subscript_name_16; - PyObject *tmp_bases_name_15; - tmp_key_name_43 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_15__class_decl_dict); - tmp_dict_arg_name_43 = tmp_class_creation_15__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_43, tmp_key_name_43); - assert(!(tmp_res == -1)); - tmp_condition_result_85 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_85 == NUITKA_BOOL_TRUE) { - goto condexpr_true_29; - } else { - goto condexpr_false_29; - } - condexpr_true_29:; - CHECK_OBJECT(tmp_class_creation_15__class_decl_dict); - tmp_dict_arg_name_44 = tmp_class_creation_15__class_decl_dict; - tmp_key_name_44 = mod_consts[326]; - tmp_metaclass_name_15 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_44, tmp_key_name_44); - if (tmp_metaclass_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - goto condexpr_end_29; - condexpr_false_29:; - CHECK_OBJECT(tmp_class_creation_15__bases); - tmp_truth_name_15 = CHECK_IF_TRUE(tmp_class_creation_15__bases); - if (tmp_truth_name_15 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - tmp_condition_result_86 = tmp_truth_name_15 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_86 == NUITKA_BOOL_TRUE) { - goto condexpr_true_30; - } else { - goto condexpr_false_30; - } - condexpr_true_30:; - CHECK_OBJECT(tmp_class_creation_15__bases); - tmp_expression_name_85 = tmp_class_creation_15__bases; - tmp_subscript_name_16 = mod_consts[29]; - tmp_type_arg_29 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_85, tmp_subscript_name_16, 0); - if (tmp_type_arg_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - tmp_metaclass_name_15 = BUILTIN_TYPE1(tmp_type_arg_29); - Py_DECREF(tmp_type_arg_29); - if (tmp_metaclass_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - goto condexpr_end_30; - condexpr_false_30:; - tmp_metaclass_name_15 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_15); - condexpr_end_30:; - condexpr_end_29:; - CHECK_OBJECT(tmp_class_creation_15__bases); - tmp_bases_name_15 = tmp_class_creation_15__bases; - tmp_assign_source_158 = SELECT_METACLASS(tmp_metaclass_name_15, tmp_bases_name_15); - Py_DECREF(tmp_metaclass_name_15); - if (tmp_assign_source_158 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - assert(tmp_class_creation_15__metaclass == NULL); - tmp_class_creation_15__metaclass = tmp_assign_source_158; - } - { - nuitka_bool tmp_condition_result_87; - PyObject *tmp_key_name_45; - PyObject *tmp_dict_arg_name_45; - tmp_key_name_45 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_15__class_decl_dict); - tmp_dict_arg_name_45 = tmp_class_creation_15__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_45, tmp_key_name_45); - assert(!(tmp_res == -1)); - tmp_condition_result_87 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_87 == NUITKA_BOOL_TRUE) { - goto branch_yes_57; - } else { - goto branch_no_57; - } - } - branch_yes_57:; - CHECK_OBJECT(tmp_class_creation_15__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_15__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - branch_no_57:; - { - nuitka_bool tmp_condition_result_88; - PyObject *tmp_expression_name_86; - CHECK_OBJECT(tmp_class_creation_15__metaclass); - tmp_expression_name_86 = tmp_class_creation_15__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_86, mod_consts[327]); - tmp_condition_result_88 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_88 == NUITKA_BOOL_TRUE) { - goto branch_yes_58; - } else { - goto branch_no_58; - } - } - branch_yes_58:; - { - PyObject *tmp_assign_source_159; - PyObject *tmp_called_name_30; - PyObject *tmp_expression_name_87; - PyObject *tmp_args_name_29; - PyObject *tmp_tuple_element_58; - PyObject *tmp_kwargs_name_29; - CHECK_OBJECT(tmp_class_creation_15__metaclass); - tmp_expression_name_87 = tmp_class_creation_15__metaclass; - tmp_called_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_87, mod_consts[327]); - if (tmp_called_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - tmp_tuple_element_58 = mod_consts[397]; - tmp_args_name_29 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_29, 0, tmp_tuple_element_58); - CHECK_OBJECT(tmp_class_creation_15__bases); - tmp_tuple_element_58 = tmp_class_creation_15__bases; - PyTuple_SET_ITEM0(tmp_args_name_29, 1, tmp_tuple_element_58); - CHECK_OBJECT(tmp_class_creation_15__class_decl_dict); - tmp_kwargs_name_29 = tmp_class_creation_15__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 968; - tmp_assign_source_159 = CALL_FUNCTION(tmp_called_name_30, tmp_args_name_29, tmp_kwargs_name_29); - Py_DECREF(tmp_called_name_30); - Py_DECREF(tmp_args_name_29); - if (tmp_assign_source_159 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - assert(tmp_class_creation_15__prepared == NULL); - tmp_class_creation_15__prepared = tmp_assign_source_159; - } - { - nuitka_bool tmp_condition_result_89; - PyObject *tmp_operand_name_15; - PyObject *tmp_expression_name_88; - CHECK_OBJECT(tmp_class_creation_15__prepared); - tmp_expression_name_88 = tmp_class_creation_15__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_88, mod_consts[328]); - tmp_operand_name_15 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_15); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - tmp_condition_result_89 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_89 == NUITKA_BOOL_TRUE) { - goto branch_yes_59; - } else { - goto branch_no_59; - } - } - branch_yes_59:; - { - PyObject *tmp_raise_type_15; - PyObject *tmp_raise_value_15; - PyObject *tmp_left_name_15; - PyObject *tmp_right_name_15; - PyObject *tmp_tuple_element_59; - PyObject *tmp_getattr_target_15; - PyObject *tmp_getattr_attr_15; - PyObject *tmp_getattr_default_15; - tmp_raise_type_15 = PyExc_TypeError; - tmp_left_name_15 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_15__metaclass); - tmp_getattr_target_15 = tmp_class_creation_15__metaclass; - tmp_getattr_attr_15 = mod_consts[324]; - tmp_getattr_default_15 = mod_consts[330]; - tmp_tuple_element_59 = BUILTIN_GETATTR(tmp_getattr_target_15, tmp_getattr_attr_15, tmp_getattr_default_15); - if (tmp_tuple_element_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - tmp_right_name_15 = PyTuple_New(2); - { - PyObject *tmp_expression_name_89; - PyObject *tmp_type_arg_30; - PyTuple_SET_ITEM(tmp_right_name_15, 0, tmp_tuple_element_59); - CHECK_OBJECT(tmp_class_creation_15__prepared); - tmp_type_arg_30 = tmp_class_creation_15__prepared; - tmp_expression_name_89 = BUILTIN_TYPE1(tmp_type_arg_30); - assert(!(tmp_expression_name_89 == NULL)); - tmp_tuple_element_59 = LOOKUP_ATTRIBUTE(tmp_expression_name_89, mod_consts[324]); - Py_DECREF(tmp_expression_name_89); - if (tmp_tuple_element_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto tuple_build_exception_15; - } - PyTuple_SET_ITEM(tmp_right_name_15, 1, tmp_tuple_element_59); - } - goto tuple_build_noexception_15; - // Exception handling pass through code for tuple_build: - tuple_build_exception_15:; - Py_DECREF(tmp_right_name_15); - goto try_except_handler_47; - // Finished with no exception for tuple_build: - tuple_build_noexception_15:; - tmp_raise_value_15 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_15, tmp_right_name_15); - Py_DECREF(tmp_right_name_15); - if (tmp_raise_value_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_47; - } - exception_type = tmp_raise_type_15; - Py_INCREF(tmp_raise_type_15); - exception_value = tmp_raise_value_15; - exception_lineno = 968; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_47; - } - branch_no_59:; - goto branch_end_58; - branch_no_58:; - { - PyObject *tmp_assign_source_160; - tmp_assign_source_160 = PyDict_New(); - assert(tmp_class_creation_15__prepared == NULL); - tmp_class_creation_15__prepared = tmp_assign_source_160; - } - branch_end_58:; - { - PyObject *tmp_assign_source_161; - { - PyObject *tmp_set_locals_15; - CHECK_OBJECT(tmp_class_creation_15__prepared); - tmp_set_locals_15 = tmp_class_creation_15__prepared; - locals_models$Qformer$$$class__15_BertLMHeadModel_968 = tmp_set_locals_15; - Py_INCREF(tmp_set_locals_15); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_49; - } - tmp_dictset_value = mod_consts[397]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_49; - } - if (isFrameUnusable(cache_frame_aa454e092d5abc9f5e4553a289907508_16)) { - Py_XDECREF(cache_frame_aa454e092d5abc9f5e4553a289907508_16); - -#if _DEBUG_REFCOUNTS - if (cache_frame_aa454e092d5abc9f5e4553a289907508_16 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_aa454e092d5abc9f5e4553a289907508_16 = MAKE_FUNCTION_FRAME(codeobj_aa454e092d5abc9f5e4553a289907508, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_aa454e092d5abc9f5e4553a289907508_16->m_type_description == NULL); - frame_aa454e092d5abc9f5e4553a289907508_16 = cache_frame_aa454e092d5abc9f5e4553a289907508_16; - - // Push the new frame as the currently active one. - pushFrameStack(frame_aa454e092d5abc9f5e4553a289907508_16); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_aa454e092d5abc9f5e4553a289907508_16) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = LIST_COPY(mod_consts[398]); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[399], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 970; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - tmp_dictset_value = LIST_COPY(mod_consts[400]); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[380], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 971; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - { - struct Nuitka_CellObject *tmp_closure_14[1]; - - tmp_closure_14[0] = outline_14_var___class__; - Py_INCREF(tmp_closure_14[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__40___init__(tmp_closure_14); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 973; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__41_get_output_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[402], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 981; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__42_set_output_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[404], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 984; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - { - PyObject *tmp_defaults_10; - tmp_defaults_10 = mod_consts[406]; - Py_INCREF(tmp_defaults_10); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__43_forward(tmp_defaults_10); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 987; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - } - { - PyObject *tmp_defaults_11; - tmp_defaults_11 = mod_consts[408]; - Py_INCREF(tmp_defaults_11); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__44_prepare_inputs_for_generation(tmp_defaults_11); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[409], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1097; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__45__reorder_cache(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[411], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1120; - type_description_2 = "c"; - goto frame_exception_exit_16; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa454e092d5abc9f5e4553a289907508_16); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_15; - - frame_exception_exit_16:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa454e092d5abc9f5e4553a289907508_16); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_aa454e092d5abc9f5e4553a289907508_16, exception_lineno); - } else if (exception_tb->tb_frame != &frame_aa454e092d5abc9f5e4553a289907508_16->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_aa454e092d5abc9f5e4553a289907508_16, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_aa454e092d5abc9f5e4553a289907508_16, - type_description_2, - outline_14_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_aa454e092d5abc9f5e4553a289907508_16 == cache_frame_aa454e092d5abc9f5e4553a289907508_16) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_aa454e092d5abc9f5e4553a289907508_16); - cache_frame_aa454e092d5abc9f5e4553a289907508_16 = NULL; - } - - assertFrameObject(frame_aa454e092d5abc9f5e4553a289907508_16); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_15; - - frame_no_exception_15:; - goto skip_nested_handling_15; - nested_frame_exit_15:; - - goto try_except_handler_49; - skip_nested_handling_15:; - { - nuitka_bool tmp_condition_result_90; - PyObject *tmp_compexpr_left_15; - PyObject *tmp_compexpr_right_15; - CHECK_OBJECT(tmp_class_creation_15__bases); - tmp_compexpr_left_15 = tmp_class_creation_15__bases; - CHECK_OBJECT(tmp_class_creation_15__bases_orig); - tmp_compexpr_right_15 = tmp_class_creation_15__bases_orig; - tmp_condition_result_90 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_15, tmp_compexpr_right_15); - if (tmp_condition_result_90 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_49; - } - if (tmp_condition_result_90 == NUITKA_BOOL_TRUE) { - goto branch_yes_60; - } else { - goto branch_no_60; - } - assert(tmp_condition_result_90 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_60:; - CHECK_OBJECT(tmp_class_creation_15__bases_orig); - tmp_dictset_value = tmp_class_creation_15__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__15_BertLMHeadModel_968, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_49; - } - branch_no_60:; - { - PyObject *tmp_assign_source_162; - PyObject *tmp_called_name_31; - PyObject *tmp_args_name_30; - PyObject *tmp_tuple_element_60; - PyObject *tmp_kwargs_name_30; - CHECK_OBJECT(tmp_class_creation_15__metaclass); - tmp_called_name_31 = tmp_class_creation_15__metaclass; - tmp_tuple_element_60 = mod_consts[397]; - tmp_args_name_30 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_30, 0, tmp_tuple_element_60); - CHECK_OBJECT(tmp_class_creation_15__bases); - tmp_tuple_element_60 = tmp_class_creation_15__bases; - PyTuple_SET_ITEM0(tmp_args_name_30, 1, tmp_tuple_element_60); - tmp_tuple_element_60 = locals_models$Qformer$$$class__15_BertLMHeadModel_968; - PyTuple_SET_ITEM0(tmp_args_name_30, 2, tmp_tuple_element_60); - CHECK_OBJECT(tmp_class_creation_15__class_decl_dict); - tmp_kwargs_name_30 = tmp_class_creation_15__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 968; - tmp_assign_source_162 = CALL_FUNCTION(tmp_called_name_31, tmp_args_name_30, tmp_kwargs_name_30); - Py_DECREF(tmp_args_name_30); - if (tmp_assign_source_162 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 968; - - goto try_except_handler_49; - } - { - PyObject *old = Nuitka_Cell_GET(outline_14_var___class__); - PyCell_SET(outline_14_var___class__, tmp_assign_source_162); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_14_var___class__)); - tmp_assign_source_161 = Nuitka_Cell_GET(outline_14_var___class__); - Py_INCREF(tmp_assign_source_161); - goto try_return_handler_49; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_49:; - Py_DECREF(locals_models$Qformer$$$class__15_BertLMHeadModel_968); - locals_models$Qformer$$$class__15_BertLMHeadModel_968 = NULL; - goto try_return_handler_48; - // Exception handler code: - try_except_handler_49:; - exception_keeper_type_47 = exception_type; - exception_keeper_value_47 = exception_value; - exception_keeper_tb_47 = exception_tb; - exception_keeper_lineno_47 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__15_BertLMHeadModel_968); - locals_models$Qformer$$$class__15_BertLMHeadModel_968 = NULL; - // Re-raise. - exception_type = exception_keeper_type_47; - exception_value = exception_keeper_value_47; - exception_tb = exception_keeper_tb_47; - exception_lineno = exception_keeper_lineno_47; - - goto try_except_handler_48; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_48:; - CHECK_OBJECT(outline_14_var___class__); - Py_DECREF(outline_14_var___class__); - outline_14_var___class__ = NULL; - goto outline_result_15; - // Exception handler code: - try_except_handler_48:; - exception_keeper_type_48 = exception_type; - exception_keeper_value_48 = exception_value; - exception_keeper_tb_48 = exception_tb; - exception_keeper_lineno_48 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_14_var___class__); - Py_DECREF(outline_14_var___class__); - outline_14_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_48; - exception_value = exception_keeper_value_48; - exception_tb = exception_keeper_tb_48; - exception_lineno = exception_keeper_lineno_48; - - goto outline_exception_15; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_15:; - exception_lineno = 968; - goto try_except_handler_47; - outline_result_15:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[397], tmp_assign_source_161); - } - goto try_end_19; - // Exception handler code: - try_except_handler_47:; - exception_keeper_type_49 = exception_type; - exception_keeper_value_49 = exception_value; - exception_keeper_tb_49 = exception_tb; - exception_keeper_lineno_49 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_15__bases_orig); - tmp_class_creation_15__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_15__bases); - tmp_class_creation_15__bases = NULL; - Py_XDECREF(tmp_class_creation_15__class_decl_dict); - tmp_class_creation_15__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_15__metaclass); - tmp_class_creation_15__metaclass = NULL; - Py_XDECREF(tmp_class_creation_15__prepared); - tmp_class_creation_15__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_49; - exception_value = exception_keeper_value_49; - exception_tb = exception_keeper_tb_49; - exception_lineno = exception_keeper_lineno_49; - - goto frame_exception_exit_1; - // End of try: - try_end_19:; - CHECK_OBJECT(tmp_class_creation_15__bases_orig); - Py_DECREF(tmp_class_creation_15__bases_orig); - tmp_class_creation_15__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_15__bases); - tmp_class_creation_15__bases = NULL; - Py_XDECREF(tmp_class_creation_15__class_decl_dict); - tmp_class_creation_15__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_15__metaclass); - tmp_class_creation_15__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_15__prepared); - Py_DECREF(tmp_class_creation_15__prepared); - tmp_class_creation_15__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_163; - PyObject *tmp_tuple_element_61; - tmp_tuple_element_61 = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[375]); - - if (unlikely(tmp_tuple_element_61 == NULL)) { - tmp_tuple_element_61 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[375]); - } - - if (tmp_tuple_element_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - tmp_assign_source_163 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_163, 0, tmp_tuple_element_61); - assert(tmp_class_creation_16__bases_orig == NULL); - tmp_class_creation_16__bases_orig = tmp_assign_source_163; - } - { - PyObject *tmp_assign_source_164; - PyObject *tmp_dircall_arg1_16; - CHECK_OBJECT(tmp_class_creation_16__bases_orig); - tmp_dircall_arg1_16 = tmp_class_creation_16__bases_orig; - Py_INCREF(tmp_dircall_arg1_16); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_16}; - tmp_assign_source_164 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_164 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - assert(tmp_class_creation_16__bases == NULL); - tmp_class_creation_16__bases = tmp_assign_source_164; - } - { - PyObject *tmp_assign_source_165; - tmp_assign_source_165 = PyDict_New(); - assert(tmp_class_creation_16__class_decl_dict == NULL); - tmp_class_creation_16__class_decl_dict = tmp_assign_source_165; - } - { - PyObject *tmp_assign_source_166; - PyObject *tmp_metaclass_name_16; - nuitka_bool tmp_condition_result_91; - PyObject *tmp_key_name_46; - PyObject *tmp_dict_arg_name_46; - PyObject *tmp_dict_arg_name_47; - PyObject *tmp_key_name_47; - nuitka_bool tmp_condition_result_92; - int tmp_truth_name_16; - PyObject *tmp_type_arg_31; - PyObject *tmp_expression_name_90; - PyObject *tmp_subscript_name_17; - PyObject *tmp_bases_name_16; - tmp_key_name_46 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_16__class_decl_dict); - tmp_dict_arg_name_46 = tmp_class_creation_16__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_46, tmp_key_name_46); - assert(!(tmp_res == -1)); - tmp_condition_result_91 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_91 == NUITKA_BOOL_TRUE) { - goto condexpr_true_31; - } else { - goto condexpr_false_31; - } - condexpr_true_31:; - CHECK_OBJECT(tmp_class_creation_16__class_decl_dict); - tmp_dict_arg_name_47 = tmp_class_creation_16__class_decl_dict; - tmp_key_name_47 = mod_consts[326]; - tmp_metaclass_name_16 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_47, tmp_key_name_47); - if (tmp_metaclass_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - goto condexpr_end_31; - condexpr_false_31:; - CHECK_OBJECT(tmp_class_creation_16__bases); - tmp_truth_name_16 = CHECK_IF_TRUE(tmp_class_creation_16__bases); - if (tmp_truth_name_16 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - tmp_condition_result_92 = tmp_truth_name_16 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_92 == NUITKA_BOOL_TRUE) { - goto condexpr_true_32; - } else { - goto condexpr_false_32; - } - condexpr_true_32:; - CHECK_OBJECT(tmp_class_creation_16__bases); - tmp_expression_name_90 = tmp_class_creation_16__bases; - tmp_subscript_name_17 = mod_consts[29]; - tmp_type_arg_31 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_90, tmp_subscript_name_17, 0); - if (tmp_type_arg_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - tmp_metaclass_name_16 = BUILTIN_TYPE1(tmp_type_arg_31); - Py_DECREF(tmp_type_arg_31); - if (tmp_metaclass_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - goto condexpr_end_32; - condexpr_false_32:; - tmp_metaclass_name_16 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_16); - condexpr_end_32:; - condexpr_end_31:; - CHECK_OBJECT(tmp_class_creation_16__bases); - tmp_bases_name_16 = tmp_class_creation_16__bases; - tmp_assign_source_166 = SELECT_METACLASS(tmp_metaclass_name_16, tmp_bases_name_16); - Py_DECREF(tmp_metaclass_name_16); - if (tmp_assign_source_166 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - assert(tmp_class_creation_16__metaclass == NULL); - tmp_class_creation_16__metaclass = tmp_assign_source_166; - } - { - nuitka_bool tmp_condition_result_93; - PyObject *tmp_key_name_48; - PyObject *tmp_dict_arg_name_48; - tmp_key_name_48 = mod_consts[326]; - CHECK_OBJECT(tmp_class_creation_16__class_decl_dict); - tmp_dict_arg_name_48 = tmp_class_creation_16__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_48, tmp_key_name_48); - assert(!(tmp_res == -1)); - tmp_condition_result_93 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_93 == NUITKA_BOOL_TRUE) { - goto branch_yes_61; - } else { - goto branch_no_61; - } - } - branch_yes_61:; - CHECK_OBJECT(tmp_class_creation_16__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_16__class_decl_dict; - tmp_dictdel_key = mod_consts[326]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - branch_no_61:; - { - nuitka_bool tmp_condition_result_94; - PyObject *tmp_expression_name_91; - CHECK_OBJECT(tmp_class_creation_16__metaclass); - tmp_expression_name_91 = tmp_class_creation_16__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_91, mod_consts[327]); - tmp_condition_result_94 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_94 == NUITKA_BOOL_TRUE) { - goto branch_yes_62; - } else { - goto branch_no_62; - } - } - branch_yes_62:; - { - PyObject *tmp_assign_source_167; - PyObject *tmp_called_name_32; - PyObject *tmp_expression_name_92; - PyObject *tmp_args_name_31; - PyObject *tmp_tuple_element_62; - PyObject *tmp_kwargs_name_31; - CHECK_OBJECT(tmp_class_creation_16__metaclass); - tmp_expression_name_92 = tmp_class_creation_16__metaclass; - tmp_called_name_32 = LOOKUP_ATTRIBUTE(tmp_expression_name_92, mod_consts[327]); - if (tmp_called_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - tmp_tuple_element_62 = mod_consts[413]; - tmp_args_name_31 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_31, 0, tmp_tuple_element_62); - CHECK_OBJECT(tmp_class_creation_16__bases); - tmp_tuple_element_62 = tmp_class_creation_16__bases; - PyTuple_SET_ITEM0(tmp_args_name_31, 1, tmp_tuple_element_62); - CHECK_OBJECT(tmp_class_creation_16__class_decl_dict); - tmp_kwargs_name_31 = tmp_class_creation_16__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 1131; - tmp_assign_source_167 = CALL_FUNCTION(tmp_called_name_32, tmp_args_name_31, tmp_kwargs_name_31); - Py_DECREF(tmp_called_name_32); - Py_DECREF(tmp_args_name_31); - if (tmp_assign_source_167 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - assert(tmp_class_creation_16__prepared == NULL); - tmp_class_creation_16__prepared = tmp_assign_source_167; - } - { - nuitka_bool tmp_condition_result_95; - PyObject *tmp_operand_name_16; - PyObject *tmp_expression_name_93; - CHECK_OBJECT(tmp_class_creation_16__prepared); - tmp_expression_name_93 = tmp_class_creation_16__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_93, mod_consts[328]); - tmp_operand_name_16 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_16); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - tmp_condition_result_95 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_95 == NUITKA_BOOL_TRUE) { - goto branch_yes_63; - } else { - goto branch_no_63; - } - } - branch_yes_63:; - { - PyObject *tmp_raise_type_16; - PyObject *tmp_raise_value_16; - PyObject *tmp_left_name_16; - PyObject *tmp_right_name_16; - PyObject *tmp_tuple_element_63; - PyObject *tmp_getattr_target_16; - PyObject *tmp_getattr_attr_16; - PyObject *tmp_getattr_default_16; - tmp_raise_type_16 = PyExc_TypeError; - tmp_left_name_16 = mod_consts[329]; - CHECK_OBJECT(tmp_class_creation_16__metaclass); - tmp_getattr_target_16 = tmp_class_creation_16__metaclass; - tmp_getattr_attr_16 = mod_consts[324]; - tmp_getattr_default_16 = mod_consts[330]; - tmp_tuple_element_63 = BUILTIN_GETATTR(tmp_getattr_target_16, tmp_getattr_attr_16, tmp_getattr_default_16); - if (tmp_tuple_element_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - tmp_right_name_16 = PyTuple_New(2); - { - PyObject *tmp_expression_name_94; - PyObject *tmp_type_arg_32; - PyTuple_SET_ITEM(tmp_right_name_16, 0, tmp_tuple_element_63); - CHECK_OBJECT(tmp_class_creation_16__prepared); - tmp_type_arg_32 = tmp_class_creation_16__prepared; - tmp_expression_name_94 = BUILTIN_TYPE1(tmp_type_arg_32); - assert(!(tmp_expression_name_94 == NULL)); - tmp_tuple_element_63 = LOOKUP_ATTRIBUTE(tmp_expression_name_94, mod_consts[324]); - Py_DECREF(tmp_expression_name_94); - if (tmp_tuple_element_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto tuple_build_exception_16; - } - PyTuple_SET_ITEM(tmp_right_name_16, 1, tmp_tuple_element_63); - } - goto tuple_build_noexception_16; - // Exception handling pass through code for tuple_build: - tuple_build_exception_16:; - Py_DECREF(tmp_right_name_16); - goto try_except_handler_50; - // Finished with no exception for tuple_build: - tuple_build_noexception_16:; - tmp_raise_value_16 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_16, tmp_right_name_16); - Py_DECREF(tmp_right_name_16); - if (tmp_raise_value_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_50; - } - exception_type = tmp_raise_type_16; - Py_INCREF(tmp_raise_type_16); - exception_value = tmp_raise_value_16; - exception_lineno = 1131; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_50; - } - branch_no_63:; - goto branch_end_62; - branch_no_62:; - { - PyObject *tmp_assign_source_168; - tmp_assign_source_168 = PyDict_New(); - assert(tmp_class_creation_16__prepared == NULL); - tmp_class_creation_16__prepared = tmp_assign_source_168; - } - branch_end_62:; - { - PyObject *tmp_assign_source_169; - { - PyObject *tmp_set_locals_16; - CHECK_OBJECT(tmp_class_creation_16__prepared); - tmp_set_locals_16 = tmp_class_creation_16__prepared; - locals_models$Qformer$$$class__16_BertForMaskedLM_1131 = tmp_set_locals_16; - Py_INCREF(tmp_set_locals_16); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[324]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[324]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[331], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_52; - } - tmp_dictset_value = mod_consts[413]; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[333], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_52; - } - if (isFrameUnusable(cache_frame_e5264d356d902ef78943e91fb87114a1_17)) { - Py_XDECREF(cache_frame_e5264d356d902ef78943e91fb87114a1_17); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e5264d356d902ef78943e91fb87114a1_17 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e5264d356d902ef78943e91fb87114a1_17 = MAKE_FUNCTION_FRAME(codeobj_e5264d356d902ef78943e91fb87114a1, module_models$Qformer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e5264d356d902ef78943e91fb87114a1_17->m_type_description == NULL); - frame_e5264d356d902ef78943e91fb87114a1_17 = cache_frame_e5264d356d902ef78943e91fb87114a1_17; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e5264d356d902ef78943e91fb87114a1_17); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e5264d356d902ef78943e91fb87114a1_17) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = LIST_COPY(mod_consts[398]); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[399], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1133; - type_description_2 = "c"; - goto frame_exception_exit_17; - } - tmp_dictset_value = LIST_COPY(mod_consts[400]); - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[380], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1134; - type_description_2 = "c"; - goto frame_exception_exit_17; - } - { - struct Nuitka_CellObject *tmp_closure_15[1]; - - tmp_closure_15[0] = outline_15_var___class__; - Py_INCREF(tmp_closure_15[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__46___init__(tmp_closure_15); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1136; - type_description_2 = "c"; - goto frame_exception_exit_17; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__47_get_output_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[402], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1144; - type_description_2 = "c"; - goto frame_exception_exit_17; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__48_set_output_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[404], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1147; - type_description_2 = "c"; - goto frame_exception_exit_17; - } - { - PyObject *tmp_defaults_12; - tmp_defaults_12 = mod_consts[417]; - Py_INCREF(tmp_defaults_12); - - - tmp_dictset_value = MAKE_FUNCTION_models$Qformer$$$function__49_forward(tmp_defaults_12); - - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1150; - type_description_2 = "c"; - goto frame_exception_exit_17; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5264d356d902ef78943e91fb87114a1_17); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_16; - - frame_exception_exit_17:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5264d356d902ef78943e91fb87114a1_17); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e5264d356d902ef78943e91fb87114a1_17, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e5264d356d902ef78943e91fb87114a1_17->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e5264d356d902ef78943e91fb87114a1_17, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e5264d356d902ef78943e91fb87114a1_17, - type_description_2, - outline_15_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e5264d356d902ef78943e91fb87114a1_17 == cache_frame_e5264d356d902ef78943e91fb87114a1_17) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e5264d356d902ef78943e91fb87114a1_17); - cache_frame_e5264d356d902ef78943e91fb87114a1_17 = NULL; - } - - assertFrameObject(frame_e5264d356d902ef78943e91fb87114a1_17); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_16; - - frame_no_exception_16:; - goto skip_nested_handling_16; - nested_frame_exit_16:; - - goto try_except_handler_52; - skip_nested_handling_16:; - { - nuitka_bool tmp_condition_result_96; - PyObject *tmp_compexpr_left_16; - PyObject *tmp_compexpr_right_16; - CHECK_OBJECT(tmp_class_creation_16__bases); - tmp_compexpr_left_16 = tmp_class_creation_16__bases; - CHECK_OBJECT(tmp_class_creation_16__bases_orig); - tmp_compexpr_right_16 = tmp_class_creation_16__bases_orig; - tmp_condition_result_96 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_16, tmp_compexpr_right_16); - if (tmp_condition_result_96 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_52; - } - if (tmp_condition_result_96 == NUITKA_BOOL_TRUE) { - goto branch_yes_64; - } else { - goto branch_no_64; - } - assert(tmp_condition_result_96 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_64:; - CHECK_OBJECT(tmp_class_creation_16__bases_orig); - tmp_dictset_value = tmp_class_creation_16__bases_orig; - tmp_res = PyObject_SetItem(locals_models$Qformer$$$class__16_BertForMaskedLM_1131, mod_consts[338], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_52; - } - branch_no_64:; - { - PyObject *tmp_assign_source_170; - PyObject *tmp_called_name_33; - PyObject *tmp_args_name_32; - PyObject *tmp_tuple_element_64; - PyObject *tmp_kwargs_name_32; - CHECK_OBJECT(tmp_class_creation_16__metaclass); - tmp_called_name_33 = tmp_class_creation_16__metaclass; - tmp_tuple_element_64 = mod_consts[413]; - tmp_args_name_32 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_32, 0, tmp_tuple_element_64); - CHECK_OBJECT(tmp_class_creation_16__bases); - tmp_tuple_element_64 = tmp_class_creation_16__bases; - PyTuple_SET_ITEM0(tmp_args_name_32, 1, tmp_tuple_element_64); - tmp_tuple_element_64 = locals_models$Qformer$$$class__16_BertForMaskedLM_1131; - PyTuple_SET_ITEM0(tmp_args_name_32, 2, tmp_tuple_element_64); - CHECK_OBJECT(tmp_class_creation_16__class_decl_dict); - tmp_kwargs_name_32 = tmp_class_creation_16__class_decl_dict; - frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame.f_lineno = 1131; - tmp_assign_source_170 = CALL_FUNCTION(tmp_called_name_33, tmp_args_name_32, tmp_kwargs_name_32); - Py_DECREF(tmp_args_name_32); - if (tmp_assign_source_170 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1131; - - goto try_except_handler_52; - } - { - PyObject *old = Nuitka_Cell_GET(outline_15_var___class__); - PyCell_SET(outline_15_var___class__, tmp_assign_source_170); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_15_var___class__)); - tmp_assign_source_169 = Nuitka_Cell_GET(outline_15_var___class__); - Py_INCREF(tmp_assign_source_169); - goto try_return_handler_52; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_52:; - Py_DECREF(locals_models$Qformer$$$class__16_BertForMaskedLM_1131); - locals_models$Qformer$$$class__16_BertForMaskedLM_1131 = NULL; - goto try_return_handler_51; - // Exception handler code: - try_except_handler_52:; - exception_keeper_type_50 = exception_type; - exception_keeper_value_50 = exception_value; - exception_keeper_tb_50 = exception_tb; - exception_keeper_lineno_50 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$Qformer$$$class__16_BertForMaskedLM_1131); - locals_models$Qformer$$$class__16_BertForMaskedLM_1131 = NULL; - // Re-raise. - exception_type = exception_keeper_type_50; - exception_value = exception_keeper_value_50; - exception_tb = exception_keeper_tb_50; - exception_lineno = exception_keeper_lineno_50; - - goto try_except_handler_51; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_51:; - CHECK_OBJECT(outline_15_var___class__); - Py_DECREF(outline_15_var___class__); - outline_15_var___class__ = NULL; - goto outline_result_16; - // Exception handler code: - try_except_handler_51:; - exception_keeper_type_51 = exception_type; - exception_keeper_value_51 = exception_value; - exception_keeper_tb_51 = exception_tb; - exception_keeper_lineno_51 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_15_var___class__); - Py_DECREF(outline_15_var___class__); - outline_15_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_51; - exception_value = exception_keeper_value_51; - exception_tb = exception_keeper_tb_51; - exception_lineno = exception_keeper_lineno_51; - - goto outline_exception_16; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_16:; - exception_lineno = 1131; - goto try_except_handler_50; - outline_result_16:; - UPDATE_STRING_DICT1(moduledict_models$Qformer, (Nuitka_StringObject *)mod_consts[413], tmp_assign_source_169); - } - goto try_end_20; - // Exception handler code: - try_except_handler_50:; - exception_keeper_type_52 = exception_type; - exception_keeper_value_52 = exception_value; - exception_keeper_tb_52 = exception_tb; - exception_keeper_lineno_52 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_16__bases_orig); - tmp_class_creation_16__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_16__bases); - tmp_class_creation_16__bases = NULL; - Py_XDECREF(tmp_class_creation_16__class_decl_dict); - tmp_class_creation_16__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_16__metaclass); - tmp_class_creation_16__metaclass = NULL; - Py_XDECREF(tmp_class_creation_16__prepared); - tmp_class_creation_16__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_52; - exception_value = exception_keeper_value_52; - exception_tb = exception_keeper_tb_52; - exception_lineno = exception_keeper_lineno_52; - - goto frame_exception_exit_1; - // End of try: - try_end_20:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bb9003dfff85549a8e8392e723ec6c8); -#endif - popFrameStack(); - - assertFrameObject(frame_2bb9003dfff85549a8e8392e723ec6c8); - - goto frame_no_exception_17; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bb9003dfff85549a8e8392e723ec6c8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2bb9003dfff85549a8e8392e723ec6c8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2bb9003dfff85549a8e8392e723ec6c8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2bb9003dfff85549a8e8392e723ec6c8, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_17:; - CHECK_OBJECT(tmp_class_creation_16__bases_orig); - Py_DECREF(tmp_class_creation_16__bases_orig); - tmp_class_creation_16__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_16__bases); - tmp_class_creation_16__bases = NULL; - Py_XDECREF(tmp_class_creation_16__class_decl_dict); - tmp_class_creation_16__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_16__metaclass); - tmp_class_creation_16__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_16__prepared); - Py_DECREF(tmp_class_creation_16__prepared); - tmp_class_creation_16__prepared = NULL; - - return module_models$Qformer; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.UNet.const b/medomni/models.build/module.models.UNet.const deleted file mode 100644 index 7f5dde98dac9f19e7deae20dff69d37b00c3f1a2..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.UNet.const and /dev/null differ diff --git a/medomni/models.build/module.models.UNet.cpp b/medomni/models.build/module.models.UNet.cpp deleted file mode 100644 index 54d77847d572d5628a7de8309ae880eae6fd1ae2..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.UNet.cpp +++ /dev/null @@ -1,11540 +0,0 @@ -/* Generated code for Python module 'models.UNet' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$UNet" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$UNet; -PyDictObject *moduledict_models$UNet; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[120]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.UNet")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$UNet(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.UNet"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_a02dd131b912f82ed6089517aa6f586d; -static PyCodeObject *codeobj_ab1a78718279ba6abadf8b127f24924a; -static PyCodeObject *codeobj_e2aedb9a8cf15bf5efe84df0ff27161d; -static PyCodeObject *codeobj_7e5ede10634f92487398f6ca462d6c6e; -static PyCodeObject *codeobj_d36add094dd5bb323c12224525882490; -static PyCodeObject *codeobj_66f5239cf3d5e4546fbd6c72d9db8fab; -static PyCodeObject *codeobj_706488e5f126b223345baf51f7a47291; -static PyCodeObject *codeobj_ed6d6c1a5631802890ddc1ac66135d01; -static PyCodeObject *codeobj_ef73251af0e6f2d546908c26160e620b; -static PyCodeObject *codeobj_6e35c23d34ec2da5e0f0e87d32605298; -static PyCodeObject *codeobj_3ba1f3aee45fb5386be7682fb8c20f4b; -static PyCodeObject *codeobj_291a95712a82f2b923b29b2d04bf5ad1; -static PyCodeObject *codeobj_15fee65f689285f5cbe1cd0e3c11bcff; -static PyCodeObject *codeobj_d20c116d5add272dbb060ed42c240c8c; -static PyCodeObject *codeobj_50b748c57c09e7a25b1a02a34719cbf2; -static PyCodeObject *codeobj_9d9a4cfec1c9211fd1ca059e8ec07346; -static PyCodeObject *codeobj_084faf6fcf252d9ba9d3bd841c5e3c43; -static PyCodeObject *codeobj_bd05805aed9cf016c930c8c585c3fe7e; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[109]); CHECK_OBJECT(module_filename_obj); - codeobj_a02dd131b912f82ed6089517aa6f586d = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[110], NULL, NULL, 0, 0, 0); - codeobj_ab1a78718279ba6abadf8b127f24924a = MAKE_CODEOBJECT(module_filename_obj, 15, CO_NOFREE, mod_consts[21], mod_consts[111], NULL, 0, 0, 0); - codeobj_e2aedb9a8cf15bf5efe84df0ff27161d = MAKE_CODEOBJECT(module_filename_obj, 37, CO_NOFREE, mod_consts[47], mod_consts[111], NULL, 0, 0, 0); - codeobj_7e5ede10634f92487398f6ca462d6c6e = MAKE_CODEOBJECT(module_filename_obj, 7, CO_NOFREE, mod_consts[12], mod_consts[111], NULL, 0, 0, 0); - codeobj_d36add094dd5bb323c12224525882490 = MAKE_CODEOBJECT(module_filename_obj, 73, CO_NOFREE, mod_consts[59], mod_consts[111], NULL, 0, 0, 0); - codeobj_66f5239cf3d5e4546fbd6c72d9db8fab = MAKE_CODEOBJECT(module_filename_obj, 82, CO_NOFREE, mod_consts[105], mod_consts[111], NULL, 0, 0, 0); - codeobj_706488e5f126b223345baf51f7a47291 = MAKE_CODEOBJECT(module_filename_obj, 49, CO_NOFREE, mod_consts[53], mod_consts[111], NULL, 0, 0, 0); - codeobj_ed6d6c1a5631802890ddc1ac66135d01 = MAKE_CODEOBJECT(module_filename_obj, 83, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[7], mod_consts[112], mod_consts[111], 4, 0, 0); - codeobj_ef73251af0e6f2d546908c26160e620b = MAKE_CODEOBJECT(module_filename_obj, 39, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[7], mod_consts[113], mod_consts[111], 3, 0, 0); - codeobj_6e35c23d34ec2da5e0f0e87d32605298 = MAKE_CODEOBJECT(module_filename_obj, 74, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[7], mod_consts[113], mod_consts[111], 3, 0, 0); - codeobj_3ba1f3aee45fb5386be7682fb8c20f4b = MAKE_CODEOBJECT(module_filename_obj, 17, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[7], mod_consts[114], mod_consts[111], 4, 0, 0); - codeobj_291a95712a82f2b923b29b2d04bf5ad1 = MAKE_CODEOBJECT(module_filename_obj, 51, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[7], mod_consts[115], mod_consts[111], 4, 0, 0); - codeobj_15fee65f689285f5cbe1cd0e3c11bcff = MAKE_CODEOBJECT(module_filename_obj, 33, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[116], NULL, 2, 0, 0); - codeobj_d20c116d5add272dbb060ed42c240c8c = MAKE_CODEOBJECT(module_filename_obj, 45, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[116], NULL, 2, 0, 0); - codeobj_50b748c57c09e7a25b1a02a34719cbf2 = MAKE_CODEOBJECT(module_filename_obj, 78, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[116], NULL, 2, 0, 0); - codeobj_9d9a4cfec1c9211fd1ca059e8ec07346 = MAKE_CODEOBJECT(module_filename_obj, 101, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[117], NULL, 4, 0, 0); - codeobj_084faf6fcf252d9ba9d3bd841c5e3c43 = MAKE_CODEOBJECT(module_filename_obj, 10, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[118], mod_consts[111], 2, 0, 0); - codeobj_bd05805aed9cf016c930c8c585c3fe7e = MAKE_CODEOBJECT(module_filename_obj, 61, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[119], NULL, 3, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__10___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__11_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__1_forward(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__2___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__3_forward(); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__4___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__5_forward(); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__6___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__7_forward(); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__8___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__9_forward(); - - -// The module function definitions. -static PyObject *impl_models$UNet$$$function__1_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_orig_type = NULL; - PyObject *var_ret = NULL; - struct Nuitka_FrameObject *frame_084faf6fcf252d9ba9d3bd841c5e3c43; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43)) { - Py_XDECREF(cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43); - -#if _DEBUG_REFCOUNTS - if (cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43 = MAKE_FUNCTION_FRAME(codeobj_084faf6fcf252d9ba9d3bd841c5e3c43, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43->m_type_description == NULL); - frame_084faf6fcf252d9ba9d3bd841c5e3c43 = cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43; - - // Push the new frame as the currently active one. - pushFrameStack(frame_084faf6fcf252d9ba9d3bd841c5e3c43); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_084faf6fcf252d9ba9d3bd841c5e3c43) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[0]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_orig_type == NULL); - var_orig_type = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[2]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_x; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[4]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_084faf6fcf252d9ba9d3bd841c5e3c43->m_frame.f_lineno = 12; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_084faf6fcf252d9ba9d3bd841c5e3c43->m_frame.f_lineno = 12; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_ret == NULL); - var_ret = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_ret); - tmp_called_instance_1 = var_ret; - CHECK_OBJECT(var_orig_type); - tmp_args_element_name_3 = var_orig_type; - frame_084faf6fcf252d9ba9d3bd841c5e3c43->m_frame.f_lineno = 13; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[4], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_084faf6fcf252d9ba9d3bd841c5e3c43); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_084faf6fcf252d9ba9d3bd841c5e3c43); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_084faf6fcf252d9ba9d3bd841c5e3c43); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_084faf6fcf252d9ba9d3bd841c5e3c43, exception_lineno); - } else if (exception_tb->tb_frame != &frame_084faf6fcf252d9ba9d3bd841c5e3c43->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_084faf6fcf252d9ba9d3bd841c5e3c43, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_084faf6fcf252d9ba9d3bd841c5e3c43, - type_description_1, - par_self, - par_x, - var_orig_type, - var_ret, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_084faf6fcf252d9ba9d3bd841c5e3c43 == cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43); - cache_frame_084faf6fcf252d9ba9d3bd841c5e3c43 = NULL; - } - - assertFrameObject(frame_084faf6fcf252d9ba9d3bd841c5e3c43); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__2___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_num_groups = python_pars[3]; - struct Nuitka_FrameObject *frame_3ba1f3aee45fb5386be7682fb8c20f4b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b)) { - Py_XDECREF(cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b = MAKE_FUNCTION_FRAME(codeobj_3ba1f3aee45fb5386be7682fb8c20f4b, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_type_description == NULL); - frame_3ba1f3aee45fb5386be7682fb8c20f4b = cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3ba1f3aee45fb5386be7682fb8c20f4b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3ba1f3aee45fb5386be7682fb8c20f4b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 18; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 18; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_6; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_5; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[9]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 20; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[10]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 20; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_tuple_element_1 = par_in_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[11]); - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 20; - tmp_args_element_name_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 20; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 22; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[13]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[14]; - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 22; - type_description_1 = "ooooc"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 22; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 22; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 24; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[16]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 24; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[17]); - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 24; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 24; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 26; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[10]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 26; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_out_channels == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 26; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_out_channels; - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 26; - type_description_1 = "ooooc"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[11]); - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 26; - tmp_args_element_name_4 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_2, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 26; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 28; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[13]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_2 = par_num_groups; - tmp_kwargs_name_5 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[14]; - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 28; - type_description_1 = "ooooc"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_kwargs_name_5); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 28; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 28; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 30; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[16]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 30; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_6 = PyDict_Copy(mod_consts[17]); - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 30; - tmp_args_element_name_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_7, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 30; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame.f_lineno = 19; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS6(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[18], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3ba1f3aee45fb5386be7682fb8c20f4b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3ba1f3aee45fb5386be7682fb8c20f4b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3ba1f3aee45fb5386be7682fb8c20f4b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3ba1f3aee45fb5386be7682fb8c20f4b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3ba1f3aee45fb5386be7682fb8c20f4b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3ba1f3aee45fb5386be7682fb8c20f4b, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_num_groups, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_3ba1f3aee45fb5386be7682fb8c20f4b == cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b); - cache_frame_3ba1f3aee45fb5386be7682fb8c20f4b = NULL; - } - - assertFrameObject(frame_3ba1f3aee45fb5386be7682fb8c20f4b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__3_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_15fee65f689285f5cbe1cd0e3c11bcff; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_15fee65f689285f5cbe1cd0e3c11bcff = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_15fee65f689285f5cbe1cd0e3c11bcff)) { - Py_XDECREF(cache_frame_15fee65f689285f5cbe1cd0e3c11bcff); - -#if _DEBUG_REFCOUNTS - if (cache_frame_15fee65f689285f5cbe1cd0e3c11bcff == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_15fee65f689285f5cbe1cd0e3c11bcff = MAKE_FUNCTION_FRAME(codeobj_15fee65f689285f5cbe1cd0e3c11bcff, module_models$UNet, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_15fee65f689285f5cbe1cd0e3c11bcff->m_type_description == NULL); - frame_15fee65f689285f5cbe1cd0e3c11bcff = cache_frame_15fee65f689285f5cbe1cd0e3c11bcff; - - // Push the new frame as the currently active one. - pushFrameStack(frame_15fee65f689285f5cbe1cd0e3c11bcff); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_15fee65f689285f5cbe1cd0e3c11bcff) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_15fee65f689285f5cbe1cd0e3c11bcff->m_frame.f_lineno = 34; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[18], tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15fee65f689285f5cbe1cd0e3c11bcff); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15fee65f689285f5cbe1cd0e3c11bcff); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15fee65f689285f5cbe1cd0e3c11bcff); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_15fee65f689285f5cbe1cd0e3c11bcff, exception_lineno); - } else if (exception_tb->tb_frame != &frame_15fee65f689285f5cbe1cd0e3c11bcff->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_15fee65f689285f5cbe1cd0e3c11bcff, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_15fee65f689285f5cbe1cd0e3c11bcff, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_15fee65f689285f5cbe1cd0e3c11bcff == cache_frame_15fee65f689285f5cbe1cd0e3c11bcff) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_15fee65f689285f5cbe1cd0e3c11bcff); - cache_frame_15fee65f689285f5cbe1cd0e3c11bcff = NULL; - } - - assertFrameObject(frame_15fee65f689285f5cbe1cd0e3c11bcff); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__4___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - struct Nuitka_FrameObject *frame_ef73251af0e6f2d546908c26160e620b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_ef73251af0e6f2d546908c26160e620b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ef73251af0e6f2d546908c26160e620b)) { - Py_XDECREF(cache_frame_ef73251af0e6f2d546908c26160e620b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ef73251af0e6f2d546908c26160e620b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ef73251af0e6f2d546908c26160e620b = MAKE_FUNCTION_FRAME(codeobj_ef73251af0e6f2d546908c26160e620b, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ef73251af0e6f2d546908c26160e620b->m_type_description == NULL); - frame_ef73251af0e6f2d546908c26160e620b = cache_frame_ef73251af0e6f2d546908c26160e620b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ef73251af0e6f2d546908c26160e620b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ef73251af0e6f2d546908c26160e620b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_ef73251af0e6f2d546908c26160e620b->m_frame.f_lineno = 40; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[9]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 42; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_ef73251af0e6f2d546908c26160e620b->m_frame.f_lineno = 42; - tmp_args_element_name_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[19], - &PyTuple_GET_ITEM(mod_consts[20], 0) - ); - - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 42; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[21]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[21]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 43; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_args_element_name_3 = par_in_channels; - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_4 = par_out_channels; - frame_ef73251af0e6f2d546908c26160e620b->m_frame.f_lineno = 43; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 43; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_ef73251af0e6f2d546908c26160e620b->m_frame.f_lineno = 41; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[22], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ef73251af0e6f2d546908c26160e620b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ef73251af0e6f2d546908c26160e620b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ef73251af0e6f2d546908c26160e620b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ef73251af0e6f2d546908c26160e620b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ef73251af0e6f2d546908c26160e620b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ef73251af0e6f2d546908c26160e620b, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ef73251af0e6f2d546908c26160e620b == cache_frame_ef73251af0e6f2d546908c26160e620b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ef73251af0e6f2d546908c26160e620b); - cache_frame_ef73251af0e6f2d546908c26160e620b = NULL; - } - - assertFrameObject(frame_ef73251af0e6f2d546908c26160e620b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__5_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_d20c116d5add272dbb060ed42c240c8c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_d20c116d5add272dbb060ed42c240c8c = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d20c116d5add272dbb060ed42c240c8c)) { - Py_XDECREF(cache_frame_d20c116d5add272dbb060ed42c240c8c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d20c116d5add272dbb060ed42c240c8c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d20c116d5add272dbb060ed42c240c8c = MAKE_FUNCTION_FRAME(codeobj_d20c116d5add272dbb060ed42c240c8c, module_models$UNet, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d20c116d5add272dbb060ed42c240c8c->m_type_description == NULL); - frame_d20c116d5add272dbb060ed42c240c8c = cache_frame_d20c116d5add272dbb060ed42c240c8c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d20c116d5add272dbb060ed42c240c8c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d20c116d5add272dbb060ed42c240c8c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_d20c116d5add272dbb060ed42c240c8c->m_frame.f_lineno = 46; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[22], tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d20c116d5add272dbb060ed42c240c8c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d20c116d5add272dbb060ed42c240c8c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d20c116d5add272dbb060ed42c240c8c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d20c116d5add272dbb060ed42c240c8c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d20c116d5add272dbb060ed42c240c8c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d20c116d5add272dbb060ed42c240c8c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d20c116d5add272dbb060ed42c240c8c, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_d20c116d5add272dbb060ed42c240c8c == cache_frame_d20c116d5add272dbb060ed42c240c8c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d20c116d5add272dbb060ed42c240c8c); - cache_frame_d20c116d5add272dbb060ed42c240c8c = NULL; - } - - assertFrameObject(frame_d20c116d5add272dbb060ed42c240c8c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__6___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_trilinear = python_pars[3]; - struct Nuitka_FrameObject *frame_291a95712a82f2b923b29b2d04bf5ad1; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_291a95712a82f2b923b29b2d04bf5ad1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_291a95712a82f2b923b29b2d04bf5ad1)) { - Py_XDECREF(cache_frame_291a95712a82f2b923b29b2d04bf5ad1); - -#if _DEBUG_REFCOUNTS - if (cache_frame_291a95712a82f2b923b29b2d04bf5ad1 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_291a95712a82f2b923b29b2d04bf5ad1 = MAKE_FUNCTION_FRAME(codeobj_291a95712a82f2b923b29b2d04bf5ad1, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_291a95712a82f2b923b29b2d04bf5ad1->m_type_description == NULL); - frame_291a95712a82f2b923b29b2d04bf5ad1 = cache_frame_291a95712a82f2b923b29b2d04bf5ad1; - - // Push the new frame as the currently active one. - pushFrameStack(frame_291a95712a82f2b923b29b2d04bf5ad1); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_291a95712a82f2b923b29b2d04bf5ad1) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 52; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_291a95712a82f2b923b29b2d04bf5ad1->m_frame.f_lineno = 52; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_trilinear); - tmp_truth_name_1 = CHECK_IF_TRUE(par_trilinear); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[23]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[24]); - frame_291a95712a82f2b923b29b2d04bf5ad1->m_frame.f_lineno = 55; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[25], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[26]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_left_name_1 = par_in_channels; - tmp_right_name_1 = mod_consts[27]; - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_in_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[28]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto tuple_build_exception_1; - } - - tmp_left_name_2 = par_in_channels; - tmp_right_name_2 = mod_consts[27]; - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[29]); - frame_291a95712a82f2b923b29b2d04bf5ad1->m_frame.f_lineno = 57; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[25], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[21]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[21]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_in_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[28]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 59; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_in_channels; - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_2 = par_out_channels; - frame_291a95712a82f2b923b29b2d04bf5ad1->m_frame.f_lineno = 59; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[30], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_291a95712a82f2b923b29b2d04bf5ad1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_291a95712a82f2b923b29b2d04bf5ad1); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_291a95712a82f2b923b29b2d04bf5ad1, exception_lineno); - } else if (exception_tb->tb_frame != &frame_291a95712a82f2b923b29b2d04bf5ad1->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_291a95712a82f2b923b29b2d04bf5ad1, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_291a95712a82f2b923b29b2d04bf5ad1, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_trilinear, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_291a95712a82f2b923b29b2d04bf5ad1 == cache_frame_291a95712a82f2b923b29b2d04bf5ad1) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_291a95712a82f2b923b29b2d04bf5ad1); - cache_frame_291a95712a82f2b923b29b2d04bf5ad1 = NULL; - } - - assertFrameObject(frame_291a95712a82f2b923b29b2d04bf5ad1); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_trilinear); - Py_DECREF(par_trilinear); - par_trilinear = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_trilinear); - Py_DECREF(par_trilinear); - par_trilinear = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__7_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x1 = python_pars[1]; - PyObject *par_x2 = python_pars[2]; - PyObject *var_diffZ = NULL; - PyObject *var_diffY = NULL; - PyObject *var_diffX = NULL; - PyObject *var_x = NULL; - struct Nuitka_FrameObject *frame_bd05805aed9cf016c930c8c585c3fe7e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_bd05805aed9cf016c930c8c585c3fe7e = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_bd05805aed9cf016c930c8c585c3fe7e)) { - Py_XDECREF(cache_frame_bd05805aed9cf016c930c8c585c3fe7e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bd05805aed9cf016c930c8c585c3fe7e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bd05805aed9cf016c930c8c585c3fe7e = MAKE_FUNCTION_FRAME(codeobj_bd05805aed9cf016c930c8c585c3fe7e, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bd05805aed9cf016c930c8c585c3fe7e->m_type_description == NULL); - frame_bd05805aed9cf016c930c8c585c3fe7e = cache_frame_bd05805aed9cf016c930c8c585c3fe7e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bd05805aed9cf016c930c8c585c3fe7e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bd05805aed9cf016c930c8c585c3fe7e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x1); - tmp_args_element_name_1 = par_x1; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 62; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x1; - par_x1 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_x2); - tmp_called_instance_2 = par_x2; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 64; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[31]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[27]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 2); - Py_DECREF(tmp_expression_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x1); - tmp_called_instance_3 = par_x1; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 64; - tmp_expression_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[31]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 64; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[27]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 2); - Py_DECREF(tmp_expression_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 64; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_diffZ == NULL); - var_diffZ = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_subscript_name_3; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_called_instance_5; - PyObject *tmp_subscript_name_4; - if (par_x2 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_x2; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 65; - tmp_expression_name_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[31]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[33]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_3, 3); - Py_DECREF(tmp_expression_name_3); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_x1 == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[34]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_x1; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 65; - tmp_expression_name_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[31]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[33]; - tmp_right_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_4, 3); - Py_DECREF(tmp_expression_name_4); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_diffY == NULL); - var_diffY = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_subscript_name_5; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_called_instance_7; - PyObject *tmp_subscript_name_6; - if (par_x2 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = par_x2; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 66; - tmp_expression_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[31]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_5 = mod_consts[35]; - tmp_left_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_5, 4); - Py_DECREF(tmp_expression_name_5); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_x1 == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[34]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_7 = par_x1; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 66; - tmp_expression_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[31]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_6 = mod_consts[35]; - tmp_right_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_6, 4); - Py_DECREF(tmp_expression_name_6); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_diffX == NULL); - var_diffX = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_list_element_1; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[37]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_x1 == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[34]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_x1; - CHECK_OBJECT(var_diffX); - tmp_left_name_4 = var_diffX; - tmp_right_name_4 = mod_consts[27]; - tmp_list_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_4, tmp_right_name_4); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = PyList_New(6); - { - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - PyObject *tmp_left_name_12; - PyObject *tmp_right_name_12; - PyList_SET_ITEM(tmp_args_element_name_3, 0, tmp_list_element_1); - if (var_diffX == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - - tmp_left_name_5 = var_diffX; - if (var_diffX == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - - tmp_left_name_6 = var_diffX; - tmp_right_name_6 = mod_consts[27]; - tmp_right_name_5 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_6, tmp_right_name_6); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - tmp_list_element_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_args_element_name_3, 1, tmp_list_element_1); - CHECK_OBJECT(var_diffY); - tmp_left_name_7 = var_diffY; - tmp_right_name_7 = mod_consts[27]; - tmp_list_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_7, tmp_right_name_7); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_args_element_name_3, 2, tmp_list_element_1); - if (var_diffY == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[39]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - - tmp_left_name_8 = var_diffY; - if (var_diffY == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[39]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - - tmp_left_name_9 = var_diffY; - tmp_right_name_9 = mod_consts[27]; - tmp_right_name_8 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_9, tmp_right_name_9); - if (tmp_right_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - tmp_list_element_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_args_element_name_3, 3, tmp_list_element_1); - CHECK_OBJECT(var_diffZ); - tmp_left_name_10 = var_diffZ; - tmp_right_name_10 = mod_consts[27]; - tmp_list_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_10, tmp_right_name_10); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_args_element_name_3, 4, tmp_list_element_1); - if (var_diffZ == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - - tmp_left_name_11 = var_diffZ; - if (var_diffZ == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - - tmp_left_name_12 = var_diffZ; - tmp_right_name_12 = mod_consts[27]; - tmp_right_name_11 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_12, tmp_right_name_12); - if (tmp_right_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - tmp_list_element_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_right_name_11); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_args_element_name_3, 5, tmp_list_element_1); - } - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 67; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x1; - par_x1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_list_element_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[41]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_x2 == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 69; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_list_element_2 = par_x2; - tmp_tuple_element_1 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_1, 0, tmp_list_element_2); - CHECK_OBJECT(par_x1); - tmp_list_element_2 = par_x1; - PyList_SET_ITEM0(tmp_tuple_element_1, 1, tmp_list_element_2); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[42]); - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 69; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_x == NULL); - var_x = tmp_assign_source_6; - } - { - PyObject *tmp_called_instance_8; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 70; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_8 = par_self; - CHECK_OBJECT(var_x); - tmp_args_element_name_4 = var_x; - frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame.f_lineno = 70; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_8, mod_consts[30], tmp_args_element_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bd05805aed9cf016c930c8c585c3fe7e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bd05805aed9cf016c930c8c585c3fe7e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bd05805aed9cf016c930c8c585c3fe7e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bd05805aed9cf016c930c8c585c3fe7e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bd05805aed9cf016c930c8c585c3fe7e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bd05805aed9cf016c930c8c585c3fe7e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bd05805aed9cf016c930c8c585c3fe7e, - type_description_1, - par_self, - par_x1, - par_x2, - var_diffZ, - var_diffY, - var_diffX, - var_x - ); - - - // Release cached frame if used for exception. - if (frame_bd05805aed9cf016c930c8c585c3fe7e == cache_frame_bd05805aed9cf016c930c8c585c3fe7e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bd05805aed9cf016c930c8c585c3fe7e); - cache_frame_bd05805aed9cf016c930c8c585c3fe7e = NULL; - } - - assertFrameObject(frame_bd05805aed9cf016c930c8c585c3fe7e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x1); - par_x1 = NULL; - Py_XDECREF(par_x2); - par_x2 = NULL; - Py_XDECREF(var_diffZ); - var_diffZ = NULL; - Py_XDECREF(var_diffY); - var_diffY = NULL; - Py_XDECREF(var_diffX); - var_diffX = NULL; - Py_XDECREF(var_x); - var_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x1); - par_x1 = NULL; - Py_XDECREF(par_x2); - par_x2 = NULL; - Py_XDECREF(var_diffZ); - var_diffZ = NULL; - Py_XDECREF(var_diffY); - var_diffY = NULL; - Py_XDECREF(var_diffX); - var_diffX = NULL; - Py_XDECREF(var_x); - var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__8___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - struct Nuitka_FrameObject *frame_6e35c23d34ec2da5e0f0e87d32605298; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_6e35c23d34ec2da5e0f0e87d32605298 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6e35c23d34ec2da5e0f0e87d32605298)) { - Py_XDECREF(cache_frame_6e35c23d34ec2da5e0f0e87d32605298); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6e35c23d34ec2da5e0f0e87d32605298 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6e35c23d34ec2da5e0f0e87d32605298 = MAKE_FUNCTION_FRAME(codeobj_6e35c23d34ec2da5e0f0e87d32605298, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6e35c23d34ec2da5e0f0e87d32605298->m_type_description == NULL); - frame_6e35c23d34ec2da5e0f0e87d32605298 = cache_frame_6e35c23d34ec2da5e0f0e87d32605298; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6e35c23d34ec2da5e0f0e87d32605298); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6e35c23d34ec2da5e0f0e87d32605298) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_6e35c23d34ec2da5e0f0e87d32605298->m_frame.f_lineno = 75; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[10]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_tuple_element_1 = par_in_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[44]); - frame_6e35c23d34ec2da5e0f0e87d32605298->m_frame.f_lineno = 76; - tmp_assattr_name_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[30], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6e35c23d34ec2da5e0f0e87d32605298); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6e35c23d34ec2da5e0f0e87d32605298); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6e35c23d34ec2da5e0f0e87d32605298, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6e35c23d34ec2da5e0f0e87d32605298->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6e35c23d34ec2da5e0f0e87d32605298, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6e35c23d34ec2da5e0f0e87d32605298, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_6e35c23d34ec2da5e0f0e87d32605298 == cache_frame_6e35c23d34ec2da5e0f0e87d32605298) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6e35c23d34ec2da5e0f0e87d32605298); - cache_frame_6e35c23d34ec2da5e0f0e87d32605298 = NULL; - } - - assertFrameObject(frame_6e35c23d34ec2da5e0f0e87d32605298); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__9_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_50b748c57c09e7a25b1a02a34719cbf2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_50b748c57c09e7a25b1a02a34719cbf2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_50b748c57c09e7a25b1a02a34719cbf2)) { - Py_XDECREF(cache_frame_50b748c57c09e7a25b1a02a34719cbf2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_50b748c57c09e7a25b1a02a34719cbf2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_50b748c57c09e7a25b1a02a34719cbf2 = MAKE_FUNCTION_FRAME(codeobj_50b748c57c09e7a25b1a02a34719cbf2, module_models$UNet, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_50b748c57c09e7a25b1a02a34719cbf2->m_type_description == NULL); - frame_50b748c57c09e7a25b1a02a34719cbf2 = cache_frame_50b748c57c09e7a25b1a02a34719cbf2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_50b748c57c09e7a25b1a02a34719cbf2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_50b748c57c09e7a25b1a02a34719cbf2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_50b748c57c09e7a25b1a02a34719cbf2->m_frame.f_lineno = 79; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[30], tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_50b748c57c09e7a25b1a02a34719cbf2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_50b748c57c09e7a25b1a02a34719cbf2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_50b748c57c09e7a25b1a02a34719cbf2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_50b748c57c09e7a25b1a02a34719cbf2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_50b748c57c09e7a25b1a02a34719cbf2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_50b748c57c09e7a25b1a02a34719cbf2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_50b748c57c09e7a25b1a02a34719cbf2, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_50b748c57c09e7a25b1a02a34719cbf2 == cache_frame_50b748c57c09e7a25b1a02a34719cbf2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_50b748c57c09e7a25b1a02a34719cbf2); - cache_frame_50b748c57c09e7a25b1a02a34719cbf2 = NULL; - } - - assertFrameObject(frame_50b748c57c09e7a25b1a02a34719cbf2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__10___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_n_classes = python_pars[2]; - PyObject *par_n_channels = python_pars[3]; - struct Nuitka_FrameObject *frame_ed6d6c1a5631802890ddc1ac66135d01; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_ed6d6c1a5631802890ddc1ac66135d01 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ed6d6c1a5631802890ddc1ac66135d01)) { - Py_XDECREF(cache_frame_ed6d6c1a5631802890ddc1ac66135d01); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ed6d6c1a5631802890ddc1ac66135d01 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ed6d6c1a5631802890ddc1ac66135d01 = MAKE_FUNCTION_FRAME(codeobj_ed6d6c1a5631802890ddc1ac66135d01, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ed6d6c1a5631802890ddc1ac66135d01->m_type_description == NULL); - frame_ed6d6c1a5631802890ddc1ac66135d01 = cache_frame_ed6d6c1a5631802890ddc1ac66135d01; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ed6d6c1a5631802890ddc1ac66135d01); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ed6d6c1a5631802890ddc1ac66135d01) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 84; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 84; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_in_channels); - tmp_assattr_name_1 = par_in_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[28], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_n_classes); - tmp_assattr_name_2 = par_n_classes; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[45], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_n_channels); - tmp_assattr_name_3 = par_n_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[46], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_4; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[21]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[21]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_args_element_name_1 = par_in_channels; - CHECK_OBJECT(par_n_channels); - tmp_args_element_name_2 = par_n_channels; - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 89; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[30], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_assattr_target_5; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_n_channels); - tmp_args_element_name_3 = par_n_channels; - tmp_left_name_1 = mod_consts[27]; - CHECK_OBJECT(par_n_channels); - tmp_right_name_1 = par_n_channels; - tmp_args_element_name_4 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 90; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_args_element_name_4); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[48], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_args_element_name_6; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_assattr_target_6; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_2 = mod_consts[27]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = par_n_channels; - tmp_args_element_name_5 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_3 = mod_consts[35]; - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_3 = par_n_channels; - tmp_args_element_name_6 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 91; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[49], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_7; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_args_element_name_8; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_assattr_target_7; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_4 = mod_consts[35]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_4 = par_n_channels; - tmp_args_element_name_7 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_4, tmp_right_name_4); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = mod_consts[50]; - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_5 = par_n_channels; - tmp_args_element_name_8 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_5, tmp_right_name_5); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 92; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assattr_name_7 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[51], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_9; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_args_element_name_10; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_assattr_target_8; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_6 = mod_consts[50]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = par_n_channels; - tmp_args_element_name_9 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_6, tmp_right_name_6); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_7 = mod_consts[50]; - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_7 = par_n_channels; - tmp_args_element_name_10 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_7, tmp_right_name_7); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_9); - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 93; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assattr_name_8 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_args_element_name_9); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assattr_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[52], tmp_assattr_name_8); - Py_DECREF(tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_called_name_6; - PyObject *tmp_args_element_name_11; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_args_element_name_12; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_assattr_target_9; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_8 = mod_consts[54]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_8 = par_n_channels; - tmp_args_element_name_11 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_8, tmp_right_name_8); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_9 = mod_consts[35]; - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_9 = par_n_channels; - tmp_args_element_name_12 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_9, tmp_right_name_9); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_11); - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 95; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_assattr_name_9 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_args_element_name_11); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[55], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_called_name_7; - PyObject *tmp_args_element_name_13; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_args_element_name_14; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - PyObject *tmp_assattr_target_10; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_10 = mod_consts[50]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_10 = par_n_channels; - tmp_args_element_name_13 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_10, tmp_right_name_10); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_11 = mod_consts[27]; - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_11 = par_n_channels; - tmp_args_element_name_14 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_11, tmp_right_name_11); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_13); - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 96; - { - PyObject *call_args[] = {tmp_args_element_name_13, tmp_args_element_name_14}; - tmp_assattr_name_10 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_args_element_name_13); - Py_DECREF(tmp_args_element_name_14); - if (tmp_assattr_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[56], tmp_assattr_name_10); - Py_DECREF(tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_15; - PyObject *tmp_left_name_12; - PyObject *tmp_right_name_12; - PyObject *tmp_args_element_name_16; - PyObject *tmp_assattr_target_11; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_12 = mod_consts[35]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 97; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_12 = par_n_channels; - tmp_args_element_name_15 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_12, tmp_right_name_12); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 97; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_16 = par_n_channels; - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 97; - { - PyObject *call_args[] = {tmp_args_element_name_15, tmp_args_element_name_16}; - tmp_assattr_name_11 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_8, call_args); - } - - Py_DECREF(tmp_args_element_name_15); - if (tmp_assattr_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[57], tmp_assattr_name_11); - Py_DECREF(tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_17; - PyObject *tmp_left_name_13; - PyObject *tmp_right_name_13; - PyObject *tmp_args_element_name_18; - PyObject *tmp_assattr_target_12; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_13 = mod_consts[27]; - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_13 = par_n_channels; - tmp_args_element_name_17 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_13, tmp_right_name_13); - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_n_channels == NULL) { - Py_DECREF(tmp_args_element_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_18 = par_n_channels; - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 98; - { - PyObject *call_args[] = {tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_assattr_name_12 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_args_element_name_17); - if (tmp_assattr_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_12 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[58], tmp_assattr_name_12); - Py_DECREF(tmp_assattr_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_called_name_10; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - PyObject *tmp_assattr_target_13; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[59]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[59]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_n_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_19 = par_n_channels; - CHECK_OBJECT(par_n_classes); - tmp_args_element_name_20 = par_n_classes; - frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame.f_lineno = 99; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_assattr_name_13 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_10, call_args); - } - - if (tmp_assattr_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_13 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[60], tmp_assattr_name_13); - Py_DECREF(tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ed6d6c1a5631802890ddc1ac66135d01); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ed6d6c1a5631802890ddc1ac66135d01); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ed6d6c1a5631802890ddc1ac66135d01, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ed6d6c1a5631802890ddc1ac66135d01->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ed6d6c1a5631802890ddc1ac66135d01, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ed6d6c1a5631802890ddc1ac66135d01, - type_description_1, - par_self, - par_in_channels, - par_n_classes, - par_n_channels, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ed6d6c1a5631802890ddc1ac66135d01 == cache_frame_ed6d6c1a5631802890ddc1ac66135d01) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ed6d6c1a5631802890ddc1ac66135d01); - cache_frame_ed6d6c1a5631802890ddc1ac66135d01 = NULL; - } - - assertFrameObject(frame_ed6d6c1a5631802890ddc1ac66135d01); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_n_classes); - Py_DECREF(par_n_classes); - par_n_classes = NULL; - Py_XDECREF(par_n_channels); - par_n_channels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_n_classes); - Py_DECREF(par_n_classes); - par_n_classes = NULL; - Py_XDECREF(par_n_channels); - par_n_channels = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$UNet$$$function__11_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_encoder_only = python_pars[2]; - PyObject *par_x_ = python_pars[3]; - PyObject *var_x1 = NULL; - PyObject *var_x2 = NULL; - PyObject *var_x3 = NULL; - PyObject *var_x4 = NULL; - PyObject *var_x5 = NULL; - PyObject *var_mask = NULL; - struct Nuitka_FrameObject *frame_9d9a4cfec1c9211fd1ca059e8ec07346; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346)) { - Py_XDECREF(cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346 = MAKE_FUNCTION_FRAME(codeobj_9d9a4cfec1c9211fd1ca059e8ec07346, module_models$UNet, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_type_description == NULL); - frame_9d9a4cfec1c9211fd1ca059e8ec07346 = cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9d9a4cfec1c9211fd1ca059e8ec07346); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9d9a4cfec1c9211fd1ca059e8ec07346) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - int tmp_truth_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_encoder_only); - tmp_truth_name_1 = CHECK_IF_TRUE(par_encoder_only); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_x); - tmp_compexpr_left_1 = par_x; - tmp_compexpr_right_1 = Py_None; - tmp_and_right_value_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_1 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 103; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[30], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_x1 == NULL); - var_x1 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_x1); - tmp_args_element_name_2 = var_x1; - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 104; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[48], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_x2 == NULL); - var_x2 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_x2); - tmp_args_element_name_3 = var_x2; - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 105; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[49], tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_x3 == NULL); - var_x3 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_x3); - tmp_args_element_name_4 = var_x3; - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 106; - tmp_assign_source_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[51], tmp_args_element_name_4); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_x4 == NULL); - var_x4 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 107; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - CHECK_OBJECT(var_x4); - tmp_args_element_name_5 = var_x4; - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 107; - tmp_assign_source_5 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[52], tmp_args_element_name_5); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_x5 == NULL); - var_x5 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_list_element_1; - if (var_x1 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[34]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_list_element_1 = var_x1; - tmp_assign_source_6 = PyList_New(5); - PyList_SET_ITEM0(tmp_assign_source_6, 0, tmp_list_element_1); - if (var_x2 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto list_build_exception_1; - } - - tmp_list_element_1 = var_x2; - PyList_SET_ITEM0(tmp_assign_source_6, 1, tmp_list_element_1); - if (var_x3 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto list_build_exception_1; - } - - tmp_list_element_1 = var_x3; - PyList_SET_ITEM0(tmp_assign_source_6, 2, tmp_list_element_1); - if (var_x4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto list_build_exception_1; - } - - tmp_list_element_1 = var_x4; - PyList_SET_ITEM0(tmp_assign_source_6, 3, tmp_list_element_1); - CHECK_OBJECT(var_x5); - tmp_list_element_1 = var_x5; - PyList_SET_ITEM0(tmp_assign_source_6, 4, tmp_list_element_1); - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_assign_source_6); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - assert(var_mask == NULL); - var_mask = tmp_assign_source_6; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_and_left_truth_2; - nuitka_bool tmp_and_left_value_2; - nuitka_bool tmp_and_right_value_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_encoder_only); - tmp_operand_name_1 = par_encoder_only; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_2 == 1) { - goto and_right_2; - } else { - goto and_left_2; - } - and_right_2:; - CHECK_OBJECT(par_x_); - tmp_compexpr_left_2 = par_x_; - tmp_compexpr_right_2 = Py_None; - tmp_and_right_value_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_2 = tmp_and_right_value_2; - goto and_end_2; - and_left_2:; - tmp_condition_result_2 = tmp_and_left_value_2; - and_end_2:; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[55]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x_); - tmp_expression_name_2 = par_x_; - tmp_subscript_name_1 = mod_consts[63]; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, -1); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x_); - tmp_expression_name_3 = par_x_; - tmp_subscript_name_2 = mod_consts[64]; - tmp_args_element_name_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, -2); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 110; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_7 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 111; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[56]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_mask); - tmp_args_element_name_8 = var_mask; - CHECK_OBJECT(par_x_); - tmp_expression_name_5 = par_x_; - tmp_subscript_name_3 = mod_consts[65]; - tmp_args_element_name_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_3, -3); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 111; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 111; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_8 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 112; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[57]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_mask); - tmp_args_element_name_10 = var_mask; - CHECK_OBJECT(par_x_); - tmp_expression_name_7 = par_x_; - tmp_subscript_name_4 = mod_consts[66]; - tmp_args_element_name_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_4, -4); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 112; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 112; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11}; - tmp_assign_source_9 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_11); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[58]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_mask); - tmp_args_element_name_12 = var_mask; - CHECK_OBJECT(par_x_); - tmp_expression_name_9 = par_x_; - tmp_subscript_name_5 = mod_consts[67]; - tmp_args_element_name_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_5, -5); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 113; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 113; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_assign_source_10 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_13); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_instance_6; - PyObject *tmp_args_element_name_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = par_self; - CHECK_OBJECT(var_mask); - tmp_args_element_name_14 = var_mask; - frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame.f_lineno = 114; - tmp_assign_source_11 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_6, mod_consts[60], tmp_args_element_name_14); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - branch_no_2:; - if (var_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 115; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_mask; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9d9a4cfec1c9211fd1ca059e8ec07346); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9d9a4cfec1c9211fd1ca059e8ec07346); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9d9a4cfec1c9211fd1ca059e8ec07346); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9d9a4cfec1c9211fd1ca059e8ec07346, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9d9a4cfec1c9211fd1ca059e8ec07346->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9d9a4cfec1c9211fd1ca059e8ec07346, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9d9a4cfec1c9211fd1ca059e8ec07346, - type_description_1, - par_self, - par_x, - par_encoder_only, - par_x_, - var_x1, - var_x2, - var_x3, - var_x4, - var_x5, - var_mask - ); - - - // Release cached frame if used for exception. - if (frame_9d9a4cfec1c9211fd1ca059e8ec07346 == cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346); - cache_frame_9d9a4cfec1c9211fd1ca059e8ec07346 = NULL; - } - - assertFrameObject(frame_9d9a4cfec1c9211fd1ca059e8ec07346); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_encoder_only); - Py_DECREF(par_encoder_only); - par_encoder_only = NULL; - CHECK_OBJECT(par_x_); - Py_DECREF(par_x_); - par_x_ = NULL; - Py_XDECREF(var_x1); - var_x1 = NULL; - Py_XDECREF(var_x2); - var_x2 = NULL; - Py_XDECREF(var_x3); - var_x3 = NULL; - Py_XDECREF(var_x4); - var_x4 = NULL; - Py_XDECREF(var_x5); - var_x5 = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_encoder_only); - Py_DECREF(par_encoder_only); - par_encoder_only = NULL; - CHECK_OBJECT(par_x_); - Py_DECREF(par_x_); - par_x_ = NULL; - Py_XDECREF(var_x1); - var_x1 = NULL; - Py_XDECREF(var_x2); - var_x2 = NULL; - Py_XDECREF(var_x3); - var_x3 = NULL; - Py_XDECREF(var_x4); - var_x4 = NULL; - Py_XDECREF(var_x5); - var_x5 = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__10___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__10___init__, - mod_consts[7], -#if PYTHON_VERSION >= 0x300 - mod_consts[106], -#endif - codeobj_ed6d6c1a5631802890ddc1ac66135d01, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__11_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__11_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[108], -#endif - codeobj_9d9a4cfec1c9211fd1ca059e8ec07346, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__1_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__1_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[91], -#endif - codeobj_084faf6fcf252d9ba9d3bd841c5e3c43, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$UNet, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__2___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__2___init__, - mod_consts[7], -#if PYTHON_VERSION >= 0x300 - mod_consts[96], -#endif - codeobj_3ba1f3aee45fb5386be7682fb8c20f4b, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__3_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__3_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[97], -#endif - codeobj_15fee65f689285f5cbe1cd0e3c11bcff, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__4___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__4___init__, - mod_consts[7], -#if PYTHON_VERSION >= 0x300 - mod_consts[98], -#endif - codeobj_ef73251af0e6f2d546908c26160e620b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__5_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__5_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[99], -#endif - codeobj_d20c116d5add272dbb060ed42c240c8c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__6___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__6___init__, - mod_consts[7], -#if PYTHON_VERSION >= 0x300 - mod_consts[101], -#endif - codeobj_291a95712a82f2b923b29b2d04bf5ad1, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__7_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__7_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[102], -#endif - codeobj_bd05805aed9cf016c930c8c585c3fe7e, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__8___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__8___init__, - mod_consts[7], -#if PYTHON_VERSION >= 0x300 - mod_consts[103], -#endif - codeobj_6e35c23d34ec2da5e0f0e87d32605298, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$UNet$$$function__9_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$UNet$$$function__9_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[104], -#endif - codeobj_50b748c57c09e7a25b1a02a34719cbf2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$UNet, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$UNet[] = { - impl_models$UNet$$$function__1_forward, - impl_models$UNet$$$function__2___init__, - impl_models$UNet$$$function__3_forward, - impl_models$UNet$$$function__4___init__, - impl_models$UNet$$$function__5_forward, - impl_models$UNet$$$function__6___init__, - impl_models$UNet$$$function__7_forward, - impl_models$UNet$$$function__8___init__, - impl_models$UNet$$$function__9_forward, - impl_models$UNet$$$function__10___init__, - impl_models$UNet$$$function__11_forward, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$UNet; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$UNet) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$UNet[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$UNet, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$UNet(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$UNet = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.UNet: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.UNet: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.UNet: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$UNet\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$UNet = MODULE_DICT(module_models$UNet); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$UNet, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$UNet, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$UNet, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$UNet, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$UNet, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$UNet); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$UNet); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_5_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__bases = NULL; - PyObject *tmp_class_creation_6__bases_orig = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - struct Nuitka_FrameObject *frame_a02dd131b912f82ed6089517aa6f586d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$UNet$$$class__1_GroupNorm_7 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_7e5ede10634f92487398f6ca462d6c6e_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_7e5ede10634f92487398f6ca462d6c6e_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *locals_models$UNet$$$class__2_DoubleConv_15 = NULL; - struct Nuitka_FrameObject *frame_ab1a78718279ba6abadf8b127f24924a_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_ab1a78718279ba6abadf8b127f24924a_3 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$UNet$$$class__3_Down_37 = NULL; - struct Nuitka_FrameObject *frame_e2aedb9a8cf15bf5efe84df0ff27161d_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *locals_models$UNet$$$class__4_Up_49 = NULL; - struct Nuitka_FrameObject *frame_706488e5f126b223345baf51f7a47291_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_706488e5f126b223345baf51f7a47291_5 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *locals_models$UNet$$$class__5_Out_73 = NULL; - struct Nuitka_FrameObject *frame_d36add094dd5bb323c12224525882490_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_d36add094dd5bb323c12224525882490_6 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *locals_models$UNet$$$class__6_UNet3d_82 = NULL; - struct Nuitka_FrameObject *frame_66f5239cf3d5e4546fbd6c72d9db8fab_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[69], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[70], tmp_assign_source_2); - } - // Frame without reuse. - frame_a02dd131b912f82ed6089517aa6f586d = MAKE_MODULE_FRAME(codeobj_a02dd131b912f82ed6089517aa6f586d, module_models$UNet); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_a02dd131b912f82ed6089517aa6f586d); - assert(Py_REFCNT(frame_a02dd131b912f82ed6089517aa6f586d) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[71]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[71]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[72], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[71]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[71]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[73], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[74], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[5]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$UNet; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = mod_consts[75]; - tmp_level_name_1 = mod_consts[76]; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 1; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_4 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$UNet, - mod_consts[8], - mod_consts[76] - ); - } else { - tmp_assign_source_4 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[8]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[5]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$UNet; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[77]; - tmp_level_name_2 = mod_consts[76]; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 2; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$UNet, - mod_consts[41], - mod_consts[76] - ); - } else { - tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[41]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[41], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_3; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[78]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$UNet; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[76]; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 3; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_import_name_from_3 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$UNet, - mod_consts[8], - mod_consts[76] - ); - } else { - tmp_import_name_from_3 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[8]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$UNet, - mod_consts[79], - mod_consts[76] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[79]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[36], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[5]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$UNet; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[76]; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 4; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[80]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$UNet; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = Py_None; - tmp_level_name_5 = mod_consts[76]; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 5; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[80], tmp_assign_source_8); - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_assign_source_9 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_9, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_10 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - tmp_assign_source_11 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[81]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[76]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_12 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_12; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[81]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[82]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[82]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_tuple_element_2 = mod_consts[12]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 7; - tmp_assign_source_13 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_13; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[83]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[84]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[85]; - tmp_getattr_default_1 = mod_consts[86]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[85]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 7; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_14; - tmp_assign_source_14 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_14; - } - branch_end_2:; - { - PyObject *tmp_assign_source_15; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$UNet$$$class__1_GroupNorm_7 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[85]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[85]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__1_GroupNorm_7, mod_consts[87], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[88]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__1_GroupNorm_7, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[12]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__1_GroupNorm_7, mod_consts[89], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_3; - } - if (isFrameUnusable(cache_frame_7e5ede10634f92487398f6ca462d6c6e_2)) { - Py_XDECREF(cache_frame_7e5ede10634f92487398f6ca462d6c6e_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7e5ede10634f92487398f6ca462d6c6e_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7e5ede10634f92487398f6ca462d6c6e_2 = MAKE_FUNCTION_FRAME(codeobj_7e5ede10634f92487398f6ca462d6c6e, module_models$UNet, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7e5ede10634f92487398f6ca462d6c6e_2->m_type_description == NULL); - frame_7e5ede10634f92487398f6ca462d6c6e_2 = cache_frame_7e5ede10634f92487398f6ca462d6c6e_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7e5ede10634f92487398f6ca462d6c6e_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7e5ede10634f92487398f6ca462d6c6e_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_7; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_dict_key_1 = mod_consts[3]; - tmp_expression_name_7 = PyObject_GetItem(locals_models$UNet$$$class__1_GroupNorm_7, mod_consts[5]); - - if (tmp_expression_name_7 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_7); - } - } - - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[90]); - Py_DECREF(tmp_expression_name_7); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_annotations_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__1_forward(tmp_annotations_1, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__1_GroupNorm_7, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e5ede10634f92487398f6ca462d6c6e_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e5ede10634f92487398f6ca462d6c6e_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7e5ede10634f92487398f6ca462d6c6e_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7e5ede10634f92487398f6ca462d6c6e_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7e5ede10634f92487398f6ca462d6c6e_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7e5ede10634f92487398f6ca462d6c6e_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_7e5ede10634f92487398f6ca462d6c6e_2 == cache_frame_7e5ede10634f92487398f6ca462d6c6e_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7e5ede10634f92487398f6ca462d6c6e_2); - cache_frame_7e5ede10634f92487398f6ca462d6c6e_2 = NULL; - } - - assertFrameObject(frame_7e5ede10634f92487398f6ca462d6c6e_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_3; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_3; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__1_GroupNorm_7, mod_consts[92], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_3; - } - branch_no_4:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[12]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$UNet$$$class__1_GroupNorm_7; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 7; - tmp_assign_source_16 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_3; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_16); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_15 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_15); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_DECREF(locals_models$UNet$$$class__1_GroupNorm_7); - locals_models$UNet$$$class__1_GroupNorm_7 = NULL; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$UNet$$$class__1_GroupNorm_7); - locals_models$UNet$$$class__1_GroupNorm_7 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 7; - goto try_except_handler_1; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_15); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_8; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[93]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_assign_source_17 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_17, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_18 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_18; - } - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[81]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_9 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[76]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_20 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_20; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[81]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_10, mod_consts[82]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_11 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[82]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_tuple_element_6 = mod_consts[21]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 15; - tmp_assign_source_21 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_21; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_12 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_12, mod_consts[83]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[84]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[85]; - tmp_getattr_default_2 = mod_consts[86]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_13 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_13 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[85]); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 15; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_22; - } - branch_end_6:; - { - PyObject *tmp_assign_source_23; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$UNet$$$class__2_DoubleConv_15 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[85]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[85]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__2_DoubleConv_15, mod_consts[87], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[94]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__2_DoubleConv_15, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[21]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__2_DoubleConv_15, mod_consts[89], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_ab1a78718279ba6abadf8b127f24924a_3)) { - Py_XDECREF(cache_frame_ab1a78718279ba6abadf8b127f24924a_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ab1a78718279ba6abadf8b127f24924a_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ab1a78718279ba6abadf8b127f24924a_3 = MAKE_FUNCTION_FRAME(codeobj_ab1a78718279ba6abadf8b127f24924a, module_models$UNet, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ab1a78718279ba6abadf8b127f24924a_3->m_type_description == NULL); - frame_ab1a78718279ba6abadf8b127f24924a_3 = cache_frame_ab1a78718279ba6abadf8b127f24924a_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ab1a78718279ba6abadf8b127f24924a_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ab1a78718279ba6abadf8b127f24924a_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_1 = mod_consts[95]; - Py_INCREF(tmp_defaults_1); - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__2___init__(tmp_defaults_1, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__2_DoubleConv_15, mod_consts[7], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__3_forward(); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__2_DoubleConv_15, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ab1a78718279ba6abadf8b127f24924a_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ab1a78718279ba6abadf8b127f24924a_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ab1a78718279ba6abadf8b127f24924a_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ab1a78718279ba6abadf8b127f24924a_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ab1a78718279ba6abadf8b127f24924a_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ab1a78718279ba6abadf8b127f24924a_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_ab1a78718279ba6abadf8b127f24924a_3 == cache_frame_ab1a78718279ba6abadf8b127f24924a_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ab1a78718279ba6abadf8b127f24924a_3); - cache_frame_ab1a78718279ba6abadf8b127f24924a_3 = NULL; - } - - assertFrameObject(frame_ab1a78718279ba6abadf8b127f24924a_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_6; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__2_DoubleConv_15, mod_consts[92], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - branch_no_8:; - { - PyObject *tmp_assign_source_24; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[21]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$UNet$$$class__2_DoubleConv_15; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 15; - tmp_assign_source_24 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_24); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_23 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_23); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$UNet$$$class__2_DoubleConv_15); - locals_models$UNet$$$class__2_DoubleConv_15 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$UNet$$$class__2_DoubleConv_15); - locals_models$UNet$$$class__2_DoubleConv_15 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 15; - goto try_except_handler_4; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[21], tmp_assign_source_23); - } - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_14; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[93]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_assign_source_25 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_25, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_26 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_26; - } - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[81]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_15 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[76]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_28 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[81]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_16 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_16, mod_consts[82]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_17 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[82]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_tuple_element_10 = mod_consts[47]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 37; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_29; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_18; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_18 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_18, mod_consts[83]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[84]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[85]; - tmp_getattr_default_3 = mod_consts[86]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_19; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_19 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_19 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[85]); - Py_DECREF(tmp_expression_name_19); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 37; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_30; - tmp_assign_source_30 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_30; - } - branch_end_10:; - { - PyObject *tmp_assign_source_31; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$UNet$$$class__3_Down_37 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[85]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[85]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__3_Down_37, mod_consts[87], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[47]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__3_Down_37, mod_consts[89], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4)) { - Py_XDECREF(cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4 = MAKE_FUNCTION_FRAME(codeobj_e2aedb9a8cf15bf5efe84df0ff27161d, module_models$UNet, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4->m_type_description == NULL); - frame_e2aedb9a8cf15bf5efe84df0ff27161d_4 = cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e2aedb9a8cf15bf5efe84df0ff27161d_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e2aedb9a8cf15bf5efe84df0ff27161d_4) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_3[1]; - - tmp_closure_3[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__4___init__(tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__3_Down_37, mod_consts[7], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__5_forward(); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__3_Down_37, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2aedb9a8cf15bf5efe84df0ff27161d_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2aedb9a8cf15bf5efe84df0ff27161d_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e2aedb9a8cf15bf5efe84df0ff27161d_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e2aedb9a8cf15bf5efe84df0ff27161d_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e2aedb9a8cf15bf5efe84df0ff27161d_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e2aedb9a8cf15bf5efe84df0ff27161d_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e2aedb9a8cf15bf5efe84df0ff27161d_4 == cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4); - cache_frame_e2aedb9a8cf15bf5efe84df0ff27161d_4 = NULL; - } - - assertFrameObject(frame_e2aedb9a8cf15bf5efe84df0ff27161d_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_9; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_9; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__3_Down_37, mod_consts[92], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_9; - } - branch_no_12:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[47]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$UNet$$$class__3_Down_37; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 37; - tmp_assign_source_32 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - - goto try_except_handler_9; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_32); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_31 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_31); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$UNet$$$class__3_Down_37); - locals_models$UNet$$$class__3_Down_37 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$UNet$$$class__3_Down_37); - locals_models$UNet$$$class__3_Down_37 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 37; - goto try_except_handler_7; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_31); - } - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_33; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_20; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[93]); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_assign_source_33 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_33, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_34 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_34; - } - { - PyObject *tmp_assign_source_35; - tmp_assign_source_35 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_35; - } - { - PyObject *tmp_assign_source_36; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[81]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_21 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[76]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_21, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_36 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_36; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[81]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_22; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_22 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_22, mod_consts[82]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_23 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[82]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_tuple_element_14 = mod_consts[53]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 49; - tmp_assign_source_37 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_37; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_24; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_24 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_24, mod_consts[83]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[84]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[85]; - tmp_getattr_default_4 = mod_consts[86]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_25; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_25 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_25 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[85]); - Py_DECREF(tmp_expression_name_25); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_10; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_10; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 49; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_10; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_38; - tmp_assign_source_38 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_38; - } - branch_end_14:; - { - PyObject *tmp_assign_source_39; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$UNet$$$class__4_Up_49 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[85]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[85]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__4_Up_49, mod_consts[87], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[53]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__4_Up_49, mod_consts[89], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_12; - } - if (isFrameUnusable(cache_frame_706488e5f126b223345baf51f7a47291_5)) { - Py_XDECREF(cache_frame_706488e5f126b223345baf51f7a47291_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_706488e5f126b223345baf51f7a47291_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_706488e5f126b223345baf51f7a47291_5 = MAKE_FUNCTION_FRAME(codeobj_706488e5f126b223345baf51f7a47291, module_models$UNet, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_706488e5f126b223345baf51f7a47291_5->m_type_description == NULL); - frame_706488e5f126b223345baf51f7a47291_5 = cache_frame_706488e5f126b223345baf51f7a47291_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_706488e5f126b223345baf51f7a47291_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_706488e5f126b223345baf51f7a47291_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - struct Nuitka_CellObject *tmp_closure_4[1]; - tmp_defaults_2 = mod_consts[100]; - Py_INCREF(tmp_defaults_2); - - tmp_closure_4[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__6___init__(tmp_defaults_2, tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__4_Up_49, mod_consts[7], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__7_forward(); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__4_Up_49, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_706488e5f126b223345baf51f7a47291_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_706488e5f126b223345baf51f7a47291_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_706488e5f126b223345baf51f7a47291_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_706488e5f126b223345baf51f7a47291_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_706488e5f126b223345baf51f7a47291_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_706488e5f126b223345baf51f7a47291_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_706488e5f126b223345baf51f7a47291_5 == cache_frame_706488e5f126b223345baf51f7a47291_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_706488e5f126b223345baf51f7a47291_5); - cache_frame_706488e5f126b223345baf51f7a47291_5 = NULL; - } - - assertFrameObject(frame_706488e5f126b223345baf51f7a47291_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_12; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_12; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__4_Up_49, mod_consts[92], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_12; - } - branch_no_16:; - { - PyObject *tmp_assign_source_40; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[53]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$UNet$$$class__4_Up_49; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 49; - tmp_assign_source_40 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_12; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_40); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_39 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_39); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_DECREF(locals_models$UNet$$$class__4_Up_49); - locals_models$UNet$$$class__4_Up_49 = NULL; - goto try_return_handler_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$UNet$$$class__4_Up_49); - locals_models$UNet$$$class__4_Up_49 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 49; - goto try_except_handler_10; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[53], tmp_assign_source_39); - } - goto try_end_4; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_41; - PyObject *tmp_tuple_element_17; - PyObject *tmp_expression_name_26; - tmp_expression_name_26 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_26 == NULL)) { - tmp_expression_name_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_tuple_element_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[93]); - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_assign_source_41 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_41, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_41; - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_42 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_42; - } - { - PyObject *tmp_assign_source_43; - tmp_assign_source_43 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_43; - } - { - PyObject *tmp_assign_source_44; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[81]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_27 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[76]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_44 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_44; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[81]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_28 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[82]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_45; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_29 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[82]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_tuple_element_18 = mod_consts[59]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 73; - tmp_assign_source_45 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_45; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_30 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[83]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[84]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[85]; - tmp_getattr_default_5 = mod_consts[86]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_31 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_31 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[85]); - Py_DECREF(tmp_expression_name_31); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_13; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_13; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 73; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_13; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_46; - tmp_assign_source_46 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_46; - } - branch_end_18:; - { - PyObject *tmp_assign_source_47; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$UNet$$$class__5_Out_73 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[85]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[85]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__5_Out_73, mod_consts[87], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[59]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__5_Out_73, mod_consts[89], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_15; - } - if (isFrameUnusable(cache_frame_d36add094dd5bb323c12224525882490_6)) { - Py_XDECREF(cache_frame_d36add094dd5bb323c12224525882490_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d36add094dd5bb323c12224525882490_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d36add094dd5bb323c12224525882490_6 = MAKE_FUNCTION_FRAME(codeobj_d36add094dd5bb323c12224525882490, module_models$UNet, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d36add094dd5bb323c12224525882490_6->m_type_description == NULL); - frame_d36add094dd5bb323c12224525882490_6 = cache_frame_d36add094dd5bb323c12224525882490_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d36add094dd5bb323c12224525882490_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d36add094dd5bb323c12224525882490_6) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_5[1]; - - tmp_closure_5[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__8___init__(tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__5_Out_73, mod_consts[7], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__9_forward(); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__5_Out_73, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d36add094dd5bb323c12224525882490_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d36add094dd5bb323c12224525882490_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d36add094dd5bb323c12224525882490_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d36add094dd5bb323c12224525882490_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d36add094dd5bb323c12224525882490_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d36add094dd5bb323c12224525882490_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d36add094dd5bb323c12224525882490_6 == cache_frame_d36add094dd5bb323c12224525882490_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d36add094dd5bb323c12224525882490_6); - cache_frame_d36add094dd5bb323c12224525882490_6 = NULL; - } - - assertFrameObject(frame_d36add094dd5bb323c12224525882490_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_15; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_15; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__5_Out_73, mod_consts[92], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_15; - } - branch_no_20:; - { - PyObject *tmp_assign_source_48; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_10 = tmp_class_creation_5__metaclass; - tmp_tuple_element_20 = mod_consts[59]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$UNet$$$class__5_Out_73; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 73; - tmp_assign_source_48 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_15; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_48); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_47 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_47); - goto try_return_handler_15; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_DECREF(locals_models$UNet$$$class__5_Out_73); - locals_models$UNet$$$class__5_Out_73 = NULL; - goto try_return_handler_14; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$UNet$$$class__5_Out_73); - locals_models$UNet$$$class__5_Out_73 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_14; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 73; - goto try_except_handler_13; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[59], tmp_assign_source_47); - } - goto try_end_5; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_49; - PyObject *tmp_tuple_element_21; - PyObject *tmp_expression_name_32; - tmp_expression_name_32 = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_32 == NULL)) { - tmp_expression_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_tuple_element_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[93]); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_assign_source_49 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_49, 0, tmp_tuple_element_21); - assert(tmp_class_creation_6__bases_orig == NULL); - tmp_class_creation_6__bases_orig = tmp_assign_source_49; - } - { - PyObject *tmp_assign_source_50; - PyObject *tmp_dircall_arg1_6; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig; - Py_INCREF(tmp_dircall_arg1_6); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_6}; - tmp_assign_source_50 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - assert(tmp_class_creation_6__bases == NULL); - tmp_class_creation_6__bases = tmp_assign_source_50; - } - { - PyObject *tmp_assign_source_51; - tmp_assign_source_51 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_51; - } - { - PyObject *tmp_assign_source_52; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - nuitka_bool tmp_condition_result_32; - int tmp_truth_name_6; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_33; - PyObject *tmp_subscript_name_6; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[81]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_class_creation_6__bases); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_condition_result_32 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_expression_name_33 = tmp_class_creation_6__bases; - tmp_subscript_name_6 = mod_consts[76]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_33, tmp_subscript_name_6, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_metaclass_name_6 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_bases_name_6 = tmp_class_creation_6__bases; - tmp_assign_source_52 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_52; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[81]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_33 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[81]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_expression_name_34; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_34 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_34, mod_consts[82]); - tmp_condition_result_34 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_53; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_35; - PyObject *tmp_args_name_11; - PyObject *tmp_tuple_element_22; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_35 = tmp_class_creation_6__metaclass; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[82]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_tuple_element_22 = mod_consts[105]; - tmp_args_name_11 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_11, 0, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_22 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_11, 1, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 82; - tmp_assign_source_53 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_name_11); - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_53; - } - { - nuitka_bool tmp_condition_result_35; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_36; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_36 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_36, mod_consts[83]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_condition_result_35 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_23; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[84]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[85]; - tmp_getattr_default_6 = mod_consts[86]; - tmp_tuple_element_23 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_37; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_12 = tmp_class_creation_6__prepared; - tmp_expression_name_37 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_37 == NULL)); - tmp_tuple_element_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[85]); - Py_DECREF(tmp_expression_name_37); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_23); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_16; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_16; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 82; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_16; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_54; - tmp_assign_source_54 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_54; - } - branch_end_22:; - { - PyObject *tmp_assign_source_55; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$UNet$$$class__6_UNet3d_82 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[85]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[85]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__6_UNet3d_82, mod_consts[87], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_18; - } - tmp_dictset_value = mod_consts[105]; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__6_UNet3d_82, mod_consts[89], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_18; - } - if (isFrameUnusable(cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7)) { - Py_XDECREF(cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7 = MAKE_FUNCTION_FRAME(codeobj_66f5239cf3d5e4546fbd6c72d9db8fab, module_models$UNet, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7->m_type_description == NULL); - frame_66f5239cf3d5e4546fbd6c72d9db8fab_7 = cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_66f5239cf3d5e4546fbd6c72d9db8fab_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_66f5239cf3d5e4546fbd6c72d9db8fab_7) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_6[1]; - - tmp_closure_6[0] = outline_5_var___class__; - Py_INCREF(tmp_closure_6[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__10___init__(tmp_closure_6); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__6_UNet3d_82, mod_consts[7], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_2 = "c"; - goto frame_exception_exit_7; - } - } - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[107]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$UNet$$$function__11_forward(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__6_UNet3d_82, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_2 = "c"; - goto frame_exception_exit_7; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_66f5239cf3d5e4546fbd6c72d9db8fab_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_66f5239cf3d5e4546fbd6c72d9db8fab_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_66f5239cf3d5e4546fbd6c72d9db8fab_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_66f5239cf3d5e4546fbd6c72d9db8fab_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_66f5239cf3d5e4546fbd6c72d9db8fab_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_66f5239cf3d5e4546fbd6c72d9db8fab_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_66f5239cf3d5e4546fbd6c72d9db8fab_7 == cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7); - cache_frame_66f5239cf3d5e4546fbd6c72d9db8fab_7 = NULL; - } - - assertFrameObject(frame_66f5239cf3d5e4546fbd6c72d9db8fab_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_18; - skip_nested_handling_6:; - { - nuitka_bool tmp_condition_result_36; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_compexpr_left_6 = tmp_class_creation_6__bases; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_compexpr_right_6 = tmp_class_creation_6__bases_orig; - tmp_condition_result_36 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_condition_result_36 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_18; - } - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_36 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dictset_value = tmp_class_creation_6__bases_orig; - tmp_res = PyObject_SetItem(locals_models$UNet$$$class__6_UNet3d_82, mod_consts[92], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_18; - } - branch_no_24:; - { - PyObject *tmp_assign_source_56; - PyObject *tmp_called_name_12; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_24; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_12 = tmp_class_creation_6__metaclass; - tmp_tuple_element_24 = mod_consts[105]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_24 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_24); - tmp_tuple_element_24 = locals_models$UNet$$$class__6_UNet3d_82; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_a02dd131b912f82ed6089517aa6f586d->m_frame.f_lineno = 82; - tmp_assign_source_56 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_18; - } - { - PyObject *old = Nuitka_Cell_GET(outline_5_var___class__); - PyCell_SET(outline_5_var___class__, tmp_assign_source_56); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_5_var___class__)); - tmp_assign_source_55 = Nuitka_Cell_GET(outline_5_var___class__); - Py_INCREF(tmp_assign_source_55); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_DECREF(locals_models$UNet$$$class__6_UNet3d_82); - locals_models$UNet$$$class__6_UNet3d_82 = NULL; - goto try_return_handler_17; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$UNet$$$class__6_UNet3d_82); - locals_models$UNet$$$class__6_UNet3d_82 = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto try_except_handler_17; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 82; - goto try_except_handler_16; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$UNet, (Nuitka_StringObject *)mod_consts[105], tmp_assign_source_55); - } - goto try_end_6; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a02dd131b912f82ed6089517aa6f586d); -#endif - popFrameStack(); - - assertFrameObject(frame_a02dd131b912f82ed6089517aa6f586d); - - goto frame_no_exception_7; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a02dd131b912f82ed6089517aa6f586d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a02dd131b912f82ed6089517aa6f586d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a02dd131b912f82ed6089517aa6f586d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a02dd131b912f82ed6089517aa6f586d, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_7:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - Py_DECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - - return module_models$UNet; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.base_model.const b/medomni/models.build/module.models.base_model.const deleted file mode 100644 index 0b7c4b685400883ee317f3adad5aa0bda54ab65d..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.base_model.const and /dev/null differ diff --git a/medomni/models.build/module.models.base_model.cpp b/medomni/models.build/module.models.base_model.cpp deleted file mode 100644 index bd7c4fe6bf229099193bb0558ae7bdfb247e3465..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.base_model.cpp +++ /dev/null @@ -1,15180 +0,0 @@ -/* Generated code for Python module 'models.base_model' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$base_model" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$base_model; -PyDictObject *moduledict_models$base_model; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[206]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.base_model")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$base_model(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.base_model"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_88fb76029dafdffb63b52d1203b590ab; -static PyCodeObject *codeobj_d4679424c0c532aee63d5c7dfe50173a; -static PyCodeObject *codeobj_be04ffc70de33534e233bcc063a2873b; -static PyCodeObject *codeobj_3da92d637f10e0e2fa696c97d85e96aa; -static PyCodeObject *codeobj_9f6b0b8f837711c1f7a8dbc49dea079b; -static PyCodeObject *codeobj_19b8ea77f1a4d1b574ae0e072b660e0b; -static PyCodeObject *codeobj_6bb53d881ab90d043e76e8acd0c190e8; -static PyCodeObject *codeobj_922346e330baabd5dec3a0e5d0cef592; -static PyCodeObject *codeobj_d71d7f2d6ffa38c985737620f54130a1; -static PyCodeObject *codeobj_e8232c1f8311141eab7a90dbfd6310ca; -static PyCodeObject *codeobj_ddadc2663250ee51234ad267883b07bc; -static PyCodeObject *codeobj_c605ec6894b581ddbf6356fbb7c61f54; -static PyCodeObject *codeobj_7a0e9b8ed65f5d485709ab54ee4f9399; -static PyCodeObject *codeobj_a1193c5a2efa4e8420ff62b0905f950b; -static PyCodeObject *codeobj_0b56832b17e824e3961db8ea96339fc7; -static PyCodeObject *codeobj_9310af7aa8323cc1c5740553d51f888b; -static PyCodeObject *codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9; -static PyCodeObject *codeobj_df2391467f85318d759b3b6072f678ab; -static PyCodeObject *codeobj_69c403ba983164d79214cd1a92c3e484; -static PyCodeObject *codeobj_194aa42a14f75d8194f56d292c57333b; -static PyCodeObject *codeobj_e2ff967b4add3ba339e6fa020be32f85; -static PyCodeObject *codeobj_52cd4a3cdc9ed073800613d10eeacfee; -static PyCodeObject *codeobj_144bb4aa37b13c6906ed75d1916fd2cb; -static PyCodeObject *codeobj_1636a0b0747f01d69319312edd40dcbb; -static PyCodeObject *codeobj_efb0ad1e6b4110725f2565598950e915; -static PyCodeObject *codeobj_8af0987e214bb6e30431e9b2bdcfbb14; -static PyCodeObject *codeobj_24faaf0922ee17baa8e84fcd48fce6fe; -static PyCodeObject *codeobj_e5dd198ac569e0b6dd733a992ab7706f; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[183]); CHECK_OBJECT(module_filename_obj); - codeobj_88fb76029dafdffb63b52d1203b590ab = MAKE_CODEOBJECT(module_filename_obj, 233, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[184], mod_consts[185], NULL, 1, 0, 0); - codeobj_d4679424c0c532aee63d5c7dfe50173a = MAKE_CODEOBJECT(module_filename_obj, 193, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[184], mod_consts[186], NULL, 1, 0, 0); - codeobj_be04ffc70de33534e233bcc063a2873b = MAKE_CODEOBJECT(module_filename_obj, 248, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[184], mod_consts[187], NULL, 1, 0, 0); - codeobj_3da92d637f10e0e2fa696c97d85e96aa = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[188], NULL, NULL, 0, 0, 0); - codeobj_9f6b0b8f837711c1f7a8dbc49dea079b = MAKE_CODEOBJECT(module_filename_obj, 124, CO_NOFREE, mod_consts[154], mod_consts[189], NULL, 0, 0, 0); - codeobj_19b8ea77f1a4d1b574ae0e072b660e0b = MAKE_CODEOBJECT(module_filename_obj, 20, CO_NOFREE, mod_consts[130], mod_consts[189], NULL, 0, 0, 0); - codeobj_6bb53d881ab90d043e76e8acd0c190e8 = MAKE_CODEOBJECT(module_filename_obj, 185, CO_NOFREE, mod_consts[86], mod_consts[189], NULL, 0, 0, 0); - codeobj_922346e330baabd5dec3a0e5d0cef592 = MAKE_CODEOBJECT(module_filename_obj, 164, CO_NOFREE, mod_consts[168], mod_consts[189], NULL, 0, 0, 0); - codeobj_d71d7f2d6ffa38c985737620f54130a1 = MAKE_CODEOBJECT(module_filename_obj, 140, CO_NOFREE, mod_consts[162], mod_consts[189], NULL, 0, 0, 0); - codeobj_e8232c1f8311141eab7a90dbfd6310ca = MAKE_CODEOBJECT(module_filename_obj, 23, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[190], mod_consts[189], 1, 0, 0); - codeobj_ddadc2663250ee51234ad267883b07bc = MAKE_CODEOBJECT(module_filename_obj, 129, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[1], mod_consts[190], mod_consts[189], 1, 0, 0); - codeobj_c605ec6894b581ddbf6356fbb7c61f54 = MAKE_CODEOBJECT(module_filename_obj, 142, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[165], mod_consts[191], NULL, 4, 0, 0); - codeobj_7a0e9b8ed65f5d485709ab54ee4f9399 = MAKE_CODEOBJECT(module_filename_obj, 175, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[171], mod_consts[192], NULL, 1, 0, 0); - codeobj_a1193c5a2efa4e8420ff62b0905f950b = MAKE_CODEOBJECT(module_filename_obj, 206, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[181], mod_consts[193], NULL, 1, 0, 0); - codeobj_0b56832b17e824e3961db8ea96339fc7 = MAKE_CODEOBJECT(module_filename_obj, 200, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS | CO_NOFREE, mod_consts[179], mod_consts[194], NULL, 1, 0, 0); - codeobj_9310af7aa8323cc1c5740553d51f888b = MAKE_CODEOBJECT(module_filename_obj, 105, CO_VARKEYWORDS | CO_NOFREE, mod_consts[148], mod_consts[195], NULL, 1, 0, 0); - codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9 = MAKE_CODEOBJECT(module_filename_obj, 224, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[56], mod_consts[196], NULL, 1, 0, 0); - codeobj_df2391467f85318d759b3b6072f678ab = MAKE_CODEOBJECT(module_filename_obj, 166, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[169], mod_consts[192], NULL, 1, 0, 0); - codeobj_69c403ba983164d79214cd1a92c3e484 = MAKE_CODEOBJECT(module_filename_obj, 78, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[29], mod_consts[197], NULL, 2, 0, 0); - codeobj_194aa42a14f75d8194f56d292c57333b = MAKE_CODEOBJECT(module_filename_obj, 27, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[55], mod_consts[198], NULL, 1, 0, 0); - codeobj_e2ff967b4add3ba339e6fa020be32f85 = MAKE_CODEOBJECT(module_filename_obj, 136, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[55], mod_consts[198], NULL, 1, 0, 0); - codeobj_52cd4a3cdc9ed073800613d10eeacfee = MAKE_CODEOBJECT(module_filename_obj, 192, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[177], mod_consts[199], NULL, 2, 0, 0); - codeobj_144bb4aa37b13c6906ed75d1916fd2cb = MAKE_CODEOBJECT(module_filename_obj, 132, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[157], mod_consts[200], NULL, 2, 0, 0); - codeobj_1636a0b0747f01d69319312edd40dcbb = MAKE_CODEOBJECT(module_filename_obj, 62, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[143], mod_consts[201], NULL, 2, 0, 0); - codeobj_efb0ad1e6b4110725f2565598950e915 = MAKE_CODEOBJECT(module_filename_obj, 32, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[41], mod_consts[202], NULL, 2, 0, 0); - codeobj_8af0987e214bb6e30431e9b2bdcfbb14 = MAKE_CODEOBJECT(module_filename_obj, 84, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[146], mod_consts[203], NULL, 2, 0, 0); - codeobj_24faaf0922ee17baa8e84fcd48fce6fe = MAKE_CODEOBJECT(module_filename_obj, 108, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[151], mod_consts[204], NULL, 2, 0, 0); - codeobj_e5dd198ac569e0b6dd733a992ab7706f = MAKE_CODEOBJECT(module_filename_obj, 242, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[182], mod_consts[205], NULL, 3, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__10_forward_features(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__11_device(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__12__dequeue_and_enqueue(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__13_copy_params(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__14__momentum_update(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__15_forward(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__16_backward(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__17_all_gather_with_grad(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__18_concat_all_gather(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__19_tile(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__1___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__2_device(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__3_load_checkpoint(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__5_default_config_path(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__6_load_checkpoint_from_config(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__7_before_evaluation(); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__8_show_n_params(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__9___init__(struct Nuitka_CellObject **closure); - - -// The module function definitions. -static PyObject *impl_models$base_model$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_e8232c1f8311141eab7a90dbfd6310ca; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e8232c1f8311141eab7a90dbfd6310ca = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e8232c1f8311141eab7a90dbfd6310ca)) { - Py_XDECREF(cache_frame_e8232c1f8311141eab7a90dbfd6310ca); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e8232c1f8311141eab7a90dbfd6310ca == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e8232c1f8311141eab7a90dbfd6310ca = MAKE_FUNCTION_FRAME(codeobj_e8232c1f8311141eab7a90dbfd6310ca, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e8232c1f8311141eab7a90dbfd6310ca->m_type_description == NULL); - frame_e8232c1f8311141eab7a90dbfd6310ca = cache_frame_e8232c1f8311141eab7a90dbfd6310ca; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e8232c1f8311141eab7a90dbfd6310ca); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e8232c1f8311141eab7a90dbfd6310ca) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 24; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - frame_e8232c1f8311141eab7a90dbfd6310ca->m_frame.f_lineno = 24; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e8232c1f8311141eab7a90dbfd6310ca); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e8232c1f8311141eab7a90dbfd6310ca); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e8232c1f8311141eab7a90dbfd6310ca, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e8232c1f8311141eab7a90dbfd6310ca->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e8232c1f8311141eab7a90dbfd6310ca, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e8232c1f8311141eab7a90dbfd6310ca, - type_description_1, - par_self, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_e8232c1f8311141eab7a90dbfd6310ca == cache_frame_e8232c1f8311141eab7a90dbfd6310ca) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e8232c1f8311141eab7a90dbfd6310ca); - cache_frame_e8232c1f8311141eab7a90dbfd6310ca = NULL; - } - - assertFrameObject(frame_e8232c1f8311141eab7a90dbfd6310ca); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__2_device(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_194aa42a14f75d8194f56d292c57333b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_194aa42a14f75d8194f56d292c57333b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_194aa42a14f75d8194f56d292c57333b)) { - Py_XDECREF(cache_frame_194aa42a14f75d8194f56d292c57333b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_194aa42a14f75d8194f56d292c57333b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_194aa42a14f75d8194f56d292c57333b = MAKE_FUNCTION_FRAME(codeobj_194aa42a14f75d8194f56d292c57333b, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_194aa42a14f75d8194f56d292c57333b->m_type_description == NULL); - frame_194aa42a14f75d8194f56d292c57333b = cache_frame_194aa42a14f75d8194f56d292c57333b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_194aa42a14f75d8194f56d292c57333b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_194aa42a14f75d8194f56d292c57333b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[3]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_194aa42a14f75d8194f56d292c57333b->m_frame.f_lineno = 28; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[4]); - Py_DECREF(tmp_called_instance_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_194aa42a14f75d8194f56d292c57333b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_194aa42a14f75d8194f56d292c57333b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_194aa42a14f75d8194f56d292c57333b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_194aa42a14f75d8194f56d292c57333b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_194aa42a14f75d8194f56d292c57333b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_194aa42a14f75d8194f56d292c57333b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_194aa42a14f75d8194f56d292c57333b, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_194aa42a14f75d8194f56d292c57333b == cache_frame_194aa42a14f75d8194f56d292c57333b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_194aa42a14f75d8194f56d292c57333b); - cache_frame_194aa42a14f75d8194f56d292c57333b = NULL; - } - - assertFrameObject(frame_194aa42a14f75d8194f56d292c57333b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__3_load_checkpoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_url_or_filename = python_pars[1]; - PyObject *var_cached_file = NULL; - PyObject *var_checkpoint = NULL; - PyObject *var_state_dict = NULL; - PyObject *var_msg = NULL; - struct Nuitka_FrameObject *frame_efb0ad1e6b4110725f2565598950e915; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_efb0ad1e6b4110725f2565598950e915 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_efb0ad1e6b4110725f2565598950e915)) { - Py_XDECREF(cache_frame_efb0ad1e6b4110725f2565598950e915); - -#if _DEBUG_REFCOUNTS - if (cache_frame_efb0ad1e6b4110725f2565598950e915 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_efb0ad1e6b4110725f2565598950e915 = MAKE_FUNCTION_FRAME(codeobj_efb0ad1e6b4110725f2565598950e915, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_efb0ad1e6b4110725f2565598950e915->m_type_description == NULL); - frame_efb0ad1e6b4110725f2565598950e915 = cache_frame_efb0ad1e6b4110725f2565598950e915; - - // Push the new frame as the currently active one. - pushFrameStack(frame_efb0ad1e6b4110725f2565598950e915); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_efb0ad1e6b4110725f2565598950e915) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - int tmp_truth_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_args_element_name_1 = par_url_or_filename; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 39; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 39; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[6]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[6]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_tuple_element_1 = par_url_or_filename; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[7]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 40; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_cached_file == NULL); - var_cached_file = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[8]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_cached_file); - tmp_tuple_element_2 = var_cached_file; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[9]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 43; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_checkpoint == NULL); - var_checkpoint = tmp_assign_source_2; - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - int tmp_truth_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[11]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_args_element_name_2 = par_url_or_filename; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 44; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[12], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_2); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_2); - - exception_lineno = 44; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_2); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[8]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_url_or_filename == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_url_or_filename; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[9]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 45; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_checkpoint == NULL); - var_checkpoint = tmp_assign_source_3; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - tmp_make_exception_arg_1 = mod_consts[14]; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 47; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_RuntimeError, tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 47; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_end_2:; - branch_end_1:; - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_2; - tmp_compexpr_left_1 = mod_consts[15]; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = var_checkpoint; - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 49; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[17]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 50; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = var_checkpoint; - tmp_subscript_name_1 = mod_consts[15]; - tmp_assign_source_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_state_dict == NULL); - var_state_dict = tmp_assign_source_4; - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_5; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 52; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_assign_source_5 = var_checkpoint; - assert(var_state_dict == NULL); - Py_INCREF(tmp_assign_source_5); - var_state_dict = tmp_assign_source_5; - } - branch_end_3:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[18]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_state_dict); - tmp_tuple_element_4 = var_state_dict; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[19]); - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 54; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_6; - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_8; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[21]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_7 = mod_consts[22]; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[23]); - assert(!(tmp_called_name_7 == NULL)); - CHECK_OBJECT(var_msg); - tmp_expression_name_8 = var_msg; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[24]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 56; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_4); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 56; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[21]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = mod_consts[25]; - if (par_url_or_filename == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_1 = par_url_or_filename; - tmp_args_element_name_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_efb0ad1e6b4110725f2565598950e915->m_frame.f_lineno = 57; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - if (var_msg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 59; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_msg; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efb0ad1e6b4110725f2565598950e915); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efb0ad1e6b4110725f2565598950e915); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_efb0ad1e6b4110725f2565598950e915); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_efb0ad1e6b4110725f2565598950e915, exception_lineno); - } else if (exception_tb->tb_frame != &frame_efb0ad1e6b4110725f2565598950e915->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_efb0ad1e6b4110725f2565598950e915, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_efb0ad1e6b4110725f2565598950e915, - type_description_1, - par_self, - par_url_or_filename, - var_cached_file, - var_checkpoint, - var_state_dict, - var_msg - ); - - - // Release cached frame if used for exception. - if (frame_efb0ad1e6b4110725f2565598950e915 == cache_frame_efb0ad1e6b4110725f2565598950e915) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_efb0ad1e6b4110725f2565598950e915); - cache_frame_efb0ad1e6b4110725f2565598950e915 = NULL; - } - - assertFrameObject(frame_efb0ad1e6b4110725f2565598950e915); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_url_or_filename); - par_url_or_filename = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_checkpoint); - var_checkpoint = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_url_or_filename); - par_url_or_filename = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_checkpoint); - var_checkpoint = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__4_from_pretrained(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_model_type = python_pars[1]; - PyObject *var_model_cfg = NULL; - PyObject *var_model = NULL; - struct Nuitka_FrameObject *frame_1636a0b0747f01d69319312edd40dcbb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_1636a0b0747f01d69319312edd40dcbb = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1636a0b0747f01d69319312edd40dcbb)) { - Py_XDECREF(cache_frame_1636a0b0747f01d69319312edd40dcbb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1636a0b0747f01d69319312edd40dcbb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1636a0b0747f01d69319312edd40dcbb = MAKE_FUNCTION_FRAME(codeobj_1636a0b0747f01d69319312edd40dcbb, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1636a0b0747f01d69319312edd40dcbb->m_type_description == NULL); - frame_1636a0b0747f01d69319312edd40dcbb = cache_frame_1636a0b0747f01d69319312edd40dcbb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1636a0b0747f01d69319312edd40dcbb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1636a0b0747f01d69319312edd40dcbb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[8]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_cls); - tmp_called_instance_1 = par_cls; - CHECK_OBJECT(par_model_type); - tmp_args_element_name_2 = par_model_type; - frame_1636a0b0747f01d69319312edd40dcbb->m_frame.f_lineno = 72; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[29], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_1636a0b0747f01d69319312edd40dcbb->m_frame.f_lineno = 72; - tmp_expression_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[15]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_model_cfg == NULL); - var_model_cfg = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_3; - if (par_cls == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_cls; - CHECK_OBJECT(var_model_cfg); - tmp_args_element_name_3 = var_model_cfg; - frame_1636a0b0747f01d69319312edd40dcbb->m_frame.f_lineno = 73; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[31], tmp_args_element_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1636a0b0747f01d69319312edd40dcbb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1636a0b0747f01d69319312edd40dcbb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1636a0b0747f01d69319312edd40dcbb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1636a0b0747f01d69319312edd40dcbb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1636a0b0747f01d69319312edd40dcbb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1636a0b0747f01d69319312edd40dcbb, - type_description_1, - par_cls, - par_model_type, - var_model_cfg, - var_model - ); - - - // Release cached frame if used for exception. - if (frame_1636a0b0747f01d69319312edd40dcbb == cache_frame_1636a0b0747f01d69319312edd40dcbb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1636a0b0747f01d69319312edd40dcbb); - cache_frame_1636a0b0747f01d69319312edd40dcbb = NULL; - } - - assertFrameObject(frame_1636a0b0747f01d69319312edd40dcbb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_model); - tmp_return_value = var_model; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - Py_XDECREF(var_model_cfg); - var_model_cfg = NULL; - CHECK_OBJECT(var_model); - Py_DECREF(var_model); - var_model = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - Py_XDECREF(var_model_cfg); - var_model_cfg = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__5_default_config_path(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_model_type = python_pars[1]; - struct Nuitka_FrameObject *frame_69c403ba983164d79214cd1a92c3e484; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_69c403ba983164d79214cd1a92c3e484 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_69c403ba983164d79214cd1a92c3e484)) { - Py_XDECREF(cache_frame_69c403ba983164d79214cd1a92c3e484); - -#if _DEBUG_REFCOUNTS - if (cache_frame_69c403ba983164d79214cd1a92c3e484 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_69c403ba983164d79214cd1a92c3e484 = MAKE_FUNCTION_FRAME(codeobj_69c403ba983164d79214cd1a92c3e484, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_69c403ba983164d79214cd1a92c3e484->m_type_description == NULL); - frame_69c403ba983164d79214cd1a92c3e484 = cache_frame_69c403ba983164d79214cd1a92c3e484; - - // Push the new frame as the currently active one. - pushFrameStack(frame_69c403ba983164d79214cd1a92c3e484); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_69c403ba983164d79214cd1a92c3e484) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_model_type); - tmp_compexpr_left_1 = par_model_type; - CHECK_OBJECT(par_cls); - tmp_expression_name_1 = par_cls; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[33]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_called_instance_1 = mod_consts[34]; - CHECK_OBJECT(par_model_type); - tmp_args_element_name_1 = par_model_type; - frame_69c403ba983164d79214cd1a92c3e484->m_frame.f_lineno = 81; - tmp_tuple_element_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[23], tmp_args_element_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_raise_value_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_raise_value_1, 0, tmp_tuple_element_1); - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 79; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[35]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[35]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_cls == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_cls; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[33]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model_type); - tmp_subscript_name_1 = par_model_type; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_69c403ba983164d79214cd1a92c3e484->m_frame.f_lineno = 82; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_69c403ba983164d79214cd1a92c3e484); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_69c403ba983164d79214cd1a92c3e484); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_69c403ba983164d79214cd1a92c3e484); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_69c403ba983164d79214cd1a92c3e484, exception_lineno); - } else if (exception_tb->tb_frame != &frame_69c403ba983164d79214cd1a92c3e484->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_69c403ba983164d79214cd1a92c3e484, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_69c403ba983164d79214cd1a92c3e484, - type_description_1, - par_cls, - par_model_type - ); - - - // Release cached frame if used for exception. - if (frame_69c403ba983164d79214cd1a92c3e484 == cache_frame_69c403ba983164d79214cd1a92c3e484) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_69c403ba983164d79214cd1a92c3e484); - cache_frame_69c403ba983164d79214cd1a92c3e484 = NULL; - } - - assertFrameObject(frame_69c403ba983164d79214cd1a92c3e484); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_cls); - par_cls = NULL; - CHECK_OBJECT(par_model_type); - Py_DECREF(par_model_type); - par_model_type = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__6_load_checkpoint_from_config(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_cfg = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - PyObject *var_load_finetuned = NULL; - PyObject *var_finetune_path = NULL; - PyObject *var_pretrain_path = NULL; - struct Nuitka_FrameObject *frame_8af0987e214bb6e30431e9b2bdcfbb14; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14)) { - Py_XDECREF(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 = MAKE_FUNCTION_FRAME(codeobj_8af0987e214bb6e30431e9b2bdcfbb14, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14->m_type_description == NULL); - frame_8af0987e214bb6e30431e9b2bdcfbb14 = cache_frame_8af0987e214bb6e30431e9b2bdcfbb14; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8af0987e214bb6e30431e9b2bdcfbb14); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8af0987e214bb6e30431e9b2bdcfbb14) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_cfg); - tmp_called_instance_1 = par_cfg; - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 92; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[36], - &PyTuple_GET_ITEM(mod_consts[37], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_load_finetuned == NULL); - var_load_finetuned = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_load_finetuned); - tmp_truth_name_1 = CHECK_IF_TRUE(var_load_finetuned); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_cfg; - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 94; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[36], - &PyTuple_GET_ITEM(mod_consts[39], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_finetune_path == NULL); - var_finetune_path = tmp_assign_source_2; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_finetune_path); - tmp_compexpr_left_1 = var_finetune_path; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[40]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 95; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[41]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[13]; - CHECK_OBJECT(var_finetune_path); - tmp_dict_value_1 = var_finetune_path; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 98; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_cfg; - frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame.f_lineno = 101; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[36], - &PyTuple_GET_ITEM(mod_consts[42], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_pretrain_path == NULL); - var_pretrain_path = tmp_assign_source_3; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[43]); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[13]; - CHECK_OBJECT(var_pretrain_path); - tmp_dict_value_2 = var_pretrain_path; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_2 = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8af0987e214bb6e30431e9b2bdcfbb14); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8af0987e214bb6e30431e9b2bdcfbb14); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8af0987e214bb6e30431e9b2bdcfbb14, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8af0987e214bb6e30431e9b2bdcfbb14->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8af0987e214bb6e30431e9b2bdcfbb14, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8af0987e214bb6e30431e9b2bdcfbb14, - type_description_1, - par_self, - par_cfg, - par_kwargs, - var_load_finetuned, - var_finetune_path, - var_pretrain_path - ); - - - // Release cached frame if used for exception. - if (frame_8af0987e214bb6e30431e9b2bdcfbb14 == cache_frame_8af0987e214bb6e30431e9b2bdcfbb14) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8af0987e214bb6e30431e9b2bdcfbb14); - cache_frame_8af0987e214bb6e30431e9b2bdcfbb14 = NULL; - } - - assertFrameObject(frame_8af0987e214bb6e30431e9b2bdcfbb14); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - CHECK_OBJECT(var_load_finetuned); - Py_DECREF(var_load_finetuned); - var_load_finetuned = NULL; - Py_XDECREF(var_finetune_path); - var_finetune_path = NULL; - Py_XDECREF(var_pretrain_path); - var_pretrain_path = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_load_finetuned); - var_load_finetuned = NULL; - Py_XDECREF(var_finetune_path); - var_finetune_path = NULL; - Py_XDECREF(var_pretrain_path); - var_pretrain_path = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__7_before_evaluation(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__8_show_n_params(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_return_str = python_pars[1]; - PyObject *var_tot = NULL; - PyObject *var_p = NULL; - PyObject *var_w = NULL; - PyObject *var_x = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - struct Nuitka_FrameObject *frame_24faaf0922ee17baa8e84fcd48fce6fe; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_24faaf0922ee17baa8e84fcd48fce6fe = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[45]; - assert(var_tot == NULL); - Py_INCREF(tmp_assign_source_1); - var_tot = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe)) { - Py_XDECREF(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe); - -#if _DEBUG_REFCOUNTS - if (cache_frame_24faaf0922ee17baa8e84fcd48fce6fe == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_24faaf0922ee17baa8e84fcd48fce6fe = MAKE_FUNCTION_FRAME(codeobj_24faaf0922ee17baa8e84fcd48fce6fe, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe->m_type_description == NULL); - frame_24faaf0922ee17baa8e84fcd48fce6fe = cache_frame_24faaf0922ee17baa8e84fcd48fce6fe; - - // Push the new frame as the currently active one. - pushFrameStack(frame_24faaf0922ee17baa8e84fcd48fce6fe); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_24faaf0922ee17baa8e84fcd48fce6fe) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame.f_lineno = 110; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 110; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_p; - var_p = tmp_assign_source_4; - Py_INCREF(var_p); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - tmp_assign_source_5 = mod_consts[47]; - { - PyObject *old = var_w; - var_w = tmp_assign_source_5; - Py_INCREF(var_w); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(var_p); - tmp_expression_name_1 = var_p; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[48]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 112; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_8 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_x; - var_x = tmp_assign_source_8; - Py_INCREF(var_x); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_w == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_left_name_1 = var_w; - CHECK_OBJECT(var_x); - tmp_right_name_1 = var_x; - tmp_result = BINARY_OPERATION_MULT_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_assign_source_9 = tmp_left_name_1; - var_w = tmp_assign_source_9; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_tot == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_left_name_2 = var_tot; - if (var_w == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_right_name_2 = var_w; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_10 = tmp_left_name_2; - var_tot = tmp_assign_source_10; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_return_str); - tmp_truth_name_1 = CHECK_IF_TRUE(par_return_str); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - if (var_tot == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 116; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_1 = var_tot; - tmp_compexpr_right_1 = mod_consts[51]; - tmp_condition_result_2 = RICH_COMPARE_GE_NBOOL_OBJECT_FLOAT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 116; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - tmp_expression_name_2 = mod_consts[52]; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[23]); - assert(!(tmp_called_name_1 == NULL)); - if (var_tot == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 117; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = var_tot; - tmp_right_name_3 = mod_consts[51]; - tmp_args_element_name_1 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_FLOAT(tmp_left_name_3, tmp_right_name_3); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 117; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame.f_lineno = 117; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - tmp_expression_name_3 = mod_consts[53]; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[23]); - assert(!(tmp_called_name_2 == NULL)); - if (var_tot == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 119; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = var_tot; - tmp_right_name_4 = mod_consts[54]; - tmp_args_element_name_2 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_FLOAT(tmp_left_name_4, tmp_right_name_4); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 119; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame.f_lineno = 119; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_2:; - goto branch_end_1; - branch_no_1:; - if (var_tot == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 121; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_tot; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_24faaf0922ee17baa8e84fcd48fce6fe); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_24faaf0922ee17baa8e84fcd48fce6fe); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_24faaf0922ee17baa8e84fcd48fce6fe); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_24faaf0922ee17baa8e84fcd48fce6fe, exception_lineno); - } else if (exception_tb->tb_frame != &frame_24faaf0922ee17baa8e84fcd48fce6fe->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_24faaf0922ee17baa8e84fcd48fce6fe, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_24faaf0922ee17baa8e84fcd48fce6fe, - type_description_1, - par_self, - par_return_str, - var_tot, - var_p, - var_w, - var_x - ); - - - // Release cached frame if used for exception. - if (frame_24faaf0922ee17baa8e84fcd48fce6fe == cache_frame_24faaf0922ee17baa8e84fcd48fce6fe) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_24faaf0922ee17baa8e84fcd48fce6fe); - cache_frame_24faaf0922ee17baa8e84fcd48fce6fe = NULL; - } - - assertFrameObject(frame_24faaf0922ee17baa8e84fcd48fce6fe); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_return_str); - Py_DECREF(par_return_str); - par_return_str = NULL; - Py_XDECREF(var_tot); - var_tot = NULL; - Py_XDECREF(var_p); - var_p = NULL; - Py_XDECREF(var_w); - var_w = NULL; - Py_XDECREF(var_x); - var_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_return_str); - Py_DECREF(par_return_str); - par_return_str = NULL; - Py_XDECREF(var_tot); - var_tot = NULL; - Py_XDECREF(var_p); - var_p = NULL; - Py_XDECREF(var_w); - var_w = NULL; - Py_XDECREF(var_x); - var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_ddadc2663250ee51234ad267883b07bc; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ddadc2663250ee51234ad267883b07bc = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ddadc2663250ee51234ad267883b07bc)) { - Py_XDECREF(cache_frame_ddadc2663250ee51234ad267883b07bc); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ddadc2663250ee51234ad267883b07bc == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ddadc2663250ee51234ad267883b07bc = MAKE_FUNCTION_FRAME(codeobj_ddadc2663250ee51234ad267883b07bc, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ddadc2663250ee51234ad267883b07bc->m_type_description == NULL); - frame_ddadc2663250ee51234ad267883b07bc = cache_frame_ddadc2663250ee51234ad267883b07bc; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ddadc2663250ee51234ad267883b07bc); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ddadc2663250ee51234ad267883b07bc) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[0]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - frame_ddadc2663250ee51234ad267883b07bc->m_frame.f_lineno = 130; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ddadc2663250ee51234ad267883b07bc); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ddadc2663250ee51234ad267883b07bc); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ddadc2663250ee51234ad267883b07bc, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ddadc2663250ee51234ad267883b07bc->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ddadc2663250ee51234ad267883b07bc, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ddadc2663250ee51234ad267883b07bc, - type_description_1, - par_self, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ddadc2663250ee51234ad267883b07bc == cache_frame_ddadc2663250ee51234ad267883b07bc) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ddadc2663250ee51234ad267883b07bc); - cache_frame_ddadc2663250ee51234ad267883b07bc = NULL; - } - - assertFrameObject(frame_ddadc2663250ee51234ad267883b07bc); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__10_forward_features(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_samples = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - struct Nuitka_FrameObject *frame_144bb4aa37b13c6906ed75d1916fd2cb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_144bb4aa37b13c6906ed75d1916fd2cb = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb)) { - Py_XDECREF(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_144bb4aa37b13c6906ed75d1916fd2cb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_144bb4aa37b13c6906ed75d1916fd2cb = MAKE_FUNCTION_FRAME(codeobj_144bb4aa37b13c6906ed75d1916fd2cb, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb->m_type_description == NULL); - frame_144bb4aa37b13c6906ed75d1916fd2cb = cache_frame_144bb4aa37b13c6906ed75d1916fd2cb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_144bb4aa37b13c6906ed75d1916fd2cb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_144bb4aa37b13c6906ed75d1916fd2cb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 133; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_144bb4aa37b13c6906ed75d1916fd2cb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_144bb4aa37b13c6906ed75d1916fd2cb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_144bb4aa37b13c6906ed75d1916fd2cb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_144bb4aa37b13c6906ed75d1916fd2cb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_144bb4aa37b13c6906ed75d1916fd2cb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_144bb4aa37b13c6906ed75d1916fd2cb, - type_description_1, - par_self, - par_samples, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_144bb4aa37b13c6906ed75d1916fd2cb == cache_frame_144bb4aa37b13c6906ed75d1916fd2cb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_144bb4aa37b13c6906ed75d1916fd2cb); - cache_frame_144bb4aa37b13c6906ed75d1916fd2cb = NULL; - } - - assertFrameObject(frame_144bb4aa37b13c6906ed75d1916fd2cb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_samples); - Py_DECREF(par_samples); - par_samples = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$base_model$$$function__11_device(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_e2ff967b4add3ba339e6fa020be32f85; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e2ff967b4add3ba339e6fa020be32f85 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e2ff967b4add3ba339e6fa020be32f85)) { - Py_XDECREF(cache_frame_e2ff967b4add3ba339e6fa020be32f85); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e2ff967b4add3ba339e6fa020be32f85 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e2ff967b4add3ba339e6fa020be32f85 = MAKE_FUNCTION_FRAME(codeobj_e2ff967b4add3ba339e6fa020be32f85, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e2ff967b4add3ba339e6fa020be32f85->m_type_description == NULL); - frame_e2ff967b4add3ba339e6fa020be32f85 = cache_frame_e2ff967b4add3ba339e6fa020be32f85; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e2ff967b4add3ba339e6fa020be32f85); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e2ff967b4add3ba339e6fa020be32f85) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - PyObject *tmp_value_name_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - frame_e2ff967b4add3ba339e6fa020be32f85->m_frame.f_lineno = 138; - tmp_value_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - if (tmp_value_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_expression_name_1 = ITERATOR_NEXT(tmp_value_name_1); - Py_DECREF(tmp_value_name_1); - if (tmp_expression_name_1 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "o"; - exception_lineno = 138; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[55]); - Py_DECREF(tmp_expression_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2ff967b4add3ba339e6fa020be32f85); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2ff967b4add3ba339e6fa020be32f85); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2ff967b4add3ba339e6fa020be32f85); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e2ff967b4add3ba339e6fa020be32f85, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e2ff967b4add3ba339e6fa020be32f85->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e2ff967b4add3ba339e6fa020be32f85, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e2ff967b4add3ba339e6fa020be32f85, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_e2ff967b4add3ba339e6fa020be32f85 == cache_frame_e2ff967b4add3ba339e6fa020be32f85) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e2ff967b4add3ba339e6fa020be32f85); - cache_frame_e2ff967b4add3ba339e6fa020be32f85 = NULL; - } - - assertFrameObject(frame_e2ff967b4add3ba339e6fa020be32f85); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__12__dequeue_and_enqueue(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_image_feat = python_pars[1]; - PyObject *par_text_feat = python_pars[2]; - PyObject *par_idxs = python_pars[3]; - PyObject *var_image_feats = NULL; - PyObject *var_text_feats = NULL; - PyObject *var_batch_size = NULL; - PyObject *var_ptr = NULL; - struct Nuitka_FrameObject *frame_c605ec6894b581ddbf6356fbb7c61f54; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_c605ec6894b581ddbf6356fbb7c61f54 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c605ec6894b581ddbf6356fbb7c61f54)) { - Py_XDECREF(cache_frame_c605ec6894b581ddbf6356fbb7c61f54); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c605ec6894b581ddbf6356fbb7c61f54 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c605ec6894b581ddbf6356fbb7c61f54 = MAKE_FUNCTION_FRAME(codeobj_c605ec6894b581ddbf6356fbb7c61f54, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c605ec6894b581ddbf6356fbb7c61f54->m_type_description == NULL); - frame_c605ec6894b581ddbf6356fbb7c61f54 = cache_frame_c605ec6894b581ddbf6356fbb7c61f54; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c605ec6894b581ddbf6356fbb7c61f54); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c605ec6894b581ddbf6356fbb7c61f54) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_image_feat); - tmp_args_element_name_1 = par_image_feat; - frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame.f_lineno = 144; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_image_feats == NULL); - var_image_feats = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_text_feat); - tmp_args_element_name_2 = par_text_feat; - frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame.f_lineno = 145; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_text_feats == NULL); - var_text_feats = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_image_feats); - tmp_expression_name_2 = var_image_feats; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[48]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[45]; - tmp_assign_source_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_batch_size == NULL); - var_batch_size = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_int_arg_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_int_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[57]); - if (tmp_int_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = PyNumber_Int(tmp_int_arg_1); - Py_DECREF(tmp_int_arg_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_ptr == NULL); - var_ptr = tmp_assign_source_4; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_right_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[59]); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_right_name_1 = var_batch_size; - tmp_compexpr_left_1 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[45]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 150; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_1; - if (var_image_feats == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[60]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = var_image_feats; - tmp_ass_subvalue_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[61]); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[62]); - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[63]; - tmp_ass_subscript_1 = PyTuple_New(2); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_ptr); - tmp_start_name_1 = var_ptr; - CHECK_OBJECT(var_ptr); - tmp_left_name_2 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - - tmp_right_name_2 = var_batch_size; - tmp_stop_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_ass_subscript_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subscript_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_ass_subscript_2; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_text_feats); - tmp_expression_name_7 = var_text_feats; - tmp_ass_subvalue_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[61]); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_ass_subscribed_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[65]); - if (tmp_ass_subscribed_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_2); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[63]; - tmp_ass_subscript_2 = PyTuple_New(2); - { - PyObject *tmp_start_name_2; - PyObject *tmp_stop_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyTuple_SET_ITEM0(tmp_ass_subscript_2, 0, tmp_tuple_element_2); - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - - tmp_start_name_2 = var_ptr; - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - - tmp_left_name_3 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - - tmp_right_name_3 = var_batch_size; - tmp_stop_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_stop_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_2, tmp_stop_name_2); - Py_DECREF(tmp_stop_name_2); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_ass_subscript_2, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subscript_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subscript_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_idxs); - tmp_compexpr_left_2 = par_idxs; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_idxs); - tmp_args_element_name_3 = par_idxs; - frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame.f_lineno = 157; - tmp_assign_source_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_idxs; - assert(old != NULL); - par_idxs = tmp_assign_source_5; - Py_DECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_ass_subscript_3; - PyObject *tmp_tuple_element_3; - CHECK_OBJECT(par_idxs); - tmp_expression_name_9 = par_idxs; - tmp_ass_subvalue_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[61]); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_ass_subvalue_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_ass_subscribed_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[67]); - if (tmp_ass_subscribed_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_3); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = mod_consts[63]; - tmp_ass_subscript_3 = PyTuple_New(2); - { - PyObject *tmp_start_name_3; - PyObject *tmp_stop_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyTuple_SET_ITEM0(tmp_ass_subscript_3, 0, tmp_tuple_element_3); - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - - tmp_start_name_3 = var_ptr; - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - - tmp_left_name_4 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - - tmp_right_name_4 = var_batch_size; - tmp_stop_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - if (tmp_stop_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto tuple_build_exception_3; - } - tmp_tuple_element_3 = MAKE_SLICEOBJ2(tmp_start_name_3, tmp_stop_name_3); - Py_DECREF(tmp_stop_name_3); - assert(!(tmp_tuple_element_3 == NULL)); - PyTuple_SET_ITEM(tmp_ass_subscript_3, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subscribed_3); - Py_DECREF(tmp_ass_subscript_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subscribed_3); - Py_DECREF(tmp_ass_subscript_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_5; - PyObject *tmp_right_name_6; - PyObject *tmp_expression_name_11; - if (var_ptr == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[66]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_6 = var_ptr; - if (var_batch_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_5 = var_batch_size; - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_right_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[59]); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_6); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_ptr; - var_ptr = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_4; - PyObject *tmp_ass_subscribed_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_ass_subscript_4; - int tmp_ass_subscript_res_1; - CHECK_OBJECT(var_ptr); - tmp_ass_subvalue_4 = var_ptr; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_ass_subscribed_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[57]); - if (tmp_ass_subscribed_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_ass_subscript_4 = mod_consts[45]; - tmp_ass_subscript_res_1 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_4, tmp_ass_subscript_4, 0, tmp_ass_subvalue_4); - Py_DECREF(tmp_ass_subscribed_4); - if (tmp_ass_subscript_res_1 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c605ec6894b581ddbf6356fbb7c61f54); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c605ec6894b581ddbf6356fbb7c61f54); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c605ec6894b581ddbf6356fbb7c61f54, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c605ec6894b581ddbf6356fbb7c61f54->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c605ec6894b581ddbf6356fbb7c61f54, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c605ec6894b581ddbf6356fbb7c61f54, - type_description_1, - par_self, - par_image_feat, - par_text_feat, - par_idxs, - var_image_feats, - var_text_feats, - var_batch_size, - var_ptr - ); - - - // Release cached frame if used for exception. - if (frame_c605ec6894b581ddbf6356fbb7c61f54 == cache_frame_c605ec6894b581ddbf6356fbb7c61f54) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c605ec6894b581ddbf6356fbb7c61f54); - cache_frame_c605ec6894b581ddbf6356fbb7c61f54 = NULL; - } - - assertFrameObject(frame_c605ec6894b581ddbf6356fbb7c61f54); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_image_feat); - Py_DECREF(par_image_feat); - par_image_feat = NULL; - CHECK_OBJECT(par_text_feat); - Py_DECREF(par_text_feat); - par_text_feat = NULL; - Py_XDECREF(par_idxs); - par_idxs = NULL; - Py_XDECREF(var_image_feats); - var_image_feats = NULL; - Py_XDECREF(var_text_feats); - var_text_feats = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - CHECK_OBJECT(var_ptr); - Py_DECREF(var_ptr); - var_ptr = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_image_feat); - Py_DECREF(par_image_feat); - par_image_feat = NULL; - CHECK_OBJECT(par_text_feat); - Py_DECREF(par_text_feat); - par_text_feat = NULL; - Py_XDECREF(par_idxs); - par_idxs = NULL; - Py_XDECREF(var_image_feats); - var_image_feats = NULL; - Py_XDECREF(var_text_feats); - var_text_feats = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_ptr); - var_ptr = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__13_copy_params(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_model_pair = NULL; - PyObject *var_param = NULL; - PyObject *var_param_m = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_df2391467f85318d759b3b6072f678ab; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_df2391467f85318d759b3b6072f678ab = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_df2391467f85318d759b3b6072f678ab)) { - Py_XDECREF(cache_frame_df2391467f85318d759b3b6072f678ab); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df2391467f85318d759b3b6072f678ab == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df2391467f85318d759b3b6072f678ab = MAKE_FUNCTION_FRAME(codeobj_df2391467f85318d759b3b6072f678ab, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df2391467f85318d759b3b6072f678ab->m_type_description == NULL); - frame_df2391467f85318d759b3b6072f678ab = cache_frame_df2391467f85318d759b3b6072f678ab; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df2391467f85318d759b3b6072f678ab); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df2391467f85318d759b3b6072f678ab) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[68]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 167; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_3 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_model_pair; - var_model_pair = tmp_assign_source_3; - Py_INCREF(var_model_pair); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - tmp_called_name_1 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_model_pair); - tmp_expression_name_2 = var_model_pair; - tmp_subscript_name_1 = mod_consts[45]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 169; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - Py_DECREF(tmp_called_instance_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_model_pair); - tmp_expression_name_3 = var_model_pair; - tmp_subscript_name_2 = mod_consts[47]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 169; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[46]); - Py_DECREF(tmp_called_instance_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 169; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 168; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_3 = tmp_for_loop_2__iter_value; - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[69]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 168; - goto try_except_handler_5; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_4; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_param; - var_param = tmp_assign_source_9; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_param_m; - var_param_m = tmp_assign_source_10; - Py_INCREF(var_param_m); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(var_param_m); - tmp_expression_name_5 = var_param_m; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[70]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[71]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_param); - tmp_expression_name_6 = var_param; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[70]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - frame_df2391467f85318d759b3b6072f678ab->m_frame.f_lineno = 171; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = Py_False; - if (var_param_m == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_assattr_target_1 = var_param_m; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[73], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df2391467f85318d759b3b6072f678ab); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df2391467f85318d759b3b6072f678ab); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df2391467f85318d759b3b6072f678ab, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df2391467f85318d759b3b6072f678ab->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df2391467f85318d759b3b6072f678ab, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df2391467f85318d759b3b6072f678ab, - type_description_1, - par_self, - var_model_pair, - var_param, - var_param_m - ); - - - // Release cached frame if used for exception. - if (frame_df2391467f85318d759b3b6072f678ab == cache_frame_df2391467f85318d759b3b6072f678ab) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df2391467f85318d759b3b6072f678ab); - cache_frame_df2391467f85318d759b3b6072f678ab = NULL; - } - - assertFrameObject(frame_df2391467f85318d759b3b6072f678ab); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__14__momentum_update(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_model_pair = NULL; - PyObject *var_param = NULL; - PyObject *var_param_m = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_7a0e9b8ed65f5d485709ab54ee4f9399; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399)) { - Py_XDECREF(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 = MAKE_FUNCTION_FRAME(codeobj_7a0e9b8ed65f5d485709ab54ee4f9399, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_type_description == NULL); - frame_7a0e9b8ed65f5d485709ab54ee4f9399 = cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a0e9b8ed65f5d485709ab54ee4f9399); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a0e9b8ed65f5d485709ab54ee4f9399) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[68]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 176; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_3 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_model_pair; - var_model_pair = tmp_assign_source_3; - Py_INCREF(var_model_pair); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - tmp_called_name_1 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_model_pair); - tmp_expression_name_2 = var_model_pair; - tmp_subscript_name_1 = mod_consts[45]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame.f_lineno = 178; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[46]); - Py_DECREF(tmp_called_instance_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_model_pair); - tmp_expression_name_3 = var_model_pair; - tmp_subscript_name_2 = mod_consts[47]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame.f_lineno = 178; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[46]); - Py_DECREF(tmp_called_instance_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 178; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame.f_lineno = 177; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_3 = tmp_for_loop_2__iter_value; - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[69]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 177; - goto try_except_handler_5; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_4; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_param; - var_param = tmp_assign_source_9; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_param_m; - var_param_m = tmp_assign_source_10; - Py_INCREF(var_param_m); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_right_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(var_param_m); - tmp_expression_name_4 = var_param_m; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[70]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_expression_name_5 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[74]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_param); - tmp_expression_name_6 = var_param; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[70]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_left_name_4 = mod_consts[75]; - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_expression_name_7 = par_self; - tmp_right_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[74]); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 181; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_right_name_3 = BINARY_OPERATION_SUB_OBJECT_FLOAT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 181; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_right_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - tmp_assattr_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - if (var_param_m == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - - tmp_assattr_target_1 = var_param_m; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[70], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a0e9b8ed65f5d485709ab54ee4f9399); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a0e9b8ed65f5d485709ab54ee4f9399); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a0e9b8ed65f5d485709ab54ee4f9399, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a0e9b8ed65f5d485709ab54ee4f9399->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a0e9b8ed65f5d485709ab54ee4f9399, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a0e9b8ed65f5d485709ab54ee4f9399, - type_description_1, - par_self, - var_model_pair, - var_param, - var_param_m - ); - - - // Release cached frame if used for exception. - if (frame_7a0e9b8ed65f5d485709ab54ee4f9399 == cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399); - cache_frame_7a0e9b8ed65f5d485709ab54ee4f9399 = NULL; - } - - assertFrameObject(frame_7a0e9b8ed65f5d485709ab54ee4f9399); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_model_pair); - var_model_pair = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_param_m); - var_param_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__15_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_ctx = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_output = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_52cd4a3cdc9ed073800613d10eeacfee; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_d4679424c0c532aee63d5c7dfe50173a_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_52cd4a3cdc9ed073800613d10eeacfee = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_52cd4a3cdc9ed073800613d10eeacfee)) { - Py_XDECREF(cache_frame_52cd4a3cdc9ed073800613d10eeacfee); - -#if _DEBUG_REFCOUNTS - if (cache_frame_52cd4a3cdc9ed073800613d10eeacfee == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_52cd4a3cdc9ed073800613d10eeacfee = MAKE_FUNCTION_FRAME(codeobj_52cd4a3cdc9ed073800613d10eeacfee, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_52cd4a3cdc9ed073800613d10eeacfee->m_type_description == NULL); - frame_52cd4a3cdc9ed073800613d10eeacfee = cache_frame_52cd4a3cdc9ed073800613d10eeacfee; - - // Push the new frame as the currently active one. - pushFrameStack(frame_52cd4a3cdc9ed073800613d10eeacfee); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_52cd4a3cdc9ed073800613d10eeacfee) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_52cd4a3cdc9ed073800613d10eeacfee->m_frame.f_lineno = 194; - tmp_xrange_low_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[77]); - Py_DECREF(tmp_called_instance_1); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_3; - } - if (isFrameUnusable(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2)) { - Py_XDECREF(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 = MAKE_FUNCTION_FRAME(codeobj_d4679424c0c532aee63d5c7dfe50173a, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2->m_type_description == NULL); - frame_d4679424c0c532aee63d5c7dfe50173a_2 = cache_frame_d4679424c0c532aee63d5c7dfe50173a_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d4679424c0c532aee63d5c7dfe50173a_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d4679424c0c532aee63d5c7dfe50173a_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 193; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_5 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_5; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[78]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = par_x; - frame_d4679424c0c532aee63d5c7dfe50173a_2->m_frame.f_lineno = 194; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d4679424c0c532aee63d5c7dfe50173a_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d4679424c0c532aee63d5c7dfe50173a_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d4679424c0c532aee63d5c7dfe50173a_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d4679424c0c532aee63d5c7dfe50173a_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d4679424c0c532aee63d5c7dfe50173a_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d4679424c0c532aee63d5c7dfe50173a_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d4679424c0c532aee63d5c7dfe50173a_2, - type_description_2, - outline_0_var__, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_d4679424c0c532aee63d5c7dfe50173a_2 == cache_frame_d4679424c0c532aee63d5c7dfe50173a_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d4679424c0c532aee63d5c7dfe50173a_2); - cache_frame_d4679424c0c532aee63d5c7dfe50173a_2 = NULL; - } - - assertFrameObject(frame_d4679424c0c532aee63d5c7dfe50173a_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 193; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_output == NULL); - var_output = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[76]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[80]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_output); - tmp_args_element_name_2 = var_output; - if (par_x == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_x; - frame_52cd4a3cdc9ed073800613d10eeacfee->m_frame.f_lineno = 196; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_tuple_arg_1; - if (var_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[81]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_arg_1 = var_output; - tmp_return_value = PySequence_Tuple(tmp_tuple_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_52cd4a3cdc9ed073800613d10eeacfee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_52cd4a3cdc9ed073800613d10eeacfee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_52cd4a3cdc9ed073800613d10eeacfee); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_52cd4a3cdc9ed073800613d10eeacfee, exception_lineno); - } else if (exception_tb->tb_frame != &frame_52cd4a3cdc9ed073800613d10eeacfee->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_52cd4a3cdc9ed073800613d10eeacfee, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_52cd4a3cdc9ed073800613d10eeacfee, - type_description_1, - par_ctx, - par_x, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_52cd4a3cdc9ed073800613d10eeacfee == cache_frame_52cd4a3cdc9ed073800613d10eeacfee) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_52cd4a3cdc9ed073800613d10eeacfee); - cache_frame_52cd4a3cdc9ed073800613d10eeacfee = NULL; - } - - assertFrameObject(frame_52cd4a3cdc9ed073800613d10eeacfee); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_output); - var_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__16_backward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_ctx = python_pars[0]; - PyObject *par_grads = python_pars[1]; - PyObject *var_all_gradients = NULL; - struct Nuitka_FrameObject *frame_0b56832b17e824e3961db8ea96339fc7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_0b56832b17e824e3961db8ea96339fc7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0b56832b17e824e3961db8ea96339fc7)) { - Py_XDECREF(cache_frame_0b56832b17e824e3961db8ea96339fc7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0b56832b17e824e3961db8ea96339fc7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0b56832b17e824e3961db8ea96339fc7 = MAKE_FUNCTION_FRAME(codeobj_0b56832b17e824e3961db8ea96339fc7, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0b56832b17e824e3961db8ea96339fc7->m_type_description == NULL); - frame_0b56832b17e824e3961db8ea96339fc7 = cache_frame_0b56832b17e824e3961db8ea96339fc7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0b56832b17e824e3961db8ea96339fc7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0b56832b17e824e3961db8ea96339fc7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_grads); - tmp_args_element_name_1 = par_grads; - frame_0b56832b17e824e3961db8ea96339fc7->m_frame.f_lineno = 201; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[82], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_all_gradients == NULL); - var_all_gradients = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_all_gradients); - tmp_args_element_name_2 = var_all_gradients; - frame_0b56832b17e824e3961db8ea96339fc7->m_frame.f_lineno = 202; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[83], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_3; - if (var_all_gradients == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[84]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = var_all_gradients; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_0b56832b17e824e3961db8ea96339fc7->m_frame.f_lineno = 203; - tmp_subscript_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[85]); - Py_DECREF(tmp_called_instance_3); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b56832b17e824e3961db8ea96339fc7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b56832b17e824e3961db8ea96339fc7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0b56832b17e824e3961db8ea96339fc7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0b56832b17e824e3961db8ea96339fc7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0b56832b17e824e3961db8ea96339fc7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0b56832b17e824e3961db8ea96339fc7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0b56832b17e824e3961db8ea96339fc7, - type_description_1, - par_ctx, - par_grads, - var_all_gradients - ); - - - // Release cached frame if used for exception. - if (frame_0b56832b17e824e3961db8ea96339fc7 == cache_frame_0b56832b17e824e3961db8ea96339fc7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0b56832b17e824e3961db8ea96339fc7); - cache_frame_0b56832b17e824e3961db8ea96339fc7 = NULL; - } - - assertFrameObject(frame_0b56832b17e824e3961db8ea96339fc7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_grads); - par_grads = NULL; - Py_XDECREF(var_all_gradients); - var_all_gradients = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_ctx); - Py_DECREF(par_ctx); - par_ctx = NULL; - Py_XDECREF(par_grads); - par_grads = NULL; - Py_XDECREF(var_all_gradients); - var_all_gradients = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__17_all_gather_with_grad(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tensors = python_pars[0]; - PyObject *var_world_size = NULL; - PyObject *var_tensor_all = NULL; - struct Nuitka_FrameObject *frame_a1193c5a2efa4e8420ff62b0905f950b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_a1193c5a2efa4e8420ff62b0905f950b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a1193c5a2efa4e8420ff62b0905f950b)) { - Py_XDECREF(cache_frame_a1193c5a2efa4e8420ff62b0905f950b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a1193c5a2efa4e8420ff62b0905f950b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a1193c5a2efa4e8420ff62b0905f950b = MAKE_FUNCTION_FRAME(codeobj_a1193c5a2efa4e8420ff62b0905f950b, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a1193c5a2efa4e8420ff62b0905f950b->m_type_description == NULL); - frame_a1193c5a2efa4e8420ff62b0905f950b = cache_frame_a1193c5a2efa4e8420ff62b0905f950b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a1193c5a2efa4e8420ff62b0905f950b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a1193c5a2efa4e8420ff62b0905f950b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame.f_lineno = 212; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[77]); - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_world_size == NULL); - var_world_size = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_world_size); - tmp_compexpr_left_1 = var_world_size; - tmp_compexpr_right_1 = mod_consts[47]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 214; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(par_tensors); - tmp_return_value = par_tensors; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[86]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[86]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_tensors); - tmp_args_element_name_1 = par_tensors; - frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame.f_lineno = 218; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[87], tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_tensor_all == NULL); - var_tensor_all = tmp_assign_source_2; - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[88]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_tensor_all); - tmp_tuple_element_1 = var_tensor_all; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[89]); - frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame.f_lineno = 220; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1193c5a2efa4e8420ff62b0905f950b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1193c5a2efa4e8420ff62b0905f950b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1193c5a2efa4e8420ff62b0905f950b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a1193c5a2efa4e8420ff62b0905f950b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a1193c5a2efa4e8420ff62b0905f950b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a1193c5a2efa4e8420ff62b0905f950b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a1193c5a2efa4e8420ff62b0905f950b, - type_description_1, - par_tensors, - var_world_size, - var_tensor_all - ); - - - // Release cached frame if used for exception. - if (frame_a1193c5a2efa4e8420ff62b0905f950b == cache_frame_a1193c5a2efa4e8420ff62b0905f950b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a1193c5a2efa4e8420ff62b0905f950b); - cache_frame_a1193c5a2efa4e8420ff62b0905f950b = NULL; - } - - assertFrameObject(frame_a1193c5a2efa4e8420ff62b0905f950b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tensors); - par_tensors = NULL; - CHECK_OBJECT(var_world_size); - Py_DECREF(var_world_size); - var_world_size = NULL; - Py_XDECREF(var_tensor_all); - var_tensor_all = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tensors); - par_tensors = NULL; - Py_XDECREF(var_world_size); - var_world_size = NULL; - Py_XDECREF(var_tensor_all); - var_tensor_all = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__18_concat_all_gather(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tensor = python_pars[0]; - PyObject *var_tensors_gather = NULL; - PyObject *var_output = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_d8bb50cdd0a01bbe722c9ae9bf67afe9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - struct Nuitka_FrameObject *frame_88fb76029dafdffb63b52d1203b590ab_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_88fb76029dafdffb63b52d1203b590ab_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9)) { - Py_XDECREF(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = MAKE_FUNCTION_FRAME(codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_type_description == NULL); - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 230; - tmp_operand_name_1 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(par_tensor); - tmp_return_value = par_tensor; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - { - PyObject *tmp_assign_source_1; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 234; - tmp_xrange_low_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[77]); - Py_DECREF(tmp_called_instance_1); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_3; - } - if (isFrameUnusable(cache_frame_88fb76029dafdffb63b52d1203b590ab_2)) { - Py_XDECREF(cache_frame_88fb76029dafdffb63b52d1203b590ab_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_88fb76029dafdffb63b52d1203b590ab_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_88fb76029dafdffb63b52d1203b590ab_2 = MAKE_FUNCTION_FRAME(codeobj_88fb76029dafdffb63b52d1203b590ab, module_models$base_model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_88fb76029dafdffb63b52d1203b590ab_2->m_type_description == NULL); - frame_88fb76029dafdffb63b52d1203b590ab_2 = cache_frame_88fb76029dafdffb63b52d1203b590ab_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_88fb76029dafdffb63b52d1203b590ab_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_88fb76029dafdffb63b52d1203b590ab_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 233; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_5 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_5; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[92]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - if (par_tensor == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = par_tensor; - frame_88fb76029dafdffb63b52d1203b590ab_2->m_frame.f_lineno = 234; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_88fb76029dafdffb63b52d1203b590ab_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_88fb76029dafdffb63b52d1203b590ab_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_88fb76029dafdffb63b52d1203b590ab_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_88fb76029dafdffb63b52d1203b590ab_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_88fb76029dafdffb63b52d1203b590ab_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_88fb76029dafdffb63b52d1203b590ab_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_88fb76029dafdffb63b52d1203b590ab_2, - type_description_2, - outline_0_var__, - par_tensor - ); - - - // Release cached frame if used for exception. - if (frame_88fb76029dafdffb63b52d1203b590ab_2 == cache_frame_88fb76029dafdffb63b52d1203b590ab_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_88fb76029dafdffb63b52d1203b590ab_2); - cache_frame_88fb76029dafdffb63b52d1203b590ab_2 = NULL; - } - - assertFrameObject(frame_88fb76029dafdffb63b52d1203b590ab_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 233; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_tensors_gather == NULL); - var_tensors_gather = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[76]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[80]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_tensors_gather); - tmp_tuple_element_1 = var_tensors_gather; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_tensor == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = par_tensor; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[94]); - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 236; - tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[88]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (var_tensors_gather == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_tensors_gather; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[89]); - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame.f_lineno = 238; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d8bb50cdd0a01bbe722c9ae9bf67afe9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d8bb50cdd0a01bbe722c9ae9bf67afe9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d8bb50cdd0a01bbe722c9ae9bf67afe9, - type_description_1, - par_tensor, - var_tensors_gather, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 == cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - cache_frame_d8bb50cdd0a01bbe722c9ae9bf67afe9 = NULL; - } - - assertFrameObject(frame_d8bb50cdd0a01bbe722c9ae9bf67afe9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - CHECK_OBJECT(var_output); - tmp_return_value = var_output; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(var_tensors_gather); - var_tensors_gather = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(var_tensors_gather); - var_tensors_gather = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$base_model$$$function__19_tile(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_x = python_pars[0]; - PyObject *par_dim = python_pars[1]; - PyObject *par_n_tile = python_pars[2]; - PyObject *var_init_dim = NULL; - PyObject *var_repeat_idx = NULL; - PyObject *var_order_index = NULL; - PyObject *outline_0_var_i = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_e5dd198ac569e0b6dd733a992ab7706f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - struct Nuitka_FrameObject *frame_be04ffc70de33534e233bcc063a2873b_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_be04ffc70de33534e233bcc063a2873b_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e5dd198ac569e0b6dd733a992ab7706f = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e5dd198ac569e0b6dd733a992ab7706f)) { - Py_XDECREF(cache_frame_e5dd198ac569e0b6dd733a992ab7706f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e5dd198ac569e0b6dd733a992ab7706f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e5dd198ac569e0b6dd733a992ab7706f = MAKE_FUNCTION_FRAME(codeobj_e5dd198ac569e0b6dd733a992ab7706f, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e5dd198ac569e0b6dd733a992ab7706f->m_type_description == NULL); - frame_e5dd198ac569e0b6dd733a992ab7706f = cache_frame_e5dd198ac569e0b6dd733a992ab7706f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e5dd198ac569e0b6dd733a992ab7706f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e5dd198ac569e0b6dd733a992ab7706f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_x); - tmp_called_instance_1 = par_x; - CHECK_OBJECT(par_dim); - tmp_args_element_name_1 = par_dim; - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 243; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[97], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_init_dim == NULL); - var_init_dim = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_2; - tmp_left_name_1 = LIST_COPY(mod_consts[98]); - if (par_x == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_x; - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 244; - tmp_right_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[99]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 244; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_MULT_OBJECT_LIST_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_repeat_idx == NULL); - var_repeat_idx = tmp_assign_source_2; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(par_n_tile); - tmp_ass_subvalue_1 = par_n_tile; - CHECK_OBJECT(var_repeat_idx); - tmp_ass_subscribed_1 = var_repeat_idx; - if (par_dim == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 245; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscript_1 = par_dim; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_dircall_arg2_1; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_x; - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[100]); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_repeat_idx == NULL) { - Py_DECREF(tmp_dircall_arg1_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[101]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_dircall_arg2_1 = var_repeat_idx; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_assign_source_3 = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[102]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[103]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[103]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[104]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - CHECK_OBJECT(var_init_dim); - tmp_xrange_low_1 = var_init_dim; - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_5 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - tmp_assign_source_6 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_6; - } - if (isFrameUnusable(cache_frame_be04ffc70de33534e233bcc063a2873b_2)) { - Py_XDECREF(cache_frame_be04ffc70de33534e233bcc063a2873b_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_be04ffc70de33534e233bcc063a2873b_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_be04ffc70de33534e233bcc063a2873b_2 = MAKE_FUNCTION_FRAME(codeobj_be04ffc70de33534e233bcc063a2873b, module_models$base_model, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_be04ffc70de33534e233bcc063a2873b_2->m_type_description == NULL); - frame_be04ffc70de33534e233bcc063a2873b_2 = cache_frame_be04ffc70de33534e233bcc063a2873b_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_be04ffc70de33534e233bcc063a2873b_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_be04ffc70de33534e233bcc063a2873b_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "ooo"; - exception_lineno = 248; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_8 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_i; - outline_0_var_i = tmp_assign_source_8; - Py_INCREF(outline_0_var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_4; - PyObject *tmp_right_name_3; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (var_init_dim == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - - tmp_left_name_3 = var_init_dim; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[103]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[103]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[106]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - if (par_n_tile == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[107]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_4 = par_n_tile; - frame_be04ffc70de33534e233bcc063a2873b_2->m_frame.f_lineno = 248; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - tmp_left_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(outline_0_var_i); - tmp_right_name_3 = outline_0_var_i; - tmp_append_value_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "ooo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_args_element_name_3 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_args_element_name_3); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be04ffc70de33534e233bcc063a2873b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be04ffc70de33534e233bcc063a2873b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be04ffc70de33534e233bcc063a2873b_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_be04ffc70de33534e233bcc063a2873b_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_be04ffc70de33534e233bcc063a2873b_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_be04ffc70de33534e233bcc063a2873b_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_be04ffc70de33534e233bcc063a2873b_2, - type_description_2, - outline_0_var_i, - var_init_dim, - par_n_tile - ); - - - // Release cached frame if used for exception. - if (frame_be04ffc70de33534e233bcc063a2873b_2 == cache_frame_be04ffc70de33534e233bcc063a2873b_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_be04ffc70de33534e233bcc063a2873b_2); - cache_frame_be04ffc70de33534e233bcc063a2873b_2 = NULL; - } - - assertFrameObject(frame_be04ffc70de33534e233bcc063a2873b_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_i); - outline_0_var_i = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_i); - outline_0_var_i = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 248; - goto frame_exception_exit_1; - outline_result_1:; - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 248; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 247; - tmp_assign_source_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_order_index == NULL); - var_order_index = tmp_assign_source_4; - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_7; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[108]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_args_element_name_5 = par_x; - if (par_dim == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_6 = par_dim; - CHECK_OBJECT(var_order_index); - tmp_expression_name_6 = var_order_index; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[109]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_expression_name_7 = par_x; - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[55]); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 250; - tmp_args_element_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_8); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame.f_lineno = 250; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5dd198ac569e0b6dd733a992ab7706f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5dd198ac569e0b6dd733a992ab7706f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5dd198ac569e0b6dd733a992ab7706f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e5dd198ac569e0b6dd733a992ab7706f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e5dd198ac569e0b6dd733a992ab7706f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e5dd198ac569e0b6dd733a992ab7706f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e5dd198ac569e0b6dd733a992ab7706f, - type_description_1, - par_x, - par_dim, - par_n_tile, - var_init_dim, - var_repeat_idx, - var_order_index - ); - - - // Release cached frame if used for exception. - if (frame_e5dd198ac569e0b6dd733a992ab7706f == cache_frame_e5dd198ac569e0b6dd733a992ab7706f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e5dd198ac569e0b6dd733a992ab7706f); - cache_frame_e5dd198ac569e0b6dd733a992ab7706f = NULL; - } - - assertFrameObject(frame_e5dd198ac569e0b6dd733a992ab7706f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - Py_XDECREF(par_n_tile); - par_n_tile = NULL; - Py_XDECREF(var_init_dim); - var_init_dim = NULL; - Py_XDECREF(var_repeat_idx); - var_repeat_idx = NULL; - Py_XDECREF(var_order_index); - var_order_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - Py_XDECREF(par_n_tile); - par_n_tile = NULL; - Py_XDECREF(var_init_dim); - var_init_dim = NULL; - Py_XDECREF(var_repeat_idx); - var_repeat_idx = NULL; - Py_XDECREF(var_order_index); - var_order_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__10_forward_features() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__10_forward_features, - mod_consts[157], -#if PYTHON_VERSION >= 0x300 - mod_consts[158], -#endif - codeobj_144bb4aa37b13c6906ed75d1916fd2cb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__11_device() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__11_device, - mod_consts[55], -#if PYTHON_VERSION >= 0x300 - mod_consts[159], -#endif - codeobj_e2ff967b4add3ba339e6fa020be32f85, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__12__dequeue_and_enqueue(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__12__dequeue_and_enqueue, - mod_consts[165], -#if PYTHON_VERSION >= 0x300 - mod_consts[166], -#endif - codeobj_c605ec6894b581ddbf6356fbb7c61f54, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__13_copy_params() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__13_copy_params, - mod_consts[169], -#if PYTHON_VERSION >= 0x300 - mod_consts[170], -#endif - codeobj_df2391467f85318d759b3b6072f678ab, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__14__momentum_update() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__14__momentum_update, - mod_consts[171], -#if PYTHON_VERSION >= 0x300 - mod_consts[172], -#endif - codeobj_7a0e9b8ed65f5d485709ab54ee4f9399, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__15_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__15_forward, - mod_consts[177], -#if PYTHON_VERSION >= 0x300 - mod_consts[178], -#endif - codeobj_52cd4a3cdc9ed073800613d10eeacfee, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__16_backward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__16_backward, - mod_consts[179], -#if PYTHON_VERSION >= 0x300 - mod_consts[180], -#endif - codeobj_0b56832b17e824e3961db8ea96339fc7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__17_all_gather_with_grad() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__17_all_gather_with_grad, - mod_consts[181], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_a1193c5a2efa4e8420ff62b0905f950b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[90], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__18_concat_all_gather() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__18_concat_all_gather, - mod_consts[56], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_d8bb50cdd0a01bbe722c9ae9bf67afe9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[96], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__19_tile() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__19_tile, - mod_consts[182], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_e5dd198ac569e0b6dd733a992ab7706f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__1___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__1___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[138], -#endif - codeobj_e8232c1f8311141eab7a90dbfd6310ca, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__2_device() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__2_device, - mod_consts[55], -#if PYTHON_VERSION >= 0x300 - mod_consts[140], -#endif - codeobj_194aa42a14f75d8194f56d292c57333b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__3_load_checkpoint() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__3_load_checkpoint, - mod_consts[41], -#if PYTHON_VERSION >= 0x300 - mod_consts[141], -#endif - codeobj_efb0ad1e6b4110725f2565598950e915, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[27], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__4_from_pretrained, - mod_consts[143], -#if PYTHON_VERSION >= 0x300 - mod_consts[144], -#endif - codeobj_1636a0b0747f01d69319312edd40dcbb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[32], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__5_default_config_path() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__5_default_config_path, - mod_consts[29], -#if PYTHON_VERSION >= 0x300 - mod_consts[145], -#endif - codeobj_69c403ba983164d79214cd1a92c3e484, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__6_load_checkpoint_from_config() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__6_load_checkpoint_from_config, - mod_consts[146], -#if PYTHON_VERSION >= 0x300 - mod_consts[147], -#endif - codeobj_8af0987e214bb6e30431e9b2bdcfbb14, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - mod_consts[44], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__7_before_evaluation() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__7_before_evaluation, - mod_consts[148], -#if PYTHON_VERSION >= 0x300 - mod_consts[149], -#endif - codeobj_9310af7aa8323cc1c5740553d51f888b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__8_show_n_params(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__8_show_n_params, - mod_consts[151], -#if PYTHON_VERSION >= 0x300 - mod_consts[152], -#endif - codeobj_24faaf0922ee17baa8e84fcd48fce6fe, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$base_model$$$function__9___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$base_model$$$function__9___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[156], -#endif - codeobj_ddadc2663250ee51234ad267883b07bc, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$base_model, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$base_model[] = { - impl_models$base_model$$$function__1___init__, - impl_models$base_model$$$function__2_device, - impl_models$base_model$$$function__3_load_checkpoint, - impl_models$base_model$$$function__4_from_pretrained, - impl_models$base_model$$$function__5_default_config_path, - impl_models$base_model$$$function__6_load_checkpoint_from_config, - impl_models$base_model$$$function__7_before_evaluation, - impl_models$base_model$$$function__8_show_n_params, - impl_models$base_model$$$function__9___init__, - impl_models$base_model$$$function__10_forward_features, - impl_models$base_model$$$function__11_device, - impl_models$base_model$$$function__12__dequeue_and_enqueue, - impl_models$base_model$$$function__13_copy_params, - impl_models$base_model$$$function__14__momentum_update, - impl_models$base_model$$$function__15_forward, - impl_models$base_model$$$function__16_backward, - impl_models$base_model$$$function__17_all_gather_with_grad, - impl_models$base_model$$$function__18_concat_all_gather, - impl_models$base_model$$$function__19_tile, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$base_model; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$base_model) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$base_model[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$base_model, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$base_model(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$base_model = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.base_model: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.base_model: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.base_model: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$base_model\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$base_model = MODULE_DICT(module_models$base_model); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$base_model, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$base_model); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$base_model); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_2_var___class__ = NULL; - PyObject *outline_3_var___class__ = NULL; - PyObject *outline_4_var___class__ = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - struct Nuitka_FrameObject *frame_3da92d637f10e0e2fa696c97d85e96aa; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$base_model$$$class__1_BaseModel_20 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_19b8ea77f1a4d1b574ae0e072b660e0b_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *locals_models$base_model$$$class__2_BaseEncoder_124 = NULL; - struct Nuitka_FrameObject *frame_9f6b0b8f837711c1f7a8dbc49dea079b_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *locals_models$base_model$$$class__3_SharedQueueMixin_140 = NULL; - struct Nuitka_FrameObject *frame_d71d7f2d6ffa38c985737620f54130a1_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = NULL; - struct Nuitka_FrameObject *frame_922346e330baabd5dec3a0e5d0cef592_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_922346e330baabd5dec3a0e5d0cef592_5 = NULL; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *locals_models$base_model$$$class__5_GatherLayer_185 = NULL; - struct Nuitka_FrameObject *frame_6bb53d881ab90d043e76e8acd0c190e8_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[110]; - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[111], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[112], tmp_assign_source_2); - } - // Frame without reuse. - frame_3da92d637f10e0e2fa696c97d85e96aa = MAKE_MODULE_FRAME(codeobj_3da92d637f10e0e2fa696c97d85e96aa, module_models$base_model); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_3da92d637f10e0e2fa696c97d85e96aa); - assert(Py_REFCNT(frame_3da92d637f10e0e2fa696c97d85e96aa) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[113]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[113]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[114], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[113]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[113]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[115], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[116], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[20]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 8; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 9; - tmp_assign_source_5 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_5 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[117]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 11; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[103], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[2]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 12; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[118]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 13; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$base_model, - mod_consts[119], - mod_consts[45] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[119]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[119], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[120]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[121]; - tmp_level_name_5 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 14; - tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_9; - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$base_model, - mod_consts[6], - mod_consts[45] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[6]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$base_model, - mod_consts[91], - mod_consts[45] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[91]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[91], tmp_assign_source_11); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[122]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[123]; - tmp_level_name_6 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 15; - tmp_assign_source_12 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_4 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$base_model, - mod_consts[35], - mod_consts[45] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[35]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[35], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_5 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$base_model, - mod_consts[5], - mod_consts[45] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[5]); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_14); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[124]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[125]; - tmp_level_name_7 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 16; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$base_model, - mod_consts[28], - mod_consts[45] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[28]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[126]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$base_model; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = Py_None; - tmp_level_name_8 = mod_consts[45]; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 17; - tmp_assign_source_16 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[126], tmp_assign_source_16); - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[119]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[119]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[127]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_assign_source_17 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_17, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_18 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_18; - } - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[128]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[45]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_20 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_20; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[129]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[129]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_tuple_element_2 = mod_consts[130]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 20; - tmp_assign_source_21 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_21; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[131]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[133]; - tmp_getattr_default_1 = mod_consts[134]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[133]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_3; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 20; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_3; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_22; - } - branch_end_2:; - { - PyObject *tmp_assign_source_23; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$base_model$$$class__1_BaseModel_20 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[136]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[111], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[130]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - if (isFrameUnusable(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2)) { - Py_XDECREF(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = MAKE_FUNCTION_FRAME(codeobj_19b8ea77f1a4d1b574ae0e072b660e0b, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_type_description == NULL); - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__1___init__(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[139]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_condition_result_6 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - tmp_called_name_2 = PyObject_GetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[139]); - - if (unlikely(tmp_called_name_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[139]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$base_model$$$function__2_device(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 26; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - goto condexpr_end_3; - condexpr_false_3:; - tmp_called_name_3 = (PyObject *)&PyProperty_Type; - - - tmp_args_element_name_2 = MAKE_FUNCTION_models$base_model$$$function__2_device(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 26; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - condexpr_end_3:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[55], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__3_load_checkpoint(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[41], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_classmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_condition_result_7 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - tmp_called_name_4 = PyObject_GetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (unlikely(tmp_called_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[142]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_3 = MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 61; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - goto condexpr_end_4; - condexpr_false_4:; - - - tmp_classmethod_arg_1 = MAKE_FUNCTION_models$base_model$$$function__4_from_pretrained(); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1); - Py_DECREF(tmp_classmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_4:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[143], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_4; - PyObject *tmp_classmethod_arg_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_condition_result_8 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - tmp_called_name_5 = PyObject_GetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[142]); - - if (unlikely(tmp_called_name_5 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[142]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_4 = MAKE_FUNCTION_models$base_model$$$function__5_default_config_path(); - - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame.f_lineno = 77; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_4); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - goto condexpr_end_5; - condexpr_false_5:; - - - tmp_classmethod_arg_2 = MAKE_FUNCTION_models$base_model$$$function__5_default_config_path(); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_2); - Py_DECREF(tmp_classmethod_arg_2); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_5:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[29], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__6_load_checkpoint_from_config(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[146], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__7_before_evaluation(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[148], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[150]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__8_show_n_params(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[151], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_19b8ea77f1a4d1b574ae0e072b660e0b_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_19b8ea77f1a4d1b574ae0e072b660e0b_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_19b8ea77f1a4d1b574ae0e072b660e0b_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 == cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - cache_frame_19b8ea77f1a4d1b574ae0e072b660e0b_2 = NULL; - } - - assertFrameObject(frame_19b8ea77f1a4d1b574ae0e072b660e0b_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_5; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_9 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_9 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_9 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__1_BaseModel_20, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - branch_no_4:; - { - PyObject *tmp_assign_source_24; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_6 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[130]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$base_model$$$class__1_BaseModel_20; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 20; - tmp_assign_source_24 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_5; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_24); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_23 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_23); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_DECREF(locals_models$base_model$$$class__1_BaseModel_20); - locals_models$base_model$$$class__1_BaseModel_20 = NULL; - goto try_return_handler_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__1_BaseModel_20); - locals_models$base_model$$$class__1_BaseModel_20 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 20; - goto try_except_handler_3; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[130], tmp_assign_source_23); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[119]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[119]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[127]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_assign_source_25 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_25, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_26 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_26; - } - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_10; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_11; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[128]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - goto condexpr_end_6; - condexpr_false_6:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_condition_result_11 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[45]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - goto condexpr_end_7; - condexpr_false_7:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_7:; - condexpr_end_6:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_28 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_12 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_13; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[129]); - tmp_condition_result_13 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[129]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_tuple_element_6 = mod_consts[154]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 124; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_29; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[131]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_condition_result_14 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[133]; - tmp_getattr_default_2 = mod_consts[134]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[133]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_6; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 124; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_6; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_30; - tmp_assign_source_30 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_30; - } - branch_end_6:; - { - PyObject *tmp_assign_source_31; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$base_model$$$class__2_BaseEncoder_124 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[111], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[154]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - if (isFrameUnusable(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3)) { - Py_XDECREF(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = MAKE_FUNCTION_FRAME(codeobj_9f6b0b8f837711c1f7a8dbc49dea079b, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_type_description == NULL); - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_2[1]; - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__9___init__(tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$base_model$$$function__10_forward_features(); - - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[157], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_6; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[139]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - tmp_condition_result_15 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - tmp_called_name_8 = PyObject_GetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[139]); - - if (unlikely(tmp_called_name_8 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[139]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_args_element_name_5 = MAKE_FUNCTION_models$base_model$$$function__11_device(); - - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_frame.f_lineno = 135; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_5); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_called_name_9 = (PyObject *)&PyProperty_Type; - - - tmp_args_element_name_6 = MAKE_FUNCTION_models$base_model$$$function__11_device(); - - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_frame.f_lineno = 135; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_6); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - condexpr_end_8:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[55], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9f6b0b8f837711c1f7a8dbc49dea079b_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9f6b0b8f837711c1f7a8dbc49dea079b_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9f6b0b8f837711c1f7a8dbc49dea079b_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 == cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - cache_frame_9f6b0b8f837711c1f7a8dbc49dea079b_3 = NULL; - } - - assertFrameObject(frame_9f6b0b8f837711c1f7a8dbc49dea079b_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_8; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_16 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_16 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_16 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__2_BaseEncoder_124, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - branch_no_8:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_10 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[154]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$base_model$$$class__2_BaseEncoder_124; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 124; - tmp_assign_source_32 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - - goto try_except_handler_8; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_32); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_31 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_31); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_DECREF(locals_models$base_model$$$class__2_BaseEncoder_124); - locals_models$base_model$$$class__2_BaseEncoder_124 = NULL; - goto try_return_handler_7; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__2_BaseEncoder_124); - locals_models$base_model$$$class__2_BaseEncoder_124 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_7; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 124; - goto try_except_handler_6; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[154], tmp_assign_source_31); - } - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_33; - tmp_assign_source_33 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_33; - } - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_17; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_17 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[128]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - goto condexpr_end_9; - condexpr_false_9:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_9:; - tmp_bases_name_3 = mod_consts[160]; - tmp_assign_source_34 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_18 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_19; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_13 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_13, mod_consts[129]); - tmp_condition_result_19 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_14 = tmp_class_creation_3__metaclass; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[129]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - tmp_args_name_5 = mod_consts[161]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 140; - tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_11); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_20; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_15 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_15, mod_consts[131]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - tmp_condition_result_20 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_9; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[133]; - tmp_getattr_default_3 = mod_consts[134]; - tmp_tuple_element_9 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_16; - PyObject *tmp_type_arg_5; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_5 = tmp_class_creation_3__prepared; - tmp_expression_name_16 = BUILTIN_TYPE1(tmp_type_arg_5); - assert(!(tmp_expression_name_16 == NULL)); - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[133]); - Py_DECREF(tmp_expression_name_16); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_9; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 140; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_9; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_36; - } - branch_end_10:; - { - PyObject *tmp_assign_source_37; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$base_model$$$class__3_SharedQueueMixin_140 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_11; - } - tmp_dictset_value = mod_consts[162]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_11; - } - if (isFrameUnusable(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4)) { - Py_XDECREF(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 = MAKE_FUNCTION_FRAME(codeobj_d71d7f2d6ffa38c985737620f54130a1, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4->m_type_description == NULL); - frame_d71d7f2d6ffa38c985737620f54130a1_4 = cache_frame_d71d7f2d6ffa38c985737620f54130a1_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d71d7f2d6ffa38c985737620f54130a1_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d71d7f2d6ffa38c985737620f54130a1_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_12; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_7; - PyObject *tmp_defaults_2; - tmp_called_instance_1 = PyObject_GetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[2]); - - if (tmp_called_instance_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_called_instance_1); - } - } - - frame_d71d7f2d6ffa38c985737620f54130a1_4->m_frame.f_lineno = 141; - tmp_called_name_12 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[163]); - Py_DECREF(tmp_called_instance_1); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_defaults_2 = mod_consts[164]; - Py_INCREF(tmp_defaults_2); - - - tmp_args_element_name_7 = MAKE_FUNCTION_models$base_model$$$function__12__dequeue_and_enqueue(tmp_defaults_2); - - frame_d71d7f2d6ffa38c985737620f54130a1_4->m_frame.f_lineno = 141; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_7); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__3_SharedQueueMixin_140, mod_consts[165], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d71d7f2d6ffa38c985737620f54130a1_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d71d7f2d6ffa38c985737620f54130a1_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d71d7f2d6ffa38c985737620f54130a1_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d71d7f2d6ffa38c985737620f54130a1_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d71d7f2d6ffa38c985737620f54130a1_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d71d7f2d6ffa38c985737620f54130a1_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d71d7f2d6ffa38c985737620f54130a1_4 == cache_frame_d71d7f2d6ffa38c985737620f54130a1_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d71d7f2d6ffa38c985737620f54130a1_4); - cache_frame_d71d7f2d6ffa38c985737620f54130a1_4 = NULL; - } - - assertFrameObject(frame_d71d7f2d6ffa38c985737620f54130a1_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_11; - skip_nested_handling_3:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_13; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_13 = tmp_class_creation_3__metaclass; - tmp_tuple_element_10 = mod_consts[162]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_10); - tmp_tuple_element_10 = mod_consts[160]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_10); - tmp_tuple_element_10 = locals_models$base_model$$$class__3_SharedQueueMixin_140; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 140; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - - goto try_except_handler_11; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_38; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_37 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_37); - goto try_return_handler_11; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - Py_DECREF(locals_models$base_model$$$class__3_SharedQueueMixin_140); - locals_models$base_model$$$class__3_SharedQueueMixin_140 = NULL; - goto try_return_handler_10; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__3_SharedQueueMixin_140); - locals_models$base_model$$$class__3_SharedQueueMixin_140 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_10; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 140; - goto try_except_handler_9; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[162], tmp_assign_source_37); - } - goto try_end_5; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_39; - } - // Tried code: - { - PyObject *tmp_assign_source_40; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[128]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_10:; - tmp_bases_name_4 = mod_consts[160]; - tmp_assign_source_40 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_40; - } - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_22 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - branch_no_12:; - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_17 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[129]); - tmp_condition_result_23 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_7; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_18 = tmp_class_creation_4__metaclass; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[129]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - tmp_args_name_7 = mod_consts[167]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 164; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_14); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_41; - } - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_19 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[131]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - tmp_condition_result_24 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[133]; - tmp_getattr_default_4 = mod_consts[134]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_20; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_6 = tmp_class_creation_4__prepared; - tmp_expression_name_20 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_20 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[133]); - Py_DECREF(tmp_expression_name_20); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_12; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_12; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 164; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_12; - } - branch_no_14:; - goto branch_end_13; - branch_no_13:; - { - PyObject *tmp_assign_source_42; - tmp_assign_source_42 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_42; - } - branch_end_13:; - { - PyObject *tmp_assign_source_43; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_14; - } - tmp_dictset_value = mod_consts[168]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_14; - } - if (isFrameUnusable(cache_frame_922346e330baabd5dec3a0e5d0cef592_5)) { - Py_XDECREF(cache_frame_922346e330baabd5dec3a0e5d0cef592_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_922346e330baabd5dec3a0e5d0cef592_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_922346e330baabd5dec3a0e5d0cef592_5 = MAKE_FUNCTION_FRAME(codeobj_922346e330baabd5dec3a0e5d0cef592, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_922346e330baabd5dec3a0e5d0cef592_5->m_type_description == NULL); - frame_922346e330baabd5dec3a0e5d0cef592_5 = cache_frame_922346e330baabd5dec3a0e5d0cef592_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_922346e330baabd5dec3a0e5d0cef592_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_922346e330baabd5dec3a0e5d0cef592_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_15; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_8; - tmp_called_instance_2 = PyObject_GetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[2]); - - if (tmp_called_instance_2 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_called_instance_2); - } - } - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 165; - tmp_called_name_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[163]); - Py_DECREF(tmp_called_instance_2); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - - tmp_args_element_name_8 = MAKE_FUNCTION_models$base_model$$$function__13_copy_params(); - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 165; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_15, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_element_name_8); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[169], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - { - PyObject *tmp_called_name_16; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_9; - tmp_called_instance_3 = PyObject_GetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[2]); - - if (tmp_called_instance_3 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_called_instance_3); - } - } - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 174; - tmp_called_name_16 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[163]); - Py_DECREF(tmp_called_instance_3); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - - tmp_args_element_name_9 = MAKE_FUNCTION_models$base_model$$$function__14__momentum_update(); - - frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame.f_lineno = 174; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_9); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__4_MomentumDistilationMixin_164, mod_consts[171], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_922346e330baabd5dec3a0e5d0cef592_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_922346e330baabd5dec3a0e5d0cef592_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_922346e330baabd5dec3a0e5d0cef592_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_922346e330baabd5dec3a0e5d0cef592_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_922346e330baabd5dec3a0e5d0cef592_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_922346e330baabd5dec3a0e5d0cef592_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_922346e330baabd5dec3a0e5d0cef592_5 == cache_frame_922346e330baabd5dec3a0e5d0cef592_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_922346e330baabd5dec3a0e5d0cef592_5); - cache_frame_922346e330baabd5dec3a0e5d0cef592_5 = NULL; - } - - assertFrameObject(frame_922346e330baabd5dec3a0e5d0cef592_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_14; - skip_nested_handling_4:; - { - PyObject *tmp_assign_source_44; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_17 = tmp_class_creation_4__metaclass; - tmp_tuple_element_12 = mod_consts[168]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_12); - tmp_tuple_element_12 = mod_consts[160]; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$base_model$$$class__4_MomentumDistilationMixin_164; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 164; - tmp_assign_source_44 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - - goto try_except_handler_14; - } - assert(outline_3_var___class__ == NULL); - outline_3_var___class__ = tmp_assign_source_44; - } - CHECK_OBJECT(outline_3_var___class__); - tmp_assign_source_43 = outline_3_var___class__; - Py_INCREF(tmp_assign_source_43); - goto try_return_handler_14; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - Py_DECREF(locals_models$base_model$$$class__4_MomentumDistilationMixin_164); - locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = NULL; - goto try_return_handler_13; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__4_MomentumDistilationMixin_164); - locals_models$base_model$$$class__4_MomentumDistilationMixin_164 = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto try_except_handler_13; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 164; - goto try_except_handler_12; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[168], tmp_assign_source_43); - } - goto try_end_6; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_45; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_21; - PyObject *tmp_expression_name_22; - tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_22 == NULL)) { - tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_expression_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[173]); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[174]); - Py_DECREF(tmp_expression_name_21); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_assign_source_45 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_45, 0, tmp_tuple_element_13); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_46; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_46 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_3; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_23; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[128]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_condition_result_26 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_23 = tmp_class_creation_5__bases; - tmp_subscript_name_3 = mod_consts[45]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_23, tmp_subscript_name_3, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_48 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_48; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[128]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[128]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - branch_no_15:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_24; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_24 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_24, mod_consts[129]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_25; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_25 = tmp_class_creation_5__metaclass; - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[129]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_tuple_element_14 = mod_consts[86]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_14 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 185; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_49; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_26; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_26 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_26, mod_consts[131]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[132]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[133]; - tmp_getattr_default_5 = mod_consts[134]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_27; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_8 = tmp_class_creation_5__prepared; - tmp_expression_name_27 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_27 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[133]); - Py_DECREF(tmp_expression_name_27); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_15; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 185; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_15; - } - branch_no_17:; - goto branch_end_16; - branch_no_16:; - { - PyObject *tmp_assign_source_50; - tmp_assign_source_50 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_50; - } - branch_end_16:; - { - PyObject *tmp_assign_source_51; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$base_model$$$class__5_GatherLayer_185 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[135], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[175]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[111], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[86]; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - if (isFrameUnusable(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6)) { - Py_XDECREF(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 = MAKE_FUNCTION_FRAME(codeobj_6bb53d881ab90d043e76e8acd0c190e8, module_models$base_model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_type_description == NULL); - frame_6bb53d881ab90d043e76e8acd0c190e8_6 = cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6bb53d881ab90d043e76e8acd0c190e8_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6bb53d881ab90d043e76e8acd0c190e8_6) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_called_name_19; - PyObject *tmp_args_element_name_10; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - tmp_condition_result_30 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - tmp_called_name_19 = PyObject_GetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (unlikely(tmp_called_name_19 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - - tmp_args_element_name_10 = MAKE_FUNCTION_models$base_model$$$function__15_forward(); - - frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_frame.f_lineno = 191; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_19, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_19); - Py_DECREF(tmp_args_element_name_10); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - goto condexpr_end_13; - condexpr_false_13:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$base_model$$$function__15_forward(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_13:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[177], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - } - { - nuitka_bool tmp_condition_result_31; - PyObject *tmp_called_name_20; - PyObject *tmp_args_element_name_11; - PyObject *tmp_staticmethod_arg_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - tmp_condition_result_31 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - tmp_called_name_20 = PyObject_GetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[176]); - - if (unlikely(tmp_called_name_20 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - - - tmp_args_element_name_11 = MAKE_FUNCTION_models$base_model$$$function__16_backward(); - - frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_frame.f_lineno = 199; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_args_element_name_11); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - goto condexpr_end_14; - condexpr_false_14:; - - - tmp_staticmethod_arg_2 = MAKE_FUNCTION_models$base_model$$$function__16_backward(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_2); - Py_DECREF(tmp_staticmethod_arg_2); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_14:; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[179], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6bb53d881ab90d043e76e8acd0c190e8_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6bb53d881ab90d043e76e8acd0c190e8_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6bb53d881ab90d043e76e8acd0c190e8_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6bb53d881ab90d043e76e8acd0c190e8_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6bb53d881ab90d043e76e8acd0c190e8_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6bb53d881ab90d043e76e8acd0c190e8_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_6bb53d881ab90d043e76e8acd0c190e8_6 == cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6); - cache_frame_6bb53d881ab90d043e76e8acd0c190e8_6 = NULL; - } - - assertFrameObject(frame_6bb53d881ab90d043e76e8acd0c190e8_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_17; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_32; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_3 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_5__bases_orig; - tmp_condition_result_32 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_32 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - assert(tmp_condition_result_32 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_18:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$base_model$$$class__5_GatherLayer_185, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - branch_no_18:; - { - PyObject *tmp_assign_source_52; - PyObject *tmp_called_name_21; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_21 = tmp_class_creation_5__metaclass; - tmp_tuple_element_16 = mod_consts[86]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_16 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$base_model$$$class__5_GatherLayer_185; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 185; - tmp_assign_source_52 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - assert(outline_4_var___class__ == NULL); - outline_4_var___class__ = tmp_assign_source_52; - } - CHECK_OBJECT(outline_4_var___class__); - tmp_assign_source_51 = outline_4_var___class__; - Py_INCREF(tmp_assign_source_51); - goto try_return_handler_17; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - Py_DECREF(locals_models$base_model$$$class__5_GatherLayer_185); - locals_models$base_model$$$class__5_GatherLayer_185 = NULL; - goto try_return_handler_16; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$base_model$$$class__5_GatherLayer_185); - locals_models$base_model$$$class__5_GatherLayer_185 = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto try_except_handler_16; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 185; - goto try_except_handler_15; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[86], tmp_assign_source_51); - } - goto try_end_7; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - { - PyObject *tmp_assign_source_53; - - - tmp_assign_source_53 = MAKE_FUNCTION_models$base_model$$$function__17_all_gather_with_grad(); - - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[181], tmp_assign_source_53); - } - { - PyObject *tmp_assign_source_54; - PyObject *tmp_called_name_22; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_12; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto frame_exception_exit_1; - } - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 223; - tmp_called_name_22 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[163]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto frame_exception_exit_1; - } - - - tmp_args_element_name_12 = MAKE_FUNCTION_models$base_model$$$function__18_concat_all_gather(); - - frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame.f_lineno = 223; - tmp_assign_source_54 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_22, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[56], tmp_assign_source_54); - } - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3da92d637f10e0e2fa696c97d85e96aa); -#endif - popFrameStack(); - - assertFrameObject(frame_3da92d637f10e0e2fa696c97d85e96aa); - - goto frame_no_exception_6; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3da92d637f10e0e2fa696c97d85e96aa); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3da92d637f10e0e2fa696c97d85e96aa, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3da92d637f10e0e2fa696c97d85e96aa->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3da92d637f10e0e2fa696c97d85e96aa, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_6:; - { - PyObject *tmp_assign_source_55; - - - tmp_assign_source_55 = MAKE_FUNCTION_models$base_model$$$function__19_tile(); - - UPDATE_STRING_DICT1(moduledict_models$base_model, (Nuitka_StringObject *)mod_consts[182], tmp_assign_source_55); - } - - return module_models$base_model; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.blip2.const b/medomni/models.build/module.models.blip2.const deleted file mode 100644 index b7b86c6b718058bc152f357c32d79b3727a7ffe4..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.blip2.const and /dev/null differ diff --git a/medomni/models.build/module.models.blip2.cpp b/medomni/models.build/module.models.blip2.cpp deleted file mode 100644 index f02cc902771aeaadb6f757e4257af1e5200e82a5..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.blip2.cpp +++ /dev/null @@ -1,12712 +0,0 @@ -/* Generated code for Python module 'models.blip2' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$blip2" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$blip2; -PyDictObject *moduledict_models$blip2; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[215]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.blip2")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$blip2(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.blip2"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_058485e121bd2827510070e07e93711c; -static PyCodeObject *codeobj_ea027d7d60a14da7f0ce573c2280d557; -static PyCodeObject *codeobj_b99652bcbbfe4fb1c0a49ed927ecc76b; -static PyCodeObject *codeobj_34e4752d34c2c5cc3b4ee22e380d2d44; -static PyCodeObject *codeobj_542a5e3c307e234b4713edd7809bc334; -static PyCodeObject *codeobj_4a4587fc6b26979d42283eb077ac36b8; -static PyCodeObject *codeobj_0eee27e304dfa5248f011bdb07b1d838; -static PyCodeObject *codeobj_f2b34b9b84f486851b110f17c4ee05e2; -static PyCodeObject *codeobj_8fcb6395cf0c0f62db018c730b7394a7; -static PyCodeObject *codeobj_e23fcdacbf76938ecc6dc87b76499068; -static PyCodeObject *codeobj_939e8d935a7d068a806eee2effd6eef8; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[204]); CHECK_OBJECT(module_filename_obj); - codeobj_058485e121bd2827510070e07e93711c = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[205], NULL, NULL, 0, 0, 0); - codeobj_ea027d7d60a14da7f0ce573c2280d557 = MAKE_CODEOBJECT(module_filename_obj, 28, CO_NOFREE, mod_consts[177], mod_consts[206], NULL, 0, 0, 0); - codeobj_b99652bcbbfe4fb1c0a49ed927ecc76b = MAKE_CODEOBJECT(module_filename_obj, 99, CO_NOFREE, mod_consts[38], mod_consts[206], NULL, 0, 0, 0); - codeobj_34e4752d34c2c5cc3b4ee22e380d2d44 = MAKE_CODEOBJECT(module_filename_obj, 108, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[203], mod_consts[207], NULL, 2, 0, 0); - codeobj_542a5e3c307e234b4713edd7809bc334 = MAKE_CODEOBJECT(module_filename_obj, 93, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[199], mod_consts[208], NULL, 2, 0, 0); - codeobj_4a4587fc6b26979d42283eb077ac36b8 = MAKE_CODEOBJECT(module_filename_obj, 102, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[60], mod_consts[209], mod_consts[206], 2, 0, 0); - codeobj_0eee27e304dfa5248f011bdb07b1d838 = MAKE_CODEOBJECT(module_filename_obj, 46, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[191], mod_consts[210], NULL, 4, 0, 0); - codeobj_f2b34b9b84f486851b110f17c4ee05e2 = MAKE_CODEOBJECT(module_filename_obj, 30, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[185], mod_consts[211], NULL, 1, 0, 0); - codeobj_8fcb6395cf0c0f62db018c730b7394a7 = MAKE_CODEOBJECT(module_filename_obj, 61, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[193], mod_consts[212], NULL, 6, 0, 0); - codeobj_e23fcdacbf76938ecc6dc87b76499068 = MAKE_CODEOBJECT(module_filename_obj, 72, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[195], mod_consts[213], NULL, 2, 0, 0); - codeobj_939e8d935a7d068a806eee2effd6eef8 = MAKE_CODEOBJECT(module_filename_obj, 35, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[188], mod_consts[214], NULL, 2, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer(); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__2_maybe_autocast(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder(); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__5_load_from_pretrained(); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__6_disabled_train(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__7_forward(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__8_compute_sim_matrix(); - - -// The module function definitions. -static PyObject *impl_models$blip2$$$function__1_init_tokenizer(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *var_tokenizer = NULL; - struct Nuitka_FrameObject *frame_f2b34b9b84f486851b110f17c4ee05e2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_f2b34b9b84f486851b110f17c4ee05e2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f2b34b9b84f486851b110f17c4ee05e2)) { - Py_XDECREF(cache_frame_f2b34b9b84f486851b110f17c4ee05e2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f2b34b9b84f486851b110f17c4ee05e2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f2b34b9b84f486851b110f17c4ee05e2 = MAKE_FUNCTION_FRAME(codeobj_f2b34b9b84f486851b110f17c4ee05e2, module_models$blip2, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f2b34b9b84f486851b110f17c4ee05e2->m_type_description == NULL); - frame_f2b34b9b84f486851b110f17c4ee05e2 = cache_frame_f2b34b9b84f486851b110f17c4ee05e2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f2b34b9b84f486851b110f17c4ee05e2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f2b34b9b84f486851b110f17c4ee05e2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_f2b34b9b84f486851b110f17c4ee05e2->m_frame.f_lineno = 31; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[1], - &PyTuple_GET_ITEM(mod_consts[2], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - assert(var_tokenizer == NULL); - var_tokenizer = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - PyObject *tmp_call_arg_element_1; - CHECK_OBJECT(var_tokenizer); - tmp_called_instance_2 = var_tokenizer; - tmp_call_arg_element_1 = PyDict_Copy(mod_consts[4]); - frame_f2b34b9b84f486851b110f17c4ee05e2->m_frame.f_lineno = 32; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[3], tmp_call_arg_element_1); - Py_DECREF(tmp_call_arg_element_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - if (var_tokenizer == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[5]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 33; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_tokenizer; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2b34b9b84f486851b110f17c4ee05e2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2b34b9b84f486851b110f17c4ee05e2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2b34b9b84f486851b110f17c4ee05e2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f2b34b9b84f486851b110f17c4ee05e2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f2b34b9b84f486851b110f17c4ee05e2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f2b34b9b84f486851b110f17c4ee05e2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f2b34b9b84f486851b110f17c4ee05e2, - type_description_1, - par_cls, - var_tokenizer - ); - - - // Release cached frame if used for exception. - if (frame_f2b34b9b84f486851b110f17c4ee05e2 == cache_frame_f2b34b9b84f486851b110f17c4ee05e2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f2b34b9b84f486851b110f17c4ee05e2); - cache_frame_f2b34b9b84f486851b110f17c4ee05e2 = NULL; - } - - assertFrameObject(frame_f2b34b9b84f486851b110f17c4ee05e2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(var_tokenizer); - var_tokenizer = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(var_tokenizer); - var_tokenizer = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__2_maybe_autocast(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_dtype = python_pars[1]; - PyObject *var_enable_autocast = NULL; - struct Nuitka_FrameObject *frame_939e8d935a7d068a806eee2effd6eef8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_939e8d935a7d068a806eee2effd6eef8 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_939e8d935a7d068a806eee2effd6eef8)) { - Py_XDECREF(cache_frame_939e8d935a7d068a806eee2effd6eef8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_939e8d935a7d068a806eee2effd6eef8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_939e8d935a7d068a806eee2effd6eef8 = MAKE_FUNCTION_FRAME(codeobj_939e8d935a7d068a806eee2effd6eef8, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_939e8d935a7d068a806eee2effd6eef8->m_type_description == NULL); - frame_939e8d935a7d068a806eee2effd6eef8 = cache_frame_939e8d935a7d068a806eee2effd6eef8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_939e8d935a7d068a806eee2effd6eef8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_939e8d935a7d068a806eee2effd6eef8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[6]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 38; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_939e8d935a7d068a806eee2effd6eef8->m_frame.f_lineno = 38; - tmp_compexpr_right_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[8], 0) - ); - - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 38; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_enable_autocast == NULL); - var_enable_autocast = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_enable_autocast); - tmp_truth_name_1 = CHECK_IF_TRUE(var_enable_autocast); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[9]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[10]); - Py_DECREF(tmp_expression_name_3); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[11]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[12]; - CHECK_OBJECT(par_dtype); - tmp_dict_value_1 = par_dtype; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_939e8d935a7d068a806eee2effd6eef8->m_frame.f_lineno = 41; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_called_instance_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_939e8d935a7d068a806eee2effd6eef8->m_frame.f_lineno = 43; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[14]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_939e8d935a7d068a806eee2effd6eef8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_939e8d935a7d068a806eee2effd6eef8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_939e8d935a7d068a806eee2effd6eef8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_939e8d935a7d068a806eee2effd6eef8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_939e8d935a7d068a806eee2effd6eef8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_939e8d935a7d068a806eee2effd6eef8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_939e8d935a7d068a806eee2effd6eef8, - type_description_1, - par_self, - par_dtype, - var_enable_autocast - ); - - - // Release cached frame if used for exception. - if (frame_939e8d935a7d068a806eee2effd6eef8 == cache_frame_939e8d935a7d068a806eee2effd6eef8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_939e8d935a7d068a806eee2effd6eef8); - cache_frame_939e8d935a7d068a806eee2effd6eef8 = NULL; - } - - assertFrameObject(frame_939e8d935a7d068a806eee2effd6eef8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dtype); - par_dtype = NULL; - CHECK_OBJECT(var_enable_autocast); - Py_DECREF(var_enable_autocast); - var_enable_autocast = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dtype); - par_dtype = NULL; - Py_XDECREF(var_enable_autocast); - var_enable_autocast = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__3_init_Qformer(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_num_query_token = python_pars[1]; - PyObject *par_vision_width = python_pars[2]; - PyObject *par_cross_attention_freq = python_pars[3]; - PyObject *var_encoder_config = NULL; - PyObject *var_Qformer = NULL; - PyObject *var_query_tokens = NULL; - struct Nuitka_FrameObject *frame_0eee27e304dfa5248f011bdb07b1d838; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_0eee27e304dfa5248f011bdb07b1d838 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0eee27e304dfa5248f011bdb07b1d838)) { - Py_XDECREF(cache_frame_0eee27e304dfa5248f011bdb07b1d838); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0eee27e304dfa5248f011bdb07b1d838 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0eee27e304dfa5248f011bdb07b1d838 = MAKE_FUNCTION_FRAME(codeobj_0eee27e304dfa5248f011bdb07b1d838, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0eee27e304dfa5248f011bdb07b1d838->m_type_description == NULL); - frame_0eee27e304dfa5248f011bdb07b1d838 = cache_frame_0eee27e304dfa5248f011bdb07b1d838; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0eee27e304dfa5248f011bdb07b1d838); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0eee27e304dfa5248f011bdb07b1d838) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 47; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[1], - &PyTuple_GET_ITEM(mod_consts[2], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_encoder_config == NULL); - var_encoder_config = tmp_assign_source_1; - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_vision_width); - tmp_assattr_name_1 = par_vision_width; - CHECK_OBJECT(var_encoder_config); - tmp_assattr_target_1 = var_encoder_config; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[16], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - CHECK_OBJECT(var_encoder_config); - tmp_assattr_target_2 = var_encoder_config; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[17], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_cross_attention_freq); - tmp_assattr_name_3 = par_cross_attention_freq; - CHECK_OBJECT(var_encoder_config); - tmp_assattr_target_3 = var_encoder_config; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[18], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_num_query_token); - tmp_assattr_name_4 = par_num_query_token; - CHECK_OBJECT(var_encoder_config); - tmp_assattr_target_4 = var_encoder_config; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[19], tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[21]; - CHECK_OBJECT(var_encoder_config); - tmp_dict_value_1 = var_encoder_config; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 53; - tmp_assign_source_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_Qformer == NULL); - var_Qformer = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_3; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[22]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[23]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[24]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[25]; - CHECK_OBJECT(par_num_query_token); - tmp_args_element_name_3 = par_num_query_token; - CHECK_OBJECT(var_encoder_config); - tmp_expression_name_3 = var_encoder_config; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[26]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 55; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 54; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_query_tokens == NULL); - var_query_tokens = tmp_assign_source_3; - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - CHECK_OBJECT(var_query_tokens); - tmp_expression_name_5 = var_query_tokens; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[27]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[28]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[29]; - tmp_dict_value_2 = mod_consts[30]; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_6; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[31]; - if (var_encoder_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[32]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_6 = var_encoder_config; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[33]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_0eee27e304dfa5248f011bdb07b1d838->m_frame.f_lineno = 57; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(var_Qformer); - tmp_tuple_element_1 = var_Qformer; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); - if (var_query_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[34]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = var_query_tokens; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0eee27e304dfa5248f011bdb07b1d838); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0eee27e304dfa5248f011bdb07b1d838); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0eee27e304dfa5248f011bdb07b1d838); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0eee27e304dfa5248f011bdb07b1d838, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0eee27e304dfa5248f011bdb07b1d838->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0eee27e304dfa5248f011bdb07b1d838, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0eee27e304dfa5248f011bdb07b1d838, - type_description_1, - par_cls, - par_num_query_token, - par_vision_width, - par_cross_attention_freq, - var_encoder_config, - var_Qformer, - var_query_tokens - ); - - - // Release cached frame if used for exception. - if (frame_0eee27e304dfa5248f011bdb07b1d838 == cache_frame_0eee27e304dfa5248f011bdb07b1d838) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0eee27e304dfa5248f011bdb07b1d838); - cache_frame_0eee27e304dfa5248f011bdb07b1d838 = NULL; - } - - assertFrameObject(frame_0eee27e304dfa5248f011bdb07b1d838); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_num_query_token); - par_num_query_token = NULL; - CHECK_OBJECT(par_vision_width); - Py_DECREF(par_vision_width); - par_vision_width = NULL; - CHECK_OBJECT(par_cross_attention_freq); - Py_DECREF(par_cross_attention_freq); - par_cross_attention_freq = NULL; - Py_XDECREF(var_encoder_config); - var_encoder_config = NULL; - CHECK_OBJECT(var_Qformer); - Py_DECREF(var_Qformer); - var_Qformer = NULL; - Py_XDECREF(var_query_tokens); - var_query_tokens = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_num_query_token); - par_num_query_token = NULL; - CHECK_OBJECT(par_vision_width); - Py_DECREF(par_vision_width); - par_vision_width = NULL; - CHECK_OBJECT(par_cross_attention_freq); - Py_DECREF(par_cross_attention_freq); - par_cross_attention_freq = NULL; - Py_XDECREF(var_encoder_config); - var_encoder_config = NULL; - Py_XDECREF(var_Qformer); - var_Qformer = NULL; - Py_XDECREF(var_query_tokens); - var_query_tokens = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__4_init_vision_encoder(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_model_name = python_pars[1]; - PyObject *par_img_size = python_pars[2]; - PyObject *par_drop_path_rate = python_pars[3]; - PyObject *par_use_grad_checkpoint = python_pars[4]; - PyObject *par_precision = python_pars[5]; - PyObject *var_visual_encoder = NULL; - PyObject *var_ln_vision = NULL; - struct Nuitka_FrameObject *frame_8fcb6395cf0c0f62db018c730b7394a7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_8fcb6395cf0c0f62db018c730b7394a7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8fcb6395cf0c0f62db018c730b7394a7)) { - Py_XDECREF(cache_frame_8fcb6395cf0c0f62db018c730b7394a7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8fcb6395cf0c0f62db018c730b7394a7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8fcb6395cf0c0f62db018c730b7394a7 = MAKE_FUNCTION_FRAME(codeobj_8fcb6395cf0c0f62db018c730b7394a7, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8fcb6395cf0c0f62db018c730b7394a7->m_type_description == NULL); - frame_8fcb6395cf0c0f62db018c730b7394a7 = cache_frame_8fcb6395cf0c0f62db018c730b7394a7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8fcb6395cf0c0f62db018c730b7394a7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8fcb6395cf0c0f62db018c730b7394a7) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_model_name); - tmp_compexpr_left_1 = par_model_name; - tmp_compexpr_right_1 = mod_consts[35]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[36]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 64; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[37]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[37]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_img_size); - tmp_args_element_name_1 = par_img_size; - CHECK_OBJECT(par_drop_path_rate); - tmp_args_element_name_2 = par_drop_path_rate; - CHECK_OBJECT(par_use_grad_checkpoint); - tmp_args_element_name_3 = par_use_grad_checkpoint; - CHECK_OBJECT(par_precision); - tmp_args_element_name_4 = par_precision; - frame_8fcb6395cf0c0f62db018c730b7394a7->m_frame.f_lineno = 65; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); - } - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_visual_encoder == NULL); - var_visual_encoder = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[38]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[38]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_visual_encoder); - tmp_expression_name_1 = var_visual_encoder; - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[39]); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_8fcb6395cf0c0f62db018c730b7394a7->m_frame.f_lineno = 69; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_ln_vision == NULL); - var_ln_vision = tmp_assign_source_2; - } - { - PyObject *tmp_tuple_element_1; - if (var_visual_encoder == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 70; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = var_visual_encoder; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_ln_vision); - tmp_tuple_element_1 = var_ln_vision; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8fcb6395cf0c0f62db018c730b7394a7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8fcb6395cf0c0f62db018c730b7394a7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8fcb6395cf0c0f62db018c730b7394a7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8fcb6395cf0c0f62db018c730b7394a7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8fcb6395cf0c0f62db018c730b7394a7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8fcb6395cf0c0f62db018c730b7394a7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8fcb6395cf0c0f62db018c730b7394a7, - type_description_1, - par_cls, - par_model_name, - par_img_size, - par_drop_path_rate, - par_use_grad_checkpoint, - par_precision, - var_visual_encoder, - var_ln_vision - ); - - - // Release cached frame if used for exception. - if (frame_8fcb6395cf0c0f62db018c730b7394a7 == cache_frame_8fcb6395cf0c0f62db018c730b7394a7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8fcb6395cf0c0f62db018c730b7394a7); - cache_frame_8fcb6395cf0c0f62db018c730b7394a7 = NULL; - } - - assertFrameObject(frame_8fcb6395cf0c0f62db018c730b7394a7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - CHECK_OBJECT(par_model_name); - Py_DECREF(par_model_name); - par_model_name = NULL; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - CHECK_OBJECT(par_drop_path_rate); - Py_DECREF(par_drop_path_rate); - par_drop_path_rate = NULL; - CHECK_OBJECT(par_use_grad_checkpoint); - Py_DECREF(par_use_grad_checkpoint); - par_use_grad_checkpoint = NULL; - CHECK_OBJECT(par_precision); - Py_DECREF(par_precision); - par_precision = NULL; - Py_XDECREF(var_visual_encoder); - var_visual_encoder = NULL; - CHECK_OBJECT(var_ln_vision); - Py_DECREF(var_ln_vision); - var_ln_vision = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - CHECK_OBJECT(par_model_name); - Py_DECREF(par_model_name); - par_model_name = NULL; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - CHECK_OBJECT(par_drop_path_rate); - Py_DECREF(par_drop_path_rate); - par_drop_path_rate = NULL; - CHECK_OBJECT(par_use_grad_checkpoint); - Py_DECREF(par_use_grad_checkpoint); - par_use_grad_checkpoint = NULL; - CHECK_OBJECT(par_precision); - Py_DECREF(par_precision); - par_precision = NULL; - Py_XDECREF(var_visual_encoder); - var_visual_encoder = NULL; - Py_XDECREF(var_ln_vision); - var_ln_vision = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__5_load_from_pretrained(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_url_or_filename = python_pars[1]; - PyObject *var_cached_file = NULL; - PyObject *var_checkpoint = NULL; - PyObject *var_state_dict = NULL; - PyObject *var_msg = NULL; - struct Nuitka_FrameObject *frame_e23fcdacbf76938ecc6dc87b76499068; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_e23fcdacbf76938ecc6dc87b76499068 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e23fcdacbf76938ecc6dc87b76499068)) { - Py_XDECREF(cache_frame_e23fcdacbf76938ecc6dc87b76499068); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e23fcdacbf76938ecc6dc87b76499068 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e23fcdacbf76938ecc6dc87b76499068 = MAKE_FUNCTION_FRAME(codeobj_e23fcdacbf76938ecc6dc87b76499068, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e23fcdacbf76938ecc6dc87b76499068->m_type_description == NULL); - frame_e23fcdacbf76938ecc6dc87b76499068 = cache_frame_e23fcdacbf76938ecc6dc87b76499068; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e23fcdacbf76938ecc6dc87b76499068); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e23fcdacbf76938ecc6dc87b76499068) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - int tmp_truth_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[41]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[41]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_args_element_name_1 = par_url_or_filename; - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 73; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_tuple_element_1 = par_url_or_filename; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[43]); - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 74; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_cached_file == NULL); - var_cached_file = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[44]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_cached_file); - tmp_tuple_element_2 = var_cached_file; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[45]); - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 77; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_checkpoint == NULL); - var_checkpoint = tmp_assign_source_2; - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - int tmp_truth_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[46]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[46]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[47]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_url_or_filename); - tmp_args_element_name_2 = par_url_or_filename; - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 78; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[48], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_2); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_2); - - exception_lineno = 78; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_2); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[44]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_url_or_filename == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_url_or_filename; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[45]); - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 79; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_checkpoint == NULL); - var_checkpoint = tmp_assign_source_3; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - tmp_make_exception_arg_1 = mod_consts[50]; - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 81; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_RuntimeError, tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 81; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_end_2:; - branch_end_1:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - if (var_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[51]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = var_checkpoint; - tmp_subscript_name_1 = mod_consts[52]; - tmp_assign_source_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_state_dict == NULL); - var_state_dict = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[53]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_state_dict); - tmp_tuple_element_4 = var_state_dict; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[54]); - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 85; - tmp_assign_source_5 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_5; - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[56]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = mod_consts[57]; - if (par_url_or_filename == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 88; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_1 = par_url_or_filename; - tmp_args_element_name_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 88; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e23fcdacbf76938ecc6dc87b76499068->m_frame.f_lineno = 88; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e23fcdacbf76938ecc6dc87b76499068); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e23fcdacbf76938ecc6dc87b76499068); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e23fcdacbf76938ecc6dc87b76499068, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e23fcdacbf76938ecc6dc87b76499068->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e23fcdacbf76938ecc6dc87b76499068, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e23fcdacbf76938ecc6dc87b76499068, - type_description_1, - par_self, - par_url_or_filename, - var_cached_file, - var_checkpoint, - var_state_dict, - var_msg - ); - - - // Release cached frame if used for exception. - if (frame_e23fcdacbf76938ecc6dc87b76499068 == cache_frame_e23fcdacbf76938ecc6dc87b76499068) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e23fcdacbf76938ecc6dc87b76499068); - cache_frame_e23fcdacbf76938ecc6dc87b76499068 = NULL; - } - - assertFrameObject(frame_e23fcdacbf76938ecc6dc87b76499068); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_msg); - tmp_return_value = var_msg; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_url_or_filename); - par_url_or_filename = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_checkpoint); - var_checkpoint = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - CHECK_OBJECT(var_msg); - Py_DECREF(var_msg); - var_msg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_url_or_filename); - par_url_or_filename = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_checkpoint); - var_checkpoint = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__6_disabled_train(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_mode = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_self); - tmp_return_value = par_self; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_mode); - Py_DECREF(par_mode); - par_mode = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__7_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_orig_type = NULL; - PyObject *var_ret = NULL; - struct Nuitka_FrameObject *frame_4a4587fc6b26979d42283eb077ac36b8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_4a4587fc6b26979d42283eb077ac36b8 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4a4587fc6b26979d42283eb077ac36b8)) { - Py_XDECREF(cache_frame_4a4587fc6b26979d42283eb077ac36b8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4a4587fc6b26979d42283eb077ac36b8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4a4587fc6b26979d42283eb077ac36b8 = MAKE_FUNCTION_FRAME(codeobj_4a4587fc6b26979d42283eb077ac36b8, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4a4587fc6b26979d42283eb077ac36b8->m_type_description == NULL); - frame_4a4587fc6b26979d42283eb077ac36b8 = cache_frame_4a4587fc6b26979d42283eb077ac36b8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4a4587fc6b26979d42283eb077ac36b8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4a4587fc6b26979d42283eb077ac36b8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_orig_type == NULL); - var_orig_type = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[60]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_x; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[62]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[63]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_4a4587fc6b26979d42283eb077ac36b8->m_frame.f_lineno = 104; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_4a4587fc6b26979d42283eb077ac36b8->m_frame.f_lineno = 104; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_ret == NULL); - var_ret = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_ret); - tmp_called_instance_1 = var_ret; - CHECK_OBJECT(var_orig_type); - tmp_args_element_name_3 = var_orig_type; - frame_4a4587fc6b26979d42283eb077ac36b8->m_frame.f_lineno = 105; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[62], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4a4587fc6b26979d42283eb077ac36b8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4a4587fc6b26979d42283eb077ac36b8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4a4587fc6b26979d42283eb077ac36b8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4a4587fc6b26979d42283eb077ac36b8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4a4587fc6b26979d42283eb077ac36b8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4a4587fc6b26979d42283eb077ac36b8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4a4587fc6b26979d42283eb077ac36b8, - type_description_1, - par_self, - par_x, - var_orig_type, - var_ret, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_4a4587fc6b26979d42283eb077ac36b8 == cache_frame_4a4587fc6b26979d42283eb077ac36b8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4a4587fc6b26979d42283eb077ac36b8); - cache_frame_4a4587fc6b26979d42283eb077ac36b8 = NULL; - } - - assertFrameObject(frame_4a4587fc6b26979d42283eb077ac36b8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$blip2$$$function__8_compute_sim_matrix(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - PyObject *par_data_loader = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - PyObject *var_k_test = NULL; - PyObject *var_metric_logger = NULL; - PyObject *var_header = NULL; - PyObject *var_start_time = NULL; - PyObject *var_texts = NULL; - PyObject *var_num_text = NULL; - PyObject *var_text_bs = NULL; - PyObject *var_text_ids = NULL; - PyObject *var_text_embeds = NULL; - PyObject *var_text_atts = NULL; - PyObject *var_i = NULL; - PyObject *var_text = NULL; - PyObject *var_text_input = NULL; - PyObject *var_text_feat = NULL; - PyObject *var_text_embed = NULL; - PyObject *var_vit_feats = NULL; - PyObject *var_image_embeds = NULL; - PyObject *var_samples = NULL; - PyObject *var_image = NULL; - PyObject *var_image_feat = NULL; - PyObject *var_vit_feat = NULL; - PyObject *var_image_embed = NULL; - PyObject *var_sims_matrix = NULL; - PyObject *var_sim_q2t = NULL; - PyObject *var_sim_i2t = NULL; - PyObject *var__ = NULL; - PyObject *var_score_matrix_i2t = NULL; - PyObject *var_num_tasks = NULL; - PyObject *var_rank = NULL; - PyObject *var_step = NULL; - PyObject *var_start = NULL; - PyObject *var_end = NULL; - PyObject *var_sims = NULL; - PyObject *var_topk_sim = NULL; - PyObject *var_topk_idx = NULL; - PyObject *var_image_inputs = NULL; - PyObject *var_score = NULL; - PyObject *var_score_matrix_t2i = NULL; - PyObject *var_total_time = NULL; - PyObject *var_total_time_str = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - PyObject *tmp_for_loop_4__for_iterator = NULL; - PyObject *tmp_for_loop_4__iter_value = NULL; - PyObject *tmp_for_loop_5__for_iterator = NULL; - PyObject *tmp_for_loop_5__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_tuple_unpack_4__element_1 = NULL; - PyObject *tmp_tuple_unpack_4__element_2 = NULL; - PyObject *tmp_tuple_unpack_4__source_iter = NULL; - PyObject *tmp_tuple_unpack_5__element_1 = NULL; - PyObject *tmp_tuple_unpack_5__element_2 = NULL; - PyObject *tmp_tuple_unpack_5__source_iter = NULL; - PyObject *tmp_tuple_unpack_6__element_1 = NULL; - PyObject *tmp_tuple_unpack_6__element_2 = NULL; - PyObject *tmp_tuple_unpack_6__source_iter = NULL; - struct Nuitka_FrameObject *frame_34e4752d34c2c5cc3b4ee22e380d2d44; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - int tmp_res; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - bool tmp_result; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 = NULL; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44)) { - Py_XDECREF(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44); - -#if _DEBUG_REFCOUNTS - if (cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 = MAKE_FUNCTION_FRAME(codeobj_34e4752d34c2c5cc3b4ee22e380d2d44, module_models$blip2, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_type_description == NULL); - frame_34e4752d34c2c5cc3b4ee22e380d2d44 = cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44; - - // Push the new frame as the currently active one. - pushFrameStack(frame_34e4752d34c2c5cc3b4ee22e380d2d44); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_34e4752d34c2c5cc3b4ee22e380d2d44) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_kwargs); - tmp_called_instance_1 = par_kwargs; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 109; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[64], - &PyTuple_GET_ITEM(mod_consts[65], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_k_test == NULL); - var_k_test = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[66]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[66]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[67]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 111; - tmp_assign_source_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_metric_logger == NULL); - var_metric_logger = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = mod_consts[68]; - assert(var_header == NULL); - Py_INCREF(tmp_assign_source_3); - var_header = tmp_assign_source_3; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 114; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[69], 0) - ); - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_3; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[70]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[70]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 115; - tmp_assign_source_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[70]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_start_time == NULL); - var_start_time = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_data_loader); - tmp_expression_name_2 = par_data_loader; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[71]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_texts == NULL); - var_texts = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_len_arg_1; - CHECK_OBJECT(var_texts); - tmp_len_arg_1 = var_texts; - tmp_assign_source_6 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_num_text == NULL); - var_num_text = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - tmp_assign_source_7 = mod_consts[73]; - assert(var_text_bs == NULL); - Py_INCREF(tmp_assign_source_7); - var_text_bs = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = PyList_New(0); - assert(var_text_ids == NULL); - var_text_ids = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = PyList_New(0); - assert(var_text_embeds == NULL); - var_text_embeds = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = PyList_New(0); - assert(var_text_atts == NULL); - var_text_atts = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_xrange_high_1; - PyObject *tmp_xrange_step_1; - tmp_xrange_low_1 = mod_consts[74]; - CHECK_OBJECT(var_num_text); - tmp_xrange_high_1 = var_num_text; - CHECK_OBJECT(var_text_bs); - tmp_xrange_step_1 = var_text_bs; - tmp_iter_arg_1 = BUILTIN_XRANGE3(tmp_xrange_low_1, tmp_xrange_high_1, tmp_xrange_step_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_11; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 123; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_13 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_13; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_texts == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = var_texts; - CHECK_OBJECT(var_i); - tmp_start_name_1 = var_i; - tmp_called_name_2 = LOOKUP_BUILTIN(mod_consts[76]); - assert(tmp_called_name_2 != NULL); - if (var_num_text == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[77]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_1 = var_num_text; - CHECK_OBJECT(var_i); - tmp_left_name_1 = var_i; - if (var_text_bs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_right_name_1 = var_text_bs; - tmp_args_element_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 124; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_stop_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_args_element_name_2); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_subscript_name_1 == NULL)); - tmp_assign_source_14 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_text; - var_text = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 125; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_model; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[5]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_text); - tmp_tuple_element_1 = var_text; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[79]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 125; - tmp_expression_name_4 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[80]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 131; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_6 = par_model; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[6]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 131; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 125; - tmp_assign_source_15 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_text_input; - var_text_input = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_4; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 132; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_4 = par_model; - CHECK_OBJECT(var_text_input); - tmp_args_element_name_4 = var_text_input; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 132; - tmp_assign_source_16 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[81], tmp_args_element_name_4); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_text_feat; - var_text_feat = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_6; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[82]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[82]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[83]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 133; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_5 = par_model; - CHECK_OBJECT(var_text_feat); - tmp_args_element_name_6 = var_text_feat; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 133; - tmp_args_element_name_5 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[84], tmp_args_element_name_6); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 133; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 133; - tmp_assign_source_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_text_embed; - var_text_embed = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_6; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_7; - if (var_text_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 134; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_6 = var_text_embeds; - CHECK_OBJECT(var_text_embed); - tmp_args_element_name_7 = var_text_embed; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 134; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_6, mod_consts[86], tmp_args_element_name_7); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_9; - if (var_text_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_8 = var_text_ids; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[86]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - if (var_text_input == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[88]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = var_text_input; - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[89]); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 135; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 135; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_8); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_11; - if (var_text_atts == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_10 = var_text_atts; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[86]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - if (var_text_input == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[88]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_11 = var_text_input; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[91]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 136; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 136; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_9); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_4); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[92]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_text_embeds == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 138; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_text_embeds; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[93]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 138; - tmp_assign_source_18 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_text_embeds; - var_text_embeds = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_4; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[92]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_text_ids == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 139; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = var_text_ids; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[93]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 139; - tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_text_ids; - var_text_ids = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_5; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[92]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_text_atts == NULL) { - Py_DECREF(tmp_called_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 140; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_4 = var_text_atts; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[93]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 140; - tmp_assign_source_20 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_text_atts; - var_text_atts = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = PyList_New(0); - assert(var_vit_feats == NULL); - var_vit_feats = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyList_New(0); - assert(var_image_embeds == NULL); - var_image_embeds = tmp_assign_source_22; - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_iter_arg_2; - if (par_data_loader == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 144; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_iter_arg_2 = par_data_loader; - tmp_assign_source_23 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_2__for_iterator == NULL); - tmp_for_loop_2__for_iterator = tmp_assign_source_23; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_24 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_24 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 144; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_25 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_samples; - var_samples = tmp_assign_source_25; - Py_INCREF(var_samples); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_samples); - tmp_expression_name_15 = var_samples; - tmp_subscript_name_2 = mod_consts[95]; - tmp_assign_source_26 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_image; - var_image = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(var_image); - tmp_expression_name_16 = var_image; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[80]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_17 = par_model; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[6]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 147; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 147; - tmp_assign_source_27 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_image; - var_image = tmp_assign_source_27; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_11; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 148; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_7 = par_model; - CHECK_OBJECT(var_image); - tmp_args_element_name_11 = var_image; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 148; - tmp_iter_arg_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[96], tmp_args_element_name_11); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_28 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_28; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_29; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_29 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_29 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 148; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_29; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_30 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_30 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 148; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 148; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 148; - goto try_except_handler_5; - } - } - goto try_end_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_4; - // End of try: - try_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_3; - // End of try: - try_end_3:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_31; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_31 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_image_feat; - var_image_feat = tmp_assign_source_31; - Py_INCREF(var_image_feat); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_32; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_32 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_vit_feat; - var_vit_feat = tmp_assign_source_32; - Py_INCREF(var_vit_feat); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_instance_8; - PyObject *tmp_args_element_name_12; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - - tmp_called_instance_8 = par_model; - CHECK_OBJECT(var_image_feat); - tmp_args_element_name_12 = var_image_feat; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 149; - tmp_assign_source_33 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_8, mod_consts[98], tmp_args_element_name_12); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_image_embed; - var_image_embed = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_6; - tmp_expression_name_18 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[82]); - - if (unlikely(tmp_expression_name_18 == NULL)) { - tmp_expression_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[82]); - } - - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[83]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_image_embed); - tmp_tuple_element_5 = var_image_embed; - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_5); - tmp_kwargs_name_6 = PyDict_Copy(mod_consts[99]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 150; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_5, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_image_embed; - var_image_embed = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_19; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_13; - PyObject *tmp_called_instance_9; - if (var_vit_feats == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 152; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_19 = var_vit_feats; - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[86]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_vit_feat); - tmp_called_instance_9 = var_vit_feat; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 152; - tmp_args_element_name_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[101]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 152; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 152; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_13, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_element_name_13); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_5); - } - { - PyObject *tmp_called_instance_10; - PyObject *tmp_call_result_6; - PyObject *tmp_args_element_name_14; - if (var_image_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[102]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - - tmp_called_instance_10 = var_image_embeds; - CHECK_OBJECT(var_image_embed); - tmp_args_element_name_14 = var_image_embed; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 153; - tmp_call_result_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_10, mod_consts[86], tmp_args_element_name_14); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_6); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_4; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_7; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[92]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_vit_feats == NULL) { - Py_DECREF(tmp_called_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 155; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_6 = var_vit_feats; - tmp_args_name_6 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_kwargs_name_7 = PyDict_Copy(mod_consts[93]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 155; - tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_6, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_vit_feats; - var_vit_feats = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_36; - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_8; - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[92]); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image_embeds == NULL) { - Py_DECREF(tmp_called_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[102]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 156; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_7 = var_image_embeds; - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_7); - tmp_kwargs_name_8 = PyDict_Copy(mod_consts[93]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 156; - tmp_assign_source_36 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_7, tmp_kwargs_name_8); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_8); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_image_embeds; - var_image_embeds = tmp_assign_source_36; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = PyList_New(0); - assert(var_sims_matrix == NULL); - var_sims_matrix = tmp_assign_source_37; - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(var_image_embeds); - tmp_iter_arg_4 = var_image_embeds; - tmp_assign_source_38 = MAKE_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_38; - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_39; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_39 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_39 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 159; - goto try_except_handler_6; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_39; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_40; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_40 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_image_embed; - var_image_embed = tmp_assign_source_40; - Py_INCREF(var_image_embed); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_instance_11; - CHECK_OBJECT(var_image_embed); - tmp_left_name_2 = var_image_embed; - if (var_text_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_11 = var_text_embeds; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 160; - tmp_right_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[103]); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_41 = BINARY_OPERATION_MATMULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_sim_q2t; - var_sim_q2t = tmp_assign_source_41; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_42; - PyObject *tmp_iter_arg_5; - PyObject *tmp_called_instance_12; - CHECK_OBJECT(var_sim_q2t); - tmp_called_instance_12 = var_sim_q2t; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 161; - tmp_iter_arg_5 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_12, - mod_consts[104], - &PyTuple_GET_ITEM(mod_consts[105], 0) - ); - - if (tmp_iter_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_assign_source_42 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_5); - Py_DECREF(tmp_iter_arg_5); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_42; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_43; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_43 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_43 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 161; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_43; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_44; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_44 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_44 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 161; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_44; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 161; - goto try_except_handler_8; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 161; - goto try_except_handler_8; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_7; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_6; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_45; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_45 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_sim_i2t; - var_sim_i2t = tmp_assign_source_45; - Py_INCREF(var_sim_i2t); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_46; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_46 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var__; - var__ = tmp_assign_source_46; - Py_INCREF(var__); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_called_instance_13; - PyObject *tmp_call_result_7; - PyObject *tmp_args_element_name_15; - if (var_sims_matrix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_13 = var_sims_matrix; - CHECK_OBJECT(var_sim_i2t); - tmp_args_element_name_15 = var_sim_i2t; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 162; - tmp_call_result_7 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_13, mod_consts[86], tmp_args_element_name_15); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_7); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - goto loop_start_3; - loop_end_3:; - goto try_end_7; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_47; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_9; - tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_22 == NULL)) { - tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[107]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_sims_matrix == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_8 = var_sims_matrix; - tmp_args_name_8 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_8); - tmp_kwargs_name_9 = PyDict_Copy(mod_consts[93]); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 163; - tmp_assign_source_47 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_8, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_8); - Py_DECREF(tmp_kwargs_name_9); - if (tmp_assign_source_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_sims_matrix; - var_sims_matrix = tmp_assign_source_47; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_23; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_element_name_16; - PyObject *tmp_tuple_element_9; - PyObject *tmp_len_arg_2; - PyObject *tmp_expression_name_25; - PyObject *tmp_expression_name_26; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - PyObject *tmp_expression_name_27; - tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_24 == NULL)) { - tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[108]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_data_loader == NULL) { - Py_DECREF(tmp_called_name_18); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_26 = par_data_loader; - tmp_expression_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[71]); - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 166; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_len_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[95]); - Py_DECREF(tmp_expression_name_25); - if (tmp_len_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 166; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_9 = BUILTIN_LEN(tmp_len_arg_2); - Py_DECREF(tmp_len_arg_2); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 166; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_16 = PyTuple_New(2); - { - PyObject *tmp_len_arg_3; - PyTuple_SET_ITEM(tmp_args_element_name_16, 0, tmp_tuple_element_9); - if (var_texts == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_len_arg_3 = var_texts; - tmp_tuple_element_9 = BUILTIN_LEN(tmp_len_arg_3); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_element_name_16, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_element_name_16); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_17 = mod_consts[109]; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 165; - { - PyObject *call_args[] = {tmp_args_element_name_16, tmp_args_element_name_17}; - tmp_expression_name_23 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_18, call_args); - } - - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_element_name_16); - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[80]); - Py_DECREF(tmp_expression_name_23); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 167; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_model; - tmp_args_element_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[6]); - if (tmp_args_element_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 167; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 165; - tmp_assign_source_48 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_17, tmp_args_element_name_18); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_element_name_18); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_score_matrix_i2t == NULL); - var_score_matrix_i2t = tmp_assign_source_48; - } - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_instance_14; - tmp_called_instance_14 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_called_instance_14 == NULL)) { - tmp_called_instance_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_called_instance_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 169; - tmp_assign_source_49 = CALL_METHOD_NO_ARGS(tmp_called_instance_14, mod_consts[111]); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_num_tasks == NULL); - var_num_tasks = tmp_assign_source_49; - } - { - PyObject *tmp_assign_source_50; - PyObject *tmp_called_instance_15; - tmp_called_instance_15 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_called_instance_15 == NULL)) { - tmp_called_instance_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_called_instance_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 170; - tmp_assign_source_50 = CALL_METHOD_NO_ARGS(tmp_called_instance_15, mod_consts[112]); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_rank == NULL); - var_rank = tmp_assign_source_50; - } - { - PyObject *tmp_assign_source_51; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_called_instance_16; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - CHECK_OBJECT(var_sims_matrix); - tmp_called_instance_16 = var_sims_matrix; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 171; - tmp_left_name_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_16, - mod_consts[113], - &PyTuple_GET_ITEM(mod_consts[105], 0) - ); - - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_num_tasks); - tmp_right_name_3 = var_num_tasks; - tmp_left_name_3 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_3); - Py_DECREF(tmp_left_name_4); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_4 = mod_consts[25]; - tmp_assign_source_51 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_4); - Py_DECREF(tmp_left_name_3); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_step == NULL); - var_step = tmp_assign_source_51; - } - { - PyObject *tmp_assign_source_52; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - CHECK_OBJECT(var_rank); - tmp_left_name_5 = var_rank; - CHECK_OBJECT(var_step); - tmp_right_name_5 = var_step; - tmp_assign_source_52 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_start == NULL); - var_start = tmp_assign_source_52; - } - { - PyObject *tmp_assign_source_53; - PyObject *tmp_called_name_19; - PyObject *tmp_args_element_name_19; - PyObject *tmp_called_instance_17; - PyObject *tmp_args_element_name_20; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - tmp_called_name_19 = LOOKUP_BUILTIN(mod_consts[76]); - assert(tmp_called_name_19 != NULL); - if (var_sims_matrix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_17 = var_sims_matrix; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 173; - tmp_args_element_name_19 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_17, - mod_consts[113], - &PyTuple_GET_ITEM(mod_consts[105], 0) - ); - - if (tmp_args_element_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_start); - tmp_left_name_6 = var_start; - if (var_step == NULL) { - Py_DECREF(tmp_args_element_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = var_step; - tmp_args_element_name_20 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - if (tmp_args_element_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 173; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 173; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_assign_source_53 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_19, call_args); - } - - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_args_element_name_20); - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_end == NULL); - var_end = tmp_assign_source_53; - } - { - PyObject *tmp_assign_source_54; - PyObject *tmp_iter_arg_6; - PyObject *tmp_called_name_20; - PyObject *tmp_args_element_name_21; - PyObject *tmp_called_name_21; - PyObject *tmp_expression_name_28; - PyObject *tmp_args_element_name_22; - PyObject *tmp_expression_name_29; - PyObject *tmp_subscript_name_3; - PyObject *tmp_start_name_2; - PyObject *tmp_stop_name_2; - PyObject *tmp_args_element_name_23; - PyObject *tmp_args_element_name_24; - tmp_called_name_20 = (PyObject *)&PyEnum_Type; - CHECK_OBJECT(var_metric_logger); - tmp_expression_name_28 = var_metric_logger; - tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[115]); - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_sims_matrix == NULL) { - Py_DECREF(tmp_called_name_21); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 176; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = var_sims_matrix; - if (var_start == NULL) { - Py_DECREF(tmp_called_name_21); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 176; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_start_name_2 = var_start; - CHECK_OBJECT(var_end); - tmp_stop_name_2 = var_end; - tmp_subscript_name_3 = MAKE_SLICEOBJ2(tmp_start_name_2, tmp_stop_name_2); - assert(!(tmp_subscript_name_3 == NULL)); - tmp_args_element_name_22 = LOOKUP_SUBSCRIPT(tmp_expression_name_29, tmp_subscript_name_3); - Py_DECREF(tmp_subscript_name_3); - if (tmp_args_element_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 176; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_23 = mod_consts[117]; - CHECK_OBJECT(var_header); - tmp_args_element_name_24 = var_header; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 176; - { - PyObject *call_args[] = {tmp_args_element_name_22, tmp_args_element_name_23, tmp_args_element_name_24}; - tmp_args_element_name_21 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_21, call_args); - } - - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_element_name_22); - if (tmp_args_element_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 175; - tmp_iter_arg_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_21); - Py_DECREF(tmp_args_element_name_21); - if (tmp_iter_arg_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_54 = MAKE_ITERATOR(tmp_iter_arg_6); - Py_DECREF(tmp_iter_arg_6); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_4__for_iterator == NULL); - tmp_for_loop_4__for_iterator = tmp_assign_source_54; - } - // Tried code: - loop_start_4:; - { - PyObject *tmp_next_source_4; - PyObject *tmp_assign_source_55; - CHECK_OBJECT(tmp_for_loop_4__for_iterator); - tmp_next_source_4 = tmp_for_loop_4__for_iterator; - tmp_assign_source_55 = ITERATOR_NEXT(tmp_next_source_4); - if (tmp_assign_source_55 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_4; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 175; - goto try_except_handler_9; - } - } - - { - PyObject *old = tmp_for_loop_4__iter_value; - tmp_for_loop_4__iter_value = tmp_assign_source_55; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_56; - PyObject *tmp_iter_arg_7; - CHECK_OBJECT(tmp_for_loop_4__iter_value); - tmp_iter_arg_7 = tmp_for_loop_4__iter_value; - tmp_assign_source_56 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_7); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_56; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_57; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_57 = UNPACK_NEXT(tmp_unpack_5, 0, 2); - if (tmp_assign_source_57 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 175; - goto try_except_handler_11; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_57; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_58; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_58 = UNPACK_NEXT(tmp_unpack_6, 1, 2); - if (tmp_assign_source_58 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 175; - goto try_except_handler_11; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_58; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 175; - goto try_except_handler_11; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 175; - goto try_except_handler_11; - } - } - goto try_end_8; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_10; - // End of try: - try_end_8:; - goto try_end_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_9; - // End of try: - try_end_9:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_59; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_59 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_i; - var_i = tmp_assign_source_59; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_60; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_60 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_sims; - var_sims = tmp_assign_source_60; - Py_INCREF(var_sims); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Tried code: - { - PyObject *tmp_assign_source_61; - PyObject *tmp_iter_arg_8; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_30; - PyObject *tmp_kwargs_name_10; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(var_sims); - tmp_expression_name_30 = var_sims; - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[118]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_12; - } - tmp_dict_key_1 = mod_consts[119]; - if (var_k_test == NULL) { - Py_DECREF(tmp_called_name_22); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_12; - } - - tmp_dict_value_1 = var_k_test; - tmp_kwargs_name_10 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_10, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[121]; - tmp_dict_value_1 = mod_consts[74]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_10, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 178; - tmp_iter_arg_8 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_22, tmp_kwargs_name_10); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_kwargs_name_10); - if (tmp_iter_arg_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_12; - } - tmp_assign_source_61 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_8); - Py_DECREF(tmp_iter_arg_8); - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_12; - } - { - PyObject *old = tmp_tuple_unpack_4__source_iter; - tmp_tuple_unpack_4__source_iter = tmp_assign_source_61; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_62; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_62 = UNPACK_NEXT(tmp_unpack_7, 0, 2); - if (tmp_assign_source_62 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_1; - tmp_tuple_unpack_4__element_1 = tmp_assign_source_62; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_63; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_63 = UNPACK_NEXT(tmp_unpack_8, 1, 2); - if (tmp_assign_source_63 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_2; - tmp_tuple_unpack_4__element_2 = tmp_assign_source_63; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_4; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_iterator_name_4 = tmp_tuple_unpack_4__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_4); assert(HAS_ITERNEXT(tmp_iterator_name_4)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_4)->tp_iternext)(tmp_iterator_name_4); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_13; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_13; - } - } - goto try_end_10; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_12; - // End of try: - try_end_10:; - goto try_end_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_9; - // End of try: - try_end_11:; - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - { - PyObject *tmp_assign_source_64; - CHECK_OBJECT(tmp_tuple_unpack_4__element_1); - tmp_assign_source_64 = tmp_tuple_unpack_4__element_1; - { - PyObject *old = var_topk_sim; - var_topk_sim = tmp_assign_source_64; - Py_INCREF(var_topk_sim); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - - { - PyObject *tmp_assign_source_65; - CHECK_OBJECT(tmp_tuple_unpack_4__element_2); - tmp_assign_source_65 = tmp_tuple_unpack_4__element_2; - { - PyObject *old = var_topk_idx; - var_topk_idx = tmp_assign_source_65; - Py_INCREF(var_topk_idx); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - { - PyObject *tmp_assign_source_66; - PyObject *tmp_called_name_23; - PyObject *tmp_expression_name_31; - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_32; - PyObject *tmp_expression_name_33; - PyObject *tmp_subscript_name_4; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_args_element_name_25; - PyObject *tmp_args_element_name_26; - PyObject *tmp_args_element_name_27; - PyObject *tmp_args_element_name_28; - PyObject *tmp_expression_name_34; - if (var_vit_feats == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_33 = var_vit_feats; - if (var_start == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_left_name_7 = var_start; - CHECK_OBJECT(var_i); - tmp_right_name_7 = var_i; - tmp_subscript_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - if (tmp_subscript_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_expression_name_32 = LOOKUP_SUBSCRIPT(tmp_expression_name_33, tmp_subscript_name_4); - Py_DECREF(tmp_subscript_name_4); - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_called_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[122]); - Py_DECREF(tmp_expression_name_32); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - if (var_k_test == NULL) { - Py_DECREF(tmp_called_name_24); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_args_element_name_25 = var_k_test; - tmp_args_element_name_26 = mod_consts[25]; - tmp_args_element_name_27 = mod_consts[25]; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 179; - { - PyObject *call_args[] = {tmp_args_element_name_25, tmp_args_element_name_26, tmp_args_element_name_27}; - tmp_expression_name_31 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_24, call_args); - } - - Py_DECREF(tmp_called_name_24); - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_called_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[80]); - Py_DECREF(tmp_expression_name_31); - if (tmp_called_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_34 = par_model; - tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[6]); - if (tmp_args_element_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 179; - tmp_assign_source_66 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_23, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_args_element_name_28); - if (tmp_assign_source_66 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - { - PyObject *old = var_image_inputs; - var_image_inputs = tmp_assign_source_66; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_67; - PyObject *tmp_called_instance_18; - PyObject *tmp_called_name_25; - PyObject *tmp_expression_name_35; - PyObject *tmp_kwargs_name_11; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_35 = par_model; - tmp_called_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[123]); - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_dict_key_2 = mod_consts[124]; - CHECK_OBJECT(var_image_inputs); - tmp_dict_value_2 = var_image_inputs; - tmp_kwargs_name_11 = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_36; - PyObject *tmp_subscript_name_5; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_6; - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[87]; - if (var_text_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_36 = var_text_ids; - CHECK_OBJECT(var_topk_idx); - tmp_subscript_name_5 = var_topk_idx; - tmp_dict_value_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_36, tmp_subscript_name_5); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[90]; - if (var_text_atts == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_37 = var_text_atts; - CHECK_OBJECT(var_topk_idx); - tmp_subscript_name_6 = var_topk_idx; - tmp_dict_value_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_37, tmp_subscript_name_6); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 183; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_25); - Py_DECREF(tmp_kwargs_name_11); - goto try_except_handler_9; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 180; - tmp_called_instance_18 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_25, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_25); - Py_DECREF(tmp_kwargs_name_11); - if (tmp_called_instance_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 180; - tmp_assign_source_67 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[125]); - Py_DECREF(tmp_called_instance_18); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - { - PyObject *old = var_score; - var_score = tmp_assign_source_67; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_10; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - CHECK_OBJECT(var_score); - tmp_left_name_8 = var_score; - CHECK_OBJECT(var_topk_sim); - tmp_right_name_8 = var_topk_sim; - tmp_ass_subvalue_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_8, tmp_right_name_8); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - if (var_score_matrix_i2t == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[126]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_ass_subscribed_1 = var_score_matrix_i2t; - if (var_start == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_left_name_9 = var_start; - if (var_i == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_right_name_9 = var_i; - tmp_tuple_element_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_9, tmp_right_name_9); - if (tmp_tuple_element_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 185; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_ass_subscript_1, 0, tmp_tuple_element_10); - CHECK_OBJECT(var_topk_idx); - tmp_tuple_element_10 = var_topk_idx; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_10); - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - goto loop_start_4; - loop_end_4:; - goto try_end_12; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_instance_19; - if (var_sims_matrix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_19 = var_sims_matrix; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 187; - tmp_assign_source_68 = CALL_METHOD_NO_ARGS(tmp_called_instance_19, mod_consts[103]); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_sims_matrix; - var_sims_matrix = tmp_assign_source_68; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_69; - PyObject *tmp_called_name_26; - PyObject *tmp_expression_name_38; - PyObject *tmp_called_name_27; - PyObject *tmp_expression_name_39; - PyObject *tmp_args_element_name_29; - PyObject *tmp_tuple_element_11; - PyObject *tmp_len_arg_4; - PyObject *tmp_args_element_name_30; - PyObject *tmp_args_element_name_31; - PyObject *tmp_expression_name_42; - tmp_expression_name_39 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_39 == NULL)) { - tmp_expression_name_39 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[108]); - if (tmp_called_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_texts == NULL) { - Py_DECREF(tmp_called_name_27); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 189; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_len_arg_4 = var_texts; - tmp_tuple_element_11 = BUILTIN_LEN(tmp_len_arg_4); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_27); - - exception_lineno = 189; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_29 = PyTuple_New(2); - { - PyObject *tmp_len_arg_5; - PyObject *tmp_expression_name_40; - PyObject *tmp_expression_name_41; - PyTuple_SET_ITEM(tmp_args_element_name_29, 0, tmp_tuple_element_11); - if (par_data_loader == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 189; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_41 = par_data_loader; - tmp_expression_name_40 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[71]); - if (tmp_expression_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - tmp_len_arg_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[95]); - Py_DECREF(tmp_expression_name_40); - if (tmp_len_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_11 = BUILTIN_LEN(tmp_len_arg_5); - Py_DECREF(tmp_len_arg_5); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_element_name_29, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_27); - Py_DECREF(tmp_args_element_name_29); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_30 = mod_consts[109]; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 188; - { - PyObject *call_args[] = {tmp_args_element_name_29, tmp_args_element_name_30}; - tmp_expression_name_38 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_27, call_args); - } - - Py_DECREF(tmp_called_name_27); - Py_DECREF(tmp_args_element_name_29); - if (tmp_expression_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[80]); - Py_DECREF(tmp_expression_name_38); - if (tmp_called_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_26); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_42 = par_model; - tmp_args_element_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[6]); - if (tmp_args_element_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 190; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 188; - tmp_assign_source_69 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_26, tmp_args_element_name_31); - Py_DECREF(tmp_called_name_26); - Py_DECREF(tmp_args_element_name_31); - if (tmp_assign_source_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_score_matrix_t2i == NULL); - var_score_matrix_t2i = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_left_name_10; - PyObject *tmp_left_name_11; - PyObject *tmp_called_instance_20; - PyObject *tmp_right_name_10; - PyObject *tmp_right_name_11; - CHECK_OBJECT(var_sims_matrix); - tmp_called_instance_20 = var_sims_matrix; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 192; - tmp_left_name_11 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_20, - mod_consts[113], - &PyTuple_GET_ITEM(mod_consts[105], 0) - ); - - if (tmp_left_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_num_tasks == NULL) { - Py_DECREF(tmp_left_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[128]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_10 = var_num_tasks; - tmp_left_name_10 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_11, tmp_right_name_10); - Py_DECREF(tmp_left_name_11); - if (tmp_left_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_11 = mod_consts[25]; - tmp_assign_source_70 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_10, tmp_right_name_11); - Py_DECREF(tmp_left_name_10); - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_step; - var_step = tmp_assign_source_70; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_71; - PyObject *tmp_left_name_12; - PyObject *tmp_right_name_12; - if (var_rank == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[129]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 193; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_12 = var_rank; - CHECK_OBJECT(var_step); - tmp_right_name_12 = var_step; - tmp_assign_source_71 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_12, tmp_right_name_12); - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_start; - var_start = tmp_assign_source_71; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_called_name_28; - PyObject *tmp_args_element_name_32; - PyObject *tmp_called_instance_21; - PyObject *tmp_args_element_name_33; - PyObject *tmp_left_name_13; - PyObject *tmp_right_name_13; - tmp_called_name_28 = LOOKUP_BUILTIN(mod_consts[76]); - assert(tmp_called_name_28 != NULL); - if (var_sims_matrix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_21 = var_sims_matrix; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 194; - tmp_args_element_name_32 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_21, - mod_consts[113], - &PyTuple_GET_ITEM(mod_consts[105], 0) - ); - - if (tmp_args_element_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_start); - tmp_left_name_13 = var_start; - if (var_step == NULL) { - Py_DECREF(tmp_args_element_name_32); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_13 = var_step; - tmp_args_element_name_33 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_13, tmp_right_name_13); - if (tmp_args_element_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_32); - - exception_lineno = 194; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 194; - { - PyObject *call_args[] = {tmp_args_element_name_32, tmp_args_element_name_33}; - tmp_assign_source_72 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_28, call_args); - } - - Py_DECREF(tmp_args_element_name_32); - Py_DECREF(tmp_args_element_name_33); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_end; - assert(old != NULL); - var_end = tmp_assign_source_72; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_73; - PyObject *tmp_iter_arg_9; - PyObject *tmp_called_name_29; - PyObject *tmp_args_element_name_34; - PyObject *tmp_called_name_30; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_element_name_35; - PyObject *tmp_expression_name_44; - PyObject *tmp_subscript_name_7; - PyObject *tmp_start_name_3; - PyObject *tmp_stop_name_3; - PyObject *tmp_args_element_name_36; - PyObject *tmp_args_element_name_37; - tmp_called_name_29 = (PyObject *)&PyEnum_Type; - if (var_metric_logger == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[130]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_43 = var_metric_logger; - tmp_called_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[115]); - if (tmp_called_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_sims_matrix == NULL) { - Py_DECREF(tmp_called_name_30); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_44 = var_sims_matrix; - if (var_start == NULL) { - Py_DECREF(tmp_called_name_30); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_start_name_3 = var_start; - CHECK_OBJECT(var_end); - tmp_stop_name_3 = var_end; - tmp_subscript_name_7 = MAKE_SLICEOBJ2(tmp_start_name_3, tmp_stop_name_3); - assert(!(tmp_subscript_name_7 == NULL)); - tmp_args_element_name_35 = LOOKUP_SUBSCRIPT(tmp_expression_name_44, tmp_subscript_name_7); - Py_DECREF(tmp_subscript_name_7); - if (tmp_args_element_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_30); - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_36 = mod_consts[117]; - if (var_header == NULL) { - Py_DECREF(tmp_called_name_30); - Py_DECREF(tmp_args_element_name_35); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[131]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_37 = var_header; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 197; - { - PyObject *call_args[] = {tmp_args_element_name_35, tmp_args_element_name_36, tmp_args_element_name_37}; - tmp_args_element_name_34 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_30, call_args); - } - - Py_DECREF(tmp_called_name_30); - Py_DECREF(tmp_args_element_name_35); - if (tmp_args_element_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 196; - tmp_iter_arg_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_29, tmp_args_element_name_34); - Py_DECREF(tmp_args_element_name_34); - if (tmp_iter_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_73 = MAKE_ITERATOR(tmp_iter_arg_9); - Py_DECREF(tmp_iter_arg_9); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_5__for_iterator == NULL); - tmp_for_loop_5__for_iterator = tmp_assign_source_73; - } - // Tried code: - loop_start_5:; - { - PyObject *tmp_next_source_5; - PyObject *tmp_assign_source_74; - CHECK_OBJECT(tmp_for_loop_5__for_iterator); - tmp_next_source_5 = tmp_for_loop_5__for_iterator; - tmp_assign_source_74 = ITERATOR_NEXT(tmp_next_source_5); - if (tmp_assign_source_74 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_5; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 196; - goto try_except_handler_14; - } - } - - { - PyObject *old = tmp_for_loop_5__iter_value; - tmp_for_loop_5__iter_value = tmp_assign_source_74; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_75; - PyObject *tmp_iter_arg_10; - CHECK_OBJECT(tmp_for_loop_5__iter_value); - tmp_iter_arg_10 = tmp_for_loop_5__iter_value; - tmp_assign_source_75 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_10); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - { - PyObject *old = tmp_tuple_unpack_5__source_iter; - tmp_tuple_unpack_5__source_iter = tmp_assign_source_75; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_76; - PyObject *tmp_unpack_9; - CHECK_OBJECT(tmp_tuple_unpack_5__source_iter); - tmp_unpack_9 = tmp_tuple_unpack_5__source_iter; - tmp_assign_source_76 = UNPACK_NEXT(tmp_unpack_9, 0, 2); - if (tmp_assign_source_76 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 196; - goto try_except_handler_16; - } - { - PyObject *old = tmp_tuple_unpack_5__element_1; - tmp_tuple_unpack_5__element_1 = tmp_assign_source_76; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_77; - PyObject *tmp_unpack_10; - CHECK_OBJECT(tmp_tuple_unpack_5__source_iter); - tmp_unpack_10 = tmp_tuple_unpack_5__source_iter; - tmp_assign_source_77 = UNPACK_NEXT(tmp_unpack_10, 1, 2); - if (tmp_assign_source_77 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 196; - goto try_except_handler_16; - } - { - PyObject *old = tmp_tuple_unpack_5__element_2; - tmp_tuple_unpack_5__element_2 = tmp_assign_source_77; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_5; - CHECK_OBJECT(tmp_tuple_unpack_5__source_iter); - tmp_iterator_name_5 = tmp_tuple_unpack_5__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_5); assert(HAS_ITERNEXT(tmp_iterator_name_5)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_5)->tp_iternext)(tmp_iterator_name_5); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 196; - goto try_except_handler_16; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 196; - goto try_except_handler_16; - } - } - goto try_end_13; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_5__source_iter); - tmp_tuple_unpack_5__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_15; - // End of try: - try_end_13:; - goto try_end_14; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_5__element_1); - tmp_tuple_unpack_5__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_5__element_2); - tmp_tuple_unpack_5__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto try_except_handler_14; - // End of try: - try_end_14:; - Py_XDECREF(tmp_tuple_unpack_5__source_iter); - tmp_tuple_unpack_5__source_iter = NULL; - { - PyObject *tmp_assign_source_78; - CHECK_OBJECT(tmp_tuple_unpack_5__element_1); - tmp_assign_source_78 = tmp_tuple_unpack_5__element_1; - { - PyObject *old = var_i; - var_i = tmp_assign_source_78; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_5__element_1); - tmp_tuple_unpack_5__element_1 = NULL; - - { - PyObject *tmp_assign_source_79; - CHECK_OBJECT(tmp_tuple_unpack_5__element_2); - tmp_assign_source_79 = tmp_tuple_unpack_5__element_2; - { - PyObject *old = var_sims; - var_sims = tmp_assign_source_79; - Py_INCREF(var_sims); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_5__element_2); - tmp_tuple_unpack_5__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_5__element_1); - tmp_tuple_unpack_5__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_5__element_2); - tmp_tuple_unpack_5__element_2 = NULL; - // Tried code: - { - PyObject *tmp_assign_source_80; - PyObject *tmp_iter_arg_11; - PyObject *tmp_called_name_31; - PyObject *tmp_expression_name_45; - PyObject *tmp_kwargs_name_12; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - CHECK_OBJECT(var_sims); - tmp_expression_name_45 = var_sims; - tmp_called_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[118]); - if (tmp_called_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - tmp_dict_key_3 = mod_consts[119]; - if (var_k_test == NULL) { - Py_DECREF(tmp_called_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - - tmp_dict_value_3 = var_k_test; - tmp_kwargs_name_12 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_12, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[121]; - tmp_dict_value_3 = mod_consts[74]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_12, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 199; - tmp_iter_arg_11 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_31, tmp_kwargs_name_12); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_kwargs_name_12); - if (tmp_iter_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - tmp_assign_source_80 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_11); - Py_DECREF(tmp_iter_arg_11); - if (tmp_assign_source_80 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - { - PyObject *old = tmp_tuple_unpack_6__source_iter; - tmp_tuple_unpack_6__source_iter = tmp_assign_source_80; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_81; - PyObject *tmp_unpack_11; - CHECK_OBJECT(tmp_tuple_unpack_6__source_iter); - tmp_unpack_11 = tmp_tuple_unpack_6__source_iter; - tmp_assign_source_81 = UNPACK_NEXT(tmp_unpack_11, 0, 2); - if (tmp_assign_source_81 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 199; - goto try_except_handler_18; - } - { - PyObject *old = tmp_tuple_unpack_6__element_1; - tmp_tuple_unpack_6__element_1 = tmp_assign_source_81; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_82; - PyObject *tmp_unpack_12; - CHECK_OBJECT(tmp_tuple_unpack_6__source_iter); - tmp_unpack_12 = tmp_tuple_unpack_6__source_iter; - tmp_assign_source_82 = UNPACK_NEXT(tmp_unpack_12, 1, 2); - if (tmp_assign_source_82 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 199; - goto try_except_handler_18; - } - { - PyObject *old = tmp_tuple_unpack_6__element_2; - tmp_tuple_unpack_6__element_2 = tmp_assign_source_82; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_6; - CHECK_OBJECT(tmp_tuple_unpack_6__source_iter); - tmp_iterator_name_6 = tmp_tuple_unpack_6__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_6); assert(HAS_ITERNEXT(tmp_iterator_name_6)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_6)->tp_iternext)(tmp_iterator_name_6); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 199; - goto try_except_handler_18; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 199; - goto try_except_handler_18; - } - } - goto try_end_15; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_6__source_iter); - tmp_tuple_unpack_6__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto try_except_handler_17; - // End of try: - try_end_15:; - goto try_end_16; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_6__element_1); - tmp_tuple_unpack_6__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_6__element_2); - tmp_tuple_unpack_6__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto try_except_handler_14; - // End of try: - try_end_16:; - Py_XDECREF(tmp_tuple_unpack_6__source_iter); - tmp_tuple_unpack_6__source_iter = NULL; - { - PyObject *tmp_assign_source_83; - CHECK_OBJECT(tmp_tuple_unpack_6__element_1); - tmp_assign_source_83 = tmp_tuple_unpack_6__element_1; - { - PyObject *old = var_topk_sim; - var_topk_sim = tmp_assign_source_83; - Py_INCREF(var_topk_sim); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_6__element_1); - tmp_tuple_unpack_6__element_1 = NULL; - - { - PyObject *tmp_assign_source_84; - CHECK_OBJECT(tmp_tuple_unpack_6__element_2); - tmp_assign_source_84 = tmp_tuple_unpack_6__element_2; - { - PyObject *old = var_topk_idx; - var_topk_idx = tmp_assign_source_84; - Py_INCREF(var_topk_idx); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_6__element_2); - tmp_tuple_unpack_6__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_6__element_1); - tmp_tuple_unpack_6__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_6__element_2); - tmp_tuple_unpack_6__element_2 = NULL; - { - PyObject *tmp_assign_source_85; - PyObject *tmp_called_name_32; - PyObject *tmp_expression_name_46; - PyObject *tmp_expression_name_47; - PyObject *tmp_subscript_name_8; - PyObject *tmp_called_instance_22; - PyObject *tmp_args_element_name_38; - PyObject *tmp_expression_name_48; - if (var_vit_feats == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[100]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_expression_name_47 = var_vit_feats; - CHECK_OBJECT(var_topk_idx); - tmp_called_instance_22 = var_topk_idx; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 200; - tmp_subscript_name_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_22, mod_consts[101]); - if (tmp_subscript_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_expression_name_46 = LOOKUP_SUBSCRIPT(tmp_expression_name_47, tmp_subscript_name_8); - Py_DECREF(tmp_subscript_name_8); - if (tmp_expression_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_called_name_32 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[80]); - Py_DECREF(tmp_expression_name_46); - if (tmp_called_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - if (par_model == NULL) { - Py_DECREF(tmp_called_name_32); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_expression_name_48 = par_model; - tmp_args_element_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[6]); - if (tmp_args_element_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_32); - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 200; - tmp_assign_source_85 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_32, tmp_args_element_name_38); - Py_DECREF(tmp_called_name_32); - Py_DECREF(tmp_args_element_name_38); - if (tmp_assign_source_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - { - PyObject *old = var_image_inputs; - var_image_inputs = tmp_assign_source_85; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_86; - PyObject *tmp_called_instance_23; - PyObject *tmp_called_name_33; - PyObject *tmp_expression_name_49; - PyObject *tmp_kwargs_name_13; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 201; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_expression_name_49 = par_model; - tmp_called_name_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[123]); - if (tmp_called_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_dict_key_4 = mod_consts[124]; - CHECK_OBJECT(var_image_inputs); - tmp_dict_value_4 = var_image_inputs; - tmp_kwargs_name_13 = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_called_name_34; - PyObject *tmp_expression_name_50; - PyObject *tmp_expression_name_51; - PyObject *tmp_subscript_name_9; - PyObject *tmp_left_name_14; - PyObject *tmp_right_name_14; - PyObject *tmp_args_element_name_39; - PyObject *tmp_args_element_name_40; - PyObject *tmp_called_name_35; - PyObject *tmp_expression_name_52; - PyObject *tmp_expression_name_53; - PyObject *tmp_subscript_name_10; - PyObject *tmp_left_name_15; - PyObject *tmp_right_name_15; - PyObject *tmp_args_element_name_41; - PyObject *tmp_args_element_name_42; - tmp_res = PyDict_SetItem(tmp_kwargs_name_13, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[87]; - if (var_text_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[87]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_expression_name_51 = var_text_ids; - if (var_start == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_left_name_14 = var_start; - CHECK_OBJECT(var_i); - tmp_right_name_14 = var_i; - tmp_subscript_name_9 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_14, tmp_right_name_14); - if (tmp_subscript_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_expression_name_50 = LOOKUP_SUBSCRIPT(tmp_expression_name_51, tmp_subscript_name_9); - Py_DECREF(tmp_subscript_name_9); - if (tmp_expression_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_called_name_34 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[122]); - Py_DECREF(tmp_expression_name_50); - if (tmp_called_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - if (var_k_test == NULL) { - Py_DECREF(tmp_called_name_34); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_args_element_name_39 = var_k_test; - tmp_args_element_name_40 = mod_consts[25]; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 203; - { - PyObject *call_args[] = {tmp_args_element_name_39, tmp_args_element_name_40}; - tmp_dict_value_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_34, call_args); - } - - Py_DECREF(tmp_called_name_34); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_13, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[90]; - if (var_text_atts == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_expression_name_53 = var_text_atts; - if (var_start == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_left_name_15 = var_start; - if (var_i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_right_name_15 = var_i; - tmp_subscript_name_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_15, tmp_right_name_15); - if (tmp_subscript_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_expression_name_52 = LOOKUP_SUBSCRIPT(tmp_expression_name_53, tmp_subscript_name_10); - Py_DECREF(tmp_subscript_name_10); - if (tmp_expression_name_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_called_name_35 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[122]); - Py_DECREF(tmp_expression_name_52); - if (tmp_called_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - if (var_k_test == NULL) { - Py_DECREF(tmp_called_name_35); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_args_element_name_41 = var_k_test; - tmp_args_element_name_42 = mod_consts[25]; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 204; - { - PyObject *call_args[] = {tmp_args_element_name_41, tmp_args_element_name_42}; - tmp_dict_value_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_35, call_args); - } - - Py_DECREF(tmp_called_name_35); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_13, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_33); - Py_DECREF(tmp_kwargs_name_13); - goto try_except_handler_14; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 201; - tmp_called_instance_23 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_33, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_33); - Py_DECREF(tmp_kwargs_name_13); - if (tmp_called_instance_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 201; - tmp_assign_source_86 = CALL_METHOD_NO_ARGS(tmp_called_instance_23, mod_consts[125]); - Py_DECREF(tmp_called_instance_23); - if (tmp_assign_source_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - { - PyObject *old = var_score; - var_score = tmp_assign_source_86; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_left_name_16; - PyObject *tmp_right_name_16; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - PyObject *tmp_tuple_element_12; - PyObject *tmp_left_name_17; - PyObject *tmp_right_name_17; - CHECK_OBJECT(var_score); - tmp_left_name_16 = var_score; - CHECK_OBJECT(var_topk_sim); - tmp_right_name_16 = var_topk_sim; - tmp_ass_subvalue_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_16, tmp_right_name_16); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - if (var_score_matrix_t2i == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_ass_subscribed_2 = var_score_matrix_t2i; - if (var_start == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_left_name_17 = var_start; - if (var_i == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_right_name_17 = var_i; - tmp_tuple_element_12 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_17, tmp_right_name_17); - if (tmp_tuple_element_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_2); - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_ass_subscript_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_ass_subscript_2, 0, tmp_tuple_element_12); - if (var_topk_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[133]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_tuple_element_12 = var_topk_idx; - PyTuple_SET_ITEM0(tmp_ass_subscript_2, 1, tmp_tuple_element_12); - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscript_2); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscript_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - goto loop_start_5; - loop_end_5:; - goto try_end_17; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_5__iter_value); - tmp_for_loop_5__iter_value = NULL; - Py_XDECREF(tmp_for_loop_5__for_iterator); - tmp_for_loop_5__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_1; - // End of try: - try_end_17:; - Py_XDECREF(tmp_for_loop_5__iter_value); - tmp_for_loop_5__iter_value = NULL; - Py_XDECREF(tmp_for_loop_5__for_iterator); - tmp_for_loop_5__for_iterator = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_called_instance_24; - PyObject *tmp_call_result_8; - int tmp_truth_name_1; - tmp_called_instance_24 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_called_instance_24 == NULL)) { - tmp_called_instance_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_called_instance_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 208; - tmp_call_result_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_24, mod_consts[134]); - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_8); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_8); - - exception_lineno = 208; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_8); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_25; - PyObject *tmp_call_result_9; - tmp_called_instance_25 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[135]); - - if (unlikely(tmp_called_instance_25 == NULL)) { - tmp_called_instance_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[135]); - } - - if (tmp_called_instance_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 209; - tmp_call_result_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_25, mod_consts[136]); - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_9); - } - { - PyObject *tmp_called_name_36; - PyObject *tmp_expression_name_54; - PyObject *tmp_expression_name_55; - PyObject *tmp_call_result_10; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_13; - PyObject *tmp_kwargs_name_14; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - PyObject *tmp_expression_name_56; - PyObject *tmp_expression_name_57; - PyObject *tmp_expression_name_58; - tmp_expression_name_55 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_55 == NULL)) { - tmp_expression_name_55 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_54 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[137]); - if (tmp_expression_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_36 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[138]); - Py_DECREF(tmp_expression_name_54); - if (tmp_called_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_score_matrix_i2t == NULL) { - Py_DECREF(tmp_called_name_36); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[126]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_13 = var_score_matrix_i2t; - tmp_args_name_9 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_13); - tmp_dict_key_5 = mod_consts[139]; - tmp_expression_name_58 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_58 == NULL)) { - tmp_expression_name_58 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_name_9); - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_57 = LOOKUP_ATTRIBUTE(tmp_expression_name_58, mod_consts[137]); - if (tmp_expression_name_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_name_9); - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_56 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[140]); - Py_DECREF(tmp_expression_name_57); - if (tmp_expression_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_name_9); - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[141]); - Py_DECREF(tmp_expression_name_56); - if (tmp_dict_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_name_9); - - exception_lineno = 211; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_14 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_14, tmp_dict_key_5, tmp_dict_value_5); - Py_DECREF(tmp_dict_value_5); - assert(!(tmp_res != 0)); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 210; - tmp_call_result_10 = CALL_FUNCTION(tmp_called_name_36, tmp_args_name_9, tmp_kwargs_name_14); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_name_9); - Py_DECREF(tmp_kwargs_name_14); - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_10); - } - { - PyObject *tmp_called_name_37; - PyObject *tmp_expression_name_59; - PyObject *tmp_expression_name_60; - PyObject *tmp_call_result_11; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_15; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - PyObject *tmp_expression_name_61; - PyObject *tmp_expression_name_62; - PyObject *tmp_expression_name_63; - tmp_expression_name_60 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_60 == NULL)) { - tmp_expression_name_60 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_59 = LOOKUP_ATTRIBUTE(tmp_expression_name_60, mod_consts[137]); - if (tmp_expression_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_37 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[138]); - Py_DECREF(tmp_expression_name_59); - if (tmp_called_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_score_matrix_t2i == NULL) { - Py_DECREF(tmp_called_name_37); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 214; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_14 = var_score_matrix_t2i; - tmp_args_name_10 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_14); - tmp_dict_key_6 = mod_consts[139]; - tmp_expression_name_63 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_63 == NULL)) { - tmp_expression_name_63 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_37); - Py_DECREF(tmp_args_name_10); - - exception_lineno = 214; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_62 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[137]); - if (tmp_expression_name_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_37); - Py_DECREF(tmp_args_name_10); - - exception_lineno = 214; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_61 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[140]); - Py_DECREF(tmp_expression_name_62); - if (tmp_expression_name_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_37); - Py_DECREF(tmp_args_name_10); - - exception_lineno = 214; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[141]); - Py_DECREF(tmp_expression_name_61); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_37); - Py_DECREF(tmp_args_name_10); - - exception_lineno = 214; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_15 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_15, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 213; - tmp_call_result_11 = CALL_FUNCTION(tmp_called_name_37, tmp_args_name_10, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_37); - Py_DECREF(tmp_args_name_10); - Py_DECREF(tmp_kwargs_name_15); - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_11); - } - branch_no_1:; - { - PyObject *tmp_assign_source_87; - PyObject *tmp_left_name_18; - PyObject *tmp_called_instance_26; - PyObject *tmp_right_name_18; - tmp_called_instance_26 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[70]); - - if (unlikely(tmp_called_instance_26 == NULL)) { - tmp_called_instance_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[70]); - } - - if (tmp_called_instance_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 217; - tmp_left_name_18 = CALL_METHOD_NO_ARGS(tmp_called_instance_26, mod_consts[70]); - if (tmp_left_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_start_time); - tmp_right_name_18 = var_start_time; - tmp_assign_source_87 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_18, tmp_right_name_18); - Py_DECREF(tmp_left_name_18); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_total_time == NULL); - var_total_time = tmp_assign_source_87; - } - { - PyObject *tmp_assign_source_88; - PyObject *tmp_unicode_arg_1; - PyObject *tmp_called_name_38; - PyObject *tmp_expression_name_64; - PyObject *tmp_kwargs_name_16; - PyObject *tmp_dict_key_7; - PyObject *tmp_dict_value_7; - PyObject *tmp_int_arg_1; - tmp_expression_name_64 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[142]); - - if (unlikely(tmp_expression_name_64 == NULL)) { - tmp_expression_name_64 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[142]); - } - - if (tmp_expression_name_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_64, mod_consts[143]); - if (tmp_called_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_7 = mod_consts[144]; - CHECK_OBJECT(var_total_time); - tmp_int_arg_1 = var_total_time; - tmp_dict_value_7 = PyNumber_Int(tmp_int_arg_1); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 218; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_16 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_16, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 218; - tmp_unicode_arg_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_38, tmp_kwargs_name_16); - Py_DECREF(tmp_called_name_38); - Py_DECREF(tmp_kwargs_name_16); - if (tmp_unicode_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_88 = PyObject_Unicode(tmp_unicode_arg_1); - Py_DECREF(tmp_unicode_arg_1); - if (tmp_assign_source_88 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_total_time_str == NULL); - var_total_time_str = tmp_assign_source_88; - } - { - PyObject *tmp_called_name_39; - PyObject *tmp_expression_name_65; - PyObject *tmp_call_result_12; - PyObject *tmp_args_element_name_43; - PyObject *tmp_called_instance_27; - PyObject *tmp_args_element_name_44; - tmp_expression_name_65 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_expression_name_65 == NULL)) { - tmp_expression_name_65 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_expression_name_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_39 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[56]); - if (tmp_called_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_27 = mod_consts[145]; - CHECK_OBJECT(var_total_time_str); - tmp_args_element_name_44 = var_total_time_str; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 219; - tmp_args_element_name_43 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_27, mod_consts[146], tmp_args_element_name_44); - if (tmp_args_element_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_39); - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 219; - tmp_call_result_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_39, tmp_args_element_name_43); - Py_DECREF(tmp_called_name_39); - Py_DECREF(tmp_args_element_name_43); - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_12); - } - { - PyObject *tmp_tuple_element_15; - PyObject *tmp_called_instance_28; - PyObject *tmp_called_instance_29; - if (var_score_matrix_i2t == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[126]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 221; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_29 = var_score_matrix_i2t; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; - tmp_called_instance_28 = CALL_METHOD_NO_ARGS(tmp_called_instance_29, mod_consts[101]); - if (tmp_called_instance_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; - tmp_tuple_element_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_28, mod_consts[147]); - Py_DECREF(tmp_called_instance_28); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = PyTuple_New(2); - { - PyObject *tmp_called_instance_30; - PyObject *tmp_called_instance_31; - PyTuple_SET_ITEM(tmp_return_value, 0, tmp_tuple_element_15); - if (var_score_matrix_t2i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 221; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_4; - } - - tmp_called_instance_31 = var_score_matrix_t2i; - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; - tmp_called_instance_30 = CALL_METHOD_NO_ARGS(tmp_called_instance_31, mod_consts[101]); - if (tmp_called_instance_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_4; - } - frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame.f_lineno = 221; - tmp_tuple_element_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_30, mod_consts[147]); - Py_DECREF(tmp_called_instance_30); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_return_value, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_34e4752d34c2c5cc3b4ee22e380d2d44); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_34e4752d34c2c5cc3b4ee22e380d2d44); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_34e4752d34c2c5cc3b4ee22e380d2d44); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_34e4752d34c2c5cc3b4ee22e380d2d44, exception_lineno); - } else if (exception_tb->tb_frame != &frame_34e4752d34c2c5cc3b4ee22e380d2d44->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_34e4752d34c2c5cc3b4ee22e380d2d44, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_34e4752d34c2c5cc3b4ee22e380d2d44, - type_description_1, - par_model, - par_data_loader, - par_kwargs, - var_k_test, - var_metric_logger, - var_header, - var_start_time, - var_texts, - var_num_text, - var_text_bs, - var_text_ids, - var_text_embeds, - var_text_atts, - var_i, - var_text, - var_text_input, - var_text_feat, - var_text_embed, - var_vit_feats, - var_image_embeds, - var_samples, - var_image, - var_image_feat, - var_vit_feat, - var_image_embed, - var_sims_matrix, - var_sim_q2t, - var_sim_i2t, - var__, - var_score_matrix_i2t, - var_num_tasks, - var_rank, - var_step, - var_start, - var_end, - var_sims, - var_topk_sim, - var_topk_idx, - var_image_inputs, - var_score, - var_score_matrix_t2i, - var_total_time, - var_total_time_str - ); - - - // Release cached frame if used for exception. - if (frame_34e4752d34c2c5cc3b4ee22e380d2d44 == cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44); - cache_frame_34e4752d34c2c5cc3b4ee22e380d2d44 = NULL; - } - - assertFrameObject(frame_34e4752d34c2c5cc3b4ee22e380d2d44); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(par_data_loader); - par_data_loader = NULL; - Py_XDECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_k_test); - var_k_test = NULL; - Py_XDECREF(var_metric_logger); - var_metric_logger = NULL; - Py_XDECREF(var_header); - var_header = NULL; - Py_XDECREF(var_start_time); - var_start_time = NULL; - Py_XDECREF(var_texts); - var_texts = NULL; - Py_XDECREF(var_num_text); - var_num_text = NULL; - Py_XDECREF(var_text_bs); - var_text_bs = NULL; - Py_XDECREF(var_text_ids); - var_text_ids = NULL; - Py_XDECREF(var_text_embeds); - var_text_embeds = NULL; - Py_XDECREF(var_text_atts); - var_text_atts = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_text); - var_text = NULL; - Py_XDECREF(var_text_input); - var_text_input = NULL; - Py_XDECREF(var_text_feat); - var_text_feat = NULL; - Py_XDECREF(var_text_embed); - var_text_embed = NULL; - Py_XDECREF(var_vit_feats); - var_vit_feats = NULL; - Py_XDECREF(var_image_embeds); - var_image_embeds = NULL; - Py_XDECREF(var_samples); - var_samples = NULL; - Py_XDECREF(var_image); - var_image = NULL; - Py_XDECREF(var_image_feat); - var_image_feat = NULL; - Py_XDECREF(var_vit_feat); - var_vit_feat = NULL; - Py_XDECREF(var_image_embed); - var_image_embed = NULL; - Py_XDECREF(var_sims_matrix); - var_sims_matrix = NULL; - Py_XDECREF(var_sim_q2t); - var_sim_q2t = NULL; - Py_XDECREF(var_sim_i2t); - var_sim_i2t = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_score_matrix_i2t); - var_score_matrix_i2t = NULL; - Py_XDECREF(var_num_tasks); - var_num_tasks = NULL; - Py_XDECREF(var_rank); - var_rank = NULL; - Py_XDECREF(var_step); - var_step = NULL; - Py_XDECREF(var_start); - var_start = NULL; - CHECK_OBJECT(var_end); - Py_DECREF(var_end); - var_end = NULL; - Py_XDECREF(var_sims); - var_sims = NULL; - Py_XDECREF(var_topk_sim); - var_topk_sim = NULL; - Py_XDECREF(var_topk_idx); - var_topk_idx = NULL; - Py_XDECREF(var_image_inputs); - var_image_inputs = NULL; - Py_XDECREF(var_score); - var_score = NULL; - Py_XDECREF(var_score_matrix_t2i); - var_score_matrix_t2i = NULL; - Py_XDECREF(var_total_time); - var_total_time = NULL; - Py_XDECREF(var_total_time_str); - var_total_time_str = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(par_data_loader); - par_data_loader = NULL; - Py_XDECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_k_test); - var_k_test = NULL; - Py_XDECREF(var_metric_logger); - var_metric_logger = NULL; - Py_XDECREF(var_header); - var_header = NULL; - Py_XDECREF(var_start_time); - var_start_time = NULL; - Py_XDECREF(var_texts); - var_texts = NULL; - Py_XDECREF(var_num_text); - var_num_text = NULL; - Py_XDECREF(var_text_bs); - var_text_bs = NULL; - Py_XDECREF(var_text_ids); - var_text_ids = NULL; - Py_XDECREF(var_text_embeds); - var_text_embeds = NULL; - Py_XDECREF(var_text_atts); - var_text_atts = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_text); - var_text = NULL; - Py_XDECREF(var_text_input); - var_text_input = NULL; - Py_XDECREF(var_text_feat); - var_text_feat = NULL; - Py_XDECREF(var_text_embed); - var_text_embed = NULL; - Py_XDECREF(var_vit_feats); - var_vit_feats = NULL; - Py_XDECREF(var_image_embeds); - var_image_embeds = NULL; - Py_XDECREF(var_samples); - var_samples = NULL; - Py_XDECREF(var_image); - var_image = NULL; - Py_XDECREF(var_image_feat); - var_image_feat = NULL; - Py_XDECREF(var_vit_feat); - var_vit_feat = NULL; - Py_XDECREF(var_image_embed); - var_image_embed = NULL; - Py_XDECREF(var_sims_matrix); - var_sims_matrix = NULL; - Py_XDECREF(var_sim_q2t); - var_sim_q2t = NULL; - Py_XDECREF(var_sim_i2t); - var_sim_i2t = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_score_matrix_i2t); - var_score_matrix_i2t = NULL; - Py_XDECREF(var_num_tasks); - var_num_tasks = NULL; - Py_XDECREF(var_rank); - var_rank = NULL; - Py_XDECREF(var_step); - var_step = NULL; - Py_XDECREF(var_start); - var_start = NULL; - Py_XDECREF(var_end); - var_end = NULL; - Py_XDECREF(var_sims); - var_sims = NULL; - Py_XDECREF(var_topk_sim); - var_topk_sim = NULL; - Py_XDECREF(var_topk_idx); - var_topk_idx = NULL; - Py_XDECREF(var_image_inputs); - var_image_inputs = NULL; - Py_XDECREF(var_score); - var_score = NULL; - Py_XDECREF(var_score_matrix_t2i); - var_score_matrix_t2i = NULL; - Py_XDECREF(var_total_time); - var_total_time = NULL; - Py_XDECREF(var_total_time_str); - var_total_time_str = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__1_init_tokenizer, - mod_consts[185], -#if PYTHON_VERSION >= 0x300 - mod_consts[186], -#endif - codeobj_f2b34b9b84f486851b110f17c4ee05e2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__2_maybe_autocast(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__2_maybe_autocast, - mod_consts[188], -#if PYTHON_VERSION >= 0x300 - mod_consts[189], -#endif - codeobj_939e8d935a7d068a806eee2effd6eef8, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__3_init_Qformer, - mod_consts[191], -#if PYTHON_VERSION >= 0x300 - mod_consts[192], -#endif - codeobj_0eee27e304dfa5248f011bdb07b1d838, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__4_init_vision_encoder, - mod_consts[193], -#if PYTHON_VERSION >= 0x300 - mod_consts[194], -#endif - codeobj_8fcb6395cf0c0f62db018c730b7394a7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__5_load_from_pretrained() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__5_load_from_pretrained, - mod_consts[195], -#if PYTHON_VERSION >= 0x300 - mod_consts[196], -#endif - codeobj_e23fcdacbf76938ecc6dc87b76499068, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__6_disabled_train(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__6_disabled_train, - mod_consts[199], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_542a5e3c307e234b4713edd7809bc334, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - mod_consts[58], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__7_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__7_forward, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[202], -#endif - codeobj_4a4587fc6b26979d42283eb077ac36b8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$blip2, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$blip2$$$function__8_compute_sim_matrix() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$blip2$$$function__8_compute_sim_matrix, - mod_consts[203], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_34e4752d34c2c5cc3b4ee22e380d2d44, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$blip2, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$blip2[] = { - impl_models$blip2$$$function__1_init_tokenizer, - impl_models$blip2$$$function__2_maybe_autocast, - impl_models$blip2$$$function__3_init_Qformer, - impl_models$blip2$$$function__4_init_vision_encoder, - impl_models$blip2$$$function__5_load_from_pretrained, - impl_models$blip2$$$function__6_disabled_train, - impl_models$blip2$$$function__7_forward, - impl_models$blip2$$$function__8_compute_sim_matrix, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$blip2; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$blip2) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$blip2[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$blip2, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$blip2(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$blip2 = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.blip2: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.blip2: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.blip2: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$blip2\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$blip2 = MODULE_DICT(module_models$blip2); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$blip2, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$blip2, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$blip2, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$blip2, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$blip2, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$blip2); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$blip2); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - struct Nuitka_FrameObject *frame_058485e121bd2827510070e07e93711c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$blip2$$$class__1_Blip2Base_28 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_ea027d7d60a14da7f0ce573c2280d557_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *locals_models$blip2$$$class__2_LayerNorm_99 = NULL; - struct Nuitka_FrameObject *frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[148]; - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[149], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[150], tmp_assign_source_2); - } - // Frame without reuse. - frame_058485e121bd2827510070e07e93711c = MAKE_MODULE_FRAME(codeobj_058485e121bd2827510070e07e93711c, module_models$blip2); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_058485e121bd2827510070e07e93711c); - assert(Py_REFCNT(frame_058485e121bd2827510070e07e93711c) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[152], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[153], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[154], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[13]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 7; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[55]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 8; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[55], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 9; - tmp_assign_source_6 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_6 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[46], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[70]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 10; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - assert(!(tmp_assign_source_7 == NULL)); - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[70], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[142]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 11; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[142], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[7]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = Py_None; - tmp_level_name_5 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 13; - tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[155]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = Py_None; - tmp_level_name_6 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 14; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$blip2, - mod_consts[22], - mod_consts[74] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[22]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[22], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[156]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = Py_None; - tmp_level_name_7 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 15; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$blip2, - mod_consts[137], - mod_consts[74] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[137]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[135], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_3; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[157]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = Py_None; - tmp_level_name_8 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 16; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_import_name_from_3 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$blip2, - mod_consts[22], - mod_consts[74] - ); - } else { - tmp_import_name_from_3 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[22]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$blip2, - mod_consts[158], - mod_consts[74] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[158]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[82], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_5; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[159]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = Py_None; - tmp_level_name_9 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 18; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_import_name_from_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$blip2, - mod_consts[160], - mod_consts[74] - ); - } else { - tmp_import_name_from_5 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[160]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$blip2, - mod_consts[110], - mod_consts[74] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[110]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[110], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_7; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[159]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = mod_consts[161]; - tmp_level_name_10 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 19; - tmp_import_name_from_7 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_import_name_from_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$blip2, - mod_consts[42], - mod_consts[74] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[42]); - } - - Py_DECREF(tmp_import_name_from_7); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[42], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_8; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[162]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[163]; - tmp_level_name_11 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 20; - tmp_import_name_from_8 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$blip2, - mod_consts[41], - mod_consts[74] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[41]); - } - - Py_DECREF(tmp_import_name_from_8); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[41], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_9; - PyObject *tmp_name_name_12; - PyObject *tmp_globals_arg_name_12; - PyObject *tmp_locals_arg_name_12; - PyObject *tmp_fromlist_name_12; - PyObject *tmp_level_name_12; - tmp_name_name_12 = mod_consts[164]; - tmp_globals_arg_name_12 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_12 = Py_None; - tmp_fromlist_name_12 = mod_consts[165]; - tmp_level_name_12 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 21; - tmp_import_name_from_9 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); - if (tmp_import_name_from_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$blip2, - mod_consts[66], - mod_consts[74] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[66]); - } - - Py_DECREF(tmp_import_name_from_9); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[66], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_10; - PyObject *tmp_name_name_13; - PyObject *tmp_globals_arg_name_13; - PyObject *tmp_locals_arg_name_13; - PyObject *tmp_fromlist_name_13; - PyObject *tmp_level_name_13; - tmp_name_name_13 = mod_consts[166]; - tmp_globals_arg_name_13 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_13 = Py_None; - tmp_fromlist_name_13 = mod_consts[167]; - tmp_level_name_13 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 22; - tmp_import_name_from_10 = IMPORT_MODULE5(tmp_name_name_13, tmp_globals_arg_name_13, tmp_locals_arg_name_13, tmp_fromlist_name_13, tmp_level_name_13); - if (tmp_import_name_from_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$blip2, - mod_consts[168], - mod_consts[74] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[168]); - } - - Py_DECREF(tmp_import_name_from_10); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[168], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_name_name_14; - PyObject *tmp_globals_arg_name_14; - PyObject *tmp_locals_arg_name_14; - PyObject *tmp_fromlist_name_14; - PyObject *tmp_level_name_14; - tmp_name_name_14 = mod_consts[169]; - tmp_globals_arg_name_14 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_14 = Py_None; - tmp_fromlist_name_14 = mod_consts[170]; - tmp_level_name_14 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 23; - tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_name_14, tmp_globals_arg_name_14, tmp_locals_arg_name_14, tmp_fromlist_name_14, tmp_level_name_14); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_18; - } - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_import_name_from_11; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_11 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$blip2, - mod_consts[15], - mod_consts[74] - ); - } else { - tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[15]); - } - - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_19); - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_import_name_from_12; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_12 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$blip2, - mod_consts[20], - mod_consts[74] - ); - } else { - tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[20]); - } - - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_20); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_import_name_from_13; - PyObject *tmp_name_name_15; - PyObject *tmp_globals_arg_name_15; - PyObject *tmp_locals_arg_name_15; - PyObject *tmp_fromlist_name_15; - PyObject *tmp_level_name_15; - tmp_name_name_15 = mod_consts[171]; - tmp_globals_arg_name_15 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_15 = Py_None; - tmp_fromlist_name_15 = mod_consts[172]; - tmp_level_name_15 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 24; - tmp_import_name_from_13 = IMPORT_MODULE5(tmp_name_name_15, tmp_globals_arg_name_15, tmp_locals_arg_name_15, tmp_fromlist_name_15, tmp_level_name_15); - if (tmp_import_name_from_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$blip2, - mod_consts[37], - mod_consts[74] - ); - } else { - tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[37]); - } - - Py_DECREF(tmp_import_name_from_13); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[37], tmp_assign_source_21); - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_import_name_from_14; - PyObject *tmp_name_name_16; - PyObject *tmp_globals_arg_name_16; - PyObject *tmp_locals_arg_name_16; - PyObject *tmp_fromlist_name_16; - PyObject *tmp_level_name_16; - tmp_name_name_16 = mod_consts[173]; - tmp_globals_arg_name_16 = (PyObject *)moduledict_models$blip2; - tmp_locals_arg_name_16 = Py_None; - tmp_fromlist_name_16 = mod_consts[174]; - tmp_level_name_16 = mod_consts[74]; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 25; - tmp_import_name_from_14 = IMPORT_MODULE5(tmp_name_name_16, tmp_globals_arg_name_16, tmp_locals_arg_name_16, tmp_fromlist_name_16, tmp_level_name_16); - if (tmp_import_name_from_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_14)) { - tmp_assign_source_22 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_14, - (PyObject *)moduledict_models$blip2, - mod_consts[0], - mod_consts[74] - ); - } else { - tmp_assign_source_22 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[0]); - } - - Py_DECREF(tmp_import_name_from_14); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_22); - } - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_tuple_element_1; - tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[168]); - - if (unlikely(tmp_tuple_element_1 == NULL)) { - tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[168]); - } - - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - tmp_assign_source_23 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_23, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_24 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_24; - } - { - PyObject *tmp_assign_source_25; - tmp_assign_source_25 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[175]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[175]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_1 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[74]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_26 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[175]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[175]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_2, mod_consts[176]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[176]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - tmp_tuple_element_2 = mod_consts[177]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 28; - tmp_assign_source_27 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_27; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_4 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_4, mod_consts[178]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[179]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[180]; - tmp_getattr_default_1 = mod_consts[181]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_5; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_5 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_5 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[180]); - Py_DECREF(tmp_expression_name_5); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_2; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 28; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_2; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_28; - tmp_assign_source_28 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_28; - } - branch_end_2:; - { - PyObject *tmp_assign_source_29; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$blip2$$$class__1_Blip2Base_28 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[180]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[180]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[182], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_4; - } - tmp_dictset_value = mod_consts[177]; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[183], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_4; - } - if (isFrameUnusable(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2)) { - Py_XDECREF(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 = MAKE_FUNCTION_FRAME(codeobj_ea027d7d60a14da7f0ce573c2280d557, module_models$blip2, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2->m_type_description == NULL); - frame_ea027d7d60a14da7f0ce573c2280d557_2 = cache_frame_ea027d7d60a14da7f0ce573c2280d557_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ea027d7d60a14da7f0ce573c2280d557_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ea027d7d60a14da7f0ce573c2280d557_2) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_classmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_condition_result_6 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - tmp_called_name_2 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); - - if (unlikely(tmp_called_name_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[184]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 29; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer(); - - frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame.f_lineno = 29; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - goto condexpr_end_3; - condexpr_false_3:; - - - tmp_classmethod_arg_1 = MAKE_FUNCTION_models$blip2$$$function__1_init_tokenizer(); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1); - Py_DECREF(tmp_classmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_3:; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[185], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - { - PyObject *tmp_defaults_1; - PyObject *tmp_tuple_element_4; - PyObject *tmp_expression_name_6; - tmp_expression_name_6 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[7]); - - if (tmp_expression_name_6 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_6); - } - } - - tmp_tuple_element_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[187]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_defaults_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_defaults_1, 0, tmp_tuple_element_4); - - - tmp_dictset_value = MAKE_FUNCTION_models$blip2$$$function__2_maybe_autocast(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[188], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_defaults_2; - PyObject *tmp_classmethod_arg_2; - PyObject *tmp_defaults_3; - tmp_res = MAPPING_HAS_ITEM(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_condition_result_7 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - tmp_called_name_3 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); - - if (unlikely(tmp_called_name_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[184]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_defaults_2 = mod_consts[190]; - Py_INCREF(tmp_defaults_2); - - - tmp_args_element_name_2 = MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(tmp_defaults_2); - - frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame.f_lineno = 45; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_defaults_3 = mod_consts[190]; - Py_INCREF(tmp_defaults_3); - - - tmp_classmethod_arg_2 = MAKE_FUNCTION_models$blip2$$$function__3_init_Qformer(tmp_defaults_3); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_2); - Py_DECREF(tmp_classmethod_arg_2); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_4:; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[191], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_classmethod_arg_3; - tmp_res = MAPPING_HAS_ITEM(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_condition_result_8 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - tmp_called_name_4 = PyObject_GetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[184]); - - if (unlikely(tmp_called_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[184]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 60; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_3 = MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder(); - - frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame.f_lineno = 60; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - goto condexpr_end_5; - condexpr_false_5:; - - - tmp_classmethod_arg_3 = MAKE_FUNCTION_models$blip2$$$function__4_init_vision_encoder(); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_3); - Py_DECREF(tmp_classmethod_arg_3); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_5:; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[193], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$blip2$$$function__5_load_from_pretrained(); - - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[195], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea027d7d60a14da7f0ce573c2280d557_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea027d7d60a14da7f0ce573c2280d557_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ea027d7d60a14da7f0ce573c2280d557_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ea027d7d60a14da7f0ce573c2280d557_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ea027d7d60a14da7f0ce573c2280d557_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ea027d7d60a14da7f0ce573c2280d557_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_ea027d7d60a14da7f0ce573c2280d557_2 == cache_frame_ea027d7d60a14da7f0ce573c2280d557_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ea027d7d60a14da7f0ce573c2280d557_2); - cache_frame_ea027d7d60a14da7f0ce573c2280d557_2 = NULL; - } - - assertFrameObject(frame_ea027d7d60a14da7f0ce573c2280d557_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_4; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_9 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_9 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_4; - } - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_9 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__1_Blip2Base_28, mod_consts[197], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_4; - } - branch_no_4:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_5 = tmp_class_creation_1__metaclass; - tmp_tuple_element_5 = mod_consts[177]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_5 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_5); - tmp_tuple_element_5 = locals_models$blip2$$$class__1_Blip2Base_28; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 28; - tmp_assign_source_30 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - - goto try_except_handler_4; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_30; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_29 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_29); - goto try_return_handler_4; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_DECREF(locals_models$blip2$$$class__1_Blip2Base_28); - locals_models$blip2$$$class__1_Blip2Base_28 = NULL; - goto try_return_handler_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$blip2$$$class__1_Blip2Base_28); - locals_models$blip2$$$class__1_Blip2Base_28 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 28; - goto try_except_handler_2; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[177], tmp_assign_source_29); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_defaults_4; - tmp_defaults_4 = mod_consts[198]; - Py_INCREF(tmp_defaults_4); - - - tmp_assign_source_31 = MAKE_FUNCTION_models$blip2$$$function__6_disabled_train(tmp_defaults_4); - - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[199], tmp_assign_source_31); - } - // Tried code: - { - PyObject *tmp_assign_source_32; - PyObject *tmp_tuple_element_6; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[22]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_tuple_element_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[38]); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_assign_source_32 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_32, 0, tmp_tuple_element_6); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_33 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_34; - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_10; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_11; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[175]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[175]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - goto condexpr_end_6; - condexpr_false_6:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_condition_result_11 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[74]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - goto condexpr_end_7; - condexpr_false_7:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_7:; - condexpr_end_6:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_35 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[175]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_12 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[175]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_13; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[176]); - tmp_condition_result_13 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_36; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[176]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_tuple_element_7 = mod_consts[38]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_7 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 99; - tmp_assign_source_36 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_36; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[178]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_condition_result_14 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_8; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[179]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[180]; - tmp_getattr_default_2 = mod_consts[181]; - tmp_tuple_element_8 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[180]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_8); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_5; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 99; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_5; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_37; - } - branch_end_6:; - { - PyObject *tmp_assign_source_38; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$blip2$$$class__2_LayerNorm_99 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[180]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[180]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[182], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[200]; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[38]; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[183], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_7; - } - if (isFrameUnusable(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3)) { - Py_XDECREF(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = MAKE_FUNCTION_FRAME(codeobj_b99652bcbbfe4fb1c0a49ed927ecc76b, module_models$blip2, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3->m_type_description == NULL); - frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_13; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_dict_key_1 = mod_consts[61]; - tmp_expression_name_13 = PyObject_GetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[7]); - - if (tmp_expression_name_13 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_13); - } - } - - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[201]); - Py_DECREF(tmp_expression_name_13); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - tmp_annotations_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - - tmp_closure_1[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$blip2$$$function__7_forward(tmp_annotations_1, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 == cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); - cache_frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3 = NULL; - } - - assertFrameObject(frame_b99652bcbbfe4fb1c0a49ed927ecc76b_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_7; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_15 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_15 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_7; - } - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_15 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$blip2$$$class__2_LayerNorm_99, mod_consts[197], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_7; - } - branch_no_8:; - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_9; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_7 = tmp_class_creation_2__metaclass; - tmp_tuple_element_9 = mod_consts[38]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_9 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_9); - tmp_tuple_element_9 = locals_models$blip2$$$class__2_LayerNorm_99; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_058485e121bd2827510070e07e93711c->m_frame.f_lineno = 99; - tmp_assign_source_39 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - - goto try_except_handler_7; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_39); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_38 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_38); - goto try_return_handler_7; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_DECREF(locals_models$blip2$$$class__2_LayerNorm_99); - locals_models$blip2$$$class__2_LayerNorm_99 = NULL; - goto try_return_handler_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$blip2$$$class__2_LayerNorm_99); - locals_models$blip2$$$class__2_LayerNorm_99 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 99; - goto try_except_handler_5; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[38], tmp_assign_source_38); - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_058485e121bd2827510070e07e93711c); -#endif - popFrameStack(); - - assertFrameObject(frame_058485e121bd2827510070e07e93711c); - - goto frame_no_exception_3; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_058485e121bd2827510070e07e93711c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_058485e121bd2827510070e07e93711c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_058485e121bd2827510070e07e93711c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_058485e121bd2827510070e07e93711c, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_3:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_40; - - - tmp_assign_source_40 = MAKE_FUNCTION_models$blip2$$$function__8_compute_sim_matrix(); - - UPDATE_STRING_DICT1(moduledict_models$blip2, (Nuitka_StringObject *)mod_consts[203], tmp_assign_source_40); - } - - return module_models$blip2; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.blip2_outputs.const b/medomni/models.build/module.models.blip2_outputs.const deleted file mode 100644 index e7dbdcdd5b631ff32449dc76b18861beaf88787c..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.blip2_outputs.const and /dev/null differ diff --git a/medomni/models.build/module.models.blip2_outputs.cpp b/medomni/models.build/module.models.blip2_outputs.cpp deleted file mode 100644 index 411c6a3f9bfcd6469d67a53a5a23c4fa8de7be96..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.blip2_outputs.cpp +++ /dev/null @@ -1,7105 +0,0 @@ -/* Generated code for Python module 'models.blip2_outputs' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$blip2_outputs" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$blip2_outputs; -PyDictObject *moduledict_models$blip2_outputs; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[66]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.blip2_outputs")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$blip2_outputs(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.blip2_outputs"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_d530d5d84b2cdfab0d209aefd1d08cf3; -static PyCodeObject *codeobj_32f46a2e9ec8fece152478dc8b391448; -static PyCodeObject *codeobj_23aa99519880c8dde09847cac5fec211; -static PyCodeObject *codeobj_bc368e4ff586eae6db3f09b46be90226; -static PyCodeObject *codeobj_59a4d09150903a1bc08258a145347115; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[63]); CHECK_OBJECT(module_filename_obj); - codeobj_d530d5d84b2cdfab0d209aefd1d08cf3 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[64], NULL, NULL, 0, 0, 0); - codeobj_32f46a2e9ec8fece152478dc8b391448 = MAKE_CODEOBJECT(module_filename_obj, 32, CO_NOFREE, mod_consts[38], mod_consts[65], NULL, 0, 0, 0); - codeobj_23aa99519880c8dde09847cac5fec211 = MAKE_CODEOBJECT(module_filename_obj, 73, CO_NOFREE, mod_consts[51], mod_consts[65], NULL, 0, 0, 0); - codeobj_bc368e4ff586eae6db3f09b46be90226 = MAKE_CODEOBJECT(module_filename_obj, 89, CO_NOFREE, mod_consts[58], mod_consts[65], NULL, 0, 0, 0); - codeobj_59a4d09150903a1bc08258a145347115 = MAKE_CODEOBJECT(module_filename_obj, 20, CO_NOFREE, mod_consts[22], mod_consts[65], NULL, 0, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -// The module function definitions. - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$blip2_outputs[] = { - - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$blip2_outputs; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$blip2_outputs) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$blip2_outputs[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$blip2_outputs, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$blip2_outputs(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$blip2_outputs = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.blip2_outputs: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.blip2_outputs: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.blip2_outputs: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$blip2_outputs\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$blip2_outputs = MODULE_DICT(module_models$blip2_outputs); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$blip2_outputs, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$blip2_outputs, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$blip2_outputs, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$blip2_outputs, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$blip2_outputs, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$blip2_outputs); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$blip2_outputs); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - PyObject *outline_3_var___class__ = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - struct Nuitka_FrameObject *frame_d530d5d84b2cdfab0d209aefd1d08cf3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$blip2_outputs$$$class__1_BlipSimilarity_20 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_59a4d09150903a1bc08258a145347115_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_59a4d09150903a1bc08258a145347115_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32 = NULL; - struct Nuitka_FrameObject *frame_32f46a2e9ec8fece152478dc8b391448_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_32f46a2e9ec8fece152478dc8b391448_3 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *locals_models$blip2_outputs$$$class__3_BlipOutput_73 = NULL; - struct Nuitka_FrameObject *frame_23aa99519880c8dde09847cac5fec211_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_23aa99519880c8dde09847cac5fec211_4 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89 = NULL; - struct Nuitka_FrameObject *frame_bc368e4ff586eae6db3f09b46be90226_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_bc368e4ff586eae6db3f09b46be90226_5 = NULL; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[0]; - UPDATE_STRING_DICT0(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_2); - } - // Frame without reuse. - frame_d530d5d84b2cdfab0d209aefd1d08cf3 = MAKE_MODULE_FRAME(codeobj_d530d5d84b2cdfab0d209aefd1d08cf3, module_models$blip2_outputs); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_d530d5d84b2cdfab0d209aefd1d08cf3); - assert(Py_REFCNT(frame_d530d5d84b2cdfab0d209aefd1d08cf3) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[4], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[5], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[6], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[7]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$blip2_outputs; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = mod_consts[8]; - tmp_level_name_1 = mod_consts[9]; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 8; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_4 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$blip2_outputs, - mod_consts[10], - mod_consts[9] - ); - } else { - tmp_assign_source_4 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[10]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[11]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$blip2_outputs; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[12]; - tmp_level_name_2 = mod_consts[9]; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 9; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$blip2_outputs, - mod_consts[13], - mod_consts[9] - ); - } else { - tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[13]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[14]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$blip2_outputs; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[9]; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 11; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[15]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$blip2_outputs; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[16]; - tmp_level_name_4 = mod_consts[9]; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 12; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_7; - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$blip2_outputs, - mod_consts[17], - mod_consts[9] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[17]); - } - - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$blip2_outputs, - mod_consts[18], - mod_consts[9] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[18]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[18], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$blip2_outputs, - mod_consts[19], - mod_consts[9] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[19]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[19], tmp_assign_source_10); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_tuple_element_1; - tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_tuple_element_1 == NULL)) { - tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - tmp_assign_source_11 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_11, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_12 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[20]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_1 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[9]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_14 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_14; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[20]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_2, mod_consts[21]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[21]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - tmp_tuple_element_2 = mod_consts[22]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 20; - tmp_assign_source_15 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_15; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_4 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_4, mod_consts[23]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[24]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[25]; - tmp_getattr_default_1 = mod_consts[26]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_5; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_5 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_5 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[25]); - Py_DECREF(tmp_expression_name_5); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_2; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 20; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_2; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_16; - } - branch_end_2:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto try_except_handler_2; - } - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$blip2_outputs$$$class__1_BlipSimilarity_20 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[25]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[27], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_4; - } - tmp_dictset_value = mod_consts[22]; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[28], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_4; - } - tmp_dictset_value = PyDict_New(); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_4; - } - if (isFrameUnusable(cache_frame_59a4d09150903a1bc08258a145347115_2)) { - Py_XDECREF(cache_frame_59a4d09150903a1bc08258a145347115_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_59a4d09150903a1bc08258a145347115_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_59a4d09150903a1bc08258a145347115_2 = MAKE_FUNCTION_FRAME(codeobj_59a4d09150903a1bc08258a145347115, module_models$blip2_outputs, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_59a4d09150903a1bc08258a145347115_2->m_type_description == NULL); - frame_59a4d09150903a1bc08258a145347115_2 = cache_frame_59a4d09150903a1bc08258a145347115_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_59a4d09150903a1bc08258a145347115_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_59a4d09150903a1bc08258a145347115_2) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[30], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - tmp_expression_name_6 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[14]); - - if (tmp_expression_name_6 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_6); - } - } - - tmp_ass_subvalue_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[31]); - Py_DECREF(tmp_expression_name_6); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscribed_1 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_1 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 21; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 21; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscript_1 = mod_consts[30]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[32], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_expression_name_7 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[14]); - - if (tmp_expression_name_7 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_7); - } - } - - tmp_ass_subvalue_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[31]); - Py_DECREF(tmp_expression_name_7); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscribed_2 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 22; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_ass_subscribed_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_2); - - exception_lineno = 22; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscript_2 = mod_consts[32]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[33], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - tmp_expression_name_8 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[13]); - - if (tmp_expression_name_8 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_8); - } - } - - tmp_expression_name_9 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[14]); - - if (tmp_expression_name_9 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_8); - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_9); - } - } - - tmp_subscript_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[31]); - Py_DECREF(tmp_expression_name_9); - if (tmp_subscript_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_8); - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subvalue_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_8, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_8); - Py_DECREF(tmp_subscript_name_2); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscribed_3 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_3); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_ass_subscribed_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_3); - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscript_3 = mod_consts[33]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subscribed_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[34], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_ass_subvalue_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_ass_subscribed_4; - PyObject *tmp_ass_subscript_4; - tmp_expression_name_10 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[13]); - - if (tmp_expression_name_10 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_10); - } - } - - tmp_expression_name_11 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[14]); - - if (tmp_expression_name_11 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_10); - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_11); - } - } - - tmp_subscript_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[31]); - Py_DECREF(tmp_expression_name_11); - if (tmp_subscript_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_10); - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subvalue_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_3); - Py_DECREF(tmp_expression_name_10); - Py_DECREF(tmp_subscript_name_3); - if (tmp_ass_subvalue_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscribed_4 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_4); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_ass_subscribed_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_4); - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscript_4 = mod_consts[34]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_4, tmp_ass_subscript_4, tmp_ass_subvalue_4); - Py_DECREF(tmp_ass_subscribed_4); - Py_DECREF(tmp_ass_subvalue_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[35], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_ass_subvalue_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_4; - PyObject *tmp_expression_name_13; - PyObject *tmp_ass_subscribed_5; - PyObject *tmp_ass_subscript_5; - tmp_expression_name_12 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[13]); - - if (tmp_expression_name_12 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_12); - } - } - - tmp_expression_name_13 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[14]); - - if (tmp_expression_name_13 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_12); - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_13); - } - } - - tmp_subscript_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[31]); - Py_DECREF(tmp_expression_name_13); - if (tmp_subscript_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_12); - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subvalue_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_12, tmp_subscript_name_4); - Py_DECREF(tmp_expression_name_12); - Py_DECREF(tmp_subscript_name_4); - if (tmp_ass_subvalue_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscribed_5 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_5 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_5); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_ass_subscribed_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_5); - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscript_5 = mod_consts[35]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_5, tmp_ass_subscript_5, tmp_ass_subvalue_5); - Py_DECREF(tmp_ass_subscribed_5); - Py_DECREF(tmp_ass_subvalue_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[36], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_ass_subvalue_6; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_5; - PyObject *tmp_expression_name_15; - PyObject *tmp_ass_subscribed_6; - PyObject *tmp_ass_subscript_6; - tmp_expression_name_14 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[13]); - - if (tmp_expression_name_14 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_14); - } - } - - tmp_expression_name_15 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[14]); - - if (tmp_expression_name_15 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_14); - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_15); - } - } - - tmp_subscript_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[31]); - Py_DECREF(tmp_expression_name_15); - if (tmp_subscript_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_14); - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subvalue_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_14, tmp_subscript_name_5); - Py_DECREF(tmp_expression_name_14); - Py_DECREF(tmp_subscript_name_5); - if (tmp_ass_subvalue_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscribed_6 = PyObject_GetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_6 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_6); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_ass_subscribed_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_6); - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_ass_subscript_6 = mod_consts[36]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_6, tmp_ass_subscript_6, tmp_ass_subvalue_6); - Py_DECREF(tmp_ass_subscribed_6); - Py_DECREF(tmp_ass_subvalue_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_59a4d09150903a1bc08258a145347115_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_59a4d09150903a1bc08258a145347115_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_59a4d09150903a1bc08258a145347115_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_59a4d09150903a1bc08258a145347115_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_59a4d09150903a1bc08258a145347115_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_59a4d09150903a1bc08258a145347115_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_59a4d09150903a1bc08258a145347115_2 == cache_frame_59a4d09150903a1bc08258a145347115_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_59a4d09150903a1bc08258a145347115_2); - cache_frame_59a4d09150903a1bc08258a145347115_2 = NULL; - } - - assertFrameObject(frame_59a4d09150903a1bc08258a145347115_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_4; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_4; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20, mod_consts[37], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_4; - } - branch_no_4:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_3 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[22]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$blip2_outputs$$$class__1_BlipSimilarity_20; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 20; - tmp_assign_source_18 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto try_except_handler_4; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_18; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_args_element_name_1 = outline_0_var___class__; - Py_INCREF(tmp_args_element_name_1); - goto try_return_handler_4; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_DECREF(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20); - locals_models$blip2_outputs$$$class__1_BlipSimilarity_20 = NULL; - goto try_return_handler_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$blip2_outputs$$$class__1_BlipSimilarity_20); - locals_models$blip2_outputs$$$class__1_BlipSimilarity_20 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 20; - goto try_except_handler_2; - outline_result_1:; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 19; - tmp_assign_source_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[22], tmp_assign_source_17); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_tuple_element_5; - tmp_tuple_element_5 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_tuple_element_5 == NULL)) { - tmp_tuple_element_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_assign_source_19 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_19, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_20 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_20; - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_6; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[20]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_16 = tmp_class_creation_2__bases; - tmp_subscript_name_6 = mod_consts[9]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_6, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_22 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_22; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[20]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_17 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[21]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_18 = tmp_class_creation_2__metaclass; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[21]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_tuple_element_6 = mod_consts[38]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 32; - tmp_assign_source_23 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_23; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_19 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[23]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[24]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[25]; - tmp_getattr_default_2 = mod_consts[26]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_20; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_20 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_20 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[25]); - Py_DECREF(tmp_expression_name_20); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 32; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_5; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_24; - } - branch_end_6:; - { - PyObject *tmp_assign_source_25; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_2; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_5; - } - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[25]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[27], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[39]; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[1], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[38]; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[28], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_dictset_value = PyDict_New(); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - if (isFrameUnusable(cache_frame_32f46a2e9ec8fece152478dc8b391448_3)) { - Py_XDECREF(cache_frame_32f46a2e9ec8fece152478dc8b391448_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_32f46a2e9ec8fece152478dc8b391448_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_32f46a2e9ec8fece152478dc8b391448_3 = MAKE_FUNCTION_FRAME(codeobj_32f46a2e9ec8fece152478dc8b391448, module_models$blip2_outputs, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_32f46a2e9ec8fece152478dc8b391448_3->m_type_description == NULL); - frame_32f46a2e9ec8fece152478dc8b391448_3 = cache_frame_32f46a2e9ec8fece152478dc8b391448_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_32f46a2e9ec8fece152478dc8b391448_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_32f46a2e9ec8fece152478dc8b391448_3) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[40], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_ass_subscribed_7; - PyObject *tmp_ass_subscript_7; - tmp_expression_name_21 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_21 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_21); - } - } - - tmp_ass_subvalue_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[31]); - Py_DECREF(tmp_expression_name_21); - if (tmp_ass_subvalue_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_7 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_7 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_7); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 54; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_7); - - exception_lineno = 54; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_7 = mod_consts[40]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_7, tmp_ass_subscript_7, tmp_ass_subvalue_7); - Py_DECREF(tmp_ass_subscribed_7); - Py_DECREF(tmp_ass_subvalue_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[41], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_8; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_7; - PyObject *tmp_expression_name_23; - PyObject *tmp_ass_subscribed_8; - PyObject *tmp_ass_subscript_8; - tmp_expression_name_22 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_22 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_22 == NULL)) { - tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_22); - } - } - - tmp_expression_name_23 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_23 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_22); - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_23); - } - } - - tmp_subscript_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[31]); - Py_DECREF(tmp_expression_name_23); - if (tmp_subscript_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_22); - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subvalue_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_22, tmp_subscript_name_7); - Py_DECREF(tmp_expression_name_22); - Py_DECREF(tmp_subscript_name_7); - if (tmp_ass_subvalue_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_8 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_8 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_8); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_8); - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_8 = mod_consts[41]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_8, tmp_ass_subscript_8, tmp_ass_subvalue_8); - Py_DECREF(tmp_ass_subscribed_8); - Py_DECREF(tmp_ass_subvalue_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[42], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_9; - PyObject *tmp_expression_name_24; - PyObject *tmp_subscript_name_8; - PyObject *tmp_expression_name_25; - PyObject *tmp_ass_subscribed_9; - PyObject *tmp_ass_subscript_9; - tmp_expression_name_24 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_24 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_24 == NULL)) { - tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_24); - } - } - - tmp_expression_name_25 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_25 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_25 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_25 == NULL)) { - tmp_expression_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_24); - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_25); - } - } - - tmp_subscript_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[31]); - Py_DECREF(tmp_expression_name_25); - if (tmp_subscript_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_24); - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subvalue_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_24, tmp_subscript_name_8); - Py_DECREF(tmp_expression_name_24); - Py_DECREF(tmp_subscript_name_8); - if (tmp_ass_subvalue_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_9 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_9 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_9); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_9); - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_9 = mod_consts[42]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_9, tmp_ass_subscript_9, tmp_ass_subvalue_9); - Py_DECREF(tmp_ass_subscribed_9); - Py_DECREF(tmp_ass_subvalue_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[43], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_10; - PyObject *tmp_expression_name_26; - PyObject *tmp_subscript_name_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_ass_subscribed_10; - PyObject *tmp_ass_subscript_10; - tmp_expression_name_26 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_26 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_26 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_26 == NULL)) { - tmp_expression_name_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_26); - } - } - - tmp_expression_name_27 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_27 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_27 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_27 == NULL)) { - tmp_expression_name_27 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_26); - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_27); - } - } - - tmp_subscript_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[31]); - Py_DECREF(tmp_expression_name_27); - if (tmp_subscript_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_26); - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subvalue_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_26, tmp_subscript_name_9); - Py_DECREF(tmp_expression_name_26); - Py_DECREF(tmp_subscript_name_9); - if (tmp_ass_subvalue_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_10 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_10 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_10); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_10); - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_10 = mod_consts[43]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_10, tmp_ass_subscript_10, tmp_ass_subvalue_10); - Py_DECREF(tmp_ass_subscribed_10); - Py_DECREF(tmp_ass_subvalue_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[44], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_11; - PyObject *tmp_expression_name_28; - PyObject *tmp_subscript_name_10; - PyObject *tmp_ass_subscribed_11; - PyObject *tmp_ass_subscript_11; - tmp_expression_name_28 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_28 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_28 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_28 == NULL)) { - tmp_expression_name_28 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_28); - } - } - - tmp_subscript_name_10 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[18]); - - if (tmp_subscript_name_10 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_10 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_subscript_name_10 == NULL)) { - tmp_subscript_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_subscript_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_28); - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_subscript_name_10); - } - } - - tmp_ass_subvalue_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_28, tmp_subscript_name_10); - Py_DECREF(tmp_expression_name_28); - Py_DECREF(tmp_subscript_name_10); - if (tmp_ass_subvalue_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_11 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_11 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_11); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_11); - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_11 = mod_consts[44]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_11, tmp_ass_subscript_11, tmp_ass_subvalue_11); - Py_DECREF(tmp_ass_subscribed_11); - Py_DECREF(tmp_ass_subvalue_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[45], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_12; - PyObject *tmp_expression_name_29; - PyObject *tmp_subscript_name_11; - PyObject *tmp_ass_subscribed_12; - PyObject *tmp_ass_subscript_12; - tmp_expression_name_29 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_29 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_29 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_29 == NULL)) { - tmp_expression_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_29); - } - } - - tmp_subscript_name_11 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[18]); - - if (tmp_subscript_name_11 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_11 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_subscript_name_11 == NULL)) { - tmp_subscript_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_subscript_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_29); - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_subscript_name_11); - } - } - - tmp_ass_subvalue_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_29, tmp_subscript_name_11); - Py_DECREF(tmp_expression_name_29); - Py_DECREF(tmp_subscript_name_11); - if (tmp_ass_subvalue_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_12 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_12 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_12); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_12); - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_12 = mod_consts[45]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_12, tmp_ass_subscript_12, tmp_ass_subvalue_12); - Py_DECREF(tmp_ass_subscribed_12); - Py_DECREF(tmp_ass_subvalue_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[46], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_13; - PyObject *tmp_expression_name_30; - PyObject *tmp_subscript_name_12; - PyObject *tmp_expression_name_31; - PyObject *tmp_ass_subscribed_13; - PyObject *tmp_ass_subscript_13; - tmp_expression_name_30 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_30 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_30 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_30 == NULL)) { - tmp_expression_name_30 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_30); - } - } - - tmp_expression_name_31 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_31 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_31 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_31 == NULL)) { - tmp_expression_name_31 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_30); - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_31); - } - } - - tmp_subscript_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[31]); - Py_DECREF(tmp_expression_name_31); - if (tmp_subscript_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_30); - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subvalue_13 = LOOKUP_SUBSCRIPT(tmp_expression_name_30, tmp_subscript_name_12); - Py_DECREF(tmp_expression_name_30); - Py_DECREF(tmp_subscript_name_12); - if (tmp_ass_subvalue_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_13 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_13 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_13); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_13); - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_13 = mod_consts[46]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_13, tmp_ass_subscript_13, tmp_ass_subvalue_13); - Py_DECREF(tmp_ass_subscribed_13); - Py_DECREF(tmp_ass_subvalue_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[47], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_14; - PyObject *tmp_expression_name_32; - PyObject *tmp_subscript_name_13; - PyObject *tmp_expression_name_33; - PyObject *tmp_ass_subscribed_14; - PyObject *tmp_ass_subscript_14; - tmp_expression_name_32 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_32 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_32 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_32 == NULL)) { - tmp_expression_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_32); - } - } - - tmp_expression_name_33 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_33 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_33 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_33 == NULL)) { - tmp_expression_name_33 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_32); - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_33); - } - } - - tmp_subscript_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[48]); - Py_DECREF(tmp_expression_name_33); - if (tmp_subscript_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_32); - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subvalue_14 = LOOKUP_SUBSCRIPT(tmp_expression_name_32, tmp_subscript_name_13); - Py_DECREF(tmp_expression_name_32); - Py_DECREF(tmp_subscript_name_13); - if (tmp_ass_subvalue_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_14 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_14 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_14); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_14); - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_14 = mod_consts[47]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_14, tmp_ass_subscript_14, tmp_ass_subvalue_14); - Py_DECREF(tmp_ass_subscribed_14); - Py_DECREF(tmp_ass_subvalue_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[49], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_15; - PyObject *tmp_expression_name_34; - PyObject *tmp_subscript_name_14; - PyObject *tmp_ass_subscribed_15; - PyObject *tmp_ass_subscript_15; - tmp_expression_name_34 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_34 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_34); - } - } - - tmp_subscript_name_14 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[19]); - - if (tmp_subscript_name_14 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_14 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[19]); - - if (unlikely(tmp_subscript_name_14 == NULL)) { - tmp_subscript_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[19]); - } - - if (tmp_subscript_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_34); - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_subscript_name_14); - } - } - - tmp_ass_subvalue_15 = LOOKUP_SUBSCRIPT(tmp_expression_name_34, tmp_subscript_name_14); - Py_DECREF(tmp_expression_name_34); - Py_DECREF(tmp_subscript_name_14); - if (tmp_ass_subvalue_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_15 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_15 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_15); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_15); - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_15 = mod_consts[49]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_15, tmp_ass_subscript_15, tmp_ass_subvalue_15); - Py_DECREF(tmp_ass_subscribed_15); - Py_DECREF(tmp_ass_subvalue_15); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[50], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_ass_subvalue_16; - PyObject *tmp_expression_name_35; - PyObject *tmp_subscript_name_15; - PyObject *tmp_expression_name_36; - PyObject *tmp_ass_subscribed_16; - PyObject *tmp_ass_subscript_16; - tmp_expression_name_35 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[13]); - - if (tmp_expression_name_35 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_35 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_35 == NULL)) { - tmp_expression_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_35); - } - } - - tmp_expression_name_36 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[14]); - - if (tmp_expression_name_36 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_35); - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_36); - } - } - - tmp_subscript_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[48]); - Py_DECREF(tmp_expression_name_36); - if (tmp_subscript_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_35); - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subvalue_16 = LOOKUP_SUBSCRIPT(tmp_expression_name_35, tmp_subscript_name_15); - Py_DECREF(tmp_expression_name_35); - Py_DECREF(tmp_subscript_name_15); - if (tmp_ass_subvalue_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscribed_16 = PyObject_GetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_16 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_16); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - if (tmp_ass_subscribed_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_16); - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - tmp_ass_subscript_16 = mod_consts[50]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_16, tmp_ass_subscript_16, tmp_ass_subvalue_16); - Py_DECREF(tmp_ass_subscribed_16); - Py_DECREF(tmp_ass_subvalue_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_32f46a2e9ec8fece152478dc8b391448_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_32f46a2e9ec8fece152478dc8b391448_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_32f46a2e9ec8fece152478dc8b391448_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_32f46a2e9ec8fece152478dc8b391448_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_32f46a2e9ec8fece152478dc8b391448_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_32f46a2e9ec8fece152478dc8b391448_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_32f46a2e9ec8fece152478dc8b391448_3 == cache_frame_32f46a2e9ec8fece152478dc8b391448_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_32f46a2e9ec8fece152478dc8b391448_3); - cache_frame_32f46a2e9ec8fece152478dc8b391448_3 = NULL; - } - - assertFrameObject(frame_32f46a2e9ec8fece152478dc8b391448_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_7; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32, mod_consts[37], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - branch_no_8:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_6 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[38]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 32; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_26; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_args_element_name_2 = outline_1_var___class__; - Py_INCREF(tmp_args_element_name_2); - goto try_return_handler_7; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_DECREF(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32); - locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32 = NULL; - goto try_return_handler_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32); - locals_models$blip2_outputs$$$class__2_BlipIntermediateOutput_32 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 32; - goto try_except_handler_5; - outline_result_2:; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 31; - tmp_assign_source_25 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_5; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[38], tmp_assign_source_25); - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_27; - PyObject *tmp_tuple_element_9; - tmp_tuple_element_9 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_tuple_element_9 == NULL)) { - tmp_tuple_element_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - tmp_assign_source_27 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_27, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_28 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_28; - } - { - PyObject *tmp_assign_source_29; - tmp_assign_source_29 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_29; - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_16; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[20]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_37 = tmp_class_creation_3__bases; - tmp_subscript_name_16 = mod_consts[9]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_37, tmp_subscript_name_16, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_30 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_30; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[20]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_38; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_38 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_38, mod_consts[21]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_39; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_39 = tmp_class_creation_3__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[21]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - tmp_tuple_element_10 = mod_consts[51]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 73; - tmp_assign_source_31 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_31; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_40; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_40 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_40, mod_consts[23]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[24]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[25]; - tmp_getattr_default_3 = mod_consts[26]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_41; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_41 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_41 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[25]); - Py_DECREF(tmp_expression_name_41); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_8; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_8; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 73; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_8; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_32; - tmp_assign_source_32 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_32; - } - branch_end_10:; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_3; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - - goto try_except_handler_8; - } - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$blip2_outputs$$$class__3_BlipOutput_73 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[25]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[27], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[51]; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[28], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_10; - } - tmp_dictset_value = PyDict_New(); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_10; - } - if (isFrameUnusable(cache_frame_23aa99519880c8dde09847cac5fec211_4)) { - Py_XDECREF(cache_frame_23aa99519880c8dde09847cac5fec211_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_23aa99519880c8dde09847cac5fec211_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_23aa99519880c8dde09847cac5fec211_4 = MAKE_FUNCTION_FRAME(codeobj_23aa99519880c8dde09847cac5fec211, module_models$blip2_outputs, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_23aa99519880c8dde09847cac5fec211_4->m_type_description == NULL); - frame_23aa99519880c8dde09847cac5fec211_4 = cache_frame_23aa99519880c8dde09847cac5fec211_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_23aa99519880c8dde09847cac5fec211_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_23aa99519880c8dde09847cac5fec211_4) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[52], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - { - PyObject *tmp_ass_subvalue_17; - PyObject *tmp_expression_name_42; - PyObject *tmp_subscript_name_17; - PyObject *tmp_ass_subscribed_17; - PyObject *tmp_ass_subscript_17; - tmp_expression_name_42 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[13]); - - if (tmp_expression_name_42 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_42 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_42 == NULL)) { - tmp_expression_name_42 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_42); - } - } - - tmp_subscript_name_17 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[22]); - - if (tmp_subscript_name_17 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_17 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[22]); - - if (unlikely(tmp_subscript_name_17 == NULL)) { - tmp_subscript_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); - } - - if (tmp_subscript_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_42); - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_subscript_name_17); - } - } - - tmp_ass_subvalue_17 = LOOKUP_SUBSCRIPT(tmp_expression_name_42, tmp_subscript_name_17); - Py_DECREF(tmp_expression_name_42); - Py_DECREF(tmp_subscript_name_17); - if (tmp_ass_subvalue_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscribed_17 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_17 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_17); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - if (tmp_ass_subscribed_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_17); - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscript_17 = mod_consts[52]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_17, tmp_ass_subscript_17, tmp_ass_subvalue_17); - Py_DECREF(tmp_ass_subscribed_17); - Py_DECREF(tmp_ass_subvalue_17); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[53], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - { - PyObject *tmp_ass_subvalue_18; - PyObject *tmp_ass_subscribed_18; - PyObject *tmp_ass_subscript_18; - tmp_ass_subvalue_18 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[38]); - - if (tmp_ass_subvalue_18 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_ass_subvalue_18 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[38]); - - if (unlikely(tmp_ass_subvalue_18 == NULL)) { - tmp_ass_subvalue_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[38]); - } - - if (tmp_ass_subvalue_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_ass_subvalue_18); - } - } - - tmp_ass_subscribed_18 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_18 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_18); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 77; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - if (tmp_ass_subscribed_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_18); - - exception_lineno = 77; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscript_18 = mod_consts[53]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_18, tmp_ass_subscript_18, tmp_ass_subvalue_18); - Py_DECREF(tmp_ass_subscribed_18); - Py_DECREF(tmp_ass_subvalue_18); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[54], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - { - PyObject *tmp_ass_subvalue_19; - PyObject *tmp_expression_name_43; - PyObject *tmp_subscript_name_18; - PyObject *tmp_expression_name_44; - PyObject *tmp_ass_subscribed_19; - PyObject *tmp_ass_subscript_19; - tmp_expression_name_43 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[13]); - - if (tmp_expression_name_43 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_43 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_43 == NULL)) { - tmp_expression_name_43 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_43); - } - } - - tmp_expression_name_44 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[14]); - - if (tmp_expression_name_44 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_44 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_44 == NULL)) { - tmp_expression_name_44 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_43); - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_44); - } - } - - tmp_subscript_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_44, mod_consts[31]); - Py_DECREF(tmp_expression_name_44); - if (tmp_subscript_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_43); - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subvalue_19 = LOOKUP_SUBSCRIPT(tmp_expression_name_43, tmp_subscript_name_18); - Py_DECREF(tmp_expression_name_43); - Py_DECREF(tmp_subscript_name_18); - if (tmp_ass_subvalue_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscribed_19 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_19 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_19); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - if (tmp_ass_subscribed_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_19); - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscript_19 = mod_consts[54]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_19, tmp_ass_subscript_19, tmp_ass_subvalue_19); - Py_DECREF(tmp_ass_subscribed_19); - Py_DECREF(tmp_ass_subvalue_19); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[55], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - { - PyObject *tmp_ass_subvalue_20; - PyObject *tmp_expression_name_45; - PyObject *tmp_subscript_name_19; - PyObject *tmp_expression_name_46; - PyObject *tmp_ass_subscribed_20; - PyObject *tmp_ass_subscript_20; - tmp_expression_name_45 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[13]); - - if (tmp_expression_name_45 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_45 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_45 == NULL)) { - tmp_expression_name_45 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_45); - } - } - - tmp_expression_name_46 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[14]); - - if (tmp_expression_name_46 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_46 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_46 == NULL)) { - tmp_expression_name_46 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_45); - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_46); - } - } - - tmp_subscript_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[31]); - Py_DECREF(tmp_expression_name_46); - if (tmp_subscript_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_45); - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subvalue_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_45, tmp_subscript_name_19); - Py_DECREF(tmp_expression_name_45); - Py_DECREF(tmp_subscript_name_19); - if (tmp_ass_subvalue_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscribed_20 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_20 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_20); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - if (tmp_ass_subscribed_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_20); - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscript_20 = mod_consts[55]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_20, tmp_ass_subscript_20, tmp_ass_subvalue_20); - Py_DECREF(tmp_ass_subscribed_20); - Py_DECREF(tmp_ass_subvalue_20); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[56], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - { - PyObject *tmp_ass_subvalue_21; - PyObject *tmp_expression_name_47; - PyObject *tmp_subscript_name_20; - PyObject *tmp_expression_name_48; - PyObject *tmp_ass_subscribed_21; - PyObject *tmp_ass_subscript_21; - tmp_expression_name_47 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[13]); - - if (tmp_expression_name_47 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_47 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_47 == NULL)) { - tmp_expression_name_47 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_47); - } - } - - tmp_expression_name_48 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[14]); - - if (tmp_expression_name_48 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_48 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_48 == NULL)) { - tmp_expression_name_48 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_47); - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_48); - } - } - - tmp_subscript_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[31]); - Py_DECREF(tmp_expression_name_48); - if (tmp_subscript_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_47); - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subvalue_21 = LOOKUP_SUBSCRIPT(tmp_expression_name_47, tmp_subscript_name_20); - Py_DECREF(tmp_expression_name_47); - Py_DECREF(tmp_subscript_name_20); - if (tmp_ass_subvalue_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscribed_21 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_21 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_21); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - if (tmp_ass_subscribed_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_21); - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscript_21 = mod_consts[56]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_21, tmp_ass_subscript_21, tmp_ass_subvalue_21); - Py_DECREF(tmp_ass_subscribed_21); - Py_DECREF(tmp_ass_subvalue_21); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[57], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - { - PyObject *tmp_ass_subvalue_22; - PyObject *tmp_expression_name_49; - PyObject *tmp_subscript_name_21; - PyObject *tmp_expression_name_50; - PyObject *tmp_ass_subscribed_22; - PyObject *tmp_ass_subscript_22; - tmp_expression_name_49 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[13]); - - if (tmp_expression_name_49 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_49 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_49 == NULL)) { - tmp_expression_name_49 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_49); - } - } - - tmp_expression_name_50 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[14]); - - if (tmp_expression_name_50 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_50 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_50 == NULL)) { - tmp_expression_name_50 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_49); - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - Py_INCREF(tmp_expression_name_50); - } - } - - tmp_subscript_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[31]); - Py_DECREF(tmp_expression_name_50); - if (tmp_subscript_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_49); - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subvalue_22 = LOOKUP_SUBSCRIPT(tmp_expression_name_49, tmp_subscript_name_21); - Py_DECREF(tmp_expression_name_49); - Py_DECREF(tmp_subscript_name_21); - if (tmp_ass_subvalue_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscribed_22 = PyObject_GetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_22 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_22); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - if (tmp_ass_subscribed_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_22); - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - tmp_ass_subscript_22 = mod_consts[57]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_22, tmp_ass_subscript_22, tmp_ass_subvalue_22); - Py_DECREF(tmp_ass_subscribed_22); - Py_DECREF(tmp_ass_subvalue_22); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_23aa99519880c8dde09847cac5fec211_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_23aa99519880c8dde09847cac5fec211_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_23aa99519880c8dde09847cac5fec211_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_23aa99519880c8dde09847cac5fec211_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_23aa99519880c8dde09847cac5fec211_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_23aa99519880c8dde09847cac5fec211_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_23aa99519880c8dde09847cac5fec211_4 == cache_frame_23aa99519880c8dde09847cac5fec211_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_23aa99519880c8dde09847cac5fec211_4); - cache_frame_23aa99519880c8dde09847cac5fec211_4 = NULL; - } - - assertFrameObject(frame_23aa99519880c8dde09847cac5fec211_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_10; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_10; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__3_BlipOutput_73, mod_consts[37], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_10; - } - branch_no_12:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_9; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_9 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[51]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$blip2_outputs$$$class__3_BlipOutput_73; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 73; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - - goto try_except_handler_10; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_34; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_args_element_name_3 = outline_2_var___class__; - Py_INCREF(tmp_args_element_name_3); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_DECREF(locals_models$blip2_outputs$$$class__3_BlipOutput_73); - locals_models$blip2_outputs$$$class__3_BlipOutput_73 = NULL; - goto try_return_handler_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$blip2_outputs$$$class__3_BlipOutput_73); - locals_models$blip2_outputs$$$class__3_BlipOutput_73 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_9; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 73; - goto try_except_handler_8; - outline_result_3:; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 72; - tmp_assign_source_33 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - - goto try_except_handler_8; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[51], tmp_assign_source_33); - } - goto try_end_4; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_35; - PyObject *tmp_tuple_element_13; - tmp_tuple_element_13 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_tuple_element_13 == NULL)) { - tmp_tuple_element_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - tmp_assign_source_35 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_35, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_35; - } - { - PyObject *tmp_assign_source_36; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_36 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_36; - } - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_37; - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_51; - PyObject *tmp_subscript_name_22; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[20]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_51 = tmp_class_creation_4__bases; - tmp_subscript_name_22 = mod_consts[9]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_51, tmp_subscript_name_22, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_38 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_38; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[20]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[20]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_52; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_52 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_52, mod_consts[21]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_53; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_53 = tmp_class_creation_4__metaclass; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_53, mod_consts[21]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - tmp_tuple_element_14 = mod_consts[58]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 89; - tmp_assign_source_39 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_39; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_54; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_54 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_54, mod_consts[23]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[24]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[25]; - tmp_getattr_default_4 = mod_consts[26]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_55; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_55 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_55 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[25]); - Py_DECREF(tmp_expression_name_55); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_11; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_11; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 89; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_11; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_40; - tmp_assign_source_40 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_40; - } - branch_end_14:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_11; - PyObject *tmp_args_element_name_4; - tmp_called_name_11 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_name_11 == NULL)) { - tmp_called_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - - goto try_except_handler_11; - } - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[25]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[27], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[59]; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[1], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[58]; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[28], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - tmp_dictset_value = PyDict_New(); - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[29], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - if (isFrameUnusable(cache_frame_bc368e4ff586eae6db3f09b46be90226_5)) { - Py_XDECREF(cache_frame_bc368e4ff586eae6db3f09b46be90226_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bc368e4ff586eae6db3f09b46be90226_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bc368e4ff586eae6db3f09b46be90226_5 = MAKE_FUNCTION_FRAME(codeobj_bc368e4ff586eae6db3f09b46be90226, module_models$blip2_outputs, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bc368e4ff586eae6db3f09b46be90226_5->m_type_description == NULL); - frame_bc368e4ff586eae6db3f09b46be90226_5 = cache_frame_bc368e4ff586eae6db3f09b46be90226_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bc368e4ff586eae6db3f09b46be90226_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bc368e4ff586eae6db3f09b46be90226_5) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[40], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - { - PyObject *tmp_ass_subvalue_23; - PyObject *tmp_expression_name_56; - PyObject *tmp_subscript_name_23; - PyObject *tmp_expression_name_57; - PyObject *tmp_ass_subscribed_23; - PyObject *tmp_ass_subscript_23; - tmp_expression_name_56 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[13]); - - if (tmp_expression_name_56 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_56 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_56 == NULL)) { - tmp_expression_name_56 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_56); - } - } - - tmp_expression_name_57 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[14]); - - if (tmp_expression_name_57 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_57 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_57 == NULL)) { - tmp_expression_name_57 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_56); - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_57); - } - } - - tmp_subscript_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[31]); - Py_DECREF(tmp_expression_name_57); - if (tmp_subscript_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_56); - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subvalue_23 = LOOKUP_SUBSCRIPT(tmp_expression_name_56, tmp_subscript_name_23); - Py_DECREF(tmp_expression_name_56); - Py_DECREF(tmp_subscript_name_23); - if (tmp_ass_subvalue_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscribed_23 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_23 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_23); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - if (tmp_ass_subscribed_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_23); - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscript_23 = mod_consts[40]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_23, tmp_ass_subscript_23, tmp_ass_subvalue_23); - Py_DECREF(tmp_ass_subscribed_23); - Py_DECREF(tmp_ass_subvalue_23); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - { - PyObject *tmp_ass_subvalue_24; - PyObject *tmp_expression_name_58; - PyObject *tmp_subscript_name_24; - PyObject *tmp_expression_name_59; - PyObject *tmp_ass_subscribed_24; - PyObject *tmp_ass_subscript_24; - tmp_expression_name_58 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[13]); - - if (tmp_expression_name_58 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_58 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_58 == NULL)) { - tmp_expression_name_58 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_58); - } - } - - tmp_expression_name_59 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[14]); - - if (tmp_expression_name_59 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_59 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_59 == NULL)) { - tmp_expression_name_59 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_58); - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_59); - } - } - - tmp_subscript_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[31]); - Py_DECREF(tmp_expression_name_59); - if (tmp_subscript_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_58); - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subvalue_24 = LOOKUP_SUBSCRIPT(tmp_expression_name_58, tmp_subscript_name_24); - Py_DECREF(tmp_expression_name_58); - Py_DECREF(tmp_subscript_name_24); - if (tmp_ass_subvalue_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscribed_24 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_24 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_24); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - if (tmp_ass_subscribed_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_24); - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscript_24 = mod_consts[60]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_24, tmp_ass_subscript_24, tmp_ass_subvalue_24); - Py_DECREF(tmp_ass_subscribed_24); - Py_DECREF(tmp_ass_subvalue_24); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[41], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - { - PyObject *tmp_ass_subvalue_25; - PyObject *tmp_expression_name_60; - PyObject *tmp_subscript_name_25; - PyObject *tmp_expression_name_61; - PyObject *tmp_ass_subscribed_25; - PyObject *tmp_ass_subscript_25; - tmp_expression_name_60 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[13]); - - if (tmp_expression_name_60 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_60 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_60 == NULL)) { - tmp_expression_name_60 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_60); - } - } - - tmp_expression_name_61 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[14]); - - if (tmp_expression_name_61 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_61 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_61 == NULL)) { - tmp_expression_name_61 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_60); - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_61); - } - } - - tmp_subscript_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[31]); - Py_DECREF(tmp_expression_name_61); - if (tmp_subscript_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_60); - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subvalue_25 = LOOKUP_SUBSCRIPT(tmp_expression_name_60, tmp_subscript_name_25); - Py_DECREF(tmp_expression_name_60); - Py_DECREF(tmp_subscript_name_25); - if (tmp_ass_subvalue_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscribed_25 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_25 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_25); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - if (tmp_ass_subscribed_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_25); - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscript_25 = mod_consts[41]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_25, tmp_ass_subscript_25, tmp_ass_subvalue_25); - Py_DECREF(tmp_ass_subscribed_25); - Py_DECREF(tmp_ass_subvalue_25); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[61], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - { - PyObject *tmp_ass_subvalue_26; - PyObject *tmp_expression_name_62; - PyObject *tmp_subscript_name_26; - PyObject *tmp_expression_name_63; - PyObject *tmp_ass_subscribed_26; - PyObject *tmp_ass_subscript_26; - tmp_expression_name_62 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[13]); - - if (tmp_expression_name_62 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_62 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_62 == NULL)) { - tmp_expression_name_62 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_62); - } - } - - tmp_expression_name_63 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[14]); - - if (tmp_expression_name_63 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_63 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_63 == NULL)) { - tmp_expression_name_63 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_62); - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_63); - } - } - - tmp_subscript_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[31]); - Py_DECREF(tmp_expression_name_63); - if (tmp_subscript_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_62); - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subvalue_26 = LOOKUP_SUBSCRIPT(tmp_expression_name_62, tmp_subscript_name_26); - Py_DECREF(tmp_expression_name_62); - Py_DECREF(tmp_subscript_name_26); - if (tmp_ass_subvalue_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscribed_26 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_26 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_26); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - if (tmp_ass_subscribed_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_26); - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscript_26 = mod_consts[61]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_26, tmp_ass_subscript_26, tmp_ass_subvalue_26); - Py_DECREF(tmp_ass_subscribed_26); - Py_DECREF(tmp_ass_subvalue_26); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - tmp_dictset_value = Py_None; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[62], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - { - PyObject *tmp_ass_subvalue_27; - PyObject *tmp_expression_name_64; - PyObject *tmp_subscript_name_27; - PyObject *tmp_expression_name_65; - PyObject *tmp_ass_subscribed_27; - PyObject *tmp_ass_subscript_27; - tmp_expression_name_64 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[13]); - - if (tmp_expression_name_64 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_64 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_64 == NULL)) { - tmp_expression_name_64 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_64); - } - } - - tmp_expression_name_65 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[14]); - - if (tmp_expression_name_65 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_65 = GET_STRING_DICT_VALUE(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_expression_name_65 == NULL)) { - tmp_expression_name_65 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_expression_name_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_64); - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_65); - } - } - - tmp_subscript_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[31]); - Py_DECREF(tmp_expression_name_65); - if (tmp_subscript_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_64); - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subvalue_27 = LOOKUP_SUBSCRIPT(tmp_expression_name_64, tmp_subscript_name_27); - Py_DECREF(tmp_expression_name_64); - Py_DECREF(tmp_subscript_name_27); - if (tmp_ass_subvalue_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscribed_27 = PyObject_GetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[29]); - - if (unlikely(tmp_ass_subscribed_27 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - Py_DECREF(tmp_ass_subvalue_27); - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[29]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - - if (tmp_ass_subscribed_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_27); - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - tmp_ass_subscript_27 = mod_consts[62]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_27, tmp_ass_subscript_27, tmp_ass_subvalue_27); - Py_DECREF(tmp_ass_subscribed_27); - Py_DECREF(tmp_ass_subvalue_27); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bc368e4ff586eae6db3f09b46be90226_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bc368e4ff586eae6db3f09b46be90226_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bc368e4ff586eae6db3f09b46be90226_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bc368e4ff586eae6db3f09b46be90226_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bc368e4ff586eae6db3f09b46be90226_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bc368e4ff586eae6db3f09b46be90226_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_bc368e4ff586eae6db3f09b46be90226_5 == cache_frame_bc368e4ff586eae6db3f09b46be90226_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bc368e4ff586eae6db3f09b46be90226_5); - cache_frame_bc368e4ff586eae6db3f09b46be90226_5 = NULL; - } - - assertFrameObject(frame_bc368e4ff586eae6db3f09b46be90226_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_13; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89, mod_consts[37], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - branch_no_16:; - { - PyObject *tmp_assign_source_42; - PyObject *tmp_called_name_12; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_12 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[58]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 89; - tmp_assign_source_42 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - - goto try_except_handler_13; - } - assert(outline_3_var___class__ == NULL); - outline_3_var___class__ = tmp_assign_source_42; - } - CHECK_OBJECT(outline_3_var___class__); - tmp_args_element_name_4 = outline_3_var___class__; - Py_INCREF(tmp_args_element_name_4); - goto try_return_handler_13; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - Py_DECREF(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89); - locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89 = NULL; - goto try_return_handler_12; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89); - locals_models$blip2_outputs$$$class__4_BlipOutputFeatures_89 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_12; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 89; - goto try_except_handler_11; - outline_result_4:; - frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame.f_lineno = 88; - tmp_assign_source_41 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - - goto try_except_handler_11; - } - UPDATE_STRING_DICT1(moduledict_models$blip2_outputs, (Nuitka_StringObject *)mod_consts[58], tmp_assign_source_41); - } - goto try_end_5; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d530d5d84b2cdfab0d209aefd1d08cf3); -#endif - popFrameStack(); - - assertFrameObject(frame_d530d5d84b2cdfab0d209aefd1d08cf3); - - goto frame_no_exception_5; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d530d5d84b2cdfab0d209aefd1d08cf3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d530d5d84b2cdfab0d209aefd1d08cf3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d530d5d84b2cdfab0d209aefd1d08cf3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d530d5d84b2cdfab0d209aefd1d08cf3, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_5:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - - return module_models$blip2_outputs; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.const b/medomni/models.build/module.models.const deleted file mode 100644 index 45245da0e851c4442be4f90a2a69fadb35f3e1a1..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.const and /dev/null differ diff --git a/medomni/models.build/module.models.cpp b/medomni/models.build/module.models.cpp deleted file mode 100644 index c2a190fd0eb9c87119d6481b039079306a9bf701..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.cpp +++ /dev/null @@ -1,10884 +0,0 @@ -/* Generated code for Python module 'models' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models; -PyDictObject *moduledict_models; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[147]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_4777da0a37fa73ff6635d4eaff77d3fc; -static PyCodeObject *codeobj_b1db33e43955f87a8a2ee720ed8431ae; -static PyCodeObject *codeobj_363d192a44937f32417f15029b021df5; -static PyCodeObject *codeobj_72d33f092ce284e25ff5e5267423439e; -static PyCodeObject *codeobj_da5fc521af8681666a04d7c4becfd4f6; -static PyCodeObject *codeobj_0f2082830916959456ffaf17ca3f97c9; -static PyCodeObject *codeobj_c3c82eb0bf120804275f4f91d2bd99c7; -static PyCodeObject *codeobj_345f9b676b7c503fdf12b10e713239a4; -static PyCodeObject *codeobj_a1ff221c4fb1e4ec4f516f82b218dca5; -static PyCodeObject *codeobj_26067f56e445e8be2364d8b047b0369a; -static PyCodeObject *codeobj_fe2cd4692aef62e7724c5cfc72c4c128; -static PyCodeObject *codeobj_8e01d5b362d6df18e9f336fc94ed971c; -static PyCodeObject *codeobj_28d96cf50f456a1141613d0f55135c5a; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[134]); CHECK_OBJECT(module_filename_obj); - codeobj_4777da0a37fa73ff6635d4eaff77d3fc = MAKE_CODEOBJECT(module_filename_obj, 173, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[135], mod_consts[136], NULL, 1, 0, 0); - codeobj_b1db33e43955f87a8a2ee720ed8431ae = MAKE_CODEOBJECT(module_filename_obj, 186, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[137], mod_consts[138], NULL, 1, 0, 0); - codeobj_363d192a44937f32417f15029b021df5 = MAKE_CODEOBJECT(module_filename_obj, 197, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[137], mod_consts[139], NULL, 1, 0, 0); - codeobj_72d33f092ce284e25ff5e5267423439e = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[140], NULL, NULL, 0, 0, 0); - codeobj_da5fc521af8681666a04d7c4becfd4f6 = MAKE_CODEOBJECT(module_filename_obj, 161, CO_NOFREE, mod_consts[122], mod_consts[141], NULL, 0, 0, 0); - codeobj_0f2082830916959456ffaf17ca3f97c9 = MAKE_CODEOBJECT(module_filename_obj, 172, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[125], mod_consts[142], NULL, 1, 0, 0); - codeobj_c3c82eb0bf120804275f4f91d2bd99c7 = MAKE_CODEOBJECT(module_filename_obj, 193, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[142], NULL, 1, 0, 0); - codeobj_345f9b676b7c503fdf12b10e713239a4 = MAKE_CODEOBJECT(module_filename_obj, 196, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[132], mod_consts[142], NULL, 1, 0, 0); - codeobj_a1ff221c4fb1e4ec4f516f82b218dca5 = MAKE_CODEOBJECT(module_filename_obj, 178, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[129], mod_consts[142], NULL, 1, 0, 0); - codeobj_26067f56e445e8be2364d8b047b0369a = MAKE_CODEOBJECT(module_filename_obj, 77, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[29], mod_consts[143], NULL, 1, 0, 0); - codeobj_fe2cd4692aef62e7724c5cfc72c4c128 = MAKE_CODEOBJECT(module_filename_obj, 27, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[111], mod_consts[144], NULL, 5, 0, 0); - codeobj_8e01d5b362d6df18e9f336fc94ed971c = MAKE_CODEOBJECT(module_filename_obj, 113, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[113], mod_consts[145], NULL, 4, 0, 0); - codeobj_28d96cf50f456a1141613d0f55135c5a = MAKE_CODEOBJECT(module_filename_obj, 61, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[53], mod_consts[146], NULL, 1, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__8_complex_call_helper_star_dict(PyObject **python_pars); - - -NUITKA_LOCAL_MODULE PyObject *impl_models$$$function__3_get_callable_name_desc(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__9_complex_call_helper_pos_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__7_complex_call_helper_pos_keywords_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__4__unpack_list(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__6__unpack_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$$$function__1_load_model(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$$$function__2_load_preprocess(); - - -static PyObject *MAKE_FUNCTION_models$$$function__2_load_preprocess$$$function__1__build_proc_from_cfg(); - - -static PyObject *MAKE_FUNCTION_models$$$function__3_load_model_and_preprocess(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$$$function__4___init__(PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$$$function__5___str__(PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$$$function__6___iter__(); - - -static PyObject *MAKE_FUNCTION_models$$$function__7___len__(); - - -// The module function definitions. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_bases = python_pars[0]; - PyObject *tmp_base = NULL; - PyObject *tmp_iter = NULL; - PyObject *tmp_list = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_bases); - tmp_iter_arg_1 = par_bases; - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_iter == NULL); - tmp_iter = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_list == NULL); - tmp_list = tmp_assign_source_2; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_iter); - tmp_next_source_1 = tmp_iter; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_base; - tmp_base = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_issubclass_cls_1; - CHECK_OBJECT(tmp_base); - tmp_issubclass_cls_1 = tmp_base; - tmp_res = PyType_Check(tmp_issubclass_cls_1); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - CHECK_OBJECT(tmp_list); - tmp_append_list_1 = tmp_list; - CHECK_OBJECT(tmp_base); - tmp_append_value_1 = tmp_base; - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND0(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_base); - tmp_expression_name_1 = tmp_base; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[0]); - tmp_condition_result_2 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_list_arg_name_1; - PyObject *tmp_value_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_list_extend_result_1; - CHECK_OBJECT(tmp_list); - tmp_list_arg_name_1 = tmp_list; - CHECK_OBJECT(tmp_base); - tmp_expression_name_2 = tmp_base; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[0]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - if (par_bases == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_args_element_name_1 = par_bases; - tmp_value_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_value_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(PyList_Check(tmp_list_arg_name_1)); - tmp_result = LIST_EXTEND(tmp_list_arg_name_1, tmp_value_name_1); - Py_DECREF(tmp_value_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_list_extend_result_1 = Py_None; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_append_list_2; - PyObject *tmp_append_value_2; - CHECK_OBJECT(tmp_list); - tmp_append_list_2 = tmp_list; - CHECK_OBJECT(tmp_base); - tmp_append_value_2 = tmp_base; - assert(PyList_Check(tmp_append_list_2)); - tmp_result = LIST_APPEND0(tmp_append_list_2, tmp_append_value_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - branch_end_2:; - branch_end_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - { - PyObject *tmp_tuple_arg_1; - CHECK_OBJECT(tmp_list); - tmp_tuple_arg_1 = tmp_list; - tmp_return_value = PySequence_Tuple(tmp_tuple_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto try_return_handler_1; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(tmp_list); - Py_DECREF(tmp_list); - tmp_list = NULL; - Py_XDECREF(tmp_iter); - tmp_iter = NULL; - Py_XDECREF(tmp_base); - tmp_base = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_list); - tmp_list = NULL; - Py_XDECREF(tmp_iter); - tmp_iter = NULL; - Py_XDECREF(tmp_base); - tmp_base = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_bases); - Py_DECREF(par_bases); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_bases); - Py_DECREF(par_bases); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__8_complex_call_helper_star_dict(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_called = python_pars[0]; - PyObject *par_star_arg_dict = python_pars[1]; - PyObject *tmp_mapping_1__dict = NULL; - PyObject *tmp_mapping_1__iter = NULL; - PyObject *tmp_mapping_1__key = NULL; - PyObject *tmp_mapping_1__keys = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - bool tmp_result; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_type_arg_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_type_arg_1 = par_star_arg_dict; - tmp_compexpr_left_1 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_compexpr_left_1 == NULL)); - tmp_compexpr_right_1 = (PyObject *)&PyDict_Type; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_called_instance_1 = par_star_arg_dict; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[2]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_2; - } - assert(tmp_mapping_1__keys == NULL); - tmp_mapping_1__keys = tmp_assign_source_1; - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = exception_keeper_type_1; - tmp_compexpr_right_2 = PyExc_AttributeError; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_2, tmp_compexpr_right_2); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg1_1; - tmp_left_name_1 = mod_consts[3]; - CHECK_OBJECT(par_called); - tmp_dircall_arg1_1 = par_called; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_tuple_element_1 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_1 == NULL)); - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - if (par_star_arg_dict == NULL) { - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - ADD_EXCEPTION_CONTEXT(&exception_keeper_type_1, &exception_keeper_value_1); - - - - goto tuple_build_exception_1; - } - - tmp_type_arg_2 = par_star_arg_dict; - tmp_expression_name_1 = BUILTIN_TYPE1(tmp_type_arg_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[5]); - Py_DECREF(tmp_expression_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto try_except_handler_1; - } - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - goto branch_end_2; - branch_no_2:; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_1; - branch_end_2:; - // End of try: - try_end_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(tmp_mapping_1__keys); - tmp_iter_arg_1 = tmp_mapping_1__keys; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_mapping_1__iter == NULL); - tmp_mapping_1__iter = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyDict_New(); - assert(tmp_mapping_1__dict == NULL); - tmp_mapping_1__dict = tmp_assign_source_3; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_mapping_1__iter); - tmp_next_source_1 = tmp_mapping_1__iter; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_mapping_1__key; - tmp_mapping_1__key = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_mapping_1__key); - tmp_compexpr_left_3 = tmp_mapping_1__key; - if (tmp_mapping_1__dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_compexpr_right_3 = tmp_mapping_1__dict; - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_make_exception_arg_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_dircall_arg1_2; - tmp_left_name_2 = mod_consts[7]; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_dircall_arg1_2 = par_called; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_tuple_element_2 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_2 == NULL)); - tmp_right_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_mapping_1__key); - tmp_tuple_element_2 = tmp_mapping_1__key; - PyTuple_SET_ITEM0(tmp_right_name_2, 1, tmp_tuple_element_2); - tmp_make_exception_arg_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_make_exception_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_raise_type_2 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_2); - Py_DECREF(tmp_make_exception_arg_2); - assert(!(tmp_raise_type_2 == NULL)); - exception_type = tmp_raise_type_2; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (par_star_arg_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_expression_name_2 = par_star_arg_dict; - CHECK_OBJECT(tmp_mapping_1__key); - tmp_subscript_name_1 = tmp_mapping_1__key; - tmp_ass_subvalue_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - CHECK_OBJECT(tmp_mapping_1__dict); - tmp_ass_subscribed_1 = tmp_mapping_1__dict; - CHECK_OBJECT(tmp_mapping_1__key); - tmp_ass_subscript_1 = tmp_mapping_1__key; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_mapping_1__dict); - tmp_assign_source_5 = tmp_mapping_1__dict; - { - PyObject *old = par_star_arg_dict; - par_star_arg_dict = tmp_assign_source_5; - Py_INCREF(par_star_arg_dict); - Py_XDECREF(old); - } - - } - branch_no_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_mapping_1__dict); - tmp_mapping_1__dict = NULL; - Py_XDECREF(tmp_mapping_1__iter); - tmp_mapping_1__iter = NULL; - Py_XDECREF(tmp_mapping_1__keys); - tmp_mapping_1__keys = NULL; - Py_XDECREF(tmp_mapping_1__key); - tmp_mapping_1__key = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(tmp_mapping_1__dict); - tmp_mapping_1__dict = NULL; - Py_XDECREF(tmp_mapping_1__iter); - tmp_mapping_1__iter = NULL; - Py_XDECREF(tmp_mapping_1__keys); - tmp_mapping_1__keys = NULL; - Py_XDECREF(tmp_mapping_1__key); - tmp_mapping_1__key = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_called_name_1 = par_called; - CHECK_OBJECT(par_star_arg_dict); - tmp_kwargs_name_1 = par_star_arg_dict; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - goto function_return_exit; - } - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_LOCAL_MODULE PyObject *impl_models$$$function__3_get_callable_name_desc(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_called = python_pars[0]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - { - PyObject *tmp_func_arg_1; - CHECK_OBJECT(par_called); - tmp_func_arg_1 = par_called; - tmp_return_value = _PyObject_FunctionStr(tmp_func_arg_1); - assert(!(tmp_return_value == NULL)); - goto function_return_exit; - } - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_called = python_pars[0]; - PyObject *par_kw = python_pars[1]; - PyObject *par_star_arg_dict = python_pars[2]; - PyObject *tmp_dict_1__dict = NULL; - PyObject *tmp_dict_1__iter = NULL; - PyObject *tmp_dict_1__key_xxx = NULL; - PyObject *tmp_dict_1__keys = NULL; - PyObject *tmp_dict_2__item = NULL; - PyObject *tmp_dict_2__iter = NULL; - PyObject *tmp_dict_2__key = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - bool tmp_result; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_type_arg_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_type_arg_1 = par_star_arg_dict; - tmp_compexpr_left_1 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_compexpr_left_1 == NULL)); - tmp_compexpr_right_1 = (PyObject *)&PyDict_Type; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_called_instance_1 = par_star_arg_dict; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[2]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_2; - } - assert(tmp_dict_1__keys == NULL); - tmp_dict_1__keys = tmp_assign_source_1; - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = exception_keeper_type_1; - tmp_compexpr_right_2 = PyExc_AttributeError; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_2, tmp_compexpr_right_2); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg1_1; - tmp_left_name_1 = mod_consts[3]; - CHECK_OBJECT(par_called); - tmp_dircall_arg1_1 = par_called; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_tuple_element_1 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_1 == NULL)); - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - if (par_star_arg_dict == NULL) { - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - ADD_EXCEPTION_CONTEXT(&exception_keeper_type_1, &exception_keeper_value_1); - - - - goto tuple_build_exception_1; - } - - tmp_type_arg_2 = par_star_arg_dict; - tmp_expression_name_1 = BUILTIN_TYPE1(tmp_type_arg_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[5]); - Py_DECREF(tmp_expression_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto try_except_handler_1; - } - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - goto branch_end_2; - branch_no_2:; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_1; - branch_end_2:; - // End of try: - try_end_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(tmp_dict_1__keys); - tmp_iter_arg_1 = tmp_dict_1__keys; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_dict_1__iter == NULL); - tmp_dict_1__iter = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyDict_New(); - assert(tmp_dict_1__dict == NULL); - tmp_dict_1__dict = tmp_assign_source_3; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_dict_1__iter); - tmp_next_source_1 = tmp_dict_1__iter; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_dict_1__key_xxx; - tmp_dict_1__key_xxx = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_compexpr_left_3 = tmp_dict_1__key_xxx; - if (par_kw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_compexpr_right_3 = par_kw; - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_make_exception_arg_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_dircall_arg1_2; - tmp_left_name_2 = mod_consts[7]; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_dircall_arg1_2 = par_called; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_tuple_element_2 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_2 == NULL)); - tmp_right_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_tuple_element_2 = tmp_dict_1__key_xxx; - PyTuple_SET_ITEM0(tmp_right_name_2, 1, tmp_tuple_element_2); - tmp_make_exception_arg_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_make_exception_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_raise_type_2 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_2); - Py_DECREF(tmp_make_exception_arg_2); - assert(!(tmp_raise_type_2 == NULL)); - exception_type = tmp_raise_type_2; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (par_star_arg_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_expression_name_2 = par_star_arg_dict; - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_subscript_name_1 = tmp_dict_1__key_xxx; - tmp_ass_subvalue_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - if (par_kw == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_ass_subscribed_1 = par_kw; - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_ass_subscript_1 = tmp_dict_1__key_xxx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_truth_name_1 = CHECK_IF_TRUE(par_star_arg_dict); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_4 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_dict_seq_1; - CHECK_OBJECT(par_kw); - tmp_dict_seq_1 = par_kw; - tmp_assign_source_5 = TO_DICT(tmp_dict_seq_1, NULL); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - { - PyObject *old = par_kw; - assert(old != NULL); - par_kw = tmp_assign_source_5; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_star_arg_dict); - tmp_called_instance_2 = par_star_arg_dict; - tmp_iter_arg_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[10]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_dict_2__iter == NULL); - tmp_dict_2__iter = tmp_assign_source_6; - } - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_dict_2__iter); - tmp_next_source_2 = tmp_dict_2__iter; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_dict_2__item; - tmp_dict_2__item = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(tmp_dict_2__item); - tmp_expression_name_3 = tmp_dict_2__item; - tmp_subscript_name_2 = mod_consts[11]; - tmp_assign_source_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 0); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - { - PyObject *old = tmp_dict_2__key; - tmp_dict_2__key = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_dict_2__key); - tmp_compexpr_left_4 = tmp_dict_2__key; - if (par_kw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_compexpr_right_4 = par_kw; - tmp_res = PySequence_Contains(tmp_compexpr_right_4, tmp_compexpr_left_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_5 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_make_exception_arg_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_dircall_arg1_3; - tmp_left_name_3 = mod_consts[7]; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_dircall_arg1_3 = par_called; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_tuple_element_3 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_3 == NULL)); - tmp_right_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_dict_2__key); - tmp_tuple_element_3 = tmp_dict_2__key; - PyTuple_SET_ITEM0(tmp_right_name_3, 1, tmp_tuple_element_3); - tmp_make_exception_arg_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_make_exception_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_raise_type_3 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_3); - Py_DECREF(tmp_make_exception_arg_3); - assert(!(tmp_raise_type_3 == NULL)); - exception_type = tmp_raise_type_3; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_5:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_3; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(tmp_dict_2__item); - tmp_expression_name_4 = tmp_dict_2__item; - tmp_subscript_name_3 = mod_consts[12]; - tmp_ass_subvalue_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_3, 1); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - if (par_kw == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_ass_subscribed_2 = par_kw; - CHECK_OBJECT(tmp_dict_2__key); - tmp_ass_subscript_2 = tmp_dict_2__key; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_2; - loop_end_2:; - branch_no_4:; - branch_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_dict_1__dict); - tmp_dict_1__dict = NULL; - Py_XDECREF(tmp_dict_1__iter); - tmp_dict_1__iter = NULL; - Py_XDECREF(tmp_dict_1__keys); - tmp_dict_1__keys = NULL; - Py_XDECREF(tmp_dict_1__key_xxx); - tmp_dict_1__key_xxx = NULL; - Py_XDECREF(tmp_dict_2__iter); - tmp_dict_2__iter = NULL; - Py_XDECREF(tmp_dict_2__item); - tmp_dict_2__item = NULL; - Py_XDECREF(tmp_dict_2__key); - tmp_dict_2__key = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(tmp_dict_1__dict); - tmp_dict_1__dict = NULL; - Py_XDECREF(tmp_dict_1__iter); - tmp_dict_1__iter = NULL; - Py_XDECREF(tmp_dict_1__keys); - tmp_dict_1__keys = NULL; - Py_XDECREF(tmp_dict_1__key_xxx); - tmp_dict_1__key_xxx = NULL; - Py_XDECREF(tmp_dict_2__iter); - tmp_dict_2__iter = NULL; - Py_XDECREF(tmp_dict_2__item); - tmp_dict_2__item = NULL; - Py_XDECREF(tmp_dict_2__key); - tmp_dict_2__key = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_called_name_1 = par_called; - if (par_kw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_kwargs_name_1 = par_kw; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - goto function_return_exit; - } - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_kw); - Py_DECREF(par_kw); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_kw); - Py_DECREF(par_kw); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__9_complex_call_helper_pos_star_dict(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_called = python_pars[0]; - PyObject *par_args = python_pars[1]; - PyObject *par_star_arg_dict = python_pars[2]; - PyObject *tmp_mapping_1__dict = NULL; - PyObject *tmp_mapping_1__iter = NULL; - PyObject *tmp_mapping_1__key = NULL; - PyObject *tmp_mapping_1__keys = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - bool tmp_result; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_type_arg_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_type_arg_1 = par_star_arg_dict; - tmp_compexpr_left_1 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_compexpr_left_1 == NULL)); - tmp_compexpr_right_1 = (PyObject *)&PyDict_Type; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_called_instance_1 = par_star_arg_dict; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[2]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_2; - } - assert(tmp_mapping_1__keys == NULL); - tmp_mapping_1__keys = tmp_assign_source_1; - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = exception_keeper_type_1; - tmp_compexpr_right_2 = PyExc_AttributeError; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_2, tmp_compexpr_right_2); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg1_1; - tmp_left_name_1 = mod_consts[3]; - CHECK_OBJECT(par_called); - tmp_dircall_arg1_1 = par_called; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_tuple_element_1 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_1 == NULL)); - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - if (par_star_arg_dict == NULL) { - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - ADD_EXCEPTION_CONTEXT(&exception_keeper_type_1, &exception_keeper_value_1); - - - - goto tuple_build_exception_1; - } - - tmp_type_arg_2 = par_star_arg_dict; - tmp_expression_name_1 = BUILTIN_TYPE1(tmp_type_arg_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[5]); - Py_DECREF(tmp_expression_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto try_except_handler_1; - } - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - goto branch_end_2; - branch_no_2:; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_1; - branch_end_2:; - // End of try: - try_end_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(tmp_mapping_1__keys); - tmp_iter_arg_1 = tmp_mapping_1__keys; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_mapping_1__iter == NULL); - tmp_mapping_1__iter = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyDict_New(); - assert(tmp_mapping_1__dict == NULL); - tmp_mapping_1__dict = tmp_assign_source_3; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_mapping_1__iter); - tmp_next_source_1 = tmp_mapping_1__iter; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_mapping_1__key; - tmp_mapping_1__key = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_mapping_1__key); - tmp_compexpr_left_3 = tmp_mapping_1__key; - if (tmp_mapping_1__dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_compexpr_right_3 = tmp_mapping_1__dict; - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_make_exception_arg_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_dircall_arg1_2; - tmp_left_name_2 = mod_consts[7]; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_dircall_arg1_2 = par_called; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_tuple_element_2 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_2 == NULL)); - tmp_right_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_mapping_1__key); - tmp_tuple_element_2 = tmp_mapping_1__key; - PyTuple_SET_ITEM0(tmp_right_name_2, 1, tmp_tuple_element_2); - tmp_make_exception_arg_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_make_exception_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_raise_type_2 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_2); - Py_DECREF(tmp_make_exception_arg_2); - assert(!(tmp_raise_type_2 == NULL)); - exception_type = tmp_raise_type_2; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (par_star_arg_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_expression_name_2 = par_star_arg_dict; - CHECK_OBJECT(tmp_mapping_1__key); - tmp_subscript_name_1 = tmp_mapping_1__key; - tmp_ass_subvalue_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - CHECK_OBJECT(tmp_mapping_1__dict); - tmp_ass_subscribed_1 = tmp_mapping_1__dict; - CHECK_OBJECT(tmp_mapping_1__key); - tmp_ass_subscript_1 = tmp_mapping_1__key; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_mapping_1__dict); - tmp_assign_source_5 = tmp_mapping_1__dict; - { - PyObject *old = par_star_arg_dict; - par_star_arg_dict = tmp_assign_source_5; - Py_INCREF(par_star_arg_dict); - Py_XDECREF(old); - } - - } - branch_no_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_mapping_1__dict); - tmp_mapping_1__dict = NULL; - Py_XDECREF(tmp_mapping_1__iter); - tmp_mapping_1__iter = NULL; - Py_XDECREF(tmp_mapping_1__keys); - tmp_mapping_1__keys = NULL; - Py_XDECREF(tmp_mapping_1__key); - tmp_mapping_1__key = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(tmp_mapping_1__dict); - tmp_mapping_1__dict = NULL; - Py_XDECREF(tmp_mapping_1__iter); - tmp_mapping_1__iter = NULL; - Py_XDECREF(tmp_mapping_1__keys); - tmp_mapping_1__keys = NULL; - Py_XDECREF(tmp_mapping_1__key); - tmp_mapping_1__key = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_called_name_1 = par_called; - CHECK_OBJECT(par_args); - tmp_args_name_1 = par_args; - CHECK_OBJECT(par_star_arg_dict); - tmp_kwargs_name_1 = par_star_arg_dict; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - goto function_return_exit; - } - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_args); - Py_DECREF(par_args); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_args); - Py_DECREF(par_args); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__7_complex_call_helper_pos_keywords_star_dict(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_called = python_pars[0]; - PyObject *par_args = python_pars[1]; - PyObject *par_kw = python_pars[2]; - PyObject *par_star_arg_dict = python_pars[3]; - PyObject *tmp_dict_1__dict = NULL; - PyObject *tmp_dict_1__iter = NULL; - PyObject *tmp_dict_1__key_xxx = NULL; - PyObject *tmp_dict_1__keys = NULL; - PyObject *tmp_dict_2__item = NULL; - PyObject *tmp_dict_2__iter = NULL; - PyObject *tmp_dict_2__key = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - bool tmp_result; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_type_arg_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_type_arg_1 = par_star_arg_dict; - tmp_compexpr_left_1 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_compexpr_left_1 == NULL)); - tmp_compexpr_right_1 = (PyObject *)&PyDict_Type; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_called_instance_1 = par_star_arg_dict; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[2]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_2; - } - assert(tmp_dict_1__keys == NULL); - tmp_dict_1__keys = tmp_assign_source_1; - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = exception_keeper_type_1; - tmp_compexpr_right_2 = PyExc_AttributeError; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_2, tmp_compexpr_right_2); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg1_1; - tmp_left_name_1 = mod_consts[3]; - CHECK_OBJECT(par_called); - tmp_dircall_arg1_1 = par_called; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_tuple_element_1 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_1 == NULL)); - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - if (par_star_arg_dict == NULL) { - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - ADD_EXCEPTION_CONTEXT(&exception_keeper_type_1, &exception_keeper_value_1); - - - - goto tuple_build_exception_1; - } - - tmp_type_arg_2 = par_star_arg_dict; - tmp_expression_name_1 = BUILTIN_TYPE1(tmp_type_arg_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[5]); - Py_DECREF(tmp_expression_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto try_except_handler_1; - } - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - goto branch_end_2; - branch_no_2:; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_1; - branch_end_2:; - // End of try: - try_end_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(tmp_dict_1__keys); - tmp_iter_arg_1 = tmp_dict_1__keys; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_dict_1__iter == NULL); - tmp_dict_1__iter = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyDict_New(); - assert(tmp_dict_1__dict == NULL); - tmp_dict_1__dict = tmp_assign_source_3; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_dict_1__iter); - tmp_next_source_1 = tmp_dict_1__iter; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_dict_1__key_xxx; - tmp_dict_1__key_xxx = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_compexpr_left_3 = tmp_dict_1__key_xxx; - if (par_kw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_compexpr_right_3 = par_kw; - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_make_exception_arg_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_dircall_arg1_2; - tmp_left_name_2 = mod_consts[7]; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_dircall_arg1_2 = par_called; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_tuple_element_2 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_2 == NULL)); - tmp_right_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_tuple_element_2 = tmp_dict_1__key_xxx; - PyTuple_SET_ITEM0(tmp_right_name_2, 1, tmp_tuple_element_2); - tmp_make_exception_arg_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_make_exception_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_raise_type_2 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_2); - Py_DECREF(tmp_make_exception_arg_2); - assert(!(tmp_raise_type_2 == NULL)); - exception_type = tmp_raise_type_2; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (par_star_arg_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_expression_name_2 = par_star_arg_dict; - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_subscript_name_1 = tmp_dict_1__key_xxx; - tmp_ass_subvalue_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - if (par_kw == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_ass_subscribed_1 = par_kw; - CHECK_OBJECT(tmp_dict_1__key_xxx); - tmp_ass_subscript_1 = tmp_dict_1__key_xxx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_1; - CHECK_OBJECT(par_star_arg_dict); - tmp_truth_name_1 = CHECK_IF_TRUE(par_star_arg_dict); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_4 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_dict_seq_1; - CHECK_OBJECT(par_kw); - tmp_dict_seq_1 = par_kw; - tmp_assign_source_5 = TO_DICT(tmp_dict_seq_1, NULL); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - { - PyObject *old = par_kw; - assert(old != NULL); - par_kw = tmp_assign_source_5; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_star_arg_dict); - tmp_called_instance_2 = par_star_arg_dict; - tmp_iter_arg_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[10]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_dict_2__iter == NULL); - tmp_dict_2__iter = tmp_assign_source_6; - } - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_dict_2__iter); - tmp_next_source_2 = tmp_dict_2__iter; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_dict_2__item; - tmp_dict_2__item = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(tmp_dict_2__item); - tmp_expression_name_3 = tmp_dict_2__item; - tmp_subscript_name_2 = mod_consts[11]; - tmp_assign_source_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 0); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - { - PyObject *old = tmp_dict_2__key; - tmp_dict_2__key = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_dict_2__key); - tmp_compexpr_left_4 = tmp_dict_2__key; - if (par_kw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_compexpr_right_4 = par_kw; - tmp_res = PySequence_Contains(tmp_compexpr_right_4, tmp_compexpr_left_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_condition_result_5 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_make_exception_arg_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_dircall_arg1_3; - tmp_left_name_3 = mod_consts[7]; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_dircall_arg1_3 = par_called; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_tuple_element_3 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_3 == NULL)); - tmp_right_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_dict_2__key); - tmp_tuple_element_3 = tmp_dict_2__key; - PyTuple_SET_ITEM0(tmp_right_name_3, 1, tmp_tuple_element_3); - tmp_make_exception_arg_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_make_exception_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_raise_type_3 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_3); - Py_DECREF(tmp_make_exception_arg_3); - assert(!(tmp_raise_type_3 == NULL)); - exception_type = tmp_raise_type_3; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_5:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_3; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(tmp_dict_2__item); - tmp_expression_name_4 = tmp_dict_2__item; - tmp_subscript_name_3 = mod_consts[12]; - tmp_ass_subvalue_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_3, 1); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - if (par_kw == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto try_except_handler_1; - } - - tmp_ass_subscribed_2 = par_kw; - CHECK_OBJECT(tmp_dict_2__key); - tmp_ass_subscript_2 = tmp_dict_2__key; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_2; - loop_end_2:; - branch_no_4:; - branch_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_dict_1__dict); - tmp_dict_1__dict = NULL; - Py_XDECREF(tmp_dict_1__iter); - tmp_dict_1__iter = NULL; - Py_XDECREF(tmp_dict_1__keys); - tmp_dict_1__keys = NULL; - Py_XDECREF(tmp_dict_1__key_xxx); - tmp_dict_1__key_xxx = NULL; - Py_XDECREF(tmp_dict_2__iter); - tmp_dict_2__iter = NULL; - Py_XDECREF(tmp_dict_2__item); - tmp_dict_2__item = NULL; - Py_XDECREF(tmp_dict_2__key); - tmp_dict_2__key = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(tmp_dict_1__dict); - tmp_dict_1__dict = NULL; - Py_XDECREF(tmp_dict_1__iter); - tmp_dict_1__iter = NULL; - Py_XDECREF(tmp_dict_1__keys); - tmp_dict_1__keys = NULL; - Py_XDECREF(tmp_dict_1__key_xxx); - tmp_dict_1__key_xxx = NULL; - Py_XDECREF(tmp_dict_2__iter); - tmp_dict_2__iter = NULL; - Py_XDECREF(tmp_dict_2__item); - tmp_dict_2__item = NULL; - Py_XDECREF(tmp_dict_2__key); - tmp_dict_2__key = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - if (par_called == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_called_name_1 = par_called; - CHECK_OBJECT(par_args); - tmp_args_name_1 = par_args; - if (par_kw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_kwargs_name_1 = par_kw; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - goto function_return_exit; - } - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_args); - Py_DECREF(par_args); - CHECK_OBJECT(par_kw); - Py_DECREF(par_kw); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_args); - Py_DECREF(par_args); - CHECK_OBJECT(par_kw); - Py_DECREF(par_kw); - CHECK_OBJECT(par_star_arg_dict); - Py_DECREF(par_star_arg_dict); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_called = python_pars[0]; - PyObject *par_star_arg_list = python_pars[1]; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - - // Actual function body. - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_type_arg_1; - CHECK_OBJECT(par_star_arg_list); - tmp_type_arg_1 = par_star_arg_list; - tmp_compexpr_left_1 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_compexpr_left_1 == NULL)); - tmp_compexpr_right_1 = (PyObject *)&PyTuple_Type; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_star_arg_list); - tmp_expression_name_1 = par_star_arg_list; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[13]); - tmp_or_left_value_1 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_star_arg_list); - tmp_expression_name_2 = par_star_arg_list; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_2, mod_consts[14]); - tmp_or_right_value_1 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_2 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_2 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_tuple_arg_1; - CHECK_OBJECT(par_star_arg_list); - tmp_tuple_arg_1 = par_star_arg_list; - tmp_assign_source_1 = PySequence_Tuple(tmp_tuple_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - { - PyObject *old = par_star_arg_list; - assert(old != NULL); - par_star_arg_list = tmp_assign_source_1; - Py_DECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg1_1; - tmp_left_name_1 = mod_consts[15]; - CHECK_OBJECT(par_called); - tmp_dircall_arg1_1 = par_called; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_tuple_element_1 = impl_models$$$function__3_get_callable_name_desc(dir_call_args); - } - assert(!(tmp_tuple_element_1 == NULL)); - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_3; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_star_arg_list); - tmp_type_arg_2 = par_star_arg_list; - tmp_expression_name_3 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_3 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[5]); - Py_DECREF(tmp_expression_name_3); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto function_exception_exit; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto function_exception_exit; - } - branch_end_2:; - branch_no_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - CHECK_OBJECT(par_called); - tmp_called_name_1 = par_called; - if (par_star_arg_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - - - goto function_exception_exit; - } - - tmp_args_name_1 = par_star_arg_list; - tmp_return_value = CALL_FUNCTION_WITH_POSARGS(tmp_called_name_1, tmp_args_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto function_exception_exit; - } - goto function_return_exit; - } - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_star_arg_list); - Py_DECREF(par_star_arg_list); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_called); - Py_DECREF(par_called); - CHECK_OBJECT(par_star_arg_list); - Py_DECREF(par_star_arg_list); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__4__unpack_list(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_args = python_pars[0]; - PyObject *tmp_iter = NULL; - PyObject *tmp_keys = NULL; - PyObject *tmp_list = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_args); - tmp_iter_arg_1 = par_args; - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_iter == NULL); - tmp_iter = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_list == NULL); - tmp_list = tmp_assign_source_2; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_iter); - tmp_next_source_1 = tmp_iter; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_keys; - tmp_keys = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_list_arg_name_1; - PyObject *tmp_value_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_list_extend_result_1; - CHECK_OBJECT(tmp_list); - tmp_list_arg_name_1 = tmp_list; - CHECK_OBJECT(tmp_keys); - tmp_value_name_1 = tmp_keys; - assert(PyList_Check(tmp_list_arg_name_1)); - tmp_result = LIST_EXTEND_FOR_UNPACK(tmp_list_arg_name_1, tmp_value_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - tmp_list_extend_result_1 = Py_None; - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_list); - tmp_return_value = tmp_list; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(tmp_list); - Py_DECREF(tmp_list); - tmp_list = NULL; - Py_XDECREF(tmp_iter); - tmp_iter = NULL; - Py_XDECREF(tmp_keys); - tmp_keys = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_list); - tmp_list = NULL; - Py_XDECREF(tmp_iter); - tmp_iter = NULL; - Py_XDECREF(tmp_keys); - tmp_keys = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_args); - Py_DECREF(par_args); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_args); - Py_DECREF(par_args); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__6__unpack_dict(PyObject **python_pars) { -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); - assert(!had_error); // Do not enter inlined functions with error set. -#endif - - // Local variable declarations. - PyObject *par_args = python_pars[0]; - PyObject *tmp_dict = NULL; - PyObject *tmp_iter = NULL; - PyObject *tmp_keys = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_dictupdate_value; - PyObject *tmp_dictupdate_dict; - int tmp_res; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_args); - tmp_iter_arg_1 = par_args; - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - assert(tmp_iter == NULL); - tmp_iter = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyDict_New(); - assert(tmp_dict == NULL); - tmp_dict = tmp_assign_source_2; - } - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_iter); - tmp_next_source_1 = tmp_iter; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - goto try_except_handler_1; - } - } - - { - PyObject *old = tmp_keys; - tmp_keys = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - CHECK_OBJECT(tmp_keys); - tmp_dictupdate_value = tmp_keys; - CHECK_OBJECT(tmp_dict); - tmp_dictupdate_dict = tmp_dict; - assert(PyDict_Check(tmp_dictupdate_dict)); - tmp_res = PyDict_Update(tmp_dictupdate_dict, tmp_dictupdate_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_2; - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = exception_keeper_type_1; - tmp_compexpr_right_1 = PyExc_AttributeError; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_1, tmp_compexpr_right_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_1; - tmp_left_name_1 = mod_consts[17]; - CHECK_OBJECT(tmp_keys); - tmp_type_arg_1 = tmp_keys; - tmp_expression_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_1 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[5]); - Py_DECREF(tmp_expression_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - tmp_make_exception_arg_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_1); - Py_XDECREF(exception_keeper_value_1); - Py_XDECREF(exception_keeper_tb_1); - - - - goto try_except_handler_1; - } - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_TypeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - goto branch_end_1; - branch_no_1:; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_1; - branch_end_1:; - // End of try: - try_end_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - - - goto try_except_handler_1; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_dict); - tmp_return_value = tmp_dict; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(tmp_dict); - Py_DECREF(tmp_dict); - tmp_dict = NULL; - Py_XDECREF(tmp_iter); - tmp_iter = NULL; - Py_XDECREF(tmp_keys); - tmp_keys = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_dict); - tmp_dict = NULL; - Py_XDECREF(tmp_iter); - tmp_iter = NULL; - Py_XDECREF(tmp_keys); - tmp_keys = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - CHECK_OBJECT(par_args); - Py_DECREF(par_args); assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - CHECK_OBJECT(par_args); - Py_DECREF(par_args); - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__1_load_model(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_name = python_pars[0]; - PyObject *par_model_type = python_pars[1]; - PyObject *par_is_eval = python_pars[2]; - PyObject *par_device = python_pars[3]; - PyObject *par_checkpoint = python_pars[4]; - PyObject *var_model = NULL; - struct Nuitka_FrameObject *frame_fe2cd4692aef62e7724c5cfc72c4c128; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_fe2cd4692aef62e7724c5cfc72c4c128 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fe2cd4692aef62e7724c5cfc72c4c128)) { - Py_XDECREF(cache_frame_fe2cd4692aef62e7724c5cfc72c4c128); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fe2cd4692aef62e7724c5cfc72c4c128 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fe2cd4692aef62e7724c5cfc72c4c128 = MAKE_FUNCTION_FRAME(codeobj_fe2cd4692aef62e7724c5cfc72c4c128, module_models, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fe2cd4692aef62e7724c5cfc72c4c128->m_type_description == NULL); - frame_fe2cd4692aef62e7724c5cfc72c4c128 = cache_frame_fe2cd4692aef62e7724c5cfc72c4c128; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fe2cd4692aef62e7724c5cfc72c4c128); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fe2cd4692aef62e7724c5cfc72c4c128) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_name); - tmp_args_element_name_1 = par_name; - frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame.f_lineno = 47; - tmp_expression_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[19], tmp_args_element_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[20]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[21]; - CHECK_OBJECT(par_model_type); - tmp_dict_value_1 = par_model_type; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame.f_lineno = 47; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_1; - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_checkpoint); - tmp_compexpr_left_1 = par_checkpoint; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(var_model); - tmp_called_instance_2 = var_model; - CHECK_OBJECT(par_checkpoint); - tmp_args_element_name_2 = par_checkpoint; - frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame.f_lineno = 50; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[22], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - CHECK_OBJECT(par_is_eval); - tmp_truth_name_1 = CHECK_IF_TRUE(par_is_eval); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_instance_3; - PyObject *tmp_call_result_2; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = var_model; - frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame.f_lineno = 53; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[24]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_device); - tmp_compexpr_left_2 = par_device; - tmp_compexpr_right_2 = mod_consts[25]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 55; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_4; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = var_model; - frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame.f_lineno = 56; - tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[26]); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_model; - var_model = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - branch_no_3:; - { - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_3; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = var_model; - CHECK_OBJECT(par_device); - tmp_args_element_name_3 = par_device; - frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame.f_lineno = 58; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[27], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe2cd4692aef62e7724c5cfc72c4c128); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe2cd4692aef62e7724c5cfc72c4c128); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe2cd4692aef62e7724c5cfc72c4c128); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fe2cd4692aef62e7724c5cfc72c4c128, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fe2cd4692aef62e7724c5cfc72c4c128->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fe2cd4692aef62e7724c5cfc72c4c128, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fe2cd4692aef62e7724c5cfc72c4c128, - type_description_1, - par_name, - par_model_type, - par_is_eval, - par_device, - par_checkpoint, - var_model - ); - - - // Release cached frame if used for exception. - if (frame_fe2cd4692aef62e7724c5cfc72c4c128 == cache_frame_fe2cd4692aef62e7724c5cfc72c4c128) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fe2cd4692aef62e7724c5cfc72c4c128); - cache_frame_fe2cd4692aef62e7724c5cfc72c4c128 = NULL; - } - - assertFrameObject(frame_fe2cd4692aef62e7724c5cfc72c4c128); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - CHECK_OBJECT(par_is_eval); - Py_DECREF(par_is_eval); - par_is_eval = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(par_checkpoint); - par_checkpoint = NULL; - Py_XDECREF(var_model); - var_model = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - CHECK_OBJECT(par_is_eval); - Py_DECREF(par_is_eval); - par_is_eval = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(par_checkpoint); - par_checkpoint = NULL; - Py_XDECREF(var_model); - var_model = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__2_load_preprocess(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config = python_pars[0]; - PyObject *var__build_proc_from_cfg = NULL; - PyObject *var_vis_processors = NULL; - PyObject *var_txt_processors = NULL; - PyObject *var_vis_proc_cfg = NULL; - PyObject *var_txt_proc_cfg = NULL; - PyObject *var_vis_train_cfg = NULL; - PyObject *var_vis_eval_cfg = NULL; - PyObject *var_txt_train_cfg = NULL; - PyObject *var_txt_eval_cfg = NULL; - struct Nuitka_FrameObject *frame_28d96cf50f456a1141613d0f55135c5a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_dictset_value; - PyObject *tmp_dictset_dict; - PyObject *tmp_dictset_key; - int tmp_res; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_28d96cf50f456a1141613d0f55135c5a = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$$$function__2_load_preprocess$$$function__1__build_proc_from_cfg(); - - assert(var__build_proc_from_cfg == NULL); - var__build_proc_from_cfg = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyDict_New(); - assert(var_vis_processors == NULL); - var_vis_processors = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyDict_New(); - assert(var_txt_processors == NULL); - var_txt_processors = tmp_assign_source_3; - } - // Tried code: - if (isFrameUnusable(cache_frame_28d96cf50f456a1141613d0f55135c5a)) { - Py_XDECREF(cache_frame_28d96cf50f456a1141613d0f55135c5a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_28d96cf50f456a1141613d0f55135c5a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_28d96cf50f456a1141613d0f55135c5a = MAKE_FUNCTION_FRAME(codeobj_28d96cf50f456a1141613d0f55135c5a, module_models, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_28d96cf50f456a1141613d0f55135c5a->m_type_description == NULL); - frame_28d96cf50f456a1141613d0f55135c5a = cache_frame_28d96cf50f456a1141613d0f55135c5a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_28d96cf50f456a1141613d0f55135c5a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_28d96cf50f456a1141613d0f55135c5a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_config); - tmp_called_instance_1 = par_config; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 87; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[32], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_vis_proc_cfg == NULL); - var_vis_proc_cfg = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_2; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[33]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 88; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_config; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 88; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[34], 0) - ); - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_txt_proc_cfg == NULL); - var_txt_proc_cfg = tmp_assign_source_5; - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_vis_proc_cfg); - tmp_compexpr_left_1 = var_vis_proc_cfg; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_vis_proc_cfg); - tmp_called_instance_3 = var_vis_proc_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 91; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[35], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_vis_train_cfg == NULL); - var_vis_train_cfg = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_4; - if (var_vis_proc_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 92; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = var_vis_proc_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 92; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[37], 0) - ); - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_vis_eval_cfg == NULL); - var_vis_eval_cfg = tmp_assign_source_7; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = Py_None; - assert(var_vis_train_cfg == NULL); - Py_INCREF(tmp_assign_source_8); - var_vis_train_cfg = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = Py_None; - assert(var_vis_eval_cfg == NULL); - Py_INCREF(tmp_assign_source_9); - var_vis_eval_cfg = tmp_assign_source_9; - } - branch_end_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(var__build_proc_from_cfg); - tmp_called_name_1 = var__build_proc_from_cfg; - CHECK_OBJECT(var_vis_train_cfg); - tmp_args_element_name_1 = var_vis_train_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 97; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_vis_processors); - tmp_dictset_dict = var_vis_processors; - tmp_dictset_key = mod_consts[38]; - tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - assert(!(tmp_res != 0)); - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(var__build_proc_from_cfg); - tmp_called_name_2 = var__build_proc_from_cfg; - CHECK_OBJECT(var_vis_eval_cfg); - tmp_args_element_name_2 = var_vis_eval_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 98; - tmp_ass_subvalue_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_vis_processors == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[39]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_1 = var_vis_processors; - tmp_ass_subscript_1 = mod_consts[24]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(var_txt_proc_cfg); - tmp_compexpr_left_2 = var_txt_proc_cfg; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(var_txt_proc_cfg); - tmp_called_instance_5 = var_txt_proc_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 101; - tmp_assign_source_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[35], 0) - ); - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_txt_train_cfg == NULL); - var_txt_train_cfg = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_instance_6; - if (var_txt_proc_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 102; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = var_txt_proc_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 102; - tmp_assign_source_11 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[37], 0) - ); - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_txt_eval_cfg == NULL); - var_txt_eval_cfg = tmp_assign_source_11; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_12; - tmp_assign_source_12 = Py_None; - assert(var_txt_train_cfg == NULL); - Py_INCREF(tmp_assign_source_12); - var_txt_train_cfg = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = Py_None; - assert(var_txt_eval_cfg == NULL); - Py_INCREF(tmp_assign_source_13); - var_txt_eval_cfg = tmp_assign_source_13; - } - branch_end_2:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var__build_proc_from_cfg); - tmp_called_name_3 = var__build_proc_from_cfg; - CHECK_OBJECT(var_txt_train_cfg); - tmp_args_element_name_3 = var_txt_train_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 107; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_txt_processors); - tmp_dictset_dict = var_txt_processors; - tmp_dictset_key = mod_consts[38]; - tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - assert(!(tmp_res != 0)); - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_4; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(var__build_proc_from_cfg); - tmp_called_name_4 = var__build_proc_from_cfg; - CHECK_OBJECT(var_txt_eval_cfg); - tmp_args_element_name_4 = var_txt_eval_cfg; - frame_28d96cf50f456a1141613d0f55135c5a->m_frame.f_lineno = 108; - tmp_ass_subvalue_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_txt_processors == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_2 = var_txt_processors; - tmp_ass_subscript_2 = mod_consts[24]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_tuple_element_1; - if (var_vis_processors == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[39]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = var_vis_processors; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); - if (var_txt_processors == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = var_txt_processors; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28d96cf50f456a1141613d0f55135c5a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28d96cf50f456a1141613d0f55135c5a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28d96cf50f456a1141613d0f55135c5a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_28d96cf50f456a1141613d0f55135c5a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_28d96cf50f456a1141613d0f55135c5a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_28d96cf50f456a1141613d0f55135c5a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_28d96cf50f456a1141613d0f55135c5a, - type_description_1, - par_config, - var__build_proc_from_cfg, - var_vis_processors, - var_txt_processors, - var_vis_proc_cfg, - var_txt_proc_cfg, - var_vis_train_cfg, - var_vis_eval_cfg, - var_txt_train_cfg, - var_txt_eval_cfg - ); - - - // Release cached frame if used for exception. - if (frame_28d96cf50f456a1141613d0f55135c5a == cache_frame_28d96cf50f456a1141613d0f55135c5a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_28d96cf50f456a1141613d0f55135c5a); - cache_frame_28d96cf50f456a1141613d0f55135c5a = NULL; - } - - assertFrameObject(frame_28d96cf50f456a1141613d0f55135c5a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(var__build_proc_from_cfg); - Py_DECREF(var__build_proc_from_cfg); - var__build_proc_from_cfg = NULL; - Py_XDECREF(var_vis_processors); - var_vis_processors = NULL; - Py_XDECREF(var_txt_processors); - var_txt_processors = NULL; - Py_XDECREF(var_vis_proc_cfg); - var_vis_proc_cfg = NULL; - Py_XDECREF(var_txt_proc_cfg); - var_txt_proc_cfg = NULL; - CHECK_OBJECT(var_vis_train_cfg); - Py_DECREF(var_vis_train_cfg); - var_vis_train_cfg = NULL; - CHECK_OBJECT(var_vis_eval_cfg); - Py_DECREF(var_vis_eval_cfg); - var_vis_eval_cfg = NULL; - CHECK_OBJECT(var_txt_train_cfg); - Py_DECREF(var_txt_train_cfg); - var_txt_train_cfg = NULL; - CHECK_OBJECT(var_txt_eval_cfg); - Py_DECREF(var_txt_eval_cfg); - var_txt_eval_cfg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(var__build_proc_from_cfg); - Py_DECREF(var__build_proc_from_cfg); - var__build_proc_from_cfg = NULL; - Py_XDECREF(var_vis_processors); - var_vis_processors = NULL; - Py_XDECREF(var_txt_processors); - var_txt_processors = NULL; - Py_XDECREF(var_vis_proc_cfg); - var_vis_proc_cfg = NULL; - Py_XDECREF(var_txt_proc_cfg); - var_txt_proc_cfg = NULL; - Py_XDECREF(var_vis_train_cfg); - var_vis_train_cfg = NULL; - Py_XDECREF(var_vis_eval_cfg); - var_vis_eval_cfg = NULL; - Py_XDECREF(var_txt_train_cfg); - var_txt_train_cfg = NULL; - Py_XDECREF(var_txt_eval_cfg); - var_txt_eval_cfg = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__2_load_preprocess$$$function__1__build_proc_from_cfg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cfg = python_pars[0]; - struct Nuitka_FrameObject *frame_26067f56e445e8be2364d8b047b0369a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_26067f56e445e8be2364d8b047b0369a = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_26067f56e445e8be2364d8b047b0369a)) { - Py_XDECREF(cache_frame_26067f56e445e8be2364d8b047b0369a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_26067f56e445e8be2364d8b047b0369a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_26067f56e445e8be2364d8b047b0369a = MAKE_FUNCTION_FRAME(codeobj_26067f56e445e8be2364d8b047b0369a, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_26067f56e445e8be2364d8b047b0369a->m_type_description == NULL); - frame_26067f56e445e8be2364d8b047b0369a = cache_frame_26067f56e445e8be2364d8b047b0369a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_26067f56e445e8be2364d8b047b0369a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_26067f56e445e8be2364d8b047b0369a) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_3; - CHECK_OBJECT(par_cfg); - tmp_compexpr_left_1 = par_cfg; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[43]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_cfg); - tmp_expression_name_3 = par_cfg; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[44]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_26067f56e445e8be2364d8b047b0369a->m_frame.f_lineno = 79; - tmp_expression_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[45]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - if (par_cfg == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_cfg; - frame_26067f56e445e8be2364d8b047b0369a->m_frame.f_lineno = 79; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_26067f56e445e8be2364d8b047b0369a->m_frame.f_lineno = 81; - tmp_return_value = CALL_FUNCTION_NO_ARGS(tmp_called_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_26067f56e445e8be2364d8b047b0369a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_26067f56e445e8be2364d8b047b0369a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_26067f56e445e8be2364d8b047b0369a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_26067f56e445e8be2364d8b047b0369a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_26067f56e445e8be2364d8b047b0369a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_26067f56e445e8be2364d8b047b0369a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_26067f56e445e8be2364d8b047b0369a, - type_description_1, - par_cfg - ); - - - // Release cached frame if used for exception. - if (frame_26067f56e445e8be2364d8b047b0369a == cache_frame_26067f56e445e8be2364d8b047b0369a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_26067f56e445e8be2364d8b047b0369a); - cache_frame_26067f56e445e8be2364d8b047b0369a = NULL; - } - - assertFrameObject(frame_26067f56e445e8be2364d8b047b0369a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_cfg); - par_cfg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_cfg); - par_cfg = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__3_load_model_and_preprocess(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_name = python_pars[0]; - PyObject *par_model_type = python_pars[1]; - PyObject *par_is_eval = python_pars[2]; - PyObject *par_device = python_pars[3]; - PyObject *var_model_cls = NULL; - PyObject *var_model = NULL; - PyObject *var_cfg = NULL; - PyObject *var_preprocess_cfg = NULL; - PyObject *var_vis_processors = NULL; - PyObject *var_txt_processors = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_8e01d5b362d6df18e9f336fc94ed971c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_8e01d5b362d6df18e9f336fc94ed971c = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8e01d5b362d6df18e9f336fc94ed971c)) { - Py_XDECREF(cache_frame_8e01d5b362d6df18e9f336fc94ed971c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8e01d5b362d6df18e9f336fc94ed971c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8e01d5b362d6df18e9f336fc94ed971c = MAKE_FUNCTION_FRAME(codeobj_8e01d5b362d6df18e9f336fc94ed971c, module_models, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8e01d5b362d6df18e9f336fc94ed971c->m_type_description == NULL); - frame_8e01d5b362d6df18e9f336fc94ed971c = cache_frame_8e01d5b362d6df18e9f336fc94ed971c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8e01d5b362d6df18e9f336fc94ed971c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8e01d5b362d6df18e9f336fc94ed971c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_name); - tmp_args_element_name_1 = par_name; - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 132; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[19], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_model_cls == NULL); - var_model_cls = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(var_model_cls); - tmp_expression_name_1 = var_model_cls; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[20]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[21]; - CHECK_OBJECT(par_model_type); - tmp_dict_value_1 = par_model_type; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 135; - tmp_assign_source_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_2; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_is_eval); - tmp_truth_name_1 = CHECK_IF_TRUE(par_is_eval); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - CHECK_OBJECT(var_model); - tmp_called_instance_2 = var_model; - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 138; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[24]); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - branch_no_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[48]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[48]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[49]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_model_cls == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[50]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = var_model_cls; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[51]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (par_model_type == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_model_type; - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 141; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 141; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_cfg == NULL); - var_cfg = tmp_assign_source_3; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_cfg); - tmp_compexpr_left_1 = var_cfg; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(var_cfg); - tmp_expression_name_4 = var_cfg; - tmp_assign_source_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[52]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 143; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_preprocess_cfg == NULL); - var_preprocess_cfg = tmp_assign_source_4; - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_4; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_preprocess_cfg); - tmp_args_element_name_4 = var_preprocess_cfg; - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 145; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_5 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_5; - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 145; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 145; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_7; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooo"; - exception_lineno = 145; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[54]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooo"; - exception_lineno = 145; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_1; - assert(var_vis_processors == NULL); - Py_INCREF(tmp_assign_source_8); - var_vis_processors = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_2; - assert(var_txt_processors == NULL); - Py_INCREF(tmp_assign_source_9); - var_txt_processors = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_iter_arg_2; - tmp_iter_arg_2 = mod_consts[55]; - tmp_assign_source_10 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_2); - assert(!(tmp_assign_source_10 == NULL)); - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_11 = UNPACK_NEXT_INFALLIBLE(tmp_unpack_3); - assert(!(tmp_assign_source_11 == NULL)); - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_11; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_12 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_12 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 147; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_12; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooo"; - exception_lineno = 147; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[54]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooo"; - exception_lineno = 147; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - Py_DECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_13 = tmp_tuple_unpack_2__element_1; - assert(var_vis_processors == NULL); - Py_INCREF(tmp_assign_source_13); - var_vis_processors = tmp_assign_source_13; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_14 = tmp_tuple_unpack_2__element_2; - assert(var_txt_processors == NULL); - Py_INCREF(tmp_assign_source_14); - var_txt_processors = tmp_assign_source_14; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[57]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[58]; - tmp_string_concat_values_1 = PyTuple_New(5); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_name == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - - tmp_format_value_1 = par_name; - tmp_format_spec_1 = mod_consts[59]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[60]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - if (par_model_type == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - - tmp_format_value_2 = par_model_type; - tmp_format_spec_2 = mod_consts[59]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[61]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 4, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_5 = PyUnicode_Join(mod_consts[59], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 149; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 148; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_end_2:; - { - nuitka_bool tmp_condition_result_3; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_or_left_value_1_object_1; - int tmp_truth_name_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_device); - tmp_compexpr_left_2 = par_device; - tmp_compexpr_right_2 = mod_consts[25]; - tmp_tmp_or_left_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_or_left_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_or_left_value_1_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_or_left_value_1_object_1); - - exception_lineno = 155; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_or_left_value_1_object_1); - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_device); - tmp_compexpr_left_3 = par_device; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[62]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[62]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 155; - tmp_compexpr_right_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[63], - &PyTuple_GET_ITEM(mod_consts[64], 0) - ); - - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_or_right_value_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_3 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - assert(tmp_condition_result_3 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_3:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_instance_4; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 156; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = var_model; - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 156; - tmp_assign_source_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[26]); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_model; - var_model = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - branch_no_3:; - { - PyObject *tmp_tuple_element_2; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_6; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = var_model; - CHECK_OBJECT(par_device); - tmp_args_element_name_6 = par_device; - frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame.f_lineno = 158; - tmp_tuple_element_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[27], tmp_args_element_name_6); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = PyTuple_New(3); - PyTuple_SET_ITEM(tmp_return_value, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_vis_processors); - tmp_tuple_element_2 = var_vis_processors; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - CHECK_OBJECT(var_txt_processors); - tmp_tuple_element_2 = var_txt_processors; - PyTuple_SET_ITEM0(tmp_return_value, 2, tmp_tuple_element_2); - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e01d5b362d6df18e9f336fc94ed971c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e01d5b362d6df18e9f336fc94ed971c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e01d5b362d6df18e9f336fc94ed971c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8e01d5b362d6df18e9f336fc94ed971c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8e01d5b362d6df18e9f336fc94ed971c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8e01d5b362d6df18e9f336fc94ed971c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8e01d5b362d6df18e9f336fc94ed971c, - type_description_1, - par_name, - par_model_type, - par_is_eval, - par_device, - var_model_cls, - var_model, - var_cfg, - var_preprocess_cfg, - var_vis_processors, - var_txt_processors - ); - - - // Release cached frame if used for exception. - if (frame_8e01d5b362d6df18e9f336fc94ed971c == cache_frame_8e01d5b362d6df18e9f336fc94ed971c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8e01d5b362d6df18e9f336fc94ed971c); - cache_frame_8e01d5b362d6df18e9f336fc94ed971c = NULL; - } - - assertFrameObject(frame_8e01d5b362d6df18e9f336fc94ed971c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - CHECK_OBJECT(par_is_eval); - Py_DECREF(par_is_eval); - par_is_eval = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(var_model_cls); - var_model_cls = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_cfg); - var_cfg = NULL; - Py_XDECREF(var_preprocess_cfg); - var_preprocess_cfg = NULL; - CHECK_OBJECT(var_vis_processors); - Py_DECREF(var_vis_processors); - var_vis_processors = NULL; - CHECK_OBJECT(var_txt_processors); - Py_DECREF(var_txt_processors); - var_txt_processors = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_model_type); - par_model_type = NULL; - CHECK_OBJECT(par_is_eval); - Py_DECREF(par_is_eval); - par_is_eval = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(var_model_cls); - var_model_cls = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_cfg); - var_cfg = NULL; - Py_XDECREF(var_preprocess_cfg); - var_preprocess_cfg = NULL; - Py_XDECREF(var_vis_processors); - var_vis_processors = NULL; - Py_XDECREF(var_txt_processors); - var_txt_processors = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__4___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *outline_0_var_k = NULL; - PyObject *outline_0_var_v = NULL; - PyObject *tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; - PyObject *tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; - PyObject *tmp_dictcontraction$tuple_unpack_1__source_iter = NULL; - PyObject *tmp_dictcontraction_1__$0 = NULL; - PyObject *tmp_dictcontraction_1__contraction = NULL; - PyObject *tmp_dictcontraction_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_0f2082830916959456ffaf17ca3f97c9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_4777da0a37fa73ff6635d4eaff77d3fc_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_0f2082830916959456ffaf17ca3f97c9 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0f2082830916959456ffaf17ca3f97c9)) { - Py_XDECREF(cache_frame_0f2082830916959456ffaf17ca3f97c9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0f2082830916959456ffaf17ca3f97c9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0f2082830916959456ffaf17ca3f97c9 = MAKE_FUNCTION_FRAME(codeobj_0f2082830916959456ffaf17ca3f97c9, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0f2082830916959456ffaf17ca3f97c9->m_type_description == NULL); - frame_0f2082830916959456ffaf17ca3f97c9 = cache_frame_0f2082830916959456ffaf17ca3f97c9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0f2082830916959456ffaf17ca3f97c9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0f2082830916959456ffaf17ca3f97c9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "o"; - goto try_except_handler_2; - } - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[66]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "o"; - goto try_except_handler_2; - } - tmp_subscript_name_1 = mod_consts[67]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "o"; - goto try_except_handler_2; - } - frame_0f2082830916959456ffaf17ca3f97c9->m_frame.f_lineno = 175; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[10]); - Py_DECREF(tmp_called_instance_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "o"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "o"; - goto try_except_handler_2; - } - assert(tmp_dictcontraction_1__$0 == NULL); - tmp_dictcontraction_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyDict_New(); - assert(tmp_dictcontraction_1__contraction == NULL); - tmp_dictcontraction_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2)) { - Py_XDECREF(cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2 = MAKE_FUNCTION_FRAME(codeobj_4777da0a37fa73ff6635d4eaff77d3fc, module_models, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2->m_type_description == NULL); - frame_4777da0a37fa73ff6635d4eaff77d3fc_2 = cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4777da0a37fa73ff6635d4eaff77d3fc_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4777da0a37fa73ff6635d4eaff77d3fc_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_dictcontraction_1__$0); - tmp_next_source_1 = tmp_dictcontraction_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 173; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_dictcontraction_1__iter_value_0; - tmp_dictcontraction_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_dictcontraction_1__iter_value_0); - tmp_iter_arg_2 = tmp_dictcontraction_1__iter_value_0; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_2 = "oo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_dictcontraction$tuple_unpack_1__source_iter; - tmp_dictcontraction$tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_dictcontraction$tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_dictcontraction$tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_2 = "oo"; - exception_lineno = 173; - goto try_except_handler_5; - } - { - PyObject *old = tmp_dictcontraction$tuple_unpack_1__element_1; - tmp_dictcontraction$tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_dictcontraction$tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_dictcontraction$tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_2 = "oo"; - exception_lineno = 173; - goto try_except_handler_5; - } - { - PyObject *old = tmp_dictcontraction$tuple_unpack_1__element_2; - tmp_dictcontraction$tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_dictcontraction$tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_dictcontraction$tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_2 = "oo"; - exception_lineno = 173; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[54]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_2 = "oo"; - exception_lineno = 173; - goto try_except_handler_5; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__source_iter); - tmp_dictcontraction$tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_4; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__element_1); - tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__element_2); - tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__source_iter); - tmp_dictcontraction$tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_dictcontraction$tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_dictcontraction$tuple_unpack_1__element_1; - { - PyObject *old = outline_0_var_k; - outline_0_var_k = tmp_assign_source_7; - Py_INCREF(outline_0_var_k); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__element_1); - tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_dictcontraction$tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_dictcontraction$tuple_unpack_1__element_2; - { - PyObject *old = outline_0_var_v; - outline_0_var_v = tmp_assign_source_8; - Py_INCREF(outline_0_var_v); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__element_2); - tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__element_1); - tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_dictcontraction$tuple_unpack_1__element_2); - tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_dictset38_key_1; - PyObject *tmp_dictset38_value_1; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_dictset38_dict_1; - CHECK_OBJECT(outline_0_var_k); - tmp_dictset38_key_1 = outline_0_var_k; - CHECK_OBJECT(outline_0_var_v); - tmp_expression_name_3 = outline_0_var_v; - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[68]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "oo"; - goto try_except_handler_3; - } - frame_4777da0a37fa73ff6635d4eaff77d3fc_2->m_frame.f_lineno = 174; - tmp_list_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[2]); - Py_DECREF(tmp_called_instance_2); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_dictset38_value_1 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_dictset38_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "oo"; - goto try_except_handler_3; - } - CHECK_OBJECT(tmp_dictcontraction_1__contraction); - tmp_dictset38_dict_1 = tmp_dictcontraction_1__contraction; - tmp_res = PyDict_SetItem(tmp_dictset38_dict_1, tmp_dictset38_key_1, tmp_dictset38_value_1); - Py_DECREF(tmp_dictset38_value_1); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_dictcontraction_1__contraction); - tmp_assattr_name_1 = tmp_dictcontraction_1__contraction; - Py_INCREF(tmp_assattr_name_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_dictcontraction_1__$0); - tmp_dictcontraction_1__$0 = NULL; - CHECK_OBJECT(tmp_dictcontraction_1__contraction); - Py_DECREF(tmp_dictcontraction_1__contraction); - tmp_dictcontraction_1__contraction = NULL; - Py_XDECREF(tmp_dictcontraction_1__iter_value_0); - tmp_dictcontraction_1__iter_value_0 = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_dictcontraction_1__$0); - tmp_dictcontraction_1__$0 = NULL; - CHECK_OBJECT(tmp_dictcontraction_1__contraction); - Py_DECREF(tmp_dictcontraction_1__contraction); - tmp_dictcontraction_1__contraction = NULL; - Py_XDECREF(tmp_dictcontraction_1__iter_value_0); - tmp_dictcontraction_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4777da0a37fa73ff6635d4eaff77d3fc_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4777da0a37fa73ff6635d4eaff77d3fc_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4777da0a37fa73ff6635d4eaff77d3fc_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4777da0a37fa73ff6635d4eaff77d3fc_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4777da0a37fa73ff6635d4eaff77d3fc_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4777da0a37fa73ff6635d4eaff77d3fc_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4777da0a37fa73ff6635d4eaff77d3fc_2, - type_description_2, - outline_0_var_k, - outline_0_var_v - ); - - - // Release cached frame if used for exception. - if (frame_4777da0a37fa73ff6635d4eaff77d3fc_2 == cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2); - cache_frame_4777da0a37fa73ff6635d4eaff77d3fc_2 = NULL; - } - - assertFrameObject(frame_4777da0a37fa73ff6635d4eaff77d3fc_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "o"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_k); - outline_0_var_k = NULL; - Py_XDECREF(outline_0_var_v); - outline_0_var_v = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_k); - outline_0_var_k = NULL; - Py_XDECREF(outline_0_var_v); - outline_0_var_v = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 173; - goto frame_exception_exit_1; - outline_result_1:; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[69], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0f2082830916959456ffaf17ca3f97c9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0f2082830916959456ffaf17ca3f97c9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0f2082830916959456ffaf17ca3f97c9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0f2082830916959456ffaf17ca3f97c9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0f2082830916959456ffaf17ca3f97c9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0f2082830916959456ffaf17ca3f97c9, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_0f2082830916959456ffaf17ca3f97c9 == cache_frame_0f2082830916959456ffaf17ca3f97c9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0f2082830916959456ffaf17ca3f97c9); - cache_frame_0f2082830916959456ffaf17ca3f97c9 = NULL; - } - - assertFrameObject(frame_0f2082830916959456ffaf17ca3f97c9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__5___str__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *outline_0_var_name = NULL; - PyObject *outline_0_var_types = NULL; - PyObject *tmp_listcomp$tuple_unpack_1__element_1 = NULL; - PyObject *tmp_listcomp$tuple_unpack_1__element_2 = NULL; - PyObject *tmp_listcomp$tuple_unpack_1__source_iter = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_a1ff221c4fb1e4ec4f516f82b218dca5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_b1db33e43955f87a8a2ee720ed8431ae_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5)) { - Py_XDECREF(cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5 = MAKE_FUNCTION_FRAME(codeobj_a1ff221c4fb1e4ec4f516f82b218dca5, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5->m_type_description == NULL); - frame_a1ff221c4fb1e4ec4f516f82b218dca5 = cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a1ff221c4fb1e4ec4f516f82b218dca5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a1ff221c4fb1e4ec4f516f82b218dca5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - tmp_left_name_4 = mod_consts[70]; - tmp_format_value_1 = mod_consts[71]; - tmp_format_spec_1 = mod_consts[72]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_string_concat_values_1 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[73]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_right_name_1 = PyUnicode_Join(mod_consts[59], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_left_name_3 = BINARY_OPERATION_ADD_OBJECT_UNICODE_UNICODE(tmp_left_name_4, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - assert(!(tmp_left_name_3 == NULL)); - tmp_right_name_2 = mod_consts[74]; - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_UNICODE_UNICODE(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_left_name_3); - assert(!(tmp_left_name_2 == NULL)); - tmp_right_name_3 = mod_consts[75]; - tmp_left_name_1 = BINARY_OPERATION_ADD_OBJECT_UNICODE_UNICODE(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - assert(!(tmp_left_name_1 == NULL)); - tmp_expression_name_1 = mod_consts[75]; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - assert(!(tmp_called_name_1 == NULL)); - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[69]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "o"; - goto try_except_handler_2; - } - frame_a1ff221c4fb1e4ec4f516f82b218dca5->m_frame.f_lineno = 188; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[10]); - Py_DECREF(tmp_called_instance_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "o"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "o"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2)) { - Py_XDECREF(cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2 = MAKE_FUNCTION_FRAME(codeobj_b1db33e43955f87a8a2ee720ed8431ae, module_models, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2->m_type_description == NULL); - frame_b1db33e43955f87a8a2ee720ed8431ae_2 = cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b1db33e43955f87a8a2ee720ed8431ae_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b1db33e43955f87a8a2ee720ed8431ae_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 186; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_iter_arg_2 = tmp_listcomp_1__iter_value_0; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_2 = "oo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_listcomp$tuple_unpack_1__source_iter; - tmp_listcomp$tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_listcomp$tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_listcomp$tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_2 = "oo"; - exception_lineno = 186; - goto try_except_handler_5; - } - { - PyObject *old = tmp_listcomp$tuple_unpack_1__element_1; - tmp_listcomp$tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_listcomp$tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_listcomp$tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_2 = "oo"; - exception_lineno = 186; - goto try_except_handler_5; - } - { - PyObject *old = tmp_listcomp$tuple_unpack_1__element_2; - tmp_listcomp$tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_listcomp$tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_listcomp$tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_2 = "oo"; - exception_lineno = 186; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[54]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_2 = "oo"; - exception_lineno = 186; - goto try_except_handler_5; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp$tuple_unpack_1__source_iter); - tmp_listcomp$tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_4; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp$tuple_unpack_1__element_1); - tmp_listcomp$tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_listcomp$tuple_unpack_1__element_2); - tmp_listcomp$tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_listcomp$tuple_unpack_1__source_iter); - tmp_listcomp$tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_listcomp$tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_listcomp$tuple_unpack_1__element_1; - { - PyObject *old = outline_0_var_name; - outline_0_var_name = tmp_assign_source_7; - Py_INCREF(outline_0_var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_listcomp$tuple_unpack_1__element_1); - tmp_listcomp$tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_listcomp$tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_listcomp$tuple_unpack_1__element_2; - { - PyObject *old = outline_0_var_types; - outline_0_var_types = tmp_assign_source_8; - Py_INCREF(outline_0_var_types); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_listcomp$tuple_unpack_1__element_2); - tmp_listcomp$tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_listcomp$tuple_unpack_1__element_1); - tmp_listcomp$tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_listcomp$tuple_unpack_1__element_2); - tmp_listcomp$tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - CHECK_OBJECT(outline_0_var_name); - tmp_format_value_2 = outline_0_var_name; - tmp_format_spec_2 = mod_consts[72]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_string_concat_values_2 = PyTuple_New(3); - { - PyObject *tmp_format_value_3; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_format_spec_3; - PyTuple_SET_ITEM(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[77]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_called_instance_2 = mod_consts[78]; - CHECK_OBJECT(outline_0_var_types); - tmp_args_element_name_2 = outline_0_var_types; - frame_b1db33e43955f87a8a2ee720ed8431ae_2->m_frame.f_lineno = 187; - tmp_format_value_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[76], tmp_args_element_name_2); - if (tmp_format_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_2 = "oo"; - goto tuple_build_exception_1; - } - tmp_format_spec_3 = mod_consts[59]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - Py_DECREF(tmp_format_value_3); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_2 = "oo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_string_concat_values_2); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_append_value_1 = PyUnicode_Join(mod_consts[59], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_args_element_name_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_args_element_name_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b1db33e43955f87a8a2ee720ed8431ae_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b1db33e43955f87a8a2ee720ed8431ae_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b1db33e43955f87a8a2ee720ed8431ae_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b1db33e43955f87a8a2ee720ed8431ae_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b1db33e43955f87a8a2ee720ed8431ae_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b1db33e43955f87a8a2ee720ed8431ae_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b1db33e43955f87a8a2ee720ed8431ae_2, - type_description_2, - outline_0_var_name, - outline_0_var_types - ); - - - // Release cached frame if used for exception. - if (frame_b1db33e43955f87a8a2ee720ed8431ae_2 == cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2); - cache_frame_b1db33e43955f87a8a2ee720ed8431ae_2 = NULL; - } - - assertFrameObject(frame_b1db33e43955f87a8a2ee720ed8431ae_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "o"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_name); - outline_0_var_name = NULL; - Py_XDECREF(outline_0_var_types); - outline_0_var_types = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_name); - outline_0_var_name = NULL; - Py_XDECREF(outline_0_var_types); - outline_0_var_types = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 186; - goto frame_exception_exit_1; - outline_result_1:; - frame_a1ff221c4fb1e4ec4f516f82b218dca5->m_frame.f_lineno = 185; - tmp_right_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 185; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_1, tmp_right_name_4); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1ff221c4fb1e4ec4f516f82b218dca5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1ff221c4fb1e4ec4f516f82b218dca5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a1ff221c4fb1e4ec4f516f82b218dca5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a1ff221c4fb1e4ec4f516f82b218dca5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a1ff221c4fb1e4ec4f516f82b218dca5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a1ff221c4fb1e4ec4f516f82b218dca5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a1ff221c4fb1e4ec4f516f82b218dca5, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_a1ff221c4fb1e4ec4f516f82b218dca5 == cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5); - cache_frame_a1ff221c4fb1e4ec4f516f82b218dca5 = NULL; - } - - assertFrameObject(frame_a1ff221c4fb1e4ec4f516f82b218dca5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__6___iter__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_c3c82eb0bf120804275f4f91d2bd99c7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_c3c82eb0bf120804275f4f91d2bd99c7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c3c82eb0bf120804275f4f91d2bd99c7)) { - Py_XDECREF(cache_frame_c3c82eb0bf120804275f4f91d2bd99c7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c3c82eb0bf120804275f4f91d2bd99c7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c3c82eb0bf120804275f4f91d2bd99c7 = MAKE_FUNCTION_FRAME(codeobj_c3c82eb0bf120804275f4f91d2bd99c7, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c3c82eb0bf120804275f4f91d2bd99c7->m_type_description == NULL); - frame_c3c82eb0bf120804275f4f91d2bd99c7 = cache_frame_c3c82eb0bf120804275f4f91d2bd99c7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c3c82eb0bf120804275f4f91d2bd99c7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c3c82eb0bf120804275f4f91d2bd99c7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[69]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_c3c82eb0bf120804275f4f91d2bd99c7->m_frame.f_lineno = 194; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[10]); - Py_DECREF(tmp_called_instance_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c3c82eb0bf120804275f4f91d2bd99c7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c3c82eb0bf120804275f4f91d2bd99c7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c3c82eb0bf120804275f4f91d2bd99c7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c3c82eb0bf120804275f4f91d2bd99c7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c3c82eb0bf120804275f4f91d2bd99c7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c3c82eb0bf120804275f4f91d2bd99c7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c3c82eb0bf120804275f4f91d2bd99c7, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_c3c82eb0bf120804275f4f91d2bd99c7 == cache_frame_c3c82eb0bf120804275f4f91d2bd99c7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c3c82eb0bf120804275f4f91d2bd99c7); - cache_frame_c3c82eb0bf120804275f4f91d2bd99c7 = NULL; - } - - assertFrameObject(frame_c3c82eb0bf120804275f4f91d2bd99c7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$$$function__7___len__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *outline_0_var_v = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_345f9b676b7c503fdf12b10e713239a4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_363d192a44937f32417f15029b021df5_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_363d192a44937f32417f15029b021df5_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_345f9b676b7c503fdf12b10e713239a4 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_345f9b676b7c503fdf12b10e713239a4)) { - Py_XDECREF(cache_frame_345f9b676b7c503fdf12b10e713239a4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_345f9b676b7c503fdf12b10e713239a4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_345f9b676b7c503fdf12b10e713239a4 = MAKE_FUNCTION_FRAME(codeobj_345f9b676b7c503fdf12b10e713239a4, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_345f9b676b7c503fdf12b10e713239a4->m_type_description == NULL); - frame_345f9b676b7c503fdf12b10e713239a4 = cache_frame_345f9b676b7c503fdf12b10e713239a4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_345f9b676b7c503fdf12b10e713239a4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_345f9b676b7c503fdf12b10e713239a4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_sum_sequence_1; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[69]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "o"; - goto try_except_handler_2; - } - frame_345f9b676b7c503fdf12b10e713239a4->m_frame.f_lineno = 197; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[79]); - Py_DECREF(tmp_called_instance_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "o"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "o"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_363d192a44937f32417f15029b021df5_2)) { - Py_XDECREF(cache_frame_363d192a44937f32417f15029b021df5_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_363d192a44937f32417f15029b021df5_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_363d192a44937f32417f15029b021df5_2 = MAKE_FUNCTION_FRAME(codeobj_363d192a44937f32417f15029b021df5, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_363d192a44937f32417f15029b021df5_2->m_type_description == NULL); - frame_363d192a44937f32417f15029b021df5_2 = cache_frame_363d192a44937f32417f15029b021df5_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_363d192a44937f32417f15029b021df5_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_363d192a44937f32417f15029b021df5_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 197; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_4 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_v; - outline_0_var_v = tmp_assign_source_4; - Py_INCREF(outline_0_var_v); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_len_arg_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - CHECK_OBJECT(outline_0_var_v); - tmp_len_arg_1 = outline_0_var_v; - tmp_append_value_1 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_2 = "o"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_2 = "o"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_2 = "o"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_sum_sequence_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_sum_sequence_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_363d192a44937f32417f15029b021df5_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_363d192a44937f32417f15029b021df5_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_363d192a44937f32417f15029b021df5_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_363d192a44937f32417f15029b021df5_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_363d192a44937f32417f15029b021df5_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_363d192a44937f32417f15029b021df5_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_363d192a44937f32417f15029b021df5_2, - type_description_2, - outline_0_var_v - ); - - - // Release cached frame if used for exception. - if (frame_363d192a44937f32417f15029b021df5_2 == cache_frame_363d192a44937f32417f15029b021df5_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_363d192a44937f32417f15029b021df5_2); - cache_frame_363d192a44937f32417f15029b021df5_2 = NULL; - } - - assertFrameObject(frame_363d192a44937f32417f15029b021df5_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "o"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_v); - outline_0_var_v = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_v); - outline_0_var_v = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 197; - goto frame_exception_exit_1; - outline_result_1:; - tmp_return_value = BUILTIN_SUM1(tmp_sum_sequence_1); - Py_DECREF(tmp_sum_sequence_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_345f9b676b7c503fdf12b10e713239a4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_345f9b676b7c503fdf12b10e713239a4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_345f9b676b7c503fdf12b10e713239a4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_345f9b676b7c503fdf12b10e713239a4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_345f9b676b7c503fdf12b10e713239a4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_345f9b676b7c503fdf12b10e713239a4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_345f9b676b7c503fdf12b10e713239a4, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_345f9b676b7c503fdf12b10e713239a4 == cache_frame_345f9b676b7c503fdf12b10e713239a4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_345f9b676b7c503fdf12b10e713239a4); - cache_frame_345f9b676b7c503fdf12b10e713239a4 = NULL; - } - - assertFrameObject(frame_345f9b676b7c503fdf12b10e713239a4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__1_load_model(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__1_load_model, - mod_consts[111], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_fe2cd4692aef62e7724c5cfc72c4c128, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models, - mod_consts[28], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__2_load_preprocess() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__2_load_preprocess, - mod_consts[53], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_28d96cf50f456a1141613d0f55135c5a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models, - mod_consts[42], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__2_load_preprocess$$$function__1__build_proc_from_cfg() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__2_load_preprocess$$$function__1__build_proc_from_cfg, - mod_consts[29], -#if PYTHON_VERSION >= 0x300 - mod_consts[30], -#endif - codeobj_26067f56e445e8be2364d8b047b0369a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__3_load_model_and_preprocess(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__3_load_model_and_preprocess, - mod_consts[113], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_8e01d5b362d6df18e9f336fc94ed971c, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models, - mod_consts[65], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__4___init__(PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__4___init__, - mod_consts[125], -#if PYTHON_VERSION >= 0x300 - mod_consts[126], -#endif - codeobj_0f2082830916959456ffaf17ca3f97c9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__5___str__(PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__5___str__, - mod_consts[129], -#if PYTHON_VERSION >= 0x300 - mod_consts[130], -#endif - codeobj_a1ff221c4fb1e4ec4f516f82b218dca5, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__6___iter__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__6___iter__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[131], -#endif - codeobj_c3c82eb0bf120804275f4f91d2bd99c7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$$$function__7___len__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$$$function__7___len__, - mod_consts[132], -#if PYTHON_VERSION >= 0x300 - mod_consts[133], -#endif - codeobj_345f9b676b7c503fdf12b10e713239a4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models[] = { - impl_models$$$function__2_load_preprocess$$$function__1__build_proc_from_cfg, - impl_models$$$function__1_load_model, - impl_models$$$function__2_load_preprocess, - impl_models$$$function__3_load_model_and_preprocess, - impl_models$$$function__4___init__, - impl_models$$$function__5___str__, - impl_models$$$function__6___iter__, - impl_models$$$function__7___len__, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models = MODULE_DICT(module_models); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 1 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - struct Nuitka_FrameObject *frame_72d33f092ce284e25ff5e5267423439e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_dictset_value; - PyObject *tmp_dictset_dict; - PyObject *tmp_dictset_key; - int tmp_res; - bool tmp_result; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$$$class__1_ModelZoo_161 = NULL; - struct Nuitka_FrameObject *frame_da5fc521af8681666a04d7c4becfd4f6_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_da5fc521af8681666a04d7c4becfd4f6_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[80]; - UPDATE_STRING_DICT0(moduledict_models, (Nuitka_StringObject *)mod_consts[81], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models, (Nuitka_StringObject *)mod_consts[82], tmp_assign_source_2); - } - // Frame without reuse. - frame_72d33f092ce284e25ff5e5267423439e = MAKE_MODULE_FRAME(codeobj_72d33f092ce284e25ff5e5267423439e, module_models); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_72d33f092ce284e25ff5e5267423439e); - assert(Py_REFCNT(frame_72d33f092ce284e25ff5e5267423439e) == 2); - - // Framed code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_list_element_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 1; - { - PyObject *hard_module = IMPORT_HARD_OS(); - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[83]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[84]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = module_filename_obj; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 1; - tmp_list_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_assign_source_3 = PyList_New(2); - { - PyObject *tmp_called_instance_1; - PyList_SET_ITEM(tmp_assign_source_3, 0, tmp_list_element_1); - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 1; - { - PyObject *hard_module = IMPORT_HARD_OS(); - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[85]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 1; - tmp_list_element_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[31], - &PyTuple_GET_ITEM(mod_consts[86], 0) - ); - - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_assign_source_3, 1, tmp_list_element_1); - } - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_assign_source_3); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[87], tmp_assign_source_3); - } - { - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - tmp_dictset_value = Nuitka_Loader_New(module_entry); - tmp_dictset_dict = PySys_GetObject((char *)"path_importer_cache"); - if (tmp_dictset_dict == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[87]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[87]); - } - - assert(!(tmp_expression_name_2 == NULL)); - tmp_subscript_name_1 = mod_consts[11]; - tmp_dictset_key = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_dictset_key == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value); - Py_DECREF(tmp_dictset_key); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[88]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[88]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[89], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[88]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[88]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[90], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - tmp_assattr_name_3 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[87]); - - if (unlikely(tmp_assattr_name_3 == NULL)) { - tmp_assattr_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[87]); - } - - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_assattr_target_3 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[88]); - - if (unlikely(tmp_assattr_target_3 == NULL)) { - tmp_assattr_target_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[88]); - } - - assert(!(tmp_assattr_target_3 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[91], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_4; - tmp_assign_source_4 = Py_None; - UPDATE_STRING_DICT0(moduledict_models, (Nuitka_StringObject *)mod_consts[92], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[56]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 8; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[56], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[62]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 9; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[62], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[93]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[94]; - tmp_level_name_3 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 10; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models, - mod_consts[48], - mod_consts[11] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[48]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[48], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[95]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[96]; - tmp_level_name_4 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 12; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models, - mod_consts[18], - mod_consts[11] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[18]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[18], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[97]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[98]; - tmp_level_name_5 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 13; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models, - mod_consts[99], - mod_consts[11] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[99]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[99], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[100]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[101]; - tmp_level_name_6 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 14; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models, - mod_consts[102], - mod_consts[11] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[102]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[102], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_5; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[103]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[104]; - tmp_level_name_7 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 15; - tmp_import_name_from_5 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models, - mod_consts[105], - mod_consts[11] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[105]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[105], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[106]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[107]; - tmp_level_name_8 = mod_consts[11]; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 16; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models, - mod_consts[47], - mod_consts[11] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[47]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = LIST_COPY(mod_consts[108]); - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[109], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[110]; - Py_INCREF(tmp_defaults_1); - - - tmp_assign_source_14 = MAKE_FUNCTION_models$$$function__1_load_model(tmp_defaults_1); - - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[111], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - - - tmp_assign_source_15 = MAKE_FUNCTION_models$$$function__2_load_preprocess(); - - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[53], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[112]; - Py_INCREF(tmp_defaults_2); - - - tmp_assign_source_16 = MAKE_FUNCTION_models$$$function__3_load_model_and_preprocess(tmp_defaults_2); - - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[113], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - tmp_assign_source_17 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_17; - } - // Tried code: - { - PyObject *tmp_assign_source_18; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[114]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[114]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[115]; - tmp_assign_source_18 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_18; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[114]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[114]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[116]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[116]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - tmp_args_name_1 = mod_consts[117]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 161; - tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_19; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[14]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[118]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[5]; - tmp_getattr_default_1 = mod_consts[119]; - tmp_tuple_element_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[5]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_1; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 161; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_20; - } - branch_end_2:; - { - PyObject *tmp_assign_source_21; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$$$class__1_ModelZoo_161 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[120], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[121]; - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[81], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[122]; - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[123], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_3; - } - if (isFrameUnusable(cache_frame_da5fc521af8681666a04d7c4becfd4f6_2)) { - Py_XDECREF(cache_frame_da5fc521af8681666a04d7c4becfd4f6_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_da5fc521af8681666a04d7c4becfd4f6_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_da5fc521af8681666a04d7c4becfd4f6_2 = MAKE_FUNCTION_FRAME(codeobj_da5fc521af8681666a04d7c4becfd4f6, module_models, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_da5fc521af8681666a04d7c4becfd4f6_2->m_type_description == NULL); - frame_da5fc521af8681666a04d7c4becfd4f6_2 = cache_frame_da5fc521af8681666a04d7c4becfd4f6_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_da5fc521af8681666a04d7c4becfd4f6_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_da5fc521af8681666a04d7c4becfd4f6_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_1; - tmp_annotations_1 = PyDict_Copy(mod_consts[124]); - - - tmp_dictset_value = MAKE_FUNCTION_models$$$function__4___init__(tmp_annotations_1); - - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[125], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - { - PyObject *tmp_annotations_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_dict_key_1 = mod_consts[127]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[128]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = (PyObject *)&PyUnicode_Type; - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_annotations_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - - - tmp_dictset_value = MAKE_FUNCTION_models$$$function__5___str__(tmp_annotations_2); - - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[129], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$$$function__6___iter__(); - - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$$$function__7___len__(); - - tmp_res = PyObject_SetItem(locals_models$$$class__1_ModelZoo_161, mod_consts[132], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_da5fc521af8681666a04d7c4becfd4f6_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_da5fc521af8681666a04d7c4becfd4f6_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_da5fc521af8681666a04d7c4becfd4f6_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_da5fc521af8681666a04d7c4becfd4f6_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_da5fc521af8681666a04d7c4becfd4f6_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_da5fc521af8681666a04d7c4becfd4f6_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_da5fc521af8681666a04d7c4becfd4f6_2 == cache_frame_da5fc521af8681666a04d7c4becfd4f6_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_da5fc521af8681666a04d7c4becfd4f6_2); - cache_frame_da5fc521af8681666a04d7c4becfd4f6_2 = NULL; - } - - assertFrameObject(frame_da5fc521af8681666a04d7c4becfd4f6_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_3; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_3 = tmp_class_creation_1__metaclass; - tmp_tuple_element_2 = mod_consts[122]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[115]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = locals_models$$$class__1_ModelZoo_161; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 161; - tmp_assign_source_22 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - - goto try_except_handler_3; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_22; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_21 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_21); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_DECREF(locals_models$$$class__1_ModelZoo_161); - locals_models$$$class__1_ModelZoo_161 = NULL; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$$$class__1_ModelZoo_161); - locals_models$$$class__1_ModelZoo_161 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 161; - goto try_except_handler_1; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[122], tmp_assign_source_21); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_4; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models, (Nuitka_StringObject *)mod_consts[122]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[122]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - - goto frame_exception_exit_1; - } - frame_72d33f092ce284e25ff5e5267423439e->m_frame.f_lineno = 200; - tmp_assign_source_23 = CALL_FUNCTION_NO_ARGS(tmp_called_name_4); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models, (Nuitka_StringObject *)mod_consts[69], tmp_assign_source_23); - } - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72d33f092ce284e25ff5e5267423439e); -#endif - popFrameStack(); - - assertFrameObject(frame_72d33f092ce284e25ff5e5267423439e); - - goto frame_no_exception_2; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72d33f092ce284e25ff5e5267423439e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_72d33f092ce284e25ff5e5267423439e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_72d33f092ce284e25ff5e5267423439e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_72d33f092ce284e25ff5e5267423439e, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_2:; - - return module_models; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - - -/* Visibility definitions to make the DLL entry point exported */ -#if defined(__GNUC__) - -#if PYTHON_VERSION < 0x300 - -#if defined(_WIN32) -#define NUITKA_MODULE_INIT_FUNCTION __declspec(dllexport) PyMODINIT_FUNC -#else -#define NUITKA_MODULE_INIT_FUNCTION PyMODINIT_FUNC __attribute__((visibility("default"))) -#endif - -#else - -#if defined(_WIN32) -#define NUITKA_MODULE_INIT_FUNCTION __declspec(dllexport) PyObject * -#else - -#ifdef __cplusplus -#define NUITKA_MODULE_INIT_FUNCTION extern "C" __attribute__((visibility("default"))) PyObject * -#else -#define NUITKA_MODULE_INIT_FUNCTION __attribute__((visibility("default"))) PyObject * -#endif - -#endif -#endif - -#else -#define NUITKA_MODULE_INIT_FUNCTION PyMODINIT_FUNC -#endif - -/* The name of the entry point for DLLs changed between CPython versions, and - * this is here to hide that. - */ -#if PYTHON_VERSION < 0x300 -#define MOD_INIT_DECL(name) NUITKA_MODULE_INIT_FUNCTION init##name(void) -#else -#define MOD_INIT_DECL(name) NUITKA_MODULE_INIT_FUNCTION PyInit_##name(void) -#endif - -#if PYTHON_VERSION >= 0x300 -static struct PyModuleDef mdef_models = { - PyModuleDef_HEAD_INIT, - NULL, /* m_name, filled later */ - NULL, /* m_doc */ - -1, /* m_size */ - NULL, /* m_methods */ - NULL, /* m_reload */ - NULL, /* m_traverse */ - NULL, /* m_clear */ - NULL, /* m_free */ -}; - -#endif - -/* The exported interface to CPython. On import of the module, this function - * gets called. It has to have an exact function name, in cases it's a shared - * library export. This is hidden behind the MOD_INIT_DECL macro. - */ - -// Actual name might be different when loaded as a package. -static char const *module_full_name = "models"; - -MOD_INIT_DECL(models) { - if (_Py_PackageContext != NULL) { - module_full_name = _Py_PackageContext; - } - -#if PYTHON_VERSION < 0x300 - PyObject *module = Py_InitModule4( - module_full_name, // Module Name - NULL, // No methods initially, all are added - // dynamically in actual module code only. - NULL, // No "__doc__" is initially set, as it could - // not contain NUL this way, added early in - // actual code. - NULL, // No self for modules, we don't use it. - PYTHON_API_VERSION - ); -#else - mdef_models.m_name = module_full_name; - PyObject *module = PyModule_Create(&mdef_models); - CHECK_OBJECT(module); - - bool res = Nuitka_SetModuleString(module_full_name, module); - assert(res != false); -#endif - -#if PYTHON_VERSION < 0x300 - modulecode_models(module, NULL); -#else - PyObject *result = modulecode_models(module, NULL); - return result; -#endif -} - diff --git a/medomni/models.build/module.models.eva_vit.const b/medomni/models.build/module.models.eva_vit.const deleted file mode 100644 index f473478ce4d9a2f5754358ceb3ccc8c164c96f93..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.eva_vit.const and /dev/null differ diff --git a/medomni/models.build/module.models.eva_vit.cpp b/medomni/models.build/module.models.eva_vit.cpp deleted file mode 100644 index 7f37858beb826090ac47a5ebdc6dbba53e69783d..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.eva_vit.cpp +++ /dev/null @@ -1,30480 +0,0 @@ -/* Generated code for Python module 'models.eva_vit' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$eva_vit" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$eva_vit; -PyDictObject *moduledict_models$eva_vit; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[333]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.eva_vit")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$eva_vit(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.eva_vit"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_ba131fdbf0642417c1f00c51309fdd24; -static PyCodeObject *codeobj_8c3d2c26074fd179a839a2865225477e; -static PyCodeObject *codeobj_ca7d5a72cb9493a006e151c55e0654a6; -static PyCodeObject *codeobj_2edfa8351c80e7d7fdb434fec9d71413; -static PyCodeObject *codeobj_307103cd4c8c91221c1b5d3bbd668de5; -static PyCodeObject *codeobj_1347fc2fd0cc8327fc442e80aef3d34a; -static PyCodeObject *codeobj_b7e284487c7a724fe375c971bffefa37; -static PyCodeObject *codeobj_1cd964112254225e4c50e7367fadca6e; -static PyCodeObject *codeobj_1bb0233c85dac073bd221db7b8d08c7d; -static PyCodeObject *codeobj_15d041386150a57970a9bb49e9945556; -static PyCodeObject *codeobj_d92c71c73bff0f22de3676bfa424f040; -static PyCodeObject *codeobj_dee30e4e144137543edf2e9eb10bf246; -static PyCodeObject *codeobj_cbbf930efb7d03951d3f0d44d452b5c5; -static PyCodeObject *codeobj_b2d24eeaac09f42ae30d5aa04029c58d; -static PyCodeObject *codeobj_98263e472fd41a406a6243a5fb0fe540; -static PyCodeObject *codeobj_aca10258238f16e5d32cdec7d38f6aa1; -static PyCodeObject *codeobj_90888ee108de7d41b39f1ce4c7fc2733; -static PyCodeObject *codeobj_1a25f4e6272cd37b0391185d6e15332d; -static PyCodeObject *codeobj_798eb7b5936251f17f02ea63a4c80711; -static PyCodeObject *codeobj_d3ae6dfcfdfb59872f24376c5abceab9; -static PyCodeObject *codeobj_cdc1bdc0d0f99246b06c37d69566725f; -static PyCodeObject *codeobj_dfea8ca4ca30978daca1027e66969d32; -static PyCodeObject *codeobj_0382e55983fd56587f1869ac50f89780; -static PyCodeObject *codeobj_608fe3c25a20e7407073e8ada1e4a0a2; -static PyCodeObject *codeobj_3611403861dabc1175f5dc9fc6560deb; -static PyCodeObject *codeobj_606b69ee75e6213fc8a924a5ab3c203e; -static PyCodeObject *codeobj_a9e2d880945280c132cf97a150626697; -static PyCodeObject *codeobj_490b645cee54b66ea24504c582d15e25; -static PyCodeObject *codeobj_446336bff265ef3598d46cbfaec00955; -static PyCodeObject *codeobj_d5219c5b01b2e872456147b340beeec5; -static PyCodeObject *codeobj_9fd144b2d64377624d1cbd90f98752ee; -static PyCodeObject *codeobj_2192bdbd8e91262dd573c14e59b5b144; -static PyCodeObject *codeobj_4767d123c180f4ce20b41f46dcfe0fa7; -static PyCodeObject *codeobj_ae30f9a36795259179b59fe1c61f577b; -static PyCodeObject *codeobj_f1a5127b96c07704e8fb5584f8d146f7; -static PyCodeObject *codeobj_b5558490320606969b02cc72fbce71c2; -static PyCodeObject *codeobj_f2a65ca76842944dd804c12b66e87a5d; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[303]); CHECK_OBJECT(module_filename_obj); - codeobj_ba131fdbf0642417c1f00c51309fdd24 = MAKE_CODEOBJECT(module_filename_obj, 280, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[304], mod_consts[305], NULL, 1, 0, 0); - codeobj_8c3d2c26074fd179a839a2865225477e = MAKE_CODEOBJECT(module_filename_obj, 278, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[304], mod_consts[306], NULL, 1, 0, 0); - codeobj_ca7d5a72cb9493a006e151c55e0654a6 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[307], NULL, NULL, 0, 0, 0); - codeobj_2edfa8351c80e7d7fdb434fec9d71413 = MAKE_CODEOBJECT(module_filename_obj, 66, CO_NOFREE, mod_consts[97], mod_consts[308], NULL, 0, 0, 0); - codeobj_307103cd4c8c91221c1b5d3bbd668de5 = MAKE_CODEOBJECT(module_filename_obj, 153, CO_NOFREE, mod_consts[149], mod_consts[308], NULL, 0, 0, 0); - codeobj_1347fc2fd0cc8327fc442e80aef3d34a = MAKE_CODEOBJECT(module_filename_obj, 32, CO_NOFREE, mod_consts[8], mod_consts[308], NULL, 0, 0, 0); - codeobj_b7e284487c7a724fe375c971bffefa37 = MAKE_CODEOBJECT(module_filename_obj, 46, CO_NOFREE, mod_consts[104], mod_consts[308], NULL, 0, 0, 0); - codeobj_1cd964112254225e4c50e7367fadca6e = MAKE_CODEOBJECT(module_filename_obj, 185, CO_NOFREE, mod_consts[135], mod_consts[308], NULL, 0, 0, 0); - codeobj_1bb0233c85dac073bd221db7b8d08c7d = MAKE_CODEOBJECT(module_filename_obj, 209, CO_NOFREE, mod_consts[142], mod_consts[308], NULL, 0, 0, 0); - codeobj_15d041386150a57970a9bb49e9945556 = MAKE_CODEOBJECT(module_filename_obj, 248, CO_NOFREE, mod_consts[204], mod_consts[308], NULL, 0, 0, 0); - codeobj_d92c71c73bff0f22de3676bfa424f040 = MAKE_CODEOBJECT(module_filename_obj, 155, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[9], mod_consts[309], mod_consts[308], 14, 0, 0); - codeobj_dee30e4e144137543edf2e9eb10bf246 = MAKE_CODEOBJECT(module_filename_obj, 67, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[9], mod_consts[310], mod_consts[308], 9, 0, 0); - codeobj_cbbf930efb7d03951d3f0d44d452b5c5 = MAKE_CODEOBJECT(module_filename_obj, 35, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[9], mod_consts[311], NULL, 2, 0, 0); - codeobj_b2d24eeaac09f42ae30d5aa04029c58d = MAKE_CODEOBJECT(module_filename_obj, 188, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[9], mod_consts[312], mod_consts[308], 5, 0, 0); - codeobj_98263e472fd41a406a6243a5fb0fe540 = MAKE_CODEOBJECT(module_filename_obj, 251, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[9], mod_consts[313], mod_consts[308], 22, 0, 0); - codeobj_aca10258238f16e5d32cdec7d38f6aa1 = MAKE_CODEOBJECT(module_filename_obj, 47, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[9], mod_consts[314], mod_consts[308], 6, 0, 0); - codeobj_90888ee108de7d41b39f1ce4c7fc2733 = MAKE_CODEOBJECT(module_filename_obj, 211, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[9], mod_consts[315], mod_consts[308], 3, 0, 0); - codeobj_1a25f4e6272cd37b0391185d6e15332d = MAKE_CODEOBJECT(module_filename_obj, 22, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[249], mod_consts[316], NULL, 1, 0, 0); - codeobj_798eb7b5936251f17f02ea63a4c80711 = MAKE_CODEOBJECT(module_filename_obj, 402, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[198], mod_consts[317], NULL, 1, 0, 0); - codeobj_d3ae6dfcfdfb59872f24376c5abceab9 = MAKE_CODEOBJECT(module_filename_obj, 310, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[318], NULL, 2, 0, 0); - codeobj_cdc1bdc0d0f99246b06c37d69566725f = MAKE_CODEOBJECT(module_filename_obj, 399, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[223], mod_consts[319], NULL, 1, 0, 0); - codeobj_dfea8ca4ca30978daca1027e66969d32 = MAKE_CODEOBJECT(module_filename_obj, 417, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[302], mod_consts[320], NULL, 4, 0, 0); - codeobj_0382e55983fd56587f1869ac50f89780 = MAKE_CODEOBJECT(module_filename_obj, 42, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[266], mod_consts[321], NULL, 1, 0, 0); - codeobj_608fe3c25a20e7407073e8ada1e4a0a2 = MAKE_CODEOBJECT(module_filename_obj, 302, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[160], mod_consts[322], NULL, 1, 0, 0); - codeobj_3611403861dabc1175f5dc9fc6560deb = MAKE_CODEOBJECT(module_filename_obj, 240, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[262], mod_consts[323], NULL, 1, 0, 0); - codeobj_606b69ee75e6213fc8a924a5ab3c203e = MAKE_CODEOBJECT(module_filename_obj, 39, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[262], mod_consts[324], NULL, 2, 0, 0); - codeobj_a9e2d880945280c132cf97a150626697 = MAKE_CODEOBJECT(module_filename_obj, 56, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[262], mod_consts[324], NULL, 2, 0, 0); - codeobj_490b645cee54b66ea24504c582d15e25 = MAKE_CODEOBJECT(module_filename_obj, 351, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[262], mod_consts[324], NULL, 2, 0, 0); - codeobj_446336bff265ef3598d46cbfaec00955 = MAKE_CODEOBJECT(module_filename_obj, 200, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[262], mod_consts[325], NULL, 2, 0, 0); - codeobj_d5219c5b01b2e872456147b340beeec5 = MAKE_CODEOBJECT(module_filename_obj, 175, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[262], mod_consts[326], NULL, 3, 0, 0); - codeobj_9fd144b2d64377624d1cbd90f98752ee = MAKE_CODEOBJECT(module_filename_obj, 120, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[262], mod_consts[327], NULL, 3, 0, 0); - codeobj_2192bdbd8e91262dd573c14e59b5b144 = MAKE_CODEOBJECT(module_filename_obj, 326, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[179], mod_consts[328], NULL, 2, 0, 0); - codeobj_4767d123c180f4ce20b41f46dcfe0fa7 = MAKE_CODEOBJECT(module_filename_obj, 319, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[293], mod_consts[321], NULL, 1, 0, 0); - codeobj_ae30f9a36795259179b59fe1c61f577b = MAKE_CODEOBJECT(module_filename_obj, 356, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[299], mod_consts[329], NULL, 2, 0, 0); - codeobj_f1a5127b96c07704e8fb5584f8d146f7 = MAKE_CODEOBJECT(module_filename_obj, 375, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[219], mod_consts[330], NULL, 2, 0, 0); - codeobj_b5558490320606969b02cc72fbce71c2 = MAKE_CODEOBJECT(module_filename_obj, 303, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[161], mod_consts[331], NULL, 2, 0, 0); - codeobj_f2a65ca76842944dd804c12b66e87a5d = MAKE_CODEOBJECT(module_filename_obj, 322, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[295], mod_consts[332], NULL, 3, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__6__unpack_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__10_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__11___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__12_forward(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__13___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__14_forward(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__15___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__16_fix_init_weight(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__16_fix_init_weight$$$function__1_rescale(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__17__init_weights(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__18_get_classifier(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__19_reset_classifier(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__1__cfg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__20_forward_features(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__21_forward(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__22_get_intermediate_layers(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__23_interpolate_pos_embed(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__24_convert_weights_to_fp16(PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__24_convert_weights_to_fp16$$$function__1__convert_weights_to_fp16(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__25_create_eva_vit_g(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__2___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__3_forward(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__4_extra_repr(PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__5___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__6_forward(); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__7___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__8_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__9___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -// The module function definitions. -static PyObject *impl_models$eva_vit$$$function__1__cfg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_url = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - struct Nuitka_FrameObject *frame_1a25f4e6272cd37b0391185d6e15332d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_1a25f4e6272cd37b0391185d6e15332d = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1a25f4e6272cd37b0391185d6e15332d)) { - Py_XDECREF(cache_frame_1a25f4e6272cd37b0391185d6e15332d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1a25f4e6272cd37b0391185d6e15332d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1a25f4e6272cd37b0391185d6e15332d = MAKE_FUNCTION_FRAME(codeobj_1a25f4e6272cd37b0391185d6e15332d, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1a25f4e6272cd37b0391185d6e15332d->m_type_description == NULL); - frame_1a25f4e6272cd37b0391185d6e15332d = cache_frame_1a25f4e6272cd37b0391185d6e15332d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1a25f4e6272cd37b0391185d6e15332d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1a25f4e6272cd37b0391185d6e15332d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_dict_key_1 = mod_consts[0]; - CHECK_OBJECT(par_url); - tmp_dict_value_1 = par_url; - tmp_tuple_element_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_tuple_element_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dircall_arg1_1 = PyTuple_New(9); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[1]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[2]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 2, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[3]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 3, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[4]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 4, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[5]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 5, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[6]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 6, tmp_tuple_element_1); - tmp_tuple_element_1 = PyDict_Copy(mod_consts[7]); - PyTuple_SET_ITEM(tmp_dircall_arg1_1, 7, tmp_tuple_element_1); - CHECK_OBJECT(par_kwargs); - tmp_tuple_element_1 = par_kwargs; - PyTuple_SET_ITEM0(tmp_dircall_arg1_1, 8, tmp_tuple_element_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_return_value = impl_models$$$function__6__unpack_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1a25f4e6272cd37b0391185d6e15332d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1a25f4e6272cd37b0391185d6e15332d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1a25f4e6272cd37b0391185d6e15332d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1a25f4e6272cd37b0391185d6e15332d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1a25f4e6272cd37b0391185d6e15332d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1a25f4e6272cd37b0391185d6e15332d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1a25f4e6272cd37b0391185d6e15332d, - type_description_1, - par_url, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_1a25f4e6272cd37b0391185d6e15332d == cache_frame_1a25f4e6272cd37b0391185d6e15332d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1a25f4e6272cd37b0391185d6e15332d); - cache_frame_1a25f4e6272cd37b0391185d6e15332d = NULL; - } - - assertFrameObject(frame_1a25f4e6272cd37b0391185d6e15332d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_url); - Py_DECREF(par_url); - par_url = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_url); - Py_DECREF(par_url); - par_url = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__2___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_drop_prob = python_pars[1]; - struct Nuitka_FrameObject *frame_cbbf930efb7d03951d3f0d44d452b5c5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_cbbf930efb7d03951d3f0d44d452b5c5 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_cbbf930efb7d03951d3f0d44d452b5c5)) { - Py_XDECREF(cache_frame_cbbf930efb7d03951d3f0d44d452b5c5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_cbbf930efb7d03951d3f0d44d452b5c5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_cbbf930efb7d03951d3f0d44d452b5c5 = MAKE_FUNCTION_FRAME(codeobj_cbbf930efb7d03951d3f0d44d452b5c5, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_cbbf930efb7d03951d3f0d44d452b5c5->m_type_description == NULL); - frame_cbbf930efb7d03951d3f0d44d452b5c5 = cache_frame_cbbf930efb7d03951d3f0d44d452b5c5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_cbbf930efb7d03951d3f0d44d452b5c5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_cbbf930efb7d03951d3f0d44d452b5c5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - frame_cbbf930efb7d03951d3f0d44d452b5c5->m_frame.f_lineno = 36; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_drop_prob); - tmp_assattr_name_1 = par_drop_prob; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[10], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cbbf930efb7d03951d3f0d44d452b5c5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cbbf930efb7d03951d3f0d44d452b5c5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_cbbf930efb7d03951d3f0d44d452b5c5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_cbbf930efb7d03951d3f0d44d452b5c5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_cbbf930efb7d03951d3f0d44d452b5c5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_cbbf930efb7d03951d3f0d44d452b5c5, - type_description_1, - par_self, - par_drop_prob, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_cbbf930efb7d03951d3f0d44d452b5c5 == cache_frame_cbbf930efb7d03951d3f0d44d452b5c5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_cbbf930efb7d03951d3f0d44d452b5c5); - cache_frame_cbbf930efb7d03951d3f0d44d452b5c5 = NULL; - } - - assertFrameObject(frame_cbbf930efb7d03951d3f0d44d452b5c5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_drop_prob); - Py_DECREF(par_drop_prob); - par_drop_prob = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_drop_prob); - Py_DECREF(par_drop_prob); - par_drop_prob = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__3_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_606b69ee75e6213fc8a924a5ab3c203e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_606b69ee75e6213fc8a924a5ab3c203e = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_606b69ee75e6213fc8a924a5ab3c203e)) { - Py_XDECREF(cache_frame_606b69ee75e6213fc8a924a5ab3c203e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_606b69ee75e6213fc8a924a5ab3c203e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_606b69ee75e6213fc8a924a5ab3c203e = MAKE_FUNCTION_FRAME(codeobj_606b69ee75e6213fc8a924a5ab3c203e, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_606b69ee75e6213fc8a924a5ab3c203e->m_type_description == NULL); - frame_606b69ee75e6213fc8a924a5ab3c203e = cache_frame_606b69ee75e6213fc8a924a5ab3c203e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_606b69ee75e6213fc8a924a5ab3c203e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_606b69ee75e6213fc8a924a5ab3c203e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[11]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[11]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[10]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_args_element_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[13]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 40; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_606b69ee75e6213fc8a924a5ab3c203e->m_frame.f_lineno = 40; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_606b69ee75e6213fc8a924a5ab3c203e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_606b69ee75e6213fc8a924a5ab3c203e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_606b69ee75e6213fc8a924a5ab3c203e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_606b69ee75e6213fc8a924a5ab3c203e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_606b69ee75e6213fc8a924a5ab3c203e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_606b69ee75e6213fc8a924a5ab3c203e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_606b69ee75e6213fc8a924a5ab3c203e, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_606b69ee75e6213fc8a924a5ab3c203e == cache_frame_606b69ee75e6213fc8a924a5ab3c203e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_606b69ee75e6213fc8a924a5ab3c203e); - cache_frame_606b69ee75e6213fc8a924a5ab3c203e = NULL; - } - - assertFrameObject(frame_606b69ee75e6213fc8a924a5ab3c203e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__4_extra_repr(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_0382e55983fd56587f1869ac50f89780; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_0382e55983fd56587f1869ac50f89780 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0382e55983fd56587f1869ac50f89780)) { - Py_XDECREF(cache_frame_0382e55983fd56587f1869ac50f89780); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0382e55983fd56587f1869ac50f89780 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0382e55983fd56587f1869ac50f89780 = MAKE_FUNCTION_FRAME(codeobj_0382e55983fd56587f1869ac50f89780, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0382e55983fd56587f1869ac50f89780->m_type_description == NULL); - frame_0382e55983fd56587f1869ac50f89780 = cache_frame_0382e55983fd56587f1869ac50f89780; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0382e55983fd56587f1869ac50f89780); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0382e55983fd56587f1869ac50f89780) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - tmp_expression_name_1 = mod_consts[14]; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[15]); - assert(!(tmp_called_name_1 == NULL)); - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[10]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 43; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_0382e55983fd56587f1869ac50f89780->m_frame.f_lineno = 43; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0382e55983fd56587f1869ac50f89780); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0382e55983fd56587f1869ac50f89780); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0382e55983fd56587f1869ac50f89780); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0382e55983fd56587f1869ac50f89780, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0382e55983fd56587f1869ac50f89780->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0382e55983fd56587f1869ac50f89780, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0382e55983fd56587f1869ac50f89780, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_0382e55983fd56587f1869ac50f89780 == cache_frame_0382e55983fd56587f1869ac50f89780) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0382e55983fd56587f1869ac50f89780); - cache_frame_0382e55983fd56587f1869ac50f89780 = NULL; - } - - assertFrameObject(frame_0382e55983fd56587f1869ac50f89780); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__5___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_features = python_pars[1]; - PyObject *par_hidden_features = python_pars[2]; - PyObject *par_out_features = python_pars[3]; - PyObject *par_act_layer = python_pars[4]; - PyObject *par_drop = python_pars[5]; - struct Nuitka_FrameObject *frame_aca10258238f16e5d32cdec7d38f6aa1; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_aca10258238f16e5d32cdec7d38f6aa1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_aca10258238f16e5d32cdec7d38f6aa1)) { - Py_XDECREF(cache_frame_aca10258238f16e5d32cdec7d38f6aa1); - -#if _DEBUG_REFCOUNTS - if (cache_frame_aca10258238f16e5d32cdec7d38f6aa1 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_aca10258238f16e5d32cdec7d38f6aa1 = MAKE_FUNCTION_FRAME(codeobj_aca10258238f16e5d32cdec7d38f6aa1, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_aca10258238f16e5d32cdec7d38f6aa1->m_type_description == NULL); - frame_aca10258238f16e5d32cdec7d38f6aa1 = cache_frame_aca10258238f16e5d32cdec7d38f6aa1; - - // Push the new frame as the currently active one. - pushFrameStack(frame_aca10258238f16e5d32cdec7d38f6aa1); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_aca10258238f16e5d32cdec7d38f6aa1) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 48; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - frame_aca10258238f16e5d32cdec7d38f6aa1->m_frame.f_lineno = 48; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - CHECK_OBJECT(par_out_features); - tmp_or_left_value_1 = par_out_features; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_in_features); - tmp_or_right_value_1 = par_in_features; - tmp_assign_source_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_assign_source_1 = tmp_or_left_value_1; - or_end_1:; - { - PyObject *old = par_out_features; - assert(old != NULL); - par_out_features = tmp_assign_source_1; - Py_INCREF(par_out_features); - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - int tmp_or_left_truth_2; - PyObject *tmp_or_left_value_2; - PyObject *tmp_or_right_value_2; - CHECK_OBJECT(par_hidden_features); - tmp_or_left_value_2 = par_hidden_features; - tmp_or_left_truth_2 = CHECK_IF_TRUE(tmp_or_left_value_2); - if (tmp_or_left_truth_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_2 == 1) { - goto or_left_2; - } else { - goto or_right_2; - } - or_right_2:; - CHECK_OBJECT(par_in_features); - tmp_or_right_value_2 = par_in_features; - tmp_assign_source_2 = tmp_or_right_value_2; - goto or_end_2; - or_left_2:; - tmp_assign_source_2 = tmp_or_left_value_2; - or_end_2:; - { - PyObject *old = par_hidden_features; - assert(old != NULL); - par_hidden_features = tmp_assign_source_2; - Py_INCREF(par_hidden_features); - Py_DECREF(old); - } - - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_features); - tmp_args_element_name_1 = par_in_features; - CHECK_OBJECT(par_hidden_features); - tmp_args_element_name_2 = par_hidden_features; - frame_aca10258238f16e5d32cdec7d38f6aa1->m_frame.f_lineno = 51; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[18], - call_args - ); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[19], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_act_layer); - tmp_called_name_1 = par_act_layer; - frame_aca10258238f16e5d32cdec7d38f6aa1->m_frame.f_lineno = 52; - tmp_assattr_name_2 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[20], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_3; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[18]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - if (par_hidden_features == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_hidden_features; - CHECK_OBJECT(par_out_features); - tmp_args_element_name_4 = par_out_features; - frame_aca10258238f16e5d32cdec7d38f6aa1->m_frame.f_lineno = 53; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[22], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_5; - PyObject *tmp_assattr_target_4; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_drop); - tmp_args_element_name_5 = par_drop; - frame_aca10258238f16e5d32cdec7d38f6aa1->m_frame.f_lineno = 54; - tmp_assattr_name_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[23], tmp_args_element_name_5); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[24], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aca10258238f16e5d32cdec7d38f6aa1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aca10258238f16e5d32cdec7d38f6aa1); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_aca10258238f16e5d32cdec7d38f6aa1, exception_lineno); - } else if (exception_tb->tb_frame != &frame_aca10258238f16e5d32cdec7d38f6aa1->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_aca10258238f16e5d32cdec7d38f6aa1, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_aca10258238f16e5d32cdec7d38f6aa1, - type_description_1, - par_self, - par_in_features, - par_hidden_features, - par_out_features, - par_act_layer, - par_drop, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_aca10258238f16e5d32cdec7d38f6aa1 == cache_frame_aca10258238f16e5d32cdec7d38f6aa1) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_aca10258238f16e5d32cdec7d38f6aa1); - cache_frame_aca10258238f16e5d32cdec7d38f6aa1 = NULL; - } - - assertFrameObject(frame_aca10258238f16e5d32cdec7d38f6aa1); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_features); - par_in_features = NULL; - Py_XDECREF(par_hidden_features); - par_hidden_features = NULL; - Py_XDECREF(par_out_features); - par_out_features = NULL; - CHECK_OBJECT(par_act_layer); - Py_DECREF(par_act_layer); - par_act_layer = NULL; - Py_XDECREF(par_drop); - par_drop = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_features); - par_in_features = NULL; - Py_XDECREF(par_hidden_features); - par_hidden_features = NULL; - Py_XDECREF(par_out_features); - par_out_features = NULL; - CHECK_OBJECT(par_act_layer); - Py_DECREF(par_act_layer); - par_act_layer = NULL; - Py_XDECREF(par_drop); - par_drop = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__6_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_a9e2d880945280c132cf97a150626697; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_a9e2d880945280c132cf97a150626697 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a9e2d880945280c132cf97a150626697)) { - Py_XDECREF(cache_frame_a9e2d880945280c132cf97a150626697); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a9e2d880945280c132cf97a150626697 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a9e2d880945280c132cf97a150626697 = MAKE_FUNCTION_FRAME(codeobj_a9e2d880945280c132cf97a150626697, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a9e2d880945280c132cf97a150626697->m_type_description == NULL); - frame_a9e2d880945280c132cf97a150626697 = cache_frame_a9e2d880945280c132cf97a150626697; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a9e2d880945280c132cf97a150626697); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a9e2d880945280c132cf97a150626697) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_a9e2d880945280c132cf97a150626697->m_frame.f_lineno = 57; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[19], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_2 = par_x; - frame_a9e2d880945280c132cf97a150626697->m_frame.f_lineno = 58; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[20], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_3 = par_x; - frame_a9e2d880945280c132cf97a150626697->m_frame.f_lineno = 61; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[22], tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_4 = par_x; - frame_a9e2d880945280c132cf97a150626697->m_frame.f_lineno = 62; - tmp_assign_source_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[24], tmp_args_element_name_4); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a9e2d880945280c132cf97a150626697); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a9e2d880945280c132cf97a150626697); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a9e2d880945280c132cf97a150626697, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a9e2d880945280c132cf97a150626697->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a9e2d880945280c132cf97a150626697, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a9e2d880945280c132cf97a150626697, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_a9e2d880945280c132cf97a150626697 == cache_frame_a9e2d880945280c132cf97a150626697) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a9e2d880945280c132cf97a150626697); - cache_frame_a9e2d880945280c132cf97a150626697 = NULL; - } - - assertFrameObject(frame_a9e2d880945280c132cf97a150626697); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_dim = python_pars[1]; - PyObject *par_num_heads = python_pars[2]; - PyObject *par_qkv_bias = python_pars[3]; - PyObject *par_qk_scale = python_pars[4]; - PyObject *par_attn_drop = python_pars[5]; - PyObject *par_proj_drop = python_pars[6]; - PyObject *par_window_size = python_pars[7]; - PyObject *par_attn_head_dim = python_pars[8]; - PyObject *var_head_dim = NULL; - PyObject *var_all_head_dim = NULL; - PyObject *var_coords_h = NULL; - PyObject *var_coords_w = NULL; - PyObject *var_coords = NULL; - PyObject *var_coords_flatten = NULL; - PyObject *var_relative_coords = NULL; - PyObject *var_relative_position_index = NULL; - PyObject *tmp_inplace_assign_subscr_1__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_1__target = NULL; - PyObject *tmp_inplace_assign_subscr_1__value = NULL; - PyObject *tmp_inplace_assign_subscr_2__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_2__target = NULL; - PyObject *tmp_inplace_assign_subscr_2__value = NULL; - PyObject *tmp_inplace_assign_subscr_3__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_3__target = NULL; - PyObject *tmp_inplace_assign_subscr_3__value = NULL; - struct Nuitka_FrameObject *frame_dee30e4e144137543edf2e9eb10bf246; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_dee30e4e144137543edf2e9eb10bf246 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_dee30e4e144137543edf2e9eb10bf246)) { - Py_XDECREF(cache_frame_dee30e4e144137543edf2e9eb10bf246); - -#if _DEBUG_REFCOUNTS - if (cache_frame_dee30e4e144137543edf2e9eb10bf246 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_dee30e4e144137543edf2e9eb10bf246 = MAKE_FUNCTION_FRAME(codeobj_dee30e4e144137543edf2e9eb10bf246, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_dee30e4e144137543edf2e9eb10bf246->m_type_description == NULL); - frame_dee30e4e144137543edf2e9eb10bf246 = cache_frame_dee30e4e144137543edf2e9eb10bf246; - - // Push the new frame as the currently active one. - pushFrameStack(frame_dee30e4e144137543edf2e9eb10bf246); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_dee30e4e144137543edf2e9eb10bf246) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 70; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 70; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_num_heads); - tmp_assattr_name_1 = par_num_heads; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[25], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_dim); - tmp_left_name_1 = par_dim; - CHECK_OBJECT(par_num_heads); - tmp_right_name_1 = par_num_heads; - tmp_assign_source_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_head_dim == NULL); - var_head_dim = tmp_assign_source_1; - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_attn_head_dim); - tmp_compexpr_left_1 = par_attn_head_dim; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(par_attn_head_dim); - tmp_assign_source_2 = par_attn_head_dim; - { - PyObject *old = var_head_dim; - assert(old != NULL); - var_head_dim = tmp_assign_source_2; - Py_INCREF(var_head_dim); - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(var_head_dim); - tmp_left_name_2 = var_head_dim; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_right_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[25]); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_all_head_dim == NULL); - var_all_head_dim = tmp_assign_source_3; - } - { - PyObject *tmp_assattr_name_2; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_qk_scale); - tmp_or_left_value_1 = par_qk_scale; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - if (var_head_dim == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = var_head_dim; - tmp_right_name_3 = mod_consts[27]; - tmp_or_right_value_1 = BINARY_OPERATION_POW_OBJECT_OBJECT_FLOAT(tmp_left_name_3, tmp_right_name_3); - if (tmp_or_right_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_2 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - Py_INCREF(tmp_or_left_value_1); - tmp_assattr_name_2 = tmp_or_left_value_1; - or_end_1:; - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[28], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[18]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_dim == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_dim; - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_all_head_dim); - tmp_left_name_4 = var_all_head_dim; - tmp_right_name_4 = mod_consts[30]; - tmp_tuple_element_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_LONG(tmp_left_name_4, tmp_right_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[31]); - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 78; - tmp_assattr_name_3 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[32], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - CHECK_OBJECT(par_qkv_bias); - tmp_truth_name_1 = CHECK_IF_TRUE(par_qkv_bias); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_4; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[33]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[35]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_all_head_dim == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = var_all_head_dim; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 80; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 80; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[37], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_5; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[33]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[35]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_all_head_dim == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = var_all_head_dim; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 81; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_5); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 81; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[38], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_assattr_target_6; - tmp_assattr_name_6 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[37], tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_assattr_target_7; - tmp_assattr_name_7 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[38], tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_2; - CHECK_OBJECT(par_window_size); - tmp_truth_name_2 = CHECK_IF_TRUE(par_window_size); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_assattr_target_8; - CHECK_OBJECT(par_window_size); - tmp_assattr_name_8 = par_window_size; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[39], tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_left_name_7; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_6; - PyObject *tmp_right_name_7; - PyObject *tmp_left_name_9; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_8; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_right_name_9; - PyObject *tmp_right_name_10; - PyObject *tmp_assattr_target_9; - tmp_left_name_8 = mod_consts[40]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_7 = par_window_size; - tmp_subscript_name_1 = mod_consts[41]; - tmp_right_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_1, 0); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_7 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_8, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_left_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_6 = mod_consts[42]; - tmp_left_name_6 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_7, tmp_right_name_6); - Py_DECREF(tmp_left_name_7); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_10 = mod_consts[40]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_8 = par_window_size; - tmp_subscript_name_2 = mod_consts[42]; - tmp_right_name_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 1); - if (tmp_right_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_9 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_10, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_left_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_9 = mod_consts[42]; - tmp_right_name_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_left_name_9); - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_7); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_right_name_7); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_10 = mod_consts[30]; - tmp_assattr_name_9 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_5, tmp_right_name_10); - Py_DECREF(tmp_left_name_5); - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[43], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_7; - PyObject *tmp_assattr_target_10; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[33]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[35]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[43]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_num_heads == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[25]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_7 = par_num_heads; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 90; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_6); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 89; - tmp_assattr_name_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assattr_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 89; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[44], tmp_assattr_name_10); - Py_DECREF(tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_3; - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[45]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_window_size); - tmp_expression_name_13 = par_window_size; - tmp_subscript_name_3 = mod_consts[41]; - tmp_args_element_name_8 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_3, 0); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 94; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 94; - tmp_assign_source_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords_h == NULL); - var_coords_h = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_4; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[45]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_window_size); - tmp_expression_name_15 = par_window_size; - tmp_subscript_name_4 = mod_consts[42]; - tmp_args_element_name_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_4, 1); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 95; - tmp_assign_source_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords_w == NULL); - var_coords_w = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_element_name_10; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_11; - PyObject *tmp_list_element_1; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[46]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - - exception_lineno = 96; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_coords_h); - tmp_list_element_1 = var_coords_h; - tmp_args_element_name_11 = PyList_New(2); - PyList_SET_ITEM0(tmp_args_element_name_11, 0, tmp_list_element_1); - CHECK_OBJECT(var_coords_w); - tmp_list_element_1 = var_coords_w; - PyList_SET_ITEM0(tmp_args_element_name_11, 1, tmp_list_element_1); - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 96; - tmp_args_element_name_10 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[47], tmp_args_element_name_11); - Py_DECREF(tmp_args_element_name_11); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - - exception_lineno = 96; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 96; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords == NULL); - var_coords = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_coords); - tmp_args_element_name_12 = var_coords; - tmp_args_element_name_13 = mod_consts[42]; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 97; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[48], - call_args - ); - } - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords_flatten == NULL); - var_coords_flatten = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_left_name_11; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_5; - PyObject *tmp_right_name_11; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_6; - CHECK_OBJECT(var_coords_flatten); - tmp_expression_name_17 = var_coords_flatten; - tmp_subscript_name_5 = mod_consts[49]; - tmp_left_name_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_5); - if (tmp_left_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_coords_flatten); - tmp_expression_name_18 = var_coords_flatten; - tmp_subscript_name_6 = mod_consts[50]; - tmp_right_name_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_18, tmp_subscript_name_6); - if (tmp_right_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_11); - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_left_name_11); - Py_DECREF(tmp_right_name_11); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_relative_coords == NULL); - var_relative_coords = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(var_relative_coords); - tmp_called_instance_5 = var_relative_coords; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 99; - tmp_called_instance_4 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_5, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[52], 0) - ); - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 99; - tmp_assign_source_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[53]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_relative_coords; - var_relative_coords = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(var_relative_coords); - tmp_assign_source_10 = var_relative_coords; - assert(tmp_inplace_assign_subscr_1__target == NULL); - Py_INCREF(tmp_assign_source_10); - tmp_inplace_assign_subscr_1__target = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - tmp_assign_source_11 = mod_consts[54]; - assert(tmp_inplace_assign_subscr_1__subscript == NULL); - Py_INCREF(tmp_assign_source_11); - tmp_inplace_assign_subscr_1__subscript = tmp_assign_source_11; - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_7; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_expression_name_19 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_subscript_name_7 = tmp_inplace_assign_subscr_1__subscript; - tmp_assign_source_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_7); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_2; - } - assert(tmp_inplace_assign_subscr_1__value == NULL); - tmp_inplace_assign_subscr_1__value = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_left_name_12; - PyObject *tmp_right_name_12; - PyObject *tmp_left_name_13; - PyObject *tmp_expression_name_20; - PyObject *tmp_subscript_name_8; - PyObject *tmp_right_name_13; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_left_name_12 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(par_window_size); - tmp_expression_name_20 = par_window_size; - tmp_subscript_name_8 = mod_consts[41]; - tmp_left_name_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_20, tmp_subscript_name_8, 0); - if (tmp_left_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_2; - } - tmp_right_name_13 = mod_consts[42]; - tmp_right_name_12 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_13, tmp_right_name_13); - Py_DECREF(tmp_left_name_13); - if (tmp_right_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_2; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_12, tmp_right_name_12); - Py_DECREF(tmp_right_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_2; - } - tmp_assign_source_13 = tmp_left_name_12; - tmp_inplace_assign_subscr_1__value = tmp_assign_source_13; - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_ass_subvalue_1 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_ass_subscribed_1 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_ass_subscript_1 = tmp_inplace_assign_subscr_1__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_2; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - Py_DECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(var_relative_coords); - tmp_assign_source_14 = var_relative_coords; - assert(tmp_inplace_assign_subscr_2__target == NULL); - Py_INCREF(tmp_assign_source_14); - tmp_inplace_assign_subscr_2__target = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - tmp_assign_source_15 = mod_consts[55]; - assert(tmp_inplace_assign_subscr_2__subscript == NULL); - Py_INCREF(tmp_assign_source_15); - tmp_inplace_assign_subscr_2__subscript = tmp_assign_source_15; - } - // Tried code: - { - PyObject *tmp_assign_source_16; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_9; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - tmp_expression_name_21 = tmp_inplace_assign_subscr_2__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - tmp_subscript_name_9 = tmp_inplace_assign_subscr_2__subscript; - tmp_assign_source_16 = LOOKUP_SUBSCRIPT(tmp_expression_name_21, tmp_subscript_name_9); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_3; - } - assert(tmp_inplace_assign_subscr_2__value == NULL); - tmp_inplace_assign_subscr_2__value = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_left_name_14; - PyObject *tmp_right_name_14; - PyObject *tmp_left_name_15; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_10; - PyObject *tmp_right_name_15; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - tmp_left_name_14 = tmp_inplace_assign_subscr_2__value; - CHECK_OBJECT(par_window_size); - tmp_expression_name_22 = par_window_size; - tmp_subscript_name_10 = mod_consts[42]; - tmp_left_name_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_10, 1); - if (tmp_left_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_3; - } - tmp_right_name_15 = mod_consts[42]; - tmp_right_name_14 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_15, tmp_right_name_15); - Py_DECREF(tmp_left_name_15); - if (tmp_right_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_3; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_14, tmp_right_name_14); - Py_DECREF(tmp_right_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_3; - } - tmp_assign_source_17 = tmp_left_name_14; - tmp_inplace_assign_subscr_2__value = tmp_assign_source_17; - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - tmp_ass_subvalue_2 = tmp_inplace_assign_subscr_2__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - tmp_ass_subscribed_2 = tmp_inplace_assign_subscr_2__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - tmp_ass_subscript_2 = tmp_inplace_assign_subscr_2__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_3; - } - } - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - Py_DECREF(tmp_inplace_assign_subscr_2__target); - tmp_inplace_assign_subscr_2__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - Py_DECREF(tmp_inplace_assign_subscr_2__subscript); - tmp_inplace_assign_subscr_2__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_2__value); - tmp_inplace_assign_subscr_2__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - Py_DECREF(tmp_inplace_assign_subscr_2__target); - tmp_inplace_assign_subscr_2__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - Py_DECREF(tmp_inplace_assign_subscr_2__subscript); - tmp_inplace_assign_subscr_2__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - Py_DECREF(tmp_inplace_assign_subscr_2__value); - tmp_inplace_assign_subscr_2__value = NULL; - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(var_relative_coords); - tmp_assign_source_18 = var_relative_coords; - assert(tmp_inplace_assign_subscr_3__target == NULL); - Py_INCREF(tmp_assign_source_18); - tmp_inplace_assign_subscr_3__target = tmp_assign_source_18; - } - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = mod_consts[54]; - assert(tmp_inplace_assign_subscr_3__subscript == NULL); - Py_INCREF(tmp_assign_source_19); - tmp_inplace_assign_subscr_3__subscript = tmp_assign_source_19; - } - // Tried code: - { - PyObject *tmp_assign_source_20; - PyObject *tmp_expression_name_23; - PyObject *tmp_subscript_name_11; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - tmp_expression_name_23 = tmp_inplace_assign_subscr_3__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - tmp_subscript_name_11 = tmp_inplace_assign_subscr_3__subscript; - tmp_assign_source_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_23, tmp_subscript_name_11); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_4; - } - assert(tmp_inplace_assign_subscr_3__value == NULL); - tmp_inplace_assign_subscr_3__value = tmp_assign_source_20; - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_left_name_16; - PyObject *tmp_right_name_16; - PyObject *tmp_left_name_17; - PyObject *tmp_left_name_18; - PyObject *tmp_right_name_17; - PyObject *tmp_expression_name_24; - PyObject *tmp_subscript_name_12; - PyObject *tmp_right_name_18; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__value); - tmp_left_name_16 = tmp_inplace_assign_subscr_3__value; - tmp_left_name_18 = mod_consts[40]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_24 = par_window_size; - tmp_subscript_name_12 = mod_consts[42]; - tmp_right_name_17 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_24, tmp_subscript_name_12, 1); - if (tmp_right_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_4; - } - tmp_left_name_17 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_18, tmp_right_name_17); - Py_DECREF(tmp_right_name_17); - if (tmp_left_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_4; - } - tmp_right_name_18 = mod_consts[42]; - tmp_right_name_16 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_17, tmp_right_name_18); - Py_DECREF(tmp_left_name_17); - if (tmp_right_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_4; - } - tmp_result = BINARY_OPERATION_MULT_OBJECT_OBJECT_INPLACE(&tmp_left_name_16, tmp_right_name_16); - Py_DECREF(tmp_right_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_4; - } - tmp_assign_source_21 = tmp_left_name_16; - tmp_inplace_assign_subscr_3__value = tmp_assign_source_21; - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__value); - tmp_ass_subvalue_3 = tmp_inplace_assign_subscr_3__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - tmp_ass_subscribed_3 = tmp_inplace_assign_subscr_3__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - tmp_ass_subscript_3 = tmp_inplace_assign_subscr_3__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooc"; - goto try_except_handler_4; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - Py_DECREF(tmp_inplace_assign_subscr_3__target); - tmp_inplace_assign_subscr_3__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - Py_DECREF(tmp_inplace_assign_subscr_3__subscript); - tmp_inplace_assign_subscr_3__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_3__value); - tmp_inplace_assign_subscr_3__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - Py_DECREF(tmp_inplace_assign_subscr_3__target); - tmp_inplace_assign_subscr_3__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - Py_DECREF(tmp_inplace_assign_subscr_3__subscript); - tmp_inplace_assign_subscr_3__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__value); - Py_DECREF(tmp_inplace_assign_subscr_3__value); - tmp_inplace_assign_subscr_3__value = NULL; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_25; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_left_name_19; - PyObject *tmp_tuple_element_2; - PyObject *tmp_left_name_20; - PyObject *tmp_left_name_21; - PyObject *tmp_expression_name_26; - PyObject *tmp_subscript_name_13; - PyObject *tmp_right_name_19; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_14; - PyObject *tmp_right_name_20; - PyObject *tmp_right_name_21; - tmp_expression_name_25 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_25 == NULL)) { - tmp_expression_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[35]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[56]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_26 = par_window_size; - tmp_subscript_name_13 = mod_consts[41]; - tmp_left_name_21 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_26, tmp_subscript_name_13, 0); - if (tmp_left_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_window_size); - tmp_expression_name_27 = par_window_size; - tmp_subscript_name_14 = mod_consts[42]; - tmp_right_name_19 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_14, 1); - if (tmp_right_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_left_name_21); - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_20 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_21, tmp_right_name_19); - Py_DECREF(tmp_left_name_21); - Py_DECREF(tmp_right_name_19); - if (tmp_left_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_20 = mod_consts[42]; - tmp_tuple_element_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_20, tmp_right_name_20); - Py_DECREF(tmp_left_name_20); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_19 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_left_name_19, 0, tmp_tuple_element_2); - tmp_right_name_21 = mod_consts[40]; - tmp_dict_value_1 = BINARY_OPERATION_MULT_OBJECT_TUPLE_LONG(tmp_left_name_19, tmp_right_name_21); - Py_DECREF(tmp_left_name_19); - assert(!(tmp_dict_value_1 == NULL)); - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_28; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[57]; - CHECK_OBJECT(var_relative_coords); - tmp_expression_name_28 = var_relative_coords; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[57]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 104; - tmp_assign_source_22 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_11, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_relative_position_index == NULL); - var_relative_position_index = tmp_assign_source_22; - } - { - PyObject *tmp_ass_subvalue_4; - PyObject *tmp_called_instance_6; - PyObject *tmp_ass_subscribed_4; - PyObject *tmp_ass_subscript_4; - if (var_relative_coords == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = var_relative_coords; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 105; - tmp_ass_subvalue_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[59], - &PyTuple_GET_ITEM(mod_consts[60], 0) - ); - - if (tmp_ass_subvalue_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_relative_position_index); - tmp_ass_subscribed_4 = var_relative_position_index; - tmp_ass_subscript_4 = mod_consts[61]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_4, tmp_ass_subscript_4, tmp_ass_subvalue_4); - Py_DECREF(tmp_ass_subvalue_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_5; - PyObject *tmp_left_name_22; - PyObject *tmp_expression_name_29; - PyObject *tmp_right_name_22; - PyObject *tmp_ass_subscribed_5; - PyObject *tmp_ass_subscript_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = par_self; - tmp_left_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[43]); - if (tmp_left_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_22 = mod_consts[30]; - tmp_ass_subvalue_5 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_22, tmp_right_name_22); - Py_DECREF(tmp_left_name_22); - if (tmp_ass_subvalue_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_ass_subvalue_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_5 = var_relative_position_index; - tmp_ass_subscript_5 = mod_consts[63]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_5, tmp_ass_subscript_5, tmp_ass_subvalue_5); - Py_DECREF(tmp_ass_subvalue_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_6; - PyObject *tmp_left_name_23; - PyObject *tmp_expression_name_30; - PyObject *tmp_right_name_23; - PyObject *tmp_ass_subscribed_6; - PyObject *tmp_ass_subscript_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_30 = par_self; - tmp_left_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[43]); - if (tmp_left_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_23 = mod_consts[40]; - tmp_ass_subvalue_6 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_23, tmp_right_name_23); - Py_DECREF(tmp_left_name_23); - if (tmp_ass_subvalue_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_ass_subvalue_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_6 = var_relative_position_index; - tmp_ass_subscript_6 = mod_consts[64]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_6, tmp_ass_subscript_6, tmp_ass_subvalue_6); - Py_DECREF(tmp_ass_subvalue_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_7; - PyObject *tmp_left_name_24; - PyObject *tmp_expression_name_31; - PyObject *tmp_right_name_24; - PyObject *tmp_ass_subscribed_7; - PyObject *tmp_ass_subscript_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_left_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[43]); - if (tmp_left_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_24 = mod_consts[42]; - tmp_ass_subvalue_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_24, tmp_right_name_24); - Py_DECREF(tmp_left_name_24); - if (tmp_ass_subvalue_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_ass_subvalue_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_7 = var_relative_position_index; - tmp_ass_subscript_7 = mod_consts[65]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_7, tmp_ass_subscript_7, tmp_ass_subvalue_7); - Py_DECREF(tmp_ass_subvalue_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_32; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = par_self; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[66]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = mod_consts[62]; - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_15 = var_relative_position_index; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 110; - { - PyObject *call_args[] = {tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_12, call_args); - } - - Py_DECREF(tmp_called_name_12); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_assattr_target_11; - tmp_assattr_name_11 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 112; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[39], tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_assattr_target_12; - tmp_assattr_name_12 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_12 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[44], tmp_assattr_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_assattr_target_13; - tmp_assattr_name_13 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_13 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[62], tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - branch_end_3:; - { - PyObject *tmp_assattr_name_14; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_16; - PyObject *tmp_assattr_target_14; - tmp_called_instance_7 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_instance_7 == NULL)) { - tmp_called_instance_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 116; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_attn_drop); - tmp_args_element_name_16 = par_attn_drop; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 116; - tmp_assattr_name_14 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[23], tmp_args_element_name_16); - if (tmp_assattr_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 116; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 116; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_14 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_14, mod_consts[67], tmp_assattr_name_14); - Py_DECREF(tmp_assattr_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 116; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_15; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_33; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - PyObject *tmp_assattr_target_15; - tmp_expression_name_33 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_33 == NULL)) { - tmp_expression_name_33 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[18]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_all_head_dim == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_17 = var_all_head_dim; - if (par_dim == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_18 = par_dim; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 117; - { - PyObject *call_args[] = {tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_assattr_name_15 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_13, call_args); - } - - Py_DECREF(tmp_called_name_13); - if (tmp_assattr_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_15 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_15, mod_consts[68], tmp_assattr_name_15); - Py_DECREF(tmp_assattr_name_15); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_16; - PyObject *tmp_called_instance_8; - PyObject *tmp_args_element_name_19; - PyObject *tmp_assattr_target_16; - tmp_called_instance_8 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_instance_8 == NULL)) { - tmp_called_instance_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_proj_drop); - tmp_args_element_name_19 = par_proj_drop; - frame_dee30e4e144137543edf2e9eb10bf246->m_frame.f_lineno = 118; - tmp_assattr_name_16 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_8, mod_consts[23], tmp_args_element_name_19); - if (tmp_assattr_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_16 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_16, mod_consts[69], tmp_assattr_name_16); - Py_DECREF(tmp_assattr_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dee30e4e144137543edf2e9eb10bf246); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dee30e4e144137543edf2e9eb10bf246); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_dee30e4e144137543edf2e9eb10bf246, exception_lineno); - } else if (exception_tb->tb_frame != &frame_dee30e4e144137543edf2e9eb10bf246->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_dee30e4e144137543edf2e9eb10bf246, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_dee30e4e144137543edf2e9eb10bf246, - type_description_1, - par_self, - par_dim, - par_num_heads, - par_qkv_bias, - par_qk_scale, - par_attn_drop, - par_proj_drop, - par_window_size, - par_attn_head_dim, - var_head_dim, - var_all_head_dim, - var_coords_h, - var_coords_w, - var_coords, - var_coords_flatten, - var_relative_coords, - var_relative_position_index, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_dee30e4e144137543edf2e9eb10bf246 == cache_frame_dee30e4e144137543edf2e9eb10bf246) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_dee30e4e144137543edf2e9eb10bf246); - cache_frame_dee30e4e144137543edf2e9eb10bf246 = NULL; - } - - assertFrameObject(frame_dee30e4e144137543edf2e9eb10bf246); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - Py_XDECREF(par_num_heads); - par_num_heads = NULL; - CHECK_OBJECT(par_qkv_bias); - Py_DECREF(par_qkv_bias); - par_qkv_bias = NULL; - CHECK_OBJECT(par_qk_scale); - Py_DECREF(par_qk_scale); - par_qk_scale = NULL; - Py_XDECREF(par_attn_drop); - par_attn_drop = NULL; - Py_XDECREF(par_proj_drop); - par_proj_drop = NULL; - CHECK_OBJECT(par_window_size); - Py_DECREF(par_window_size); - par_window_size = NULL; - CHECK_OBJECT(par_attn_head_dim); - Py_DECREF(par_attn_head_dim); - par_attn_head_dim = NULL; - Py_XDECREF(var_head_dim); - var_head_dim = NULL; - Py_XDECREF(var_all_head_dim); - var_all_head_dim = NULL; - Py_XDECREF(var_coords_h); - var_coords_h = NULL; - Py_XDECREF(var_coords_w); - var_coords_w = NULL; - Py_XDECREF(var_coords); - var_coords = NULL; - Py_XDECREF(var_coords_flatten); - var_coords_flatten = NULL; - Py_XDECREF(var_relative_coords); - var_relative_coords = NULL; - Py_XDECREF(var_relative_position_index); - var_relative_position_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - Py_XDECREF(par_num_heads); - par_num_heads = NULL; - CHECK_OBJECT(par_qkv_bias); - Py_DECREF(par_qkv_bias); - par_qkv_bias = NULL; - CHECK_OBJECT(par_qk_scale); - Py_DECREF(par_qk_scale); - par_qk_scale = NULL; - Py_XDECREF(par_attn_drop); - par_attn_drop = NULL; - Py_XDECREF(par_proj_drop); - par_proj_drop = NULL; - CHECK_OBJECT(par_window_size); - Py_DECREF(par_window_size); - par_window_size = NULL; - CHECK_OBJECT(par_attn_head_dim); - Py_DECREF(par_attn_head_dim); - par_attn_head_dim = NULL; - Py_XDECREF(var_head_dim); - var_head_dim = NULL; - Py_XDECREF(var_all_head_dim); - var_all_head_dim = NULL; - Py_XDECREF(var_coords_h); - var_coords_h = NULL; - Py_XDECREF(var_coords_w); - var_coords_w = NULL; - Py_XDECREF(var_coords); - var_coords = NULL; - Py_XDECREF(var_coords_flatten); - var_coords_flatten = NULL; - Py_XDECREF(var_relative_coords); - var_relative_coords = NULL; - Py_XDECREF(var_relative_position_index); - var_relative_position_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__8_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_rel_pos_bias = python_pars[2]; - PyObject *var_B = NULL; - PyObject *var_N = NULL; - PyObject *var_C = NULL; - PyObject *var_qkv_bias = NULL; - PyObject *var_qkv = NULL; - PyObject *var_q = NULL; - PyObject *var_k = NULL; - PyObject *var_v = NULL; - PyObject *var_attn = NULL; - PyObject *var_relative_position_bias = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_9fd144b2d64377624d1cbd90f98752ee; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_9fd144b2d64377624d1cbd90f98752ee = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9fd144b2d64377624d1cbd90f98752ee)) { - Py_XDECREF(cache_frame_9fd144b2d64377624d1cbd90f98752ee); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9fd144b2d64377624d1cbd90f98752ee == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9fd144b2d64377624d1cbd90f98752ee = MAKE_FUNCTION_FRAME(codeobj_9fd144b2d64377624d1cbd90f98752ee, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9fd144b2d64377624d1cbd90f98752ee->m_type_description == NULL); - frame_9fd144b2d64377624d1cbd90f98752ee = cache_frame_9fd144b2d64377624d1cbd90f98752ee; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9fd144b2d64377624d1cbd90f98752ee); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9fd144b2d64377624d1cbd90f98752ee) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[70]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 121; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 121; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 121; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooo"; - exception_lineno = 121; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[71]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooo"; - exception_lineno = 121; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var_B == NULL); - Py_INCREF(tmp_assign_source_5); - var_B = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_N == NULL); - Py_INCREF(tmp_assign_source_6); - var_N = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_3; - assert(var_C == NULL); - Py_INCREF(tmp_assign_source_7); - var_C = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = Py_None; - assert(var_qkv_bias == NULL); - Py_INCREF(tmp_assign_source_8); - var_qkv_bias = tmp_assign_source_8; - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[37]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_4; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[72]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[37]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = PyTuple_New(3); - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_expression_name_7; - PyTuple_SET_ITEM(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[73]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_6 = par_self; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[38]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_2); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[74]); - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 124; - tmp_tuple_element_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_element_name_1, 1, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_7 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[38]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_element_name_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 124; - tmp_assign_source_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_qkv_bias; - assert(old != NULL); - var_qkv_bias = tmp_assign_source_9; - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[75]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[75]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[76]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[77]; - if (par_x == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_1 = par_x; - tmp_kwargs_name_2 = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[79]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_10 = par_self; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[32]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[79]); - Py_DECREF(tmp_expression_name_9); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[80]; - CHECK_OBJECT(var_qkv_bias); - tmp_dict_value_1 = var_qkv_bias; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 126; - tmp_assign_source_10 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_qkv == NULL); - var_qkv = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_6; - CHECK_OBJECT(var_qkv); - tmp_expression_name_11 = var_qkv; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[81]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_B); - tmp_args_element_name_2 = var_B; - CHECK_OBJECT(var_N); - tmp_args_element_name_3 = var_N; - tmp_args_element_name_4 = mod_consts[30]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[25]); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 127; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_6 = mod_consts[82]; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 127; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_called_instance_1 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 127; - tmp_assign_source_11 = CALL_METHOD_WITH_ARGS5( - tmp_called_instance_1, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[83], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_qkv; - var_qkv = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_qkv); - tmp_expression_name_13 = var_qkv; - tmp_subscript_name_1 = mod_consts[41]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_1, 0); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - tmp_iter_arg_2 = PyTuple_New(3); - { - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_2; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_3; - PyTuple_SET_ITEM(tmp_iter_arg_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_qkv); - tmp_expression_name_14 = var_qkv; - tmp_subscript_name_2 = mod_consts[42]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_2, 1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_iter_arg_2, 1, tmp_tuple_element_3); - CHECK_OBJECT(var_qkv); - tmp_expression_name_15 = var_qkv; - tmp_subscript_name_3 = mod_consts[40]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_3, 2); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_iter_arg_2, 2, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_iter_arg_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_assign_source_12 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - assert(!(tmp_assign_source_12 == NULL)); - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_13 = UNPACK_NEXT_INFALLIBLE(tmp_unpack_4); - assert(!(tmp_assign_source_13 == NULL)); - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_13; - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_5, 1, 3); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 128; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_15 = UNPACK_NEXT(tmp_unpack_6, 2, 3); - if (tmp_assign_source_15 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 128; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_3 == NULL); - tmp_tuple_unpack_2__element_3 = tmp_assign_source_15; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooo"; - exception_lineno = 128; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[71]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooo"; - exception_lineno = 128; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_1; - assert(var_q == NULL); - Py_INCREF(tmp_assign_source_16); - var_q = tmp_assign_source_16; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_17 = tmp_tuple_unpack_2__element_2; - assert(var_k == NULL); - Py_INCREF(tmp_assign_source_17); - var_k = tmp_assign_source_17; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_18 = tmp_tuple_unpack_2__element_3; - assert(var_v == NULL); - Py_INCREF(tmp_assign_source_18); - var_v = tmp_assign_source_18; - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(var_q); - tmp_left_name_1 = var_q; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[28]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_19 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_q; - var_q = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_q); - tmp_left_name_2 = var_q; - CHECK_OBJECT(var_k); - tmp_called_instance_2 = var_k; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 131; - tmp_right_name_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[84], - &PyTuple_GET_ITEM(mod_consts[85], 0) - ); - - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_20 = BINARY_OPERATION_MATMULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attn == NULL); - var_attn = tmp_assign_source_20; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 133; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[44]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - Py_DECREF(tmp_compexpr_left_2); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_18; - PyObject *tmp_expression_name_19; - PyObject *tmp_expression_name_20; - PyObject *tmp_subscript_name_4; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_element_name_7; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_22; - PyObject *tmp_expression_name_23; - PyObject *tmp_subscript_name_5; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_24; - PyObject *tmp_expression_name_25; - PyObject *tmp_subscript_name_6; - PyObject *tmp_right_name_4; - PyObject *tmp_args_element_name_8; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_expression_name_26; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_7; - PyObject *tmp_right_name_5; - PyObject *tmp_expression_name_28; - PyObject *tmp_expression_name_29; - PyObject *tmp_subscript_name_8; - PyObject *tmp_right_name_6; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_20 = par_self; - tmp_expression_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[44]); - if (tmp_expression_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_expression_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_21 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[62]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_19); - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 135; - tmp_subscript_name_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[86], - &PyTuple_GET_ITEM(mod_consts[60], 0) - ); - - Py_DECREF(tmp_called_instance_3); - if (tmp_subscript_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_19); - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_18 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_4); - Py_DECREF(tmp_expression_name_19); - Py_DECREF(tmp_subscript_name_4); - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[86]); - Py_DECREF(tmp_expression_name_18); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_23 = par_self; - tmp_expression_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[39]); - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_5 = mod_consts[41]; - tmp_left_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_5, 0); - Py_DECREF(tmp_expression_name_22); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_expression_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[39]); - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_6 = mod_consts[42]; - tmp_right_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_24, tmp_subscript_name_6, 1); - Py_DECREF(tmp_expression_name_24); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_3); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_3); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_4 = mod_consts[42]; - tmp_args_element_name_7 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_4); - Py_DECREF(tmp_left_name_3); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 136; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_self; - tmp_expression_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[39]); - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_7 = mod_consts[41]; - tmp_left_name_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_26, tmp_subscript_name_7, 0); - Py_DECREF(tmp_expression_name_26); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = par_self; - tmp_expression_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[39]); - if (tmp_expression_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_8 = mod_consts[42]; - tmp_right_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_28, tmp_subscript_name_8, 1); - Py_DECREF(tmp_expression_name_28); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_5); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_6 = mod_consts[42]; - tmp_args_element_name_8 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 137; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = mod_consts[82]; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 135; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_21 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_relative_position_bias == NULL); - var_relative_position_bias = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(var_relative_position_bias); - tmp_called_instance_5 = var_relative_position_bias; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 138; - tmp_called_instance_4 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_5, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[87], 0) - ); - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 138; - tmp_assign_source_22 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[53]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_relative_position_bias; - var_relative_position_bias = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_called_instance_6; - CHECK_OBJECT(var_attn); - tmp_left_name_7 = var_attn; - CHECK_OBJECT(var_relative_position_bias); - tmp_called_instance_6 = var_relative_position_bias; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 139; - tmp_right_name_7 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[88], - &PyTuple_GET_ITEM(mod_consts[89], 0) - ); - - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_23 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn; - var_attn = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(par_rel_pos_bias); - tmp_compexpr_left_3 = par_rel_pos_bias; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_24; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - CHECK_OBJECT(var_attn); - tmp_left_name_8 = var_attn; - CHECK_OBJECT(par_rel_pos_bias); - tmp_right_name_8 = par_rel_pos_bias; - tmp_assign_source_24 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_8, tmp_right_name_8); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn; - var_attn = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - branch_no_3:; - { - PyObject *tmp_assign_source_25; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_30; - PyObject *tmp_kwargs_name_3; - if (var_attn == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 144; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_30 = var_attn; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[91]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[92]); - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 144; - tmp_assign_source_25 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn; - var_attn = tmp_assign_source_25; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_7 = par_self; - CHECK_OBJECT(var_attn); - tmp_args_element_name_10 = var_attn; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 145; - tmp_assign_source_26 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[67], tmp_args_element_name_10); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn; - var_attn = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_31; - PyObject *tmp_called_instance_8; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - CHECK_OBJECT(var_attn); - tmp_left_name_9 = var_attn; - CHECK_OBJECT(var_v); - tmp_right_name_9 = var_v; - tmp_called_instance_8 = BINARY_OPERATION_MATMULT_OBJECT_OBJECT_OBJECT(tmp_left_name_9, tmp_right_name_9); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 147; - tmp_expression_name_31 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_8, - mod_consts[84], - &PyTuple_GET_ITEM(mod_consts[93], 0) - ); - - Py_DECREF(tmp_called_instance_8); - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[81]); - Py_DECREF(tmp_expression_name_31); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_B == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_11 = var_B; - if (var_N == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_12 = var_N; - tmp_args_element_name_13 = mod_consts[82]; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 147; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_assign_source_27 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_called_name_7); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_27; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_instance_9; - PyObject *tmp_args_element_name_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 148; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_9 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_14 = par_x; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 148; - tmp_assign_source_28 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_9, mod_consts[68], tmp_args_element_name_14); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_28; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_instance_10; - PyObject *tmp_args_element_name_15; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_10 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_15 = par_x; - frame_9fd144b2d64377624d1cbd90f98752ee->m_frame.f_lineno = 149; - tmp_assign_source_29 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_10, mod_consts[69], tmp_args_element_name_15); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_29; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9fd144b2d64377624d1cbd90f98752ee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9fd144b2d64377624d1cbd90f98752ee); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9fd144b2d64377624d1cbd90f98752ee, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9fd144b2d64377624d1cbd90f98752ee->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9fd144b2d64377624d1cbd90f98752ee, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9fd144b2d64377624d1cbd90f98752ee, - type_description_1, - par_self, - par_x, - par_rel_pos_bias, - var_B, - var_N, - var_C, - var_qkv_bias, - var_qkv, - var_q, - var_k, - var_v, - var_attn, - var_relative_position_bias - ); - - - // Release cached frame if used for exception. - if (frame_9fd144b2d64377624d1cbd90f98752ee == cache_frame_9fd144b2d64377624d1cbd90f98752ee) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9fd144b2d64377624d1cbd90f98752ee); - cache_frame_9fd144b2d64377624d1cbd90f98752ee = NULL; - } - - assertFrameObject(frame_9fd144b2d64377624d1cbd90f98752ee); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - Py_XDECREF(par_rel_pos_bias); - par_rel_pos_bias = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_N); - var_N = NULL; - CHECK_OBJECT(var_C); - Py_DECREF(var_C); - var_C = NULL; - Py_XDECREF(var_qkv_bias); - var_qkv_bias = NULL; - CHECK_OBJECT(var_qkv); - Py_DECREF(var_qkv); - var_qkv = NULL; - Py_XDECREF(var_q); - var_q = NULL; - Py_XDECREF(var_k); - var_k = NULL; - Py_XDECREF(var_v); - var_v = NULL; - Py_XDECREF(var_attn); - var_attn = NULL; - Py_XDECREF(var_relative_position_bias); - var_relative_position_bias = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_rel_pos_bias); - par_rel_pos_bias = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_N); - var_N = NULL; - Py_XDECREF(var_C); - var_C = NULL; - Py_XDECREF(var_qkv_bias); - var_qkv_bias = NULL; - Py_XDECREF(var_qkv); - var_qkv = NULL; - Py_XDECREF(var_q); - var_q = NULL; - Py_XDECREF(var_k); - var_k = NULL; - Py_XDECREF(var_v); - var_v = NULL; - Py_XDECREF(var_attn); - var_attn = NULL; - Py_XDECREF(var_relative_position_bias); - var_relative_position_bias = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_dim = python_pars[1]; - PyObject *par_num_heads = python_pars[2]; - PyObject *par_mlp_ratio = python_pars[3]; - PyObject *par_qkv_bias = python_pars[4]; - PyObject *par_qk_scale = python_pars[5]; - PyObject *par_drop = python_pars[6]; - PyObject *par_attn_drop = python_pars[7]; - PyObject *par_drop_path = python_pars[8]; - PyObject *par_init_values = python_pars[9]; - PyObject *par_act_layer = python_pars[10]; - PyObject *par_norm_layer = python_pars[11]; - PyObject *par_window_size = python_pars[12]; - PyObject *par_attn_head_dim = python_pars[13]; - PyObject *var_mlp_hidden_dim = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_d92c71c73bff0f22de3676bfa424f040; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_d92c71c73bff0f22de3676bfa424f040 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d92c71c73bff0f22de3676bfa424f040)) { - Py_XDECREF(cache_frame_d92c71c73bff0f22de3676bfa424f040); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d92c71c73bff0f22de3676bfa424f040 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d92c71c73bff0f22de3676bfa424f040 = MAKE_FUNCTION_FRAME(codeobj_d92c71c73bff0f22de3676bfa424f040, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d92c71c73bff0f22de3676bfa424f040->m_type_description == NULL); - frame_d92c71c73bff0f22de3676bfa424f040 = cache_frame_d92c71c73bff0f22de3676bfa424f040; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d92c71c73bff0f22de3676bfa424f040); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d92c71c73bff0f22de3676bfa424f040) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 158; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_norm_layer); - tmp_called_name_1 = par_norm_layer; - CHECK_OBJECT(par_dim); - tmp_args_element_name_1 = par_dim; - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 159; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[96], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[97]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[97]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_dim); - tmp_tuple_element_1 = par_dim; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[25]; - CHECK_OBJECT(par_num_heads); - tmp_dict_value_1 = par_num_heads; - tmp_kwargs_name_1 = _PyDict_NewPresized( 7 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[98]; - CHECK_OBJECT(par_qkv_bias); - tmp_dict_value_1 = par_qkv_bias; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[99]; - CHECK_OBJECT(par_qk_scale); - tmp_dict_value_1 = par_qk_scale; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[67]; - CHECK_OBJECT(par_attn_drop); - tmp_dict_value_1 = par_attn_drop; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[69]; - CHECK_OBJECT(par_drop); - tmp_dict_value_1 = par_drop; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[39]; - CHECK_OBJECT(par_window_size); - tmp_dict_value_1 = par_window_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[100]; - CHECK_OBJECT(par_attn_head_dim); - tmp_dict_value_1 = par_attn_head_dim; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 160; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[90], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_drop_path); - tmp_compexpr_left_1 = par_drop_path; - tmp_compexpr_right_1 = mod_consts[101]; - tmp_condition_result_1 = RICH_COMPARE_GT_NBOOL_OBJECT_FLOAT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - assert(tmp_condition_result_1 != NUITKA_BOOL_UNASSIGNED); - condexpr_true_1:; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_drop_path); - tmp_args_element_name_2 = par_drop_path; - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 164; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 164; - tmp_assattr_name_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[102]); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[11], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_norm_layer); - tmp_called_name_4 = par_norm_layer; - CHECK_OBJECT(par_dim); - tmp_args_element_name_3 = par_dim; - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 165; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[103], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_int_arg_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_dim); - tmp_left_name_1 = par_dim; - CHECK_OBJECT(par_mlp_ratio); - tmp_right_name_1 = par_mlp_ratio; - tmp_int_arg_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_int_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = PyNumber_Int(tmp_int_arg_1); - Py_DECREF(tmp_int_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_mlp_hidden_dim == NULL); - var_mlp_hidden_dim = tmp_assign_source_1; - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_5; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_assattr_target_5; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[104]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[104]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[105]; - if (par_dim == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_dict_value_2 = par_dim; - tmp_kwargs_name_2 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[21]; - CHECK_OBJECT(var_mlp_hidden_dim); - tmp_dict_value_2 = var_mlp_hidden_dim; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[106]; - CHECK_OBJECT(par_act_layer); - tmp_dict_value_2 = par_act_layer; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[24]; - CHECK_OBJECT(par_drop); - tmp_dict_value_2 = par_drop; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 167; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[107], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_2; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_tmp_and_right_value_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_init_values); - tmp_compexpr_left_2 = par_init_values; - tmp_compexpr_right_2 = Py_None; - tmp_and_left_value_1 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_init_values); - tmp_compexpr_left_3 = par_init_values; - tmp_compexpr_right_3 = mod_consts[41]; - tmp_tmp_and_right_value_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_tmp_and_right_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_and_right_value_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_and_right_value_1_object_1); - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_and_right_value_1_object_1); - tmp_condition_result_2 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_2 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_assattr_target_6; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[33]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_init_values); - tmp_left_name_2 = par_init_values; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[108]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_dim == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_dim; - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 170; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_7); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[109]); - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 170; - tmp_assattr_name_6 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[110], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_assattr_target_7; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[33]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_init_values == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = par_init_values; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[108]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_dim == NULL) { - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_dim; - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 171; - tmp_right_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_9); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[109]); - frame_d92c71c73bff0f22de3676bfa424f040->m_frame.f_lineno = 171; - tmp_assattr_name_7 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[112], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - tmp_iter_arg_1 = mod_consts[113]; - tmp_assign_source_2 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_1); - assert(!(tmp_assign_source_2 == NULL)); - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT_INFALLIBLE(tmp_unpack_1); - assert(!(tmp_assign_source_3 == NULL)); - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_3; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 173; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 173; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[114]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 173; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_assattr_target_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assattr_name_8 = tmp_tuple_unpack_1__element_1; - CHECK_OBJECT(par_self); - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[110], tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_2; - } - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_assattr_target_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assattr_name_9 = tmp_tuple_unpack_1__element_2; - CHECK_OBJECT(par_self); - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[112], tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_2; - } - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d92c71c73bff0f22de3676bfa424f040); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d92c71c73bff0f22de3676bfa424f040); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d92c71c73bff0f22de3676bfa424f040, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d92c71c73bff0f22de3676bfa424f040->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d92c71c73bff0f22de3676bfa424f040, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d92c71c73bff0f22de3676bfa424f040, - type_description_1, - par_self, - par_dim, - par_num_heads, - par_mlp_ratio, - par_qkv_bias, - par_qk_scale, - par_drop, - par_attn_drop, - par_drop_path, - par_init_values, - par_act_layer, - par_norm_layer, - par_window_size, - par_attn_head_dim, - var_mlp_hidden_dim, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_d92c71c73bff0f22de3676bfa424f040 == cache_frame_d92c71c73bff0f22de3676bfa424f040) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d92c71c73bff0f22de3676bfa424f040); - cache_frame_d92c71c73bff0f22de3676bfa424f040 = NULL; - } - - assertFrameObject(frame_d92c71c73bff0f22de3676bfa424f040); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - CHECK_OBJECT(par_num_heads); - Py_DECREF(par_num_heads); - par_num_heads = NULL; - Py_XDECREF(par_mlp_ratio); - par_mlp_ratio = NULL; - CHECK_OBJECT(par_qkv_bias); - Py_DECREF(par_qkv_bias); - par_qkv_bias = NULL; - CHECK_OBJECT(par_qk_scale); - Py_DECREF(par_qk_scale); - par_qk_scale = NULL; - CHECK_OBJECT(par_drop); - Py_DECREF(par_drop); - par_drop = NULL; - CHECK_OBJECT(par_attn_drop); - Py_DECREF(par_attn_drop); - par_attn_drop = NULL; - CHECK_OBJECT(par_drop_path); - Py_DECREF(par_drop_path); - par_drop_path = NULL; - Py_XDECREF(par_init_values); - par_init_values = NULL; - CHECK_OBJECT(par_act_layer); - Py_DECREF(par_act_layer); - par_act_layer = NULL; - CHECK_OBJECT(par_norm_layer); - Py_DECREF(par_norm_layer); - par_norm_layer = NULL; - CHECK_OBJECT(par_window_size); - Py_DECREF(par_window_size); - par_window_size = NULL; - CHECK_OBJECT(par_attn_head_dim); - Py_DECREF(par_attn_head_dim); - par_attn_head_dim = NULL; - CHECK_OBJECT(var_mlp_hidden_dim); - Py_DECREF(var_mlp_hidden_dim); - var_mlp_hidden_dim = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - CHECK_OBJECT(par_num_heads); - Py_DECREF(par_num_heads); - par_num_heads = NULL; - Py_XDECREF(par_mlp_ratio); - par_mlp_ratio = NULL; - CHECK_OBJECT(par_qkv_bias); - Py_DECREF(par_qkv_bias); - par_qkv_bias = NULL; - CHECK_OBJECT(par_qk_scale); - Py_DECREF(par_qk_scale); - par_qk_scale = NULL; - CHECK_OBJECT(par_drop); - Py_DECREF(par_drop); - par_drop = NULL; - CHECK_OBJECT(par_attn_drop); - Py_DECREF(par_attn_drop); - par_attn_drop = NULL; - CHECK_OBJECT(par_drop_path); - Py_DECREF(par_drop_path); - par_drop_path = NULL; - Py_XDECREF(par_init_values); - par_init_values = NULL; - CHECK_OBJECT(par_act_layer); - Py_DECREF(par_act_layer); - par_act_layer = NULL; - CHECK_OBJECT(par_norm_layer); - Py_DECREF(par_norm_layer); - par_norm_layer = NULL; - CHECK_OBJECT(par_window_size); - Py_DECREF(par_window_size); - par_window_size = NULL; - CHECK_OBJECT(par_attn_head_dim); - Py_DECREF(par_attn_head_dim); - par_attn_head_dim = NULL; - Py_XDECREF(var_mlp_hidden_dim); - var_mlp_hidden_dim = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__10_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_rel_pos_bias = python_pars[2]; - struct Nuitka_FrameObject *frame_d5219c5b01b2e872456147b340beeec5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_d5219c5b01b2e872456147b340beeec5 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d5219c5b01b2e872456147b340beeec5)) { - Py_XDECREF(cache_frame_d5219c5b01b2e872456147b340beeec5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d5219c5b01b2e872456147b340beeec5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d5219c5b01b2e872456147b340beeec5 = MAKE_FUNCTION_FRAME(codeobj_d5219c5b01b2e872456147b340beeec5, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d5219c5b01b2e872456147b340beeec5->m_type_description == NULL); - frame_d5219c5b01b2e872456147b340beeec5 = cache_frame_d5219c5b01b2e872456147b340beeec5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d5219c5b01b2e872456147b340beeec5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d5219c5b01b2e872456147b340beeec5) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[110]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_x); - tmp_left_name_1 = par_x; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[90]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_2 = par_x; - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 177; - tmp_tuple_element_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[96], tmp_args_element_name_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[115]; - CHECK_OBJECT(par_rel_pos_bias); - tmp_dict_value_1 = par_rel_pos_bias; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 177; - tmp_args_element_name_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 177; - tmp_right_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_4; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(par_x); - tmp_left_name_2 = par_x; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[11]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[107]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_5 = par_x; - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 178; - tmp_args_element_name_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[103], tmp_args_element_name_5); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 178; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_4); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 178; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_6; - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_right_name_4; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_7; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - CHECK_OBJECT(par_x); - tmp_left_name_3 = par_x; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[11]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_left_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[110]); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[90]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_7 = par_x; - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 180; - tmp_tuple_element_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[96], tmp_args_element_name_7); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_dict_key_2 = mod_consts[115]; - CHECK_OBJECT(par_rel_pos_bias); - tmp_dict_value_2 = par_rel_pos_bias; - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 180; - tmp_right_name_4 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_6 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 180; - tmp_right_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_8; - PyObject *tmp_left_name_6; - PyObject *tmp_expression_name_10; - PyObject *tmp_right_name_6; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_9; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_10; - CHECK_OBJECT(par_x); - tmp_left_name_5 = par_x; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[11]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_left_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[112]); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[107]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_10 = par_x; - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 181; - tmp_args_element_name_9 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[103], tmp_args_element_name_10); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 181; - tmp_right_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_9); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_8 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_d5219c5b01b2e872456147b340beeec5->m_frame.f_lineno = 181; - tmp_right_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d5219c5b01b2e872456147b340beeec5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d5219c5b01b2e872456147b340beeec5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d5219c5b01b2e872456147b340beeec5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d5219c5b01b2e872456147b340beeec5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d5219c5b01b2e872456147b340beeec5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d5219c5b01b2e872456147b340beeec5, - type_description_1, - par_self, - par_x, - par_rel_pos_bias - ); - - - // Release cached frame if used for exception. - if (frame_d5219c5b01b2e872456147b340beeec5 == cache_frame_d5219c5b01b2e872456147b340beeec5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d5219c5b01b2e872456147b340beeec5); - cache_frame_d5219c5b01b2e872456147b340beeec5 = NULL; - } - - assertFrameObject(frame_d5219c5b01b2e872456147b340beeec5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - Py_XDECREF(par_rel_pos_bias); - par_rel_pos_bias = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_rel_pos_bias); - par_rel_pos_bias = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__11___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_img_size = python_pars[1]; - PyObject *par_patch_size = python_pars[2]; - PyObject *par_in_chans = python_pars[3]; - PyObject *par_embed_dim = python_pars[4]; - PyObject *var_num_patches = NULL; - struct Nuitka_FrameObject *frame_b2d24eeaac09f42ae30d5aa04029c58d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_b2d24eeaac09f42ae30d5aa04029c58d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_b2d24eeaac09f42ae30d5aa04029c58d)) { - Py_XDECREF(cache_frame_b2d24eeaac09f42ae30d5aa04029c58d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b2d24eeaac09f42ae30d5aa04029c58d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b2d24eeaac09f42ae30d5aa04029c58d = MAKE_FUNCTION_FRAME(codeobj_b2d24eeaac09f42ae30d5aa04029c58d, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b2d24eeaac09f42ae30d5aa04029c58d->m_type_description == NULL); - frame_b2d24eeaac09f42ae30d5aa04029c58d = cache_frame_b2d24eeaac09f42ae30d5aa04029c58d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b2d24eeaac09f42ae30d5aa04029c58d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b2d24eeaac09f42ae30d5aa04029c58d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 189; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - frame_b2d24eeaac09f42ae30d5aa04029c58d->m_frame.f_lineno = 189; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[116]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[116]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_img_size); - tmp_args_element_name_1 = par_img_size; - frame_b2d24eeaac09f42ae30d5aa04029c58d->m_frame.f_lineno = 190; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_img_size; - assert(old != NULL); - par_img_size = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[116]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[116]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_patch_size); - tmp_args_element_name_2 = par_patch_size; - frame_b2d24eeaac09f42ae30d5aa04029c58d->m_frame.f_lineno = 191; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_patch_size; - assert(old != NULL); - par_patch_size = tmp_assign_source_2; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(par_img_size); - tmp_expression_name_1 = par_img_size; - tmp_subscript_name_1 = mod_consts[42]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 1); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_patch_size); - tmp_expression_name_2 = par_patch_size; - tmp_subscript_name_2 = mod_consts[42]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 1); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_img_size); - tmp_expression_name_3 = par_img_size; - tmp_subscript_name_3 = mod_consts[41]; - tmp_left_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_3, 0); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_patch_size); - tmp_expression_name_4 = par_patch_size; - tmp_subscript_name_4 = mod_consts[41]; - tmp_right_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_4, 0); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - assert(var_num_patches == NULL); - var_num_patches = tmp_assign_source_3; - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_5; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_6; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_img_size); - tmp_expression_name_5 = par_img_size; - tmp_subscript_name_5 = mod_consts[41]; - tmp_left_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_5, 0); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_patch_size); - tmp_expression_name_6 = par_patch_size; - tmp_subscript_name_6 = mod_consts[41]; - tmp_right_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_6, 0); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_1 = PyTuple_New(2); - { - PyObject *tmp_left_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_7; - PyObject *tmp_right_name_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_8; - PyTuple_SET_ITEM(tmp_assattr_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_img_size); - tmp_expression_name_7 = par_img_size; - tmp_subscript_name_7 = mod_consts[42]; - tmp_left_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_7, 1); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto tuple_build_exception_1; - } - CHECK_OBJECT(par_patch_size); - tmp_expression_name_8 = par_patch_size; - tmp_subscript_name_8 = mod_consts[42]; - tmp_right_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_8, 1); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_assattr_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_assattr_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[117], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_img_size); - tmp_assattr_name_2 = par_img_size; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[118], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_patch_size); - tmp_assattr_name_3 = par_patch_size; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[119], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(var_num_patches); - tmp_assattr_name_4 = var_num_patches; - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[120], tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_5; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[121]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_chans); - tmp_tuple_element_2 = par_in_chans; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_embed_dim); - tmp_tuple_element_2 = par_embed_dim; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[122]; - CHECK_OBJECT(par_patch_size); - tmp_dict_value_1 = par_patch_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[123]; - CHECK_OBJECT(par_patch_size); - tmp_dict_value_1 = par_patch_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_b2d24eeaac09f42ae30d5aa04029c58d->m_frame.f_lineno = 198; - tmp_assattr_name_5 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[68], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b2d24eeaac09f42ae30d5aa04029c58d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b2d24eeaac09f42ae30d5aa04029c58d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b2d24eeaac09f42ae30d5aa04029c58d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b2d24eeaac09f42ae30d5aa04029c58d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b2d24eeaac09f42ae30d5aa04029c58d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b2d24eeaac09f42ae30d5aa04029c58d, - type_description_1, - par_self, - par_img_size, - par_patch_size, - par_in_chans, - par_embed_dim, - var_num_patches, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_b2d24eeaac09f42ae30d5aa04029c58d == cache_frame_b2d24eeaac09f42ae30d5aa04029c58d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b2d24eeaac09f42ae30d5aa04029c58d); - cache_frame_b2d24eeaac09f42ae30d5aa04029c58d = NULL; - } - - assertFrameObject(frame_b2d24eeaac09f42ae30d5aa04029c58d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - Py_XDECREF(par_patch_size); - par_patch_size = NULL; - Py_XDECREF(par_in_chans); - par_in_chans = NULL; - Py_XDECREF(par_embed_dim); - par_embed_dim = NULL; - CHECK_OBJECT(var_num_patches); - Py_DECREF(var_num_patches); - var_num_patches = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - Py_XDECREF(par_patch_size); - par_patch_size = NULL; - Py_XDECREF(par_in_chans); - par_in_chans = NULL; - Py_XDECREF(par_embed_dim); - par_embed_dim = NULL; - Py_XDECREF(var_num_patches); - var_num_patches = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__12_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - PyObject *var_B = NULL; - PyObject *var_C = NULL; - PyObject *var_H = NULL; - PyObject *var_W = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__element_4 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_446336bff265ef3598d46cbfaec00955; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_446336bff265ef3598d46cbfaec00955 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_446336bff265ef3598d46cbfaec00955)) { - Py_XDECREF(cache_frame_446336bff265ef3598d46cbfaec00955); - -#if _DEBUG_REFCOUNTS - if (cache_frame_446336bff265ef3598d46cbfaec00955 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_446336bff265ef3598d46cbfaec00955 = MAKE_FUNCTION_FRAME(codeobj_446336bff265ef3598d46cbfaec00955, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_446336bff265ef3598d46cbfaec00955->m_type_description == NULL); - frame_446336bff265ef3598d46cbfaec00955 = cache_frame_446336bff265ef3598d46cbfaec00955; - - // Push the new frame as the currently active one. - pushFrameStack(frame_446336bff265ef3598d46cbfaec00955); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_446336bff265ef3598d46cbfaec00955) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[70]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 4); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 201; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 4); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 201; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 4); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 201; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_4, 3, 4); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 201; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_4 == NULL); - tmp_tuple_unpack_1__element_4 = tmp_assign_source_5; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooo"; - exception_lineno = 201; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[124]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooo"; - exception_lineno = 201; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - assert(var_B == NULL); - Py_INCREF(tmp_assign_source_6); - var_B = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - assert(var_C == NULL); - Py_INCREF(tmp_assign_source_7); - var_C = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_3; - assert(var_H == NULL); - Py_INCREF(tmp_assign_source_8); - var_H = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_4); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_4; - assert(var_W == NULL); - Py_INCREF(tmp_assign_source_9); - var_W = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - int tmp_and_left_truth_1; - PyObject *tmp_and_left_value_1; - PyObject *tmp_and_right_value_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_H); - tmp_compexpr_left_1 = var_H; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[118]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[41]; - tmp_compexpr_right_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_2); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_and_left_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_truth_1 = CHECK_IF_TRUE(tmp_and_left_value_1); - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_and_left_value_1); - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - Py_DECREF(tmp_and_left_value_1); - CHECK_OBJECT(var_W); - tmp_compexpr_left_2 = var_W; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[118]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[42]; - tmp_compexpr_right_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_2, 1); - Py_DECREF(tmp_expression_name_4); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_and_right_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_operand_name_1 = tmp_and_left_value_1; - and_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_2; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_tuple_element_2 = mod_consts[125]; - tmp_string_concat_values_1 = PyTuple_New(9); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyObject *tmp_format_value_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_3; - PyObject *tmp_format_spec_3; - PyObject *tmp_format_value_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_4; - PyObject *tmp_format_spec_4; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_H); - tmp_format_value_1 = var_H; - tmp_format_spec_1 = mod_consts[126]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[127]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_2); - CHECK_OBJECT(var_W); - tmp_format_value_2 = var_W; - tmp_format_spec_2 = mod_consts[126]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[128]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 4, tmp_tuple_element_2); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_7 = par_self; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[118]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - tmp_subscript_name_3 = mod_consts[41]; - tmp_format_value_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_6); - if (tmp_format_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_3 = mod_consts[126]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - Py_DECREF(tmp_format_value_3); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 5, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[127]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 6, tmp_tuple_element_2); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_9 = par_self; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[118]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - tmp_subscript_name_4 = mod_consts[42]; - tmp_format_value_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_4, 1); - Py_DECREF(tmp_expression_name_8); - if (tmp_format_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_4 = mod_consts[126]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_4, tmp_format_spec_4); - Py_DECREF(tmp_format_value_4); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 7, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[129]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 8, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_tuple_element_1 = PyUnicode_Join(mod_consts[126], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_raise_value_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_raise_value_1, 0, tmp_tuple_element_1); - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 203; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 205; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[68]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 205; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_x; - frame_446336bff265ef3598d46cbfaec00955->m_frame.f_lineno = 205; - tmp_called_instance_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_446336bff265ef3598d46cbfaec00955->m_frame.f_lineno = 205; - tmp_called_instance_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[48], - &PyTuple_GET_ITEM(mod_consts[130], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_446336bff265ef3598d46cbfaec00955->m_frame.f_lineno = 205; - tmp_assign_source_10 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[84], - &PyTuple_GET_ITEM(mod_consts[93], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_446336bff265ef3598d46cbfaec00955); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_446336bff265ef3598d46cbfaec00955); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_446336bff265ef3598d46cbfaec00955, exception_lineno); - } else if (exception_tb->tb_frame != &frame_446336bff265ef3598d46cbfaec00955->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_446336bff265ef3598d46cbfaec00955, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_446336bff265ef3598d46cbfaec00955, - type_description_1, - par_self, - par_x, - par_kwargs, - var_B, - var_C, - var_H, - var_W - ); - - - // Release cached frame if used for exception. - if (frame_446336bff265ef3598d46cbfaec00955 == cache_frame_446336bff265ef3598d46cbfaec00955) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_446336bff265ef3598d46cbfaec00955); - cache_frame_446336bff265ef3598d46cbfaec00955 = NULL; - } - - assertFrameObject(frame_446336bff265ef3598d46cbfaec00955); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - CHECK_OBJECT(var_B); - Py_DECREF(var_B); - var_B = NULL; - CHECK_OBJECT(var_C); - Py_DECREF(var_C); - var_C = NULL; - CHECK_OBJECT(var_H); - Py_DECREF(var_H); - var_H = NULL; - CHECK_OBJECT(var_W); - Py_DECREF(var_W); - var_W = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_C); - var_C = NULL; - Py_XDECREF(var_H); - var_H = NULL; - Py_XDECREF(var_W); - var_W = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__13___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_window_size = python_pars[1]; - PyObject *par_num_heads = python_pars[2]; - PyObject *var_coords_h = NULL; - PyObject *var_coords_w = NULL; - PyObject *var_coords = NULL; - PyObject *var_coords_flatten = NULL; - PyObject *var_relative_coords = NULL; - PyObject *var_relative_position_index = NULL; - PyObject *tmp_inplace_assign_subscr_1__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_1__target = NULL; - PyObject *tmp_inplace_assign_subscr_1__value = NULL; - PyObject *tmp_inplace_assign_subscr_2__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_2__target = NULL; - PyObject *tmp_inplace_assign_subscr_2__value = NULL; - PyObject *tmp_inplace_assign_subscr_3__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_3__target = NULL; - PyObject *tmp_inplace_assign_subscr_3__value = NULL; - struct Nuitka_FrameObject *frame_90888ee108de7d41b39f1ce4c7fc2733; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_90888ee108de7d41b39f1ce4c7fc2733 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_90888ee108de7d41b39f1ce4c7fc2733)) { - Py_XDECREF(cache_frame_90888ee108de7d41b39f1ce4c7fc2733); - -#if _DEBUG_REFCOUNTS - if (cache_frame_90888ee108de7d41b39f1ce4c7fc2733 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_90888ee108de7d41b39f1ce4c7fc2733 = MAKE_FUNCTION_FRAME(codeobj_90888ee108de7d41b39f1ce4c7fc2733, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_90888ee108de7d41b39f1ce4c7fc2733->m_type_description == NULL); - frame_90888ee108de7d41b39f1ce4c7fc2733 = cache_frame_90888ee108de7d41b39f1ce4c7fc2733; - - // Push the new frame as the currently active one. - pushFrameStack(frame_90888ee108de7d41b39f1ce4c7fc2733); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_90888ee108de7d41b39f1ce4c7fc2733) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 212; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_window_size); - tmp_assattr_name_1 = par_window_size; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[39], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - PyObject *tmp_right_name_5; - PyObject *tmp_right_name_6; - PyObject *tmp_assattr_target_2; - tmp_left_name_4 = mod_consts[40]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_1 = par_window_size; - tmp_subscript_name_1 = mod_consts[41]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_3 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_4, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = mod_consts[42]; - tmp_left_name_2 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_left_name_3); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_6 = mod_consts[40]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_2 = par_window_size; - tmp_subscript_name_2 = mod_consts[42]; - tmp_right_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 1); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_6, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_5 = mod_consts[42]; - tmp_right_name_3 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_left_name_5); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_3); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_6 = mod_consts[30]; - tmp_assattr_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_6); - Py_DECREF(tmp_left_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[43], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[33]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 216; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[35]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 216; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[43]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 216; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_num_heads); - tmp_args_element_name_3 = par_num_heads; - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 216; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 216; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 215; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[44], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_3; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[45]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_window_size); - tmp_expression_name_7 = par_window_size; - tmp_subscript_name_3 = mod_consts[41]; - tmp_args_element_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_3, 0); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 220; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 220; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords_h == NULL); - var_coords_h = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_4; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[45]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_window_size); - tmp_expression_name_9 = par_window_size; - tmp_subscript_name_4 = mod_consts[42]; - tmp_args_element_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_4, 1); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 221; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 221; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords_w == NULL); - var_coords_w = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_7; - PyObject *tmp_list_element_1; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 222; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[46]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 222; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 222; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_coords_h); - tmp_list_element_1 = var_coords_h; - tmp_args_element_name_7 = PyList_New(2); - PyList_SET_ITEM0(tmp_args_element_name_7, 0, tmp_list_element_1); - CHECK_OBJECT(var_coords_w); - tmp_list_element_1 = var_coords_w; - PyList_SET_ITEM0(tmp_args_element_name_7, 1, tmp_list_element_1); - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 222; - tmp_args_element_name_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[47], tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_7); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 222; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 222; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 222; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords == NULL); - var_coords = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_coords); - tmp_args_element_name_8 = var_coords; - tmp_args_element_name_9 = mod_consts[42]; - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 223; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[48], - call_args - ); - } - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_coords_flatten == NULL); - var_coords_flatten = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_left_name_7; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_5; - PyObject *tmp_right_name_7; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_6; - CHECK_OBJECT(var_coords_flatten); - tmp_expression_name_11 = var_coords_flatten; - tmp_subscript_name_5 = mod_consts[49]; - tmp_left_name_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_5); - if (tmp_left_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_coords_flatten); - tmp_expression_name_12 = var_coords_flatten; - tmp_subscript_name_6 = mod_consts[50]; - tmp_right_name_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_12, tmp_subscript_name_6); - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_7); - - exception_lineno = 224; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_5 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_left_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_relative_coords == NULL); - var_relative_coords = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(var_relative_coords); - tmp_called_instance_5 = var_relative_coords; - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 225; - tmp_called_instance_4 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_5, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[52], 0) - ); - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 225; - tmp_assign_source_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[53]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_relative_coords; - var_relative_coords = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(var_relative_coords); - tmp_assign_source_7 = var_relative_coords; - assert(tmp_inplace_assign_subscr_1__target == NULL); - Py_INCREF(tmp_assign_source_7); - tmp_inplace_assign_subscr_1__target = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = mod_consts[54]; - assert(tmp_inplace_assign_subscr_1__subscript == NULL); - Py_INCREF(tmp_assign_source_8); - tmp_inplace_assign_subscr_1__subscript = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_7; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_expression_name_13 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_subscript_name_7 = tmp_inplace_assign_subscr_1__subscript; - tmp_assign_source_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_13, tmp_subscript_name_7); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooc"; - goto try_except_handler_2; - } - assert(tmp_inplace_assign_subscr_1__value == NULL); - tmp_inplace_assign_subscr_1__value = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_left_name_9; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_8; - PyObject *tmp_right_name_9; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_left_name_8 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(par_window_size); - tmp_expression_name_14 = par_window_size; - tmp_subscript_name_8 = mod_consts[41]; - tmp_left_name_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_8, 0); - if (tmp_left_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooc"; - goto try_except_handler_2; - } - tmp_right_name_9 = mod_consts[42]; - tmp_right_name_8 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_left_name_9); - if (tmp_right_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooc"; - goto try_except_handler_2; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooc"; - goto try_except_handler_2; - } - tmp_assign_source_10 = tmp_left_name_8; - tmp_inplace_assign_subscr_1__value = tmp_assign_source_10; - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_ass_subvalue_1 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_ass_subscribed_1 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_ass_subscript_1 = tmp_inplace_assign_subscr_1__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooc"; - goto try_except_handler_2; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - Py_DECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(var_relative_coords); - tmp_assign_source_11 = var_relative_coords; - assert(tmp_inplace_assign_subscr_2__target == NULL); - Py_INCREF(tmp_assign_source_11); - tmp_inplace_assign_subscr_2__target = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - tmp_assign_source_12 = mod_consts[55]; - assert(tmp_inplace_assign_subscr_2__subscript == NULL); - Py_INCREF(tmp_assign_source_12); - tmp_inplace_assign_subscr_2__subscript = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_9; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - tmp_expression_name_15 = tmp_inplace_assign_subscr_2__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - tmp_subscript_name_9 = tmp_inplace_assign_subscr_2__subscript; - tmp_assign_source_13 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_9); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooc"; - goto try_except_handler_3; - } - assert(tmp_inplace_assign_subscr_2__value == NULL); - tmp_inplace_assign_subscr_2__value = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_left_name_11; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_10; - PyObject *tmp_right_name_11; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - tmp_left_name_10 = tmp_inplace_assign_subscr_2__value; - CHECK_OBJECT(par_window_size); - tmp_expression_name_16 = par_window_size; - tmp_subscript_name_10 = mod_consts[42]; - tmp_left_name_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_10, 1); - if (tmp_left_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooc"; - goto try_except_handler_3; - } - tmp_right_name_11 = mod_consts[42]; - tmp_right_name_10 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_left_name_11); - if (tmp_right_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooc"; - goto try_except_handler_3; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooc"; - goto try_except_handler_3; - } - tmp_assign_source_14 = tmp_left_name_10; - tmp_inplace_assign_subscr_2__value = tmp_assign_source_14; - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - tmp_ass_subvalue_2 = tmp_inplace_assign_subscr_2__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - tmp_ass_subscribed_2 = tmp_inplace_assign_subscr_2__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - tmp_ass_subscript_2 = tmp_inplace_assign_subscr_2__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooc"; - goto try_except_handler_3; - } - } - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - Py_DECREF(tmp_inplace_assign_subscr_2__target); - tmp_inplace_assign_subscr_2__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - Py_DECREF(tmp_inplace_assign_subscr_2__subscript); - tmp_inplace_assign_subscr_2__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_2__value); - tmp_inplace_assign_subscr_2__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - Py_DECREF(tmp_inplace_assign_subscr_2__target); - tmp_inplace_assign_subscr_2__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - Py_DECREF(tmp_inplace_assign_subscr_2__subscript); - tmp_inplace_assign_subscr_2__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - Py_DECREF(tmp_inplace_assign_subscr_2__value); - tmp_inplace_assign_subscr_2__value = NULL; - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(var_relative_coords); - tmp_assign_source_15 = var_relative_coords; - assert(tmp_inplace_assign_subscr_3__target == NULL); - Py_INCREF(tmp_assign_source_15); - tmp_inplace_assign_subscr_3__target = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = mod_consts[54]; - assert(tmp_inplace_assign_subscr_3__subscript == NULL); - Py_INCREF(tmp_assign_source_16); - tmp_inplace_assign_subscr_3__subscript = tmp_assign_source_16; - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_11; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - tmp_expression_name_17 = tmp_inplace_assign_subscr_3__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - tmp_subscript_name_11 = tmp_inplace_assign_subscr_3__subscript; - tmp_assign_source_17 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_11); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooc"; - goto try_except_handler_4; - } - assert(tmp_inplace_assign_subscr_3__value == NULL); - tmp_inplace_assign_subscr_3__value = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_left_name_12; - PyObject *tmp_right_name_12; - PyObject *tmp_left_name_13; - PyObject *tmp_left_name_14; - PyObject *tmp_right_name_13; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_12; - PyObject *tmp_right_name_14; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__value); - tmp_left_name_12 = tmp_inplace_assign_subscr_3__value; - tmp_left_name_14 = mod_consts[40]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_18 = par_window_size; - tmp_subscript_name_12 = mod_consts[42]; - tmp_right_name_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_18, tmp_subscript_name_12, 1); - if (tmp_right_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooc"; - goto try_except_handler_4; - } - tmp_left_name_13 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_14, tmp_right_name_13); - Py_DECREF(tmp_right_name_13); - if (tmp_left_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooc"; - goto try_except_handler_4; - } - tmp_right_name_14 = mod_consts[42]; - tmp_right_name_12 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_13, tmp_right_name_14); - Py_DECREF(tmp_left_name_13); - if (tmp_right_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooc"; - goto try_except_handler_4; - } - tmp_result = BINARY_OPERATION_MULT_OBJECT_OBJECT_INPLACE(&tmp_left_name_12, tmp_right_name_12); - Py_DECREF(tmp_right_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooc"; - goto try_except_handler_4; - } - tmp_assign_source_18 = tmp_left_name_12; - tmp_inplace_assign_subscr_3__value = tmp_assign_source_18; - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__value); - tmp_ass_subvalue_3 = tmp_inplace_assign_subscr_3__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - tmp_ass_subscribed_3 = tmp_inplace_assign_subscr_3__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - tmp_ass_subscript_3 = tmp_inplace_assign_subscr_3__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooc"; - goto try_except_handler_4; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - Py_DECREF(tmp_inplace_assign_subscr_3__target); - tmp_inplace_assign_subscr_3__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - Py_DECREF(tmp_inplace_assign_subscr_3__subscript); - tmp_inplace_assign_subscr_3__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_3__value); - tmp_inplace_assign_subscr_3__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__target); - Py_DECREF(tmp_inplace_assign_subscr_3__target); - tmp_inplace_assign_subscr_3__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__subscript); - Py_DECREF(tmp_inplace_assign_subscr_3__subscript); - tmp_inplace_assign_subscr_3__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_3__value); - Py_DECREF(tmp_inplace_assign_subscr_3__value); - tmp_inplace_assign_subscr_3__value = NULL; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_19; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_left_name_15; - PyObject *tmp_tuple_element_1; - PyObject *tmp_left_name_16; - PyObject *tmp_left_name_17; - PyObject *tmp_expression_name_20; - PyObject *tmp_subscript_name_13; - PyObject *tmp_right_name_15; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_14; - PyObject *tmp_right_name_16; - PyObject *tmp_right_name_17; - tmp_expression_name_19 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_19 == NULL)) { - tmp_expression_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[35]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[56]; - CHECK_OBJECT(par_window_size); - tmp_expression_name_20 = par_window_size; - tmp_subscript_name_13 = mod_consts[41]; - tmp_left_name_17 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_20, tmp_subscript_name_13, 0); - if (tmp_left_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_window_size); - tmp_expression_name_21 = par_window_size; - tmp_subscript_name_14 = mod_consts[42]; - tmp_right_name_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_21, tmp_subscript_name_14, 1); - if (tmp_right_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_left_name_17); - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_16 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_17, tmp_right_name_15); - Py_DECREF(tmp_left_name_17); - Py_DECREF(tmp_right_name_15); - if (tmp_left_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_16 = mod_consts[42]; - tmp_tuple_element_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_16, tmp_right_name_16); - Py_DECREF(tmp_left_name_16); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_left_name_15 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_left_name_15, 0, tmp_tuple_element_1); - tmp_right_name_17 = mod_consts[40]; - tmp_dict_value_1 = BINARY_OPERATION_MULT_OBJECT_TUPLE_LONG(tmp_left_name_15, tmp_right_name_17); - Py_DECREF(tmp_left_name_15); - assert(!(tmp_dict_value_1 == NULL)); - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_22; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[57]; - CHECK_OBJECT(var_relative_coords); - tmp_expression_name_22 = var_relative_coords; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[57]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 230; - tmp_assign_source_19 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_relative_position_index == NULL); - var_relative_position_index = tmp_assign_source_19; - } - { - PyObject *tmp_ass_subvalue_4; - PyObject *tmp_called_instance_6; - PyObject *tmp_ass_subscribed_4; - PyObject *tmp_ass_subscript_4; - if (var_relative_coords == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 231; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = var_relative_coords; - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 231; - tmp_ass_subvalue_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[59], - &PyTuple_GET_ITEM(mod_consts[60], 0) - ); - - if (tmp_ass_subvalue_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_relative_position_index); - tmp_ass_subscribed_4 = var_relative_position_index; - tmp_ass_subscript_4 = mod_consts[61]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_4, tmp_ass_subscript_4, tmp_ass_subvalue_4); - Py_DECREF(tmp_ass_subvalue_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_5; - PyObject *tmp_left_name_18; - PyObject *tmp_expression_name_23; - PyObject *tmp_right_name_18; - PyObject *tmp_ass_subscribed_5; - PyObject *tmp_ass_subscript_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 232; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_23 = par_self; - tmp_left_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[43]); - if (tmp_left_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_18 = mod_consts[30]; - tmp_ass_subvalue_5 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_18, tmp_right_name_18); - Py_DECREF(tmp_left_name_18); - if (tmp_ass_subvalue_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_ass_subvalue_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 232; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_5 = var_relative_position_index; - tmp_ass_subscript_5 = mod_consts[63]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_5, tmp_ass_subscript_5, tmp_ass_subvalue_5); - Py_DECREF(tmp_ass_subvalue_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_6; - PyObject *tmp_left_name_19; - PyObject *tmp_expression_name_24; - PyObject *tmp_right_name_19; - PyObject *tmp_ass_subscribed_6; - PyObject *tmp_ass_subscript_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 233; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_24 = par_self; - tmp_left_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[43]); - if (tmp_left_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_19 = mod_consts[40]; - tmp_ass_subvalue_6 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_19, tmp_right_name_19); - Py_DECREF(tmp_left_name_19); - if (tmp_ass_subvalue_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_ass_subvalue_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 233; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_6 = var_relative_position_index; - tmp_ass_subscript_6 = mod_consts[64]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_6, tmp_ass_subscript_6, tmp_ass_subvalue_6); - Py_DECREF(tmp_ass_subvalue_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_ass_subvalue_7; - PyObject *tmp_left_name_20; - PyObject *tmp_expression_name_25; - PyObject *tmp_right_name_20; - PyObject *tmp_ass_subscribed_7; - PyObject *tmp_ass_subscript_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 234; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_left_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[43]); - if (tmp_left_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_20 = mod_consts[42]; - tmp_ass_subvalue_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_20, tmp_right_name_20); - Py_DECREF(tmp_left_name_20); - if (tmp_ass_subvalue_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_ass_subvalue_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 234; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_7 = var_relative_position_index; - tmp_ass_subscript_7 = mod_consts[65]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_7, tmp_ass_subscript_7, tmp_ass_subvalue_7); - Py_DECREF(tmp_ass_subvalue_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_26; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_26 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[66]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_10 = mod_consts[62]; - if (var_relative_position_index == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_11 = var_relative_position_index; - frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame.f_lineno = 236; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_called_name_7); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_90888ee108de7d41b39f1ce4c7fc2733); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_90888ee108de7d41b39f1ce4c7fc2733); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_90888ee108de7d41b39f1ce4c7fc2733, exception_lineno); - } else if (exception_tb->tb_frame != &frame_90888ee108de7d41b39f1ce4c7fc2733->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_90888ee108de7d41b39f1ce4c7fc2733, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_90888ee108de7d41b39f1ce4c7fc2733, - type_description_1, - par_self, - par_window_size, - par_num_heads, - var_coords_h, - var_coords_w, - var_coords, - var_coords_flatten, - var_relative_coords, - var_relative_position_index, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_90888ee108de7d41b39f1ce4c7fc2733 == cache_frame_90888ee108de7d41b39f1ce4c7fc2733) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_90888ee108de7d41b39f1ce4c7fc2733); - cache_frame_90888ee108de7d41b39f1ce4c7fc2733 = NULL; - } - - assertFrameObject(frame_90888ee108de7d41b39f1ce4c7fc2733); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_window_size); - Py_DECREF(par_window_size); - par_window_size = NULL; - Py_XDECREF(par_num_heads); - par_num_heads = NULL; - Py_XDECREF(var_coords_h); - var_coords_h = NULL; - Py_XDECREF(var_coords_w); - var_coords_w = NULL; - Py_XDECREF(var_coords); - var_coords = NULL; - CHECK_OBJECT(var_coords_flatten); - Py_DECREF(var_coords_flatten); - var_coords_flatten = NULL; - Py_XDECREF(var_relative_coords); - var_relative_coords = NULL; - Py_XDECREF(var_relative_position_index); - var_relative_position_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_window_size); - Py_DECREF(par_window_size); - par_window_size = NULL; - Py_XDECREF(par_num_heads); - par_num_heads = NULL; - Py_XDECREF(var_coords_h); - var_coords_h = NULL; - Py_XDECREF(var_coords_w); - var_coords_w = NULL; - Py_XDECREF(var_coords); - var_coords = NULL; - Py_XDECREF(var_coords_flatten); - var_coords_flatten = NULL; - Py_XDECREF(var_relative_coords); - var_relative_coords = NULL; - Py_XDECREF(var_relative_position_index); - var_relative_position_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__14_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_relative_position_bias = NULL; - struct Nuitka_FrameObject *frame_3611403861dabc1175f5dc9fc6560deb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_3611403861dabc1175f5dc9fc6560deb = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3611403861dabc1175f5dc9fc6560deb)) { - Py_XDECREF(cache_frame_3611403861dabc1175f5dc9fc6560deb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3611403861dabc1175f5dc9fc6560deb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3611403861dabc1175f5dc9fc6560deb = MAKE_FUNCTION_FRAME(codeobj_3611403861dabc1175f5dc9fc6560deb, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3611403861dabc1175f5dc9fc6560deb->m_type_description == NULL); - frame_3611403861dabc1175f5dc9fc6560deb = cache_frame_3611403861dabc1175f5dc9fc6560deb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3611403861dabc1175f5dc9fc6560deb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3611403861dabc1175f5dc9fc6560deb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_3; - PyObject *tmp_right_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_4; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_5; - PyObject *tmp_right_name_4; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[44]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_expression_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[62]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_2); - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_3611403861dabc1175f5dc9fc6560deb->m_frame.f_lineno = 242; - tmp_subscript_name_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[86], - &PyTuple_GET_ITEM(mod_consts[60], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_2); - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_2); - Py_DECREF(tmp_subscript_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[86]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[39]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[41]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_5); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[39]); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[42]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_3, 1); - Py_DECREF(tmp_expression_name_7); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = mod_consts[42]; - tmp_args_element_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[39]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[41]; - tmp_left_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_4, 0); - Py_DECREF(tmp_expression_name_9); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[39]); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_5 = mod_consts[42]; - tmp_right_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_11, tmp_subscript_name_5, 1); - Py_DECREF(tmp_expression_name_11); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_left_name_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_3); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_3); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_right_name_4 = mod_consts[42]; - tmp_args_element_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_4); - Py_DECREF(tmp_left_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 244; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = mod_consts[82]; - frame_3611403861dabc1175f5dc9fc6560deb->m_frame.f_lineno = 242; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - assert(var_relative_position_bias == NULL); - var_relative_position_bias = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_relative_position_bias); - tmp_called_instance_3 = var_relative_position_bias; - frame_3611403861dabc1175f5dc9fc6560deb->m_frame.f_lineno = 245; - tmp_called_instance_2 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[87], 0) - ); - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_3611403861dabc1175f5dc9fc6560deb->m_frame.f_lineno = 245; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[53]); - Py_DECREF(tmp_called_instance_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3611403861dabc1175f5dc9fc6560deb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3611403861dabc1175f5dc9fc6560deb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3611403861dabc1175f5dc9fc6560deb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3611403861dabc1175f5dc9fc6560deb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3611403861dabc1175f5dc9fc6560deb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3611403861dabc1175f5dc9fc6560deb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3611403861dabc1175f5dc9fc6560deb, - type_description_1, - par_self, - var_relative_position_bias - ); - - - // Release cached frame if used for exception. - if (frame_3611403861dabc1175f5dc9fc6560deb == cache_frame_3611403861dabc1175f5dc9fc6560deb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3611403861dabc1175f5dc9fc6560deb); - cache_frame_3611403861dabc1175f5dc9fc6560deb = NULL; - } - - assertFrameObject(frame_3611403861dabc1175f5dc9fc6560deb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_relative_position_bias); - var_relative_position_bias = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_relative_position_bias); - var_relative_position_bias = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__15___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_img_size = python_pars[1]; - PyObject *par_patch_size = python_pars[2]; - PyObject *par_in_chans = python_pars[3]; - PyObject *par_num_classes = python_pars[4]; - PyObject *par_embed_dim = python_pars[5]; - PyObject *par_depth = python_pars[6]; - PyObject *par_num_heads = python_pars[7]; - PyObject *par_mlp_ratio = python_pars[8]; - PyObject *par_qkv_bias = python_pars[9]; - PyObject *par_qk_scale = python_pars[10]; - PyObject *par_drop_rate = python_pars[11]; - PyObject *par_attn_drop_rate = python_pars[12]; - PyObject *par_drop_path_rate = python_pars[13]; - PyObject *par_norm_layer = python_pars[14]; - PyObject *par_init_values = python_pars[15]; - PyObject *par_use_abs_pos_emb = python_pars[16]; - PyObject *par_use_rel_pos_bias = python_pars[17]; - PyObject *par_use_shared_rel_pos_bias = python_pars[18]; - PyObject *par_use_mean_pooling = python_pars[19]; - PyObject *par_init_scale = python_pars[20]; - PyObject *par_use_checkpoint = python_pars[21]; - PyObject *var_num_patches = NULL; - PyObject *var_dpr = NULL; - PyObject *outline_0_var_x = NULL; - PyObject *outline_1_var_i = NULL; - PyObject *tmp_assign_unpack_1__assign_source = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_listcomp_2__$0 = NULL; - PyObject *tmp_listcomp_2__contraction = NULL; - PyObject *tmp_listcomp_2__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_98263e472fd41a406a6243a5fb0fe540; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - struct Nuitka_FrameObject *frame_8c3d2c26074fd179a839a2865225477e_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_8c3d2c26074fd179a839a2865225477e_2 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - struct Nuitka_FrameObject *frame_ba131fdbf0642417c1f00c51309fdd24_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_ba131fdbf0642417c1f00c51309fdd24_3 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - static struct Nuitka_FrameObject *cache_frame_98263e472fd41a406a6243a5fb0fe540 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_98263e472fd41a406a6243a5fb0fe540)) { - Py_XDECREF(cache_frame_98263e472fd41a406a6243a5fb0fe540); - -#if _DEBUG_REFCOUNTS - if (cache_frame_98263e472fd41a406a6243a5fb0fe540 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_98263e472fd41a406a6243a5fb0fe540 = MAKE_FUNCTION_FRAME(codeobj_98263e472fd41a406a6243a5fb0fe540, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_98263e472fd41a406a6243a5fb0fe540->m_type_description == NULL); - frame_98263e472fd41a406a6243a5fb0fe540 = cache_frame_98263e472fd41a406a6243a5fb0fe540; - - // Push the new frame as the currently active one. - pushFrameStack(frame_98263e472fd41a406a6243a5fb0fe540); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_98263e472fd41a406a6243a5fb0fe540) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 256; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 256; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[9]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_img_size); - tmp_assattr_name_1 = par_img_size; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[131], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_num_classes); - tmp_assattr_name_2 = par_num_classes; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[132], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 258; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - CHECK_OBJECT(par_embed_dim); - tmp_assign_source_1 = par_embed_dim; - assert(tmp_assign_unpack_1__assign_source == NULL); - Py_INCREF(tmp_assign_source_1); - tmp_assign_unpack_1__assign_source = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assattr_name_3 = tmp_assign_unpack_1__assign_source; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[133], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_2; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assattr_name_4 = tmp_assign_unpack_1__assign_source; - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[134], tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_2; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - Py_DECREF(tmp_assign_unpack_1__assign_source); - tmp_assign_unpack_1__assign_source = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - Py_DECREF(tmp_assign_unpack_1__assign_source); - tmp_assign_unpack_1__assign_source = NULL; - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_5; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[135]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[135]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[118]; - CHECK_OBJECT(par_img_size); - tmp_dict_value_1 = par_img_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[119]; - CHECK_OBJECT(par_patch_size); - tmp_dict_value_1 = par_patch_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[136]; - CHECK_OBJECT(par_in_chans); - tmp_dict_value_1 = par_in_chans; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[134]; - CHECK_OBJECT(par_embed_dim); - tmp_dict_value_1 = par_embed_dim; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 261; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[137], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[137]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[120]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_num_patches == NULL); - var_num_patches = tmp_assign_source_2; - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_6; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[33]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[42]; - tmp_args_element_name_3 = mod_consts[42]; - CHECK_OBJECT(par_embed_dim); - tmp_args_element_name_4 = par_embed_dim; - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 265; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_args_element_name_1 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[35], - call_args - ); - } - - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 265; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[138], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_use_abs_pos_emb); - tmp_truth_name_1 = CHECK_IF_TRUE(par_use_abs_pos_emb); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_args_element_name_8; - PyObject *tmp_assattr_target_7; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[33]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[35]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_6 = mod_consts[42]; - CHECK_OBJECT(var_num_patches); - tmp_left_name_1 = var_num_patches; - tmp_right_name_1 = mod_consts[42]; - tmp_args_element_name_7 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_embed_dim == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_8 = par_embed_dim; - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 267; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 267; - tmp_assattr_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[139], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_assattr_target_8; - tmp_assattr_name_8 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 269; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[139], tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_assattr_target_9; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[23]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[140]; - CHECK_OBJECT(par_drop_rate); - tmp_dict_value_2 = par_drop_rate; - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 270; - tmp_assattr_name_9 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 270; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[141], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - CHECK_OBJECT(par_use_shared_rel_pos_bias); - tmp_truth_name_2 = CHECK_IF_TRUE(par_use_shared_rel_pos_bias); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_called_name_6; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_10; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[142]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[142]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[39]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[137]); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[117]); - Py_DECREF(tmp_expression_name_7); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[25]; - CHECK_OBJECT(par_num_heads); - tmp_dict_value_3 = par_num_heads; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 273; - tmp_assattr_name_10 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[115], tmp_assattr_name_10); - Py_DECREF(tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_assattr_target_11; - tmp_assattr_name_11 = Py_None; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 275; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[115], tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_assattr_target_12; - CHECK_OBJECT(par_use_checkpoint); - tmp_assattr_name_12 = par_use_checkpoint; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 276; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_12 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[143], tmp_assattr_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_3; - } - tmp_args_element_name_9 = mod_consts[41]; - CHECK_OBJECT(par_drop_path_rate); - tmp_args_element_name_10 = par_drop_path_rate; - CHECK_OBJECT(par_depth); - tmp_args_element_name_11 = par_depth; - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 278; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10, tmp_args_element_name_11}; - tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[144], - call_args - ); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_3; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_3; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - tmp_assign_source_5 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_5; - } - if (isFrameUnusable(cache_frame_8c3d2c26074fd179a839a2865225477e_2)) { - Py_XDECREF(cache_frame_8c3d2c26074fd179a839a2865225477e_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8c3d2c26074fd179a839a2865225477e_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8c3d2c26074fd179a839a2865225477e_2 = MAKE_FUNCTION_FRAME(codeobj_8c3d2c26074fd179a839a2865225477e, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8c3d2c26074fd179a839a2865225477e_2->m_type_description == NULL); - frame_8c3d2c26074fd179a839a2865225477e_2 = cache_frame_8c3d2c26074fd179a839a2865225477e_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8c3d2c26074fd179a839a2865225477e_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8c3d2c26074fd179a839a2865225477e_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_6 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_6 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 278; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_7 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_x; - outline_0_var_x = tmp_assign_source_7; - Py_INCREF(outline_0_var_x); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_instance_4; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - CHECK_OBJECT(outline_0_var_x); - tmp_called_instance_4 = outline_0_var_x; - frame_8c3d2c26074fd179a839a2865225477e_2->m_frame.f_lineno = 278; - tmp_append_value_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[145]); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_2 = "o"; - goto try_except_handler_4; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_2 = "o"; - goto try_except_handler_4; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_2 = "o"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_3 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_3); - goto try_return_handler_4; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8c3d2c26074fd179a839a2865225477e_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8c3d2c26074fd179a839a2865225477e_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_3; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8c3d2c26074fd179a839a2865225477e_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8c3d2c26074fd179a839a2865225477e_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8c3d2c26074fd179a839a2865225477e_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8c3d2c26074fd179a839a2865225477e_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8c3d2c26074fd179a839a2865225477e_2, - type_description_2, - outline_0_var_x - ); - - - // Release cached frame if used for exception. - if (frame_8c3d2c26074fd179a839a2865225477e_2 == cache_frame_8c3d2c26074fd179a839a2865225477e_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8c3d2c26074fd179a839a2865225477e_2); - cache_frame_8c3d2c26074fd179a839a2865225477e_2 = NULL; - } - - assertFrameObject(frame_8c3d2c26074fd179a839a2865225477e_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_3; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(outline_0_var_x); - outline_0_var_x = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_x); - outline_0_var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 278; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_dpr == NULL); - var_dpr = tmp_assign_source_3; - } - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_assattr_target_13; - CHECK_OBJECT(par_use_rel_pos_bias); - tmp_assattr_name_13 = par_use_rel_pos_bias; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 279; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_13 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[146], tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_14; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_12; - PyObject *tmp_assattr_target_14; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[147]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_2; - PyObject *tmp_xrange_low_1; - if (par_depth == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[148]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 285; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_5; - } - - tmp_xrange_low_1 = par_depth; - tmp_iter_arg_2 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_5; - } - tmp_assign_source_8 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_5; - } - assert(tmp_listcomp_2__$0 == NULL); - tmp_listcomp_2__$0 = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = PyList_New(0); - assert(tmp_listcomp_2__contraction == NULL); - tmp_listcomp_2__contraction = tmp_assign_source_9; - } - if (isFrameUnusable(cache_frame_ba131fdbf0642417c1f00c51309fdd24_3)) { - Py_XDECREF(cache_frame_ba131fdbf0642417c1f00c51309fdd24_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ba131fdbf0642417c1f00c51309fdd24_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ba131fdbf0642417c1f00c51309fdd24_3 = MAKE_FUNCTION_FRAME(codeobj_ba131fdbf0642417c1f00c51309fdd24, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ba131fdbf0642417c1f00c51309fdd24_3->m_type_description == NULL); - frame_ba131fdbf0642417c1f00c51309fdd24_3 = cache_frame_ba131fdbf0642417c1f00c51309fdd24_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ba131fdbf0642417c1f00c51309fdd24_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ba131fdbf0642417c1f00c51309fdd24_3) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_listcomp_2__$0); - tmp_next_source_2 = tmp_listcomp_2__$0; - tmp_assign_source_10 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_10 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "ooooooooooooo"; - exception_lineno = 280; - goto try_except_handler_6; - } - } - - { - PyObject *old = tmp_listcomp_2__iter_value_0; - tmp_listcomp_2__iter_value_0 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_listcomp_2__iter_value_0); - tmp_assign_source_11 = tmp_listcomp_2__iter_value_0; - { - PyObject *old = outline_1_var_i; - outline_1_var_i = tmp_assign_source_11; - Py_INCREF(outline_1_var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_2; - PyObject *tmp_append_value_2; - PyObject *tmp_called_name_8; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - CHECK_OBJECT(tmp_listcomp_2__contraction); - tmp_append_list_2 = tmp_listcomp_2__contraction; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[149]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[149]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_2 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_key_4 = mod_consts[29]; - if (par_embed_dim == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_2 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_4 = par_embed_dim; - tmp_kwargs_name_4 = _PyDict_NewPresized( 11 ); - { - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_1; - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[25]; - if (par_num_heads == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[25]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_num_heads; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[150]; - if (par_mlp_ratio == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_mlp_ratio; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[98]; - if (par_qkv_bias == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[98]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_qkv_bias; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[99]; - if (par_qk_scale == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_qk_scale; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[24]; - if (par_drop_rate == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[151]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 283; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_drop_rate; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[67]; - if (par_attn_drop_rate == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[152]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 283; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_attn_drop_rate; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[11]; - if (var_dpr == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[153]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 283; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_10 = var_dpr; - CHECK_OBJECT(outline_1_var_i); - tmp_subscript_name_1 = outline_1_var_i; - tmp_dict_value_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_1); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[154]; - if (par_norm_layer == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[154]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 283; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_norm_layer; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[111]; - if (par_init_values == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 284; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_init_values; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[39]; - if (par_use_rel_pos_bias == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[146]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 284; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_truth_name_3 = CHECK_IF_TRUE(par_use_rel_pos_bias); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - tmp_condition_result_3 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 284; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_12 = par_self; - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[137]); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[117]); - Py_DECREF(tmp_expression_name_11); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_2 = "ooooooooooooo"; - goto dict_build_exception_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_dict_value_4 = Py_None; - Py_INCREF(tmp_dict_value_4); - condexpr_end_1:; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_4); - goto try_except_handler_6; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_ba131fdbf0642417c1f00c51309fdd24_3->m_frame.f_lineno = 281; - tmp_append_value_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_8, tmp_kwargs_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_append_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_2 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(PyList_Check(tmp_append_list_2)); - tmp_result = LIST_APPEND1(tmp_append_list_2, tmp_append_value_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_2 = "ooooooooooooo"; - goto try_except_handler_6; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_2 = "ooooooooooooo"; - goto try_except_handler_6; - } - goto loop_start_2; - loop_end_2:; - CHECK_OBJECT(tmp_listcomp_2__contraction); - tmp_args_element_name_12 = tmp_listcomp_2__contraction; - Py_INCREF(tmp_args_element_name_12); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_XDECREF(tmp_listcomp_2__$0); - tmp_listcomp_2__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_2__contraction); - Py_DECREF(tmp_listcomp_2__contraction); - tmp_listcomp_2__contraction = NULL; - Py_XDECREF(tmp_listcomp_2__iter_value_0); - tmp_listcomp_2__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_2__$0); - tmp_listcomp_2__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_2__contraction); - Py_DECREF(tmp_listcomp_2__contraction); - tmp_listcomp_2__contraction = NULL; - Py_XDECREF(tmp_listcomp_2__iter_value_0); - tmp_listcomp_2__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_3; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ba131fdbf0642417c1f00c51309fdd24_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ba131fdbf0642417c1f00c51309fdd24_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_5; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ba131fdbf0642417c1f00c51309fdd24_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ba131fdbf0642417c1f00c51309fdd24_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ba131fdbf0642417c1f00c51309fdd24_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ba131fdbf0642417c1f00c51309fdd24_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ba131fdbf0642417c1f00c51309fdd24_3, - type_description_2, - outline_1_var_i, - par_embed_dim, - par_num_heads, - par_mlp_ratio, - par_qkv_bias, - par_qk_scale, - par_drop_rate, - par_attn_drop_rate, - var_dpr, - par_norm_layer, - par_init_values, - par_use_rel_pos_bias, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_ba131fdbf0642417c1f00c51309fdd24_3 == cache_frame_ba131fdbf0642417c1f00c51309fdd24_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ba131fdbf0642417c1f00c51309fdd24_3); - cache_frame_ba131fdbf0642417c1f00c51309fdd24_3 = NULL; - } - - assertFrameObject(frame_ba131fdbf0642417c1f00c51309fdd24_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - type_description_1 = "ooooooooooooooooooooooooc"; - goto try_except_handler_5; - skip_nested_handling_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_XDECREF(outline_1_var_i); - outline_1_var_i = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_1_var_i); - outline_1_var_i = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 280; - goto frame_exception_exit_1; - outline_result_2:; - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 280; - tmp_assattr_name_14 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assattr_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 280; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_14 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_14, mod_consts[155], tmp_assattr_name_14); - Py_DECREF(tmp_assattr_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 290; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[139]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_4 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_name_9; - PyObject *tmp_call_result_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_14; - PyObject *tmp_kwargs_name_5; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[156]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[156]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 291; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[139]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[157]); - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 291; - tmp_call_result_2 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_1, tmp_kwargs_name_5); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_3:; - { - PyObject *tmp_called_name_10; - PyObject *tmp_call_result_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_15; - PyObject *tmp_kwargs_name_6; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[156]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[156]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_self; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[138]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_6 = PyDict_Copy(mod_consts[157]); - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 292; - tmp_call_result_3 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_2, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[158]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[159]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 296; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 296; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_13); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_called_instance_5; - PyObject *tmp_call_result_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 297; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - frame_98263e472fd41a406a6243a5fb0fe540->m_frame.f_lineno = 297; - tmp_call_result_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[160]); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_5); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_98263e472fd41a406a6243a5fb0fe540); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_98263e472fd41a406a6243a5fb0fe540); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_98263e472fd41a406a6243a5fb0fe540, exception_lineno); - } else if (exception_tb->tb_frame != &frame_98263e472fd41a406a6243a5fb0fe540->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_98263e472fd41a406a6243a5fb0fe540, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_98263e472fd41a406a6243a5fb0fe540, - type_description_1, - par_self, - par_img_size, - par_patch_size, - par_in_chans, - par_num_classes, - par_embed_dim, - par_depth, - par_num_heads, - par_mlp_ratio, - par_qkv_bias, - par_qk_scale, - par_drop_rate, - par_attn_drop_rate, - par_drop_path_rate, - par_norm_layer, - par_init_values, - par_use_abs_pos_emb, - par_use_rel_pos_bias, - par_use_shared_rel_pos_bias, - par_use_mean_pooling, - par_init_scale, - par_use_checkpoint, - var_num_patches, - var_dpr, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_98263e472fd41a406a6243a5fb0fe540 == cache_frame_98263e472fd41a406a6243a5fb0fe540) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_98263e472fd41a406a6243a5fb0fe540); - cache_frame_98263e472fd41a406a6243a5fb0fe540 = NULL; - } - - assertFrameObject(frame_98263e472fd41a406a6243a5fb0fe540); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_3:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - CHECK_OBJECT(par_patch_size); - Py_DECREF(par_patch_size); - par_patch_size = NULL; - CHECK_OBJECT(par_in_chans); - Py_DECREF(par_in_chans); - par_in_chans = NULL; - CHECK_OBJECT(par_num_classes); - Py_DECREF(par_num_classes); - par_num_classes = NULL; - Py_XDECREF(par_embed_dim); - par_embed_dim = NULL; - Py_XDECREF(par_depth); - par_depth = NULL; - Py_XDECREF(par_num_heads); - par_num_heads = NULL; - Py_XDECREF(par_mlp_ratio); - par_mlp_ratio = NULL; - Py_XDECREF(par_qkv_bias); - par_qkv_bias = NULL; - Py_XDECREF(par_qk_scale); - par_qk_scale = NULL; - Py_XDECREF(par_drop_rate); - par_drop_rate = NULL; - Py_XDECREF(par_attn_drop_rate); - par_attn_drop_rate = NULL; - Py_XDECREF(par_drop_path_rate); - par_drop_path_rate = NULL; - Py_XDECREF(par_norm_layer); - par_norm_layer = NULL; - Py_XDECREF(par_init_values); - par_init_values = NULL; - CHECK_OBJECT(par_use_abs_pos_emb); - Py_DECREF(par_use_abs_pos_emb); - par_use_abs_pos_emb = NULL; - Py_XDECREF(par_use_rel_pos_bias); - par_use_rel_pos_bias = NULL; - CHECK_OBJECT(par_use_shared_rel_pos_bias); - Py_DECREF(par_use_shared_rel_pos_bias); - par_use_shared_rel_pos_bias = NULL; - CHECK_OBJECT(par_use_mean_pooling); - Py_DECREF(par_use_mean_pooling); - par_use_mean_pooling = NULL; - CHECK_OBJECT(par_init_scale); - Py_DECREF(par_init_scale); - par_init_scale = NULL; - CHECK_OBJECT(par_use_checkpoint); - Py_DECREF(par_use_checkpoint); - par_use_checkpoint = NULL; - Py_XDECREF(var_num_patches); - var_num_patches = NULL; - Py_XDECREF(var_dpr); - var_dpr = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - CHECK_OBJECT(par_patch_size); - Py_DECREF(par_patch_size); - par_patch_size = NULL; - CHECK_OBJECT(par_in_chans); - Py_DECREF(par_in_chans); - par_in_chans = NULL; - CHECK_OBJECT(par_num_classes); - Py_DECREF(par_num_classes); - par_num_classes = NULL; - Py_XDECREF(par_embed_dim); - par_embed_dim = NULL; - Py_XDECREF(par_depth); - par_depth = NULL; - Py_XDECREF(par_num_heads); - par_num_heads = NULL; - Py_XDECREF(par_mlp_ratio); - par_mlp_ratio = NULL; - Py_XDECREF(par_qkv_bias); - par_qkv_bias = NULL; - Py_XDECREF(par_qk_scale); - par_qk_scale = NULL; - Py_XDECREF(par_drop_rate); - par_drop_rate = NULL; - Py_XDECREF(par_attn_drop_rate); - par_attn_drop_rate = NULL; - Py_XDECREF(par_drop_path_rate); - par_drop_path_rate = NULL; - Py_XDECREF(par_norm_layer); - par_norm_layer = NULL; - Py_XDECREF(par_init_values); - par_init_values = NULL; - CHECK_OBJECT(par_use_abs_pos_emb); - Py_DECREF(par_use_abs_pos_emb); - par_use_abs_pos_emb = NULL; - Py_XDECREF(par_use_rel_pos_bias); - par_use_rel_pos_bias = NULL; - CHECK_OBJECT(par_use_shared_rel_pos_bias); - Py_DECREF(par_use_shared_rel_pos_bias); - par_use_shared_rel_pos_bias = NULL; - CHECK_OBJECT(par_use_mean_pooling); - Py_DECREF(par_use_mean_pooling); - par_use_mean_pooling = NULL; - CHECK_OBJECT(par_init_scale); - Py_DECREF(par_init_scale); - par_init_scale = NULL; - CHECK_OBJECT(par_use_checkpoint); - Py_DECREF(par_use_checkpoint); - par_use_checkpoint = NULL; - Py_XDECREF(var_num_patches); - var_num_patches = NULL; - Py_XDECREF(var_dpr); - var_dpr = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__16_fix_init_weight(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_rescale = NULL; - PyObject *var_layer_id = NULL; - PyObject *var_layer = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_608fe3c25a20e7407073e8ada1e4a0a2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_608fe3c25a20e7407073e8ada1e4a0a2 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$eva_vit$$$function__16_fix_init_weight$$$function__1_rescale(); - - assert(var_rescale == NULL); - var_rescale = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_608fe3c25a20e7407073e8ada1e4a0a2)) { - Py_XDECREF(cache_frame_608fe3c25a20e7407073e8ada1e4a0a2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_608fe3c25a20e7407073e8ada1e4a0a2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_608fe3c25a20e7407073e8ada1e4a0a2 = MAKE_FUNCTION_FRAME(codeobj_608fe3c25a20e7407073e8ada1e4a0a2, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_608fe3c25a20e7407073e8ada1e4a0a2->m_type_description == NULL); - frame_608fe3c25a20e7407073e8ada1e4a0a2 = cache_frame_608fe3c25a20e7407073e8ada1e4a0a2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_608fe3c25a20e7407073e8ada1e4a0a2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_608fe3c25a20e7407073e8ada1e4a0a2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_1; - tmp_called_name_1 = (PyObject *)&PyEnum_Type; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[155]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_608fe3c25a20e7407073e8ada1e4a0a2->m_frame.f_lineno = 306; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - exception_lineno = 306; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "oooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 306; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 306; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 306; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[114]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 306; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_layer_id; - var_layer_id = tmp_assign_source_7; - Py_INCREF(var_layer_id); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_layer; - var_layer = tmp_assign_source_8; - Py_INCREF(var_layer); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_rescale == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[161]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - - tmp_called_name_2 = var_rescale; - CHECK_OBJECT(var_layer); - tmp_expression_name_5 = var_layer; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[90]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[68]); - Py_DECREF(tmp_expression_name_4); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[79]); - Py_DECREF(tmp_expression_name_3); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[163]); - Py_DECREF(tmp_expression_name_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_layer_id); - tmp_left_name_1 = var_layer_id; - tmp_right_name_1 = mod_consts[42]; - tmp_args_element_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_608fe3c25a20e7407073e8ada1e4a0a2->m_frame.f_lineno = 307; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_rescale == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[161]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - - tmp_called_name_3 = var_rescale; - if (var_layer == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[164]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = var_layer; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[107]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[22]); - Py_DECREF(tmp_expression_name_8); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[79]); - Py_DECREF(tmp_expression_name_7); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[163]); - Py_DECREF(tmp_expression_name_6); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - if (var_layer_id == NULL) { - Py_DECREF(tmp_args_element_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[165]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - - tmp_left_name_2 = var_layer_id; - tmp_right_name_2 = mod_consts[42]; - tmp_args_element_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_2); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_608fe3c25a20e7407073e8ada1e4a0a2->m_frame.f_lineno = 308; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_608fe3c25a20e7407073e8ada1e4a0a2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_608fe3c25a20e7407073e8ada1e4a0a2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_608fe3c25a20e7407073e8ada1e4a0a2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_608fe3c25a20e7407073e8ada1e4a0a2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_608fe3c25a20e7407073e8ada1e4a0a2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_608fe3c25a20e7407073e8ada1e4a0a2, - type_description_1, - par_self, - var_rescale, - var_layer_id, - var_layer - ); - - - // Release cached frame if used for exception. - if (frame_608fe3c25a20e7407073e8ada1e4a0a2 == cache_frame_608fe3c25a20e7407073e8ada1e4a0a2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_608fe3c25a20e7407073e8ada1e4a0a2); - cache_frame_608fe3c25a20e7407073e8ada1e4a0a2 = NULL; - } - - assertFrameObject(frame_608fe3c25a20e7407073e8ada1e4a0a2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_rescale); - var_rescale = NULL; - Py_XDECREF(var_layer_id); - var_layer_id = NULL; - Py_XDECREF(var_layer); - var_layer = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_rescale); - var_rescale = NULL; - Py_XDECREF(var_layer_id); - var_layer_id = NULL; - Py_XDECREF(var_layer); - var_layer = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__16_fix_init_weight$$$function__1_rescale(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_param = python_pars[0]; - PyObject *par_layer_id = python_pars[1]; - struct Nuitka_FrameObject *frame_b5558490320606969b02cc72fbce71c2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_b5558490320606969b02cc72fbce71c2 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_b5558490320606969b02cc72fbce71c2)) { - Py_XDECREF(cache_frame_b5558490320606969b02cc72fbce71c2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b5558490320606969b02cc72fbce71c2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b5558490320606969b02cc72fbce71c2 = MAKE_FUNCTION_FRAME(codeobj_b5558490320606969b02cc72fbce71c2, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b5558490320606969b02cc72fbce71c2->m_type_description == NULL); - frame_b5558490320606969b02cc72fbce71c2 = cache_frame_b5558490320606969b02cc72fbce71c2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b5558490320606969b02cc72fbce71c2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b5558490320606969b02cc72fbce71c2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_param); - tmp_expression_name_1 = par_param; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[166]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[167]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[167]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 304; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[168]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 304; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = mod_consts[169]; - CHECK_OBJECT(par_layer_id); - tmp_right_name_1 = par_layer_id; - tmp_args_element_name_2 = BINARY_OPERATION_MULT_OBJECT_FLOAT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 304; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_b5558490320606969b02cc72fbce71c2->m_frame.f_lineno = 304; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 304; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_b5558490320606969b02cc72fbce71c2->m_frame.f_lineno = 304; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b5558490320606969b02cc72fbce71c2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b5558490320606969b02cc72fbce71c2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b5558490320606969b02cc72fbce71c2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b5558490320606969b02cc72fbce71c2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b5558490320606969b02cc72fbce71c2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b5558490320606969b02cc72fbce71c2, - type_description_1, - par_param, - par_layer_id - ); - - - // Release cached frame if used for exception. - if (frame_b5558490320606969b02cc72fbce71c2 == cache_frame_b5558490320606969b02cc72fbce71c2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b5558490320606969b02cc72fbce71c2); - cache_frame_b5558490320606969b02cc72fbce71c2 = NULL; - } - - assertFrameObject(frame_b5558490320606969b02cc72fbce71c2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_param); - par_param = NULL; - Py_XDECREF(par_layer_id); - par_layer_id = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_param); - par_param = NULL; - Py_XDECREF(par_layer_id); - par_layer_id = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__17__init_weights(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_m = python_pars[1]; - struct Nuitka_FrameObject *frame_d3ae6dfcfdfb59872f24376c5abceab9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_d3ae6dfcfdfb59872f24376c5abceab9 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d3ae6dfcfdfb59872f24376c5abceab9)) { - Py_XDECREF(cache_frame_d3ae6dfcfdfb59872f24376c5abceab9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d3ae6dfcfdfb59872f24376c5abceab9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d3ae6dfcfdfb59872f24376c5abceab9 = MAKE_FUNCTION_FRAME(codeobj_d3ae6dfcfdfb59872f24376c5abceab9, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d3ae6dfcfdfb59872f24376c5abceab9->m_type_description == NULL); - frame_d3ae6dfcfdfb59872f24376c5abceab9 = cache_frame_d3ae6dfcfdfb59872f24376c5abceab9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d3ae6dfcfdfb59872f24376c5abceab9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d3ae6dfcfdfb59872f24376c5abceab9) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_m); - tmp_isinstance_inst_1 = par_m; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[18]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[156]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[156]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_m); - tmp_expression_name_2 = par_m; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[79]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[157]); - frame_d3ae6dfcfdfb59872f24376c5abceab9->m_frame.f_lineno = 312; - tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_2; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_4; - if (par_m == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[170]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_isinstance_inst_2 = par_m; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[18]); - if (tmp_isinstance_cls_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - Py_DECREF(tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - if (par_m == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[170]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_m; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[80]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_and_right_value_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - Py_DECREF(tmp_compexpr_left_1); - tmp_condition_result_2 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_2 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_2; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[171]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[172]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_m == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[170]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 314; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_m; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[80]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 314; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[41]; - frame_d3ae6dfcfdfb59872f24376c5abceab9->m_frame.f_lineno = 314; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_2:; - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_isinstance_inst_3; - PyObject *tmp_isinstance_cls_3; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(par_m); - tmp_isinstance_inst_3 = par_m; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[173]); - if (tmp_isinstance_cls_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_3, tmp_isinstance_cls_3); - Py_DECREF(tmp_isinstance_cls_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_4; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[171]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[172]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_m); - tmp_expression_name_11 = par_m; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[80]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 316; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = mod_consts[41]; - frame_d3ae6dfcfdfb59872f24376c5abceab9->m_frame.f_lineno = 316; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_6; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[171]); - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[172]); - Py_DECREF(tmp_expression_name_12); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_m == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[170]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 317; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_m; - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[79]); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 317; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_6 = mod_consts[174]; - frame_d3ae6dfcfdfb59872f24376c5abceab9->m_frame.f_lineno = 317; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_3:; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d3ae6dfcfdfb59872f24376c5abceab9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d3ae6dfcfdfb59872f24376c5abceab9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d3ae6dfcfdfb59872f24376c5abceab9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d3ae6dfcfdfb59872f24376c5abceab9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d3ae6dfcfdfb59872f24376c5abceab9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d3ae6dfcfdfb59872f24376c5abceab9, - type_description_1, - par_self, - par_m - ); - - - // Release cached frame if used for exception. - if (frame_d3ae6dfcfdfb59872f24376c5abceab9 == cache_frame_d3ae6dfcfdfb59872f24376c5abceab9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d3ae6dfcfdfb59872f24376c5abceab9); - cache_frame_d3ae6dfcfdfb59872f24376c5abceab9 = NULL; - } - - assertFrameObject(frame_d3ae6dfcfdfb59872f24376c5abceab9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_m); - par_m = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_m); - par_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__18_get_classifier(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_4767d123c180f4ce20b41f46dcfe0fa7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_4767d123c180f4ce20b41f46dcfe0fa7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4767d123c180f4ce20b41f46dcfe0fa7)) { - Py_XDECREF(cache_frame_4767d123c180f4ce20b41f46dcfe0fa7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4767d123c180f4ce20b41f46dcfe0fa7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4767d123c180f4ce20b41f46dcfe0fa7 = MAKE_FUNCTION_FRAME(codeobj_4767d123c180f4ce20b41f46dcfe0fa7, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4767d123c180f4ce20b41f46dcfe0fa7->m_type_description == NULL); - frame_4767d123c180f4ce20b41f46dcfe0fa7 = cache_frame_4767d123c180f4ce20b41f46dcfe0fa7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4767d123c180f4ce20b41f46dcfe0fa7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4767d123c180f4ce20b41f46dcfe0fa7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[175]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4767d123c180f4ce20b41f46dcfe0fa7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4767d123c180f4ce20b41f46dcfe0fa7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4767d123c180f4ce20b41f46dcfe0fa7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4767d123c180f4ce20b41f46dcfe0fa7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4767d123c180f4ce20b41f46dcfe0fa7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4767d123c180f4ce20b41f46dcfe0fa7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4767d123c180f4ce20b41f46dcfe0fa7, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_4767d123c180f4ce20b41f46dcfe0fa7 == cache_frame_4767d123c180f4ce20b41f46dcfe0fa7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4767d123c180f4ce20b41f46dcfe0fa7); - cache_frame_4767d123c180f4ce20b41f46dcfe0fa7 = NULL; - } - - assertFrameObject(frame_4767d123c180f4ce20b41f46dcfe0fa7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__19_reset_classifier(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_num_classes = python_pars[1]; - PyObject *par_global_pool = python_pars[2]; - struct Nuitka_FrameObject *frame_f2a65ca76842944dd804c12b66e87a5d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_f2a65ca76842944dd804c12b66e87a5d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f2a65ca76842944dd804c12b66e87a5d)) { - Py_XDECREF(cache_frame_f2a65ca76842944dd804c12b66e87a5d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f2a65ca76842944dd804c12b66e87a5d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f2a65ca76842944dd804c12b66e87a5d = MAKE_FUNCTION_FRAME(codeobj_f2a65ca76842944dd804c12b66e87a5d, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f2a65ca76842944dd804c12b66e87a5d->m_type_description == NULL); - frame_f2a65ca76842944dd804c12b66e87a5d = cache_frame_f2a65ca76842944dd804c12b66e87a5d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f2a65ca76842944dd804c12b66e87a5d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f2a65ca76842944dd804c12b66e87a5d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_num_classes); - tmp_assattr_name_1 = par_num_classes; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[132], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_num_classes); - tmp_compexpr_left_1 = par_num_classes; - tmp_compexpr_right_1 = mod_consts[41]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[18]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[134]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_num_classes); - tmp_args_element_name_2 = par_num_classes; - frame_f2a65ca76842944dd804c12b66e87a5d->m_frame.f_lineno = 324; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_f2a65ca76842944dd804c12b66e87a5d->m_frame.f_lineno = 324; - tmp_assattr_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[102]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[175], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2a65ca76842944dd804c12b66e87a5d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2a65ca76842944dd804c12b66e87a5d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f2a65ca76842944dd804c12b66e87a5d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f2a65ca76842944dd804c12b66e87a5d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f2a65ca76842944dd804c12b66e87a5d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f2a65ca76842944dd804c12b66e87a5d, - type_description_1, - par_self, - par_num_classes, - par_global_pool - ); - - - // Release cached frame if used for exception. - if (frame_f2a65ca76842944dd804c12b66e87a5d == cache_frame_f2a65ca76842944dd804c12b66e87a5d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f2a65ca76842944dd804c12b66e87a5d); - cache_frame_f2a65ca76842944dd804c12b66e87a5d = NULL; - } - - assertFrameObject(frame_f2a65ca76842944dd804c12b66e87a5d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_num_classes); - par_num_classes = NULL; - CHECK_OBJECT(par_global_pool); - Py_DECREF(par_global_pool); - par_global_pool = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_num_classes); - par_num_classes = NULL; - CHECK_OBJECT(par_global_pool); - Py_DECREF(par_global_pool); - par_global_pool = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__20_forward_features(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_batch_size = NULL; - PyObject *var_seq_len = NULL; - PyObject *var__ = NULL; - PyObject *var_cls_tokens = NULL; - PyObject *var_rel_pos_bias = NULL; - PyObject *var_blk = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_2192bdbd8e91262dd573c14e59b5b144; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_2192bdbd8e91262dd573c14e59b5b144 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_2192bdbd8e91262dd573c14e59b5b144)) { - Py_XDECREF(cache_frame_2192bdbd8e91262dd573c14e59b5b144); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2192bdbd8e91262dd573c14e59b5b144 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2192bdbd8e91262dd573c14e59b5b144 = MAKE_FUNCTION_FRAME(codeobj_2192bdbd8e91262dd573c14e59b5b144, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2192bdbd8e91262dd573c14e59b5b144->m_type_description == NULL); - frame_2192bdbd8e91262dd573c14e59b5b144 = cache_frame_2192bdbd8e91262dd573c14e59b5b144; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2192bdbd8e91262dd573c14e59b5b144); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2192bdbd8e91262dd573c14e59b5b144) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 327; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[137], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_x); - tmp_called_instance_2 = par_x; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 328; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[56]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooo"; - exception_lineno = 328; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooo"; - exception_lineno = 328; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooo"; - exception_lineno = 328; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_5; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooo"; - exception_lineno = 328; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[71]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooo"; - exception_lineno = 328; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_6); - var_batch_size = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - assert(var_seq_len == NULL); - Py_INCREF(tmp_assign_source_7); - var_seq_len = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_8); - var__ = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 330; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[138]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_2 = var_batch_size; - tmp_args_element_name_3 = mod_consts[82]; - tmp_args_element_name_4 = mod_consts[82]; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 330; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_9 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[176], - call_args - ); - } - - Py_DECREF(tmp_called_instance_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_cls_tokens == NULL); - var_cls_tokens = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[72]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_cls_tokens); - tmp_tuple_element_2 = var_cls_tokens; - tmp_tuple_element_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 331; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = par_x; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_tuple_element_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[177]); - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 331; - tmp_assign_source_10 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 332; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[139]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(par_x); - tmp_left_name_1 = par_x; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 333; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[139]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_11 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 334; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_5 = par_x; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 334; - tmp_assign_source_12 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[141], tmp_args_element_name_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_instance_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[115]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - Py_DECREF(tmp_compexpr_left_2); - if (tmp_condition_result_2 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 336; - tmp_assign_source_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[115]); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_assign_source_13 = Py_None; - Py_INCREF(tmp_assign_source_13); - condexpr_end_1:; - assert(var_rel_pos_bias == NULL); - var_rel_pos_bias = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 337; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[155]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_14 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_14; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_15 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_15 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - exception_lineno = 337; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_16 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_blk; - var_blk = tmp_assign_source_16; - Py_INCREF(var_blk); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 338; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_7 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[143]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 338; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - tmp_condition_result_3 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[178]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[178]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[178]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_blk); - tmp_args_element_name_6 = var_blk; - if (par_x == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_7 = par_x; - if (var_rel_pos_bias == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_8 = var_rel_pos_bias; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 339; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_17 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - CHECK_OBJECT(var_blk); - tmp_called_name_3 = var_blk; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 341; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_9 = par_x; - if (var_rel_pos_bias == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 341; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_10 = var_rel_pos_bias; - frame_2192bdbd8e91262dd573c14e59b5b144->m_frame.f_lineno = 341; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assign_source_18 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - branch_end_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "oooooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 342; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2192bdbd8e91262dd573c14e59b5b144); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2192bdbd8e91262dd573c14e59b5b144); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2192bdbd8e91262dd573c14e59b5b144); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2192bdbd8e91262dd573c14e59b5b144, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2192bdbd8e91262dd573c14e59b5b144->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2192bdbd8e91262dd573c14e59b5b144, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2192bdbd8e91262dd573c14e59b5b144, - type_description_1, - par_self, - par_x, - var_batch_size, - var_seq_len, - var__, - var_cls_tokens, - var_rel_pos_bias, - var_blk - ); - - - // Release cached frame if used for exception. - if (frame_2192bdbd8e91262dd573c14e59b5b144 == cache_frame_2192bdbd8e91262dd573c14e59b5b144) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2192bdbd8e91262dd573c14e59b5b144); - cache_frame_2192bdbd8e91262dd573c14e59b5b144 = NULL; - } - - assertFrameObject(frame_2192bdbd8e91262dd573c14e59b5b144); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - CHECK_OBJECT(var_seq_len); - Py_DECREF(var_seq_len); - var_seq_len = NULL; - CHECK_OBJECT(var__); - Py_DECREF(var__); - var__ = NULL; - Py_XDECREF(var_cls_tokens); - var_cls_tokens = NULL; - Py_XDECREF(var_rel_pos_bias); - var_rel_pos_bias = NULL; - Py_XDECREF(var_blk); - var_blk = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_len); - var_seq_len = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_cls_tokens); - var_cls_tokens = NULL; - Py_XDECREF(var_rel_pos_bias); - var_rel_pos_bias = NULL; - Py_XDECREF(var_blk); - var_blk = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__21_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_490b645cee54b66ea24504c582d15e25; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_490b645cee54b66ea24504c582d15e25 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_490b645cee54b66ea24504c582d15e25)) { - Py_XDECREF(cache_frame_490b645cee54b66ea24504c582d15e25); - -#if _DEBUG_REFCOUNTS - if (cache_frame_490b645cee54b66ea24504c582d15e25 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_490b645cee54b66ea24504c582d15e25 = MAKE_FUNCTION_FRAME(codeobj_490b645cee54b66ea24504c582d15e25, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_490b645cee54b66ea24504c582d15e25->m_type_description == NULL); - frame_490b645cee54b66ea24504c582d15e25 = cache_frame_490b645cee54b66ea24504c582d15e25; - - // Push the new frame as the currently active one. - pushFrameStack(frame_490b645cee54b66ea24504c582d15e25); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_490b645cee54b66ea24504c582d15e25) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_490b645cee54b66ea24504c582d15e25->m_frame.f_lineno = 352; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[179], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_490b645cee54b66ea24504c582d15e25); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_490b645cee54b66ea24504c582d15e25); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_490b645cee54b66ea24504c582d15e25, exception_lineno); - } else if (exception_tb->tb_frame != &frame_490b645cee54b66ea24504c582d15e25->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_490b645cee54b66ea24504c582d15e25, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_490b645cee54b66ea24504c582d15e25, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_490b645cee54b66ea24504c582d15e25 == cache_frame_490b645cee54b66ea24504c582d15e25) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_490b645cee54b66ea24504c582d15e25); - cache_frame_490b645cee54b66ea24504c582d15e25 = NULL; - } - - assertFrameObject(frame_490b645cee54b66ea24504c582d15e25); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__22_get_intermediate_layers(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_batch_size = NULL; - PyObject *var_seq_len = NULL; - PyObject *var__ = NULL; - PyObject *var_cls_tokens = NULL; - PyObject *var_features = NULL; - PyObject *var_rel_pos_bias = NULL; - PyObject *var_blk = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_ae30f9a36795259179b59fe1c61f577b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_ae30f9a36795259179b59fe1c61f577b = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ae30f9a36795259179b59fe1c61f577b)) { - Py_XDECREF(cache_frame_ae30f9a36795259179b59fe1c61f577b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ae30f9a36795259179b59fe1c61f577b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ae30f9a36795259179b59fe1c61f577b = MAKE_FUNCTION_FRAME(codeobj_ae30f9a36795259179b59fe1c61f577b, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ae30f9a36795259179b59fe1c61f577b->m_type_description == NULL); - frame_ae30f9a36795259179b59fe1c61f577b = cache_frame_ae30f9a36795259179b59fe1c61f577b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ae30f9a36795259179b59fe1c61f577b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ae30f9a36795259179b59fe1c61f577b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 357; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[137], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_x); - tmp_called_instance_2 = par_x; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 358; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[56]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 358; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 358; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 358; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_5; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooo"; - exception_lineno = 358; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[71]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooo"; - exception_lineno = 358; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_6); - var_batch_size = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - assert(var_seq_len == NULL); - Py_INCREF(tmp_assign_source_7); - var_seq_len = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_8); - var__ = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 360; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[138]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_2 = var_batch_size; - tmp_args_element_name_3 = mod_consts[82]; - tmp_args_element_name_4 = mod_consts[82]; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 360; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_9 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[176], - call_args - ); - } - - Py_DECREF(tmp_called_instance_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_cls_tokens == NULL); - var_cls_tokens = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 361; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[72]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 361; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_cls_tokens); - tmp_tuple_element_2 = var_cls_tokens; - tmp_tuple_element_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 361; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = par_x; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_tuple_element_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[177]); - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 361; - tmp_assign_source_10 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 361; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 362; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[139]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(par_x); - tmp_left_name_1 = par_x; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 363; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[139]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_11 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 364; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_5 = par_x; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 364; - tmp_assign_source_12 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[141], tmp_args_element_name_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = PyList_New(0); - assert(var_features == NULL); - var_features = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_instance_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 367; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[115]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - Py_DECREF(tmp_compexpr_left_2); - if (tmp_condition_result_2 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 367; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 367; - tmp_assign_source_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[115]); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_assign_source_14 = Py_None; - Py_INCREF(tmp_assign_source_14); - condexpr_end_1:; - assert(var_rel_pos_bias == NULL); - var_rel_pos_bias = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[155]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_15 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_15; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_16 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_16 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 368; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_17 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_blk; - var_blk = tmp_assign_source_17; - Py_INCREF(var_blk); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - CHECK_OBJECT(var_blk); - tmp_called_name_2 = var_blk; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[78]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 369; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_6 = par_x; - if (var_rel_pos_bias == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 369; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_7 = var_rel_pos_bias; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 369; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_18 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_6; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_8; - if (var_features == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[180]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 370; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_6 = var_features; - CHECK_OBJECT(par_x); - tmp_args_element_name_8 = par_x; - frame_ae30f9a36795259179b59fe1c61f577b->m_frame.f_lineno = 370; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_6, mod_consts[181], tmp_args_element_name_8); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_features == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[180]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 372; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_features; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ae30f9a36795259179b59fe1c61f577b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ae30f9a36795259179b59fe1c61f577b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ae30f9a36795259179b59fe1c61f577b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ae30f9a36795259179b59fe1c61f577b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ae30f9a36795259179b59fe1c61f577b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ae30f9a36795259179b59fe1c61f577b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ae30f9a36795259179b59fe1c61f577b, - type_description_1, - par_self, - par_x, - var_batch_size, - var_seq_len, - var__, - var_cls_tokens, - var_features, - var_rel_pos_bias, - var_blk - ); - - - // Release cached frame if used for exception. - if (frame_ae30f9a36795259179b59fe1c61f577b == cache_frame_ae30f9a36795259179b59fe1c61f577b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ae30f9a36795259179b59fe1c61f577b); - cache_frame_ae30f9a36795259179b59fe1c61f577b = NULL; - } - - assertFrameObject(frame_ae30f9a36795259179b59fe1c61f577b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - CHECK_OBJECT(var_seq_len); - Py_DECREF(var_seq_len); - var_seq_len = NULL; - CHECK_OBJECT(var__); - Py_DECREF(var__); - var__ = NULL; - Py_XDECREF(var_cls_tokens); - var_cls_tokens = NULL; - Py_XDECREF(var_features); - var_features = NULL; - Py_XDECREF(var_rel_pos_bias); - var_rel_pos_bias = NULL; - Py_XDECREF(var_blk); - var_blk = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_len); - var_seq_len = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_cls_tokens); - var_cls_tokens = NULL; - Py_XDECREF(var_features); - var_features = NULL; - Py_XDECREF(var_rel_pos_bias); - var_rel_pos_bias = NULL; - Py_XDECREF(var_blk); - var_blk = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__23_interpolate_pos_embed(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - PyObject *par_checkpoint_model = python_pars[1]; - PyObject *var_pos_embed_checkpoint = NULL; - PyObject *var_embedding_size = NULL; - PyObject *var_num_patches = NULL; - PyObject *var_num_extra_tokens = NULL; - PyObject *var_orig_size = NULL; - PyObject *var_new_size = NULL; - PyObject *var_extra_tokens = NULL; - PyObject *var_pos_tokens = NULL; - PyObject *var_new_pos_embed = NULL; - struct Nuitka_FrameObject *frame_f1a5127b96c07704e8fb5584f8d146f7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_f1a5127b96c07704e8fb5584f8d146f7 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f1a5127b96c07704e8fb5584f8d146f7)) { - Py_XDECREF(cache_frame_f1a5127b96c07704e8fb5584f8d146f7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f1a5127b96c07704e8fb5584f8d146f7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f1a5127b96c07704e8fb5584f8d146f7 = MAKE_FUNCTION_FRAME(codeobj_f1a5127b96c07704e8fb5584f8d146f7, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f1a5127b96c07704e8fb5584f8d146f7->m_type_description == NULL); - frame_f1a5127b96c07704e8fb5584f8d146f7 = cache_frame_f1a5127b96c07704e8fb5584f8d146f7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f1a5127b96c07704e8fb5584f8d146f7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f1a5127b96c07704e8fb5584f8d146f7) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[139]; - CHECK_OBJECT(par_checkpoint_model); - tmp_compexpr_right_1 = par_checkpoint_model; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_checkpoint_model); - tmp_expression_name_1 = par_checkpoint_model; - tmp_subscript_name_1 = mod_consts[139]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 377; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[182]); - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_pos_embed_checkpoint == NULL); - var_pos_embed_checkpoint = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_pos_embed_checkpoint); - tmp_expression_name_3 = var_pos_embed_checkpoint; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[70]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[82]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, -1); - Py_DECREF(tmp_expression_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_embedding_size == NULL); - var_embedding_size = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(par_model); - tmp_expression_name_5 = par_model; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[137]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[120]); - Py_DECREF(tmp_expression_name_4); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_num_patches == NULL); - var_num_patches = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_3; - PyObject *tmp_right_name_1; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[183]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 380; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_model; - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[139]); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[70]); - Py_DECREF(tmp_expression_name_7); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[184]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_3, -2); - Py_DECREF(tmp_expression_name_6); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_num_patches); - tmp_right_name_1 = var_num_patches; - tmp_assign_source_4 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_num_extra_tokens == NULL); - var_num_extra_tokens = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_int_arg_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_4; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - if (var_pos_embed_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[185]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 382; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = var_pos_embed_checkpoint; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[70]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[184]; - tmp_left_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_4, -2); - Py_DECREF(tmp_expression_name_9); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_num_extra_tokens); - tmp_right_name_2 = var_num_extra_tokens; - tmp_left_name_2 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_left_name_3); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_3 = mod_consts[186]; - tmp_int_arg_1 = BINARY_OPERATION_POW_OBJECT_OBJECT_FLOAT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_int_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_5 = PyNumber_Int(tmp_int_arg_1); - Py_DECREF(tmp_int_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_orig_size == NULL); - var_orig_size = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_int_arg_2; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - if (var_num_patches == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[120]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 384; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = var_num_patches; - tmp_right_name_4 = mod_consts[186]; - tmp_int_arg_2 = BINARY_OPERATION_POW_OBJECT_OBJECT_FLOAT(tmp_left_name_4, tmp_right_name_4); - if (tmp_int_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = PyNumber_Int(tmp_int_arg_2); - Py_DECREF(tmp_int_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_new_size == NULL); - var_new_size = tmp_assign_source_6; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(var_orig_size); - tmp_compexpr_left_2 = var_orig_size; - CHECK_OBJECT(var_new_size); - tmp_compexpr_right_2 = var_new_size; - tmp_condition_result_2 = RICH_COMPARE_NE_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_1; - tmp_called_name_1 = LOOKUP_BUILTIN(mod_consts[187]); - assert(tmp_called_name_1 != NULL); - tmp_left_name_5 = mod_consts[188]; - CHECK_OBJECT(var_orig_size); - tmp_tuple_element_1 = var_orig_size; - tmp_right_name_5 = PyTuple_New(4); - PyTuple_SET_ITEM0(tmp_right_name_5, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_orig_size); - tmp_tuple_element_1 = var_orig_size; - PyTuple_SET_ITEM0(tmp_right_name_5, 1, tmp_tuple_element_1); - CHECK_OBJECT(var_new_size); - tmp_tuple_element_1 = var_new_size; - PyTuple_SET_ITEM0(tmp_right_name_5, 2, tmp_tuple_element_1); - CHECK_OBJECT(var_new_size); - tmp_tuple_element_1 = var_new_size; - PyTuple_SET_ITEM0(tmp_right_name_5, 3, tmp_tuple_element_1); - tmp_args_element_name_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 387; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_5; - PyObject *tmp_tuple_element_2; - if (var_pos_embed_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[185]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = var_pos_embed_checkpoint; - tmp_tuple_element_2 = mod_consts[189]; - tmp_subscript_name_5 = PyTuple_New(2); - { - PyObject *tmp_stop_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 0, tmp_tuple_element_2); - if (var_num_extra_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[190]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_stop_name_1 = var_num_extra_tokens; - tmp_tuple_element_2 = MAKE_SLICEOBJ1(tmp_stop_name_1); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_5, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_subscript_name_5); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_5); - Py_DECREF(tmp_subscript_name_5); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_extra_tokens == NULL); - var_extra_tokens = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_6; - PyObject *tmp_tuple_element_3; - if (var_pos_embed_checkpoint == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[185]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 390; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = var_pos_embed_checkpoint; - tmp_tuple_element_3 = mod_consts[189]; - tmp_subscript_name_6 = PyTuple_New(2); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_2; - PyTuple_SET_ITEM0(tmp_subscript_name_6, 0, tmp_tuple_element_3); - if (var_num_extra_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[190]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 390; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_start_name_1 = var_num_extra_tokens; - tmp_stop_name_2 = Py_None; - tmp_tuple_element_3 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_2); - assert(!(tmp_tuple_element_3 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_6, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_subscript_name_6); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_assign_source_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_12, tmp_subscript_name_6); - Py_DECREF(tmp_subscript_name_6); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 390; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_pos_tokens == NULL); - var_pos_tokens = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(var_pos_tokens); - tmp_called_instance_3 = var_pos_tokens; - tmp_args_element_name_2 = mod_consts[82]; - CHECK_OBJECT(var_orig_size); - tmp_args_element_name_3 = var_orig_size; - CHECK_OBJECT(var_orig_size); - tmp_args_element_name_4 = var_orig_size; - CHECK_OBJECT(var_embedding_size); - tmp_args_element_name_5 = var_embedding_size; - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 391; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_called_instance_2 = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_3, - mod_consts[81], - call_args - ); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 391; - tmp_assign_source_9 = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_2, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_pos_tokens; - var_pos_tokens = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_tuple_element_5; - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[17]); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[192]); - Py_DECREF(tmp_expression_name_14); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[193]); - Py_DECREF(tmp_expression_name_13); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_pos_tokens); - tmp_tuple_element_4 = var_pos_tokens; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_4); - tmp_dict_key_1 = mod_consts[56]; - CHECK_OBJECT(var_new_size); - tmp_tuple_element_5 = var_new_size; - tmp_dict_value_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_dict_value_1, 0, tmp_tuple_element_5); - CHECK_OBJECT(var_new_size); - tmp_tuple_element_5 = var_new_size; - PyTuple_SET_ITEM0(tmp_dict_value_1, 1, tmp_tuple_element_5); - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[194]; - tmp_dict_value_1 = mod_consts[195]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[196]; - tmp_dict_value_1 = Py_False; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 392; - tmp_assign_source_10 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_pos_tokens; - var_pos_tokens = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(var_pos_tokens); - tmp_called_instance_5 = var_pos_tokens; - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 394; - tmp_called_instance_4 = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_5, - mod_consts[51], - &PyTuple_GET_ITEM(mod_consts[197], 0) - ); - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 394; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 394; - tmp_assign_source_11 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[48], - &PyTuple_GET_ITEM(mod_consts[93], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 394; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_pos_tokens; - var_pos_tokens = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_6; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[72]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_extra_tokens); - tmp_tuple_element_7 = var_extra_tokens; - tmp_tuple_element_6 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_6, 0, tmp_tuple_element_7); - CHECK_OBJECT(var_pos_tokens); - tmp_tuple_element_7 = var_pos_tokens; - PyTuple_SET_ITEM0(tmp_tuple_element_6, 1, tmp_tuple_element_7); - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_6); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[177]); - frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame.f_lineno = 395; - tmp_assign_source_12 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_new_pos_embed == NULL); - var_new_pos_embed = tmp_assign_source_12; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(var_new_pos_embed); - tmp_ass_subvalue_1 = var_new_pos_embed; - CHECK_OBJECT(par_checkpoint_model); - tmp_ass_subscribed_1 = par_checkpoint_model; - tmp_ass_subscript_1 = mod_consts[139]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - branch_no_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f1a5127b96c07704e8fb5584f8d146f7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f1a5127b96c07704e8fb5584f8d146f7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f1a5127b96c07704e8fb5584f8d146f7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f1a5127b96c07704e8fb5584f8d146f7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f1a5127b96c07704e8fb5584f8d146f7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f1a5127b96c07704e8fb5584f8d146f7, - type_description_1, - par_model, - par_checkpoint_model, - var_pos_embed_checkpoint, - var_embedding_size, - var_num_patches, - var_num_extra_tokens, - var_orig_size, - var_new_size, - var_extra_tokens, - var_pos_tokens, - var_new_pos_embed - ); - - - // Release cached frame if used for exception. - if (frame_f1a5127b96c07704e8fb5584f8d146f7 == cache_frame_f1a5127b96c07704e8fb5584f8d146f7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f1a5127b96c07704e8fb5584f8d146f7); - cache_frame_f1a5127b96c07704e8fb5584f8d146f7 = NULL; - } - - assertFrameObject(frame_f1a5127b96c07704e8fb5584f8d146f7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(par_checkpoint_model); - par_checkpoint_model = NULL; - Py_XDECREF(var_pos_embed_checkpoint); - var_pos_embed_checkpoint = NULL; - Py_XDECREF(var_embedding_size); - var_embedding_size = NULL; - Py_XDECREF(var_num_patches); - var_num_patches = NULL; - Py_XDECREF(var_num_extra_tokens); - var_num_extra_tokens = NULL; - Py_XDECREF(var_orig_size); - var_orig_size = NULL; - Py_XDECREF(var_new_size); - var_new_size = NULL; - Py_XDECREF(var_extra_tokens); - var_extra_tokens = NULL; - Py_XDECREF(var_pos_tokens); - var_pos_tokens = NULL; - Py_XDECREF(var_new_pos_embed); - var_new_pos_embed = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(par_checkpoint_model); - par_checkpoint_model = NULL; - Py_XDECREF(var_pos_embed_checkpoint); - var_pos_embed_checkpoint = NULL; - Py_XDECREF(var_embedding_size); - var_embedding_size = NULL; - Py_XDECREF(var_num_patches); - var_num_patches = NULL; - Py_XDECREF(var_num_extra_tokens); - var_num_extra_tokens = NULL; - Py_XDECREF(var_orig_size); - var_orig_size = NULL; - Py_XDECREF(var_new_size); - var_new_size = NULL; - Py_XDECREF(var_extra_tokens); - var_extra_tokens = NULL; - Py_XDECREF(var_pos_tokens); - var_pos_tokens = NULL; - Py_XDECREF(var_new_pos_embed); - var_new_pos_embed = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__24_convert_weights_to_fp16(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - PyObject *var__convert_weights_to_fp16 = NULL; - struct Nuitka_FrameObject *frame_cdc1bdc0d0f99246b06c37d69566725f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_cdc1bdc0d0f99246b06c37d69566725f = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$eva_vit$$$function__24_convert_weights_to_fp16$$$function__1__convert_weights_to_fp16(); - - assert(var__convert_weights_to_fp16 == NULL); - var__convert_weights_to_fp16 = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_cdc1bdc0d0f99246b06c37d69566725f)) { - Py_XDECREF(cache_frame_cdc1bdc0d0f99246b06c37d69566725f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_cdc1bdc0d0f99246b06c37d69566725f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_cdc1bdc0d0f99246b06c37d69566725f = MAKE_FUNCTION_FRAME(codeobj_cdc1bdc0d0f99246b06c37d69566725f, module_models$eva_vit, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_cdc1bdc0d0f99246b06c37d69566725f->m_type_description == NULL); - frame_cdc1bdc0d0f99246b06c37d69566725f = cache_frame_cdc1bdc0d0f99246b06c37d69566725f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_cdc1bdc0d0f99246b06c37d69566725f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_cdc1bdc0d0f99246b06c37d69566725f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_model); - tmp_called_instance_1 = par_model; - CHECK_OBJECT(var__convert_weights_to_fp16); - tmp_args_element_name_1 = var__convert_weights_to_fp16; - frame_cdc1bdc0d0f99246b06c37d69566725f->m_frame.f_lineno = 414; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[158], tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 414; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cdc1bdc0d0f99246b06c37d69566725f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cdc1bdc0d0f99246b06c37d69566725f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_cdc1bdc0d0f99246b06c37d69566725f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_cdc1bdc0d0f99246b06c37d69566725f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_cdc1bdc0d0f99246b06c37d69566725f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_cdc1bdc0d0f99246b06c37d69566725f, - type_description_1, - par_model, - var__convert_weights_to_fp16 - ); - - - // Release cached frame if used for exception. - if (frame_cdc1bdc0d0f99246b06c37d69566725f == cache_frame_cdc1bdc0d0f99246b06c37d69566725f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_cdc1bdc0d0f99246b06c37d69566725f); - cache_frame_cdc1bdc0d0f99246b06c37d69566725f = NULL; - } - - assertFrameObject(frame_cdc1bdc0d0f99246b06c37d69566725f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var__convert_weights_to_fp16); - var__convert_weights_to_fp16 = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var__convert_weights_to_fp16); - var__convert_weights_to_fp16 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__24_convert_weights_to_fp16$$$function__1__convert_weights_to_fp16(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_l = python_pars[0]; - struct Nuitka_FrameObject *frame_798eb7b5936251f17f02ea63a4c80711; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_798eb7b5936251f17f02ea63a4c80711 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_798eb7b5936251f17f02ea63a4c80711)) { - Py_XDECREF(cache_frame_798eb7b5936251f17f02ea63a4c80711); - -#if _DEBUG_REFCOUNTS - if (cache_frame_798eb7b5936251f17f02ea63a4c80711 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_798eb7b5936251f17f02ea63a4c80711 = MAKE_FUNCTION_FRAME(codeobj_798eb7b5936251f17f02ea63a4c80711, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_798eb7b5936251f17f02ea63a4c80711->m_type_description == NULL); - frame_798eb7b5936251f17f02ea63a4c80711 = cache_frame_798eb7b5936251f17f02ea63a4c80711; - - // Push the new frame as the currently active one. - pushFrameStack(frame_798eb7b5936251f17f02ea63a4c80711); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_798eb7b5936251f17f02ea63a4c80711) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_l); - tmp_isinstance_inst_1 = par_l; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[201]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = PyTuple_New(3); - { - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyTuple_SET_ITEM(tmp_isinstance_cls_1, 0, tmp_tuple_element_1); - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[121]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_isinstance_cls_1, 1, tmp_tuple_element_1); - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[18]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_isinstance_cls_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_isinstance_cls_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(par_l); - tmp_expression_name_5 = par_l; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[79]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[163]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_798eb7b5936251f17f02ea63a4c80711->m_frame.f_lineno = 404; - tmp_assattr_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[202]); - Py_DECREF(tmp_called_instance_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - if (par_l == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[203]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 404; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_l; - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[79]); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_1); - - exception_lineno = 404; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[163], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_7; - if (par_l == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[203]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 405; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_l; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[80]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_assattr_target_2; - PyObject *tmp_expression_name_10; - if (par_l == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[203]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_l; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[80]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[163]); - Py_DECREF(tmp_expression_name_8); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_798eb7b5936251f17f02ea63a4c80711->m_frame.f_lineno = 406; - tmp_assattr_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[202]); - Py_DECREF(tmp_called_instance_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - if (par_l == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[203]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_l; - tmp_assattr_target_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[80]); - if (tmp_assattr_target_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_2); - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[163], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - Py_DECREF(tmp_assattr_target_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - branch_no_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_798eb7b5936251f17f02ea63a4c80711); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_798eb7b5936251f17f02ea63a4c80711); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_798eb7b5936251f17f02ea63a4c80711, exception_lineno); - } else if (exception_tb->tb_frame != &frame_798eb7b5936251f17f02ea63a4c80711->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_798eb7b5936251f17f02ea63a4c80711, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_798eb7b5936251f17f02ea63a4c80711, - type_description_1, - par_l - ); - - - // Release cached frame if used for exception. - if (frame_798eb7b5936251f17f02ea63a4c80711 == cache_frame_798eb7b5936251f17f02ea63a4c80711) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_798eb7b5936251f17f02ea63a4c80711); - cache_frame_798eb7b5936251f17f02ea63a4c80711 = NULL; - } - - assertFrameObject(frame_798eb7b5936251f17f02ea63a4c80711); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_l); - par_l = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_l); - par_l = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$eva_vit$$$function__25_create_eva_vit_g(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_img_size = python_pars[0]; - PyObject *par_drop_path_rate = python_pars[1]; - PyObject *par_use_checkpoint = python_pars[2]; - PyObject *par_precision = python_pars[3]; - PyObject *var_model = NULL; - PyObject *var_url = NULL; - PyObject *var_cached_file = NULL; - PyObject *var_state_dict = NULL; - PyObject *var_incompatible_keys = NULL; - struct Nuitka_FrameObject *frame_dfea8ca4ca30978daca1027e66969d32; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_dfea8ca4ca30978daca1027e66969d32 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_dfea8ca4ca30978daca1027e66969d32)) { - Py_XDECREF(cache_frame_dfea8ca4ca30978daca1027e66969d32); - -#if _DEBUG_REFCOUNTS - if (cache_frame_dfea8ca4ca30978daca1027e66969d32 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_dfea8ca4ca30978daca1027e66969d32 = MAKE_FUNCTION_FRAME(codeobj_dfea8ca4ca30978daca1027e66969d32, module_models$eva_vit, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_dfea8ca4ca30978daca1027e66969d32->m_type_description == NULL); - frame_dfea8ca4ca30978daca1027e66969d32 = cache_frame_dfea8ca4ca30978daca1027e66969d32; - - // Push the new frame as the currently active one. - pushFrameStack(frame_dfea8ca4ca30978daca1027e66969d32); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_dfea8ca4ca30978daca1027e66969d32) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[204]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[204]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[118]; - CHECK_OBJECT(par_img_size); - tmp_dict_value_1 = par_img_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 11 ); - { - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_2; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[119]; - tmp_dict_value_1 = mod_consts[205]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[206]; - tmp_dict_value_1 = Py_False; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[134]; - tmp_dict_value_1 = mod_consts[207]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[148]; - tmp_dict_value_1 = mod_consts[208]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[25]; - tmp_dict_value_1 = mod_consts[209]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[150]; - tmp_dict_value_1 = mod_consts[210]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[98]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[211]; - CHECK_OBJECT(par_drop_path_rate); - tmp_dict_value_1 = par_drop_path_rate; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[154]; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[212]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[212]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[173]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[213]); - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 428; - tmp_dict_value_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[143]; - CHECK_OBJECT(par_use_checkpoint); - tmp_dict_value_1 = par_use_checkpoint; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 418; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[214]; - assert(var_url == NULL); - Py_INCREF(tmp_assign_source_2); - var_url = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[215]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[215]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_url); - tmp_tuple_element_2 = var_url; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[216]); - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 432; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_cached_file == NULL); - var_cached_file = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_4; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[217]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_cached_file); - tmp_tuple_element_3 = var_cached_file; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[218]); - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 435; - tmp_assign_source_4 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_state_dict == NULL); - var_state_dict = tmp_assign_source_4; - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[219]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[219]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_model); - tmp_args_element_name_1 = var_model; - CHECK_OBJECT(var_state_dict); - tmp_args_element_name_2 = var_state_dict; - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 436; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(var_model); - tmp_expression_name_3 = var_model; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[220]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_state_dict); - tmp_tuple_element_4 = var_state_dict; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[221]); - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 438; - tmp_assign_source_5 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_incompatible_keys == NULL); - var_incompatible_keys = tmp_assign_source_5; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_precision); - tmp_compexpr_left_1 = par_precision; - tmp_compexpr_right_1 = mod_consts[222]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 445; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_7; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[223]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[223]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[183]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 447; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_model; - frame_dfea8ca4ca30978daca1027e66969d32->m_frame.f_lineno = 447; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_1:; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[183]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 448; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_model; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dfea8ca4ca30978daca1027e66969d32); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dfea8ca4ca30978daca1027e66969d32); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dfea8ca4ca30978daca1027e66969d32); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_dfea8ca4ca30978daca1027e66969d32, exception_lineno); - } else if (exception_tb->tb_frame != &frame_dfea8ca4ca30978daca1027e66969d32->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_dfea8ca4ca30978daca1027e66969d32, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_dfea8ca4ca30978daca1027e66969d32, - type_description_1, - par_img_size, - par_drop_path_rate, - par_use_checkpoint, - par_precision, - var_model, - var_url, - var_cached_file, - var_state_dict, - var_incompatible_keys - ); - - - // Release cached frame if used for exception. - if (frame_dfea8ca4ca30978daca1027e66969d32 == cache_frame_dfea8ca4ca30978daca1027e66969d32) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_dfea8ca4ca30978daca1027e66969d32); - cache_frame_dfea8ca4ca30978daca1027e66969d32 = NULL; - } - - assertFrameObject(frame_dfea8ca4ca30978daca1027e66969d32); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - CHECK_OBJECT(par_drop_path_rate); - Py_DECREF(par_drop_path_rate); - par_drop_path_rate = NULL; - CHECK_OBJECT(par_use_checkpoint); - Py_DECREF(par_use_checkpoint); - par_use_checkpoint = NULL; - CHECK_OBJECT(par_precision); - Py_DECREF(par_precision); - par_precision = NULL; - Py_XDECREF(var_model); - var_model = NULL; - CHECK_OBJECT(var_url); - Py_DECREF(var_url); - var_url = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - CHECK_OBJECT(var_incompatible_keys); - Py_DECREF(var_incompatible_keys); - var_incompatible_keys = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_img_size); - Py_DECREF(par_img_size); - par_img_size = NULL; - CHECK_OBJECT(par_drop_path_rate); - Py_DECREF(par_drop_path_rate); - par_drop_path_rate = NULL; - CHECK_OBJECT(par_use_checkpoint); - Py_DECREF(par_use_checkpoint); - par_use_checkpoint = NULL; - CHECK_OBJECT(par_precision); - Py_DECREF(par_precision); - par_precision = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_url); - var_url = NULL; - Py_XDECREF(var_cached_file); - var_cached_file = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_incompatible_keys); - var_incompatible_keys = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__10_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__10_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[277], -#endif - codeobj_d5219c5b01b2e872456147b340beeec5, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__11___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__11___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[280], -#endif - codeobj_b2d24eeaac09f42ae30d5aa04029c58d, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__12_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__12_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[281], -#endif - codeobj_446336bff265ef3598d46cbfaec00955, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__13___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__13___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[282], -#endif - codeobj_90888ee108de7d41b39f1ce4c7fc2733, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__14_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__14_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[283], -#endif - codeobj_3611403861dabc1175f5dc9fc6560deb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__15___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__15___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[290], -#endif - codeobj_98263e472fd41a406a6243a5fb0fe540, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__16_fix_init_weight() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__16_fix_init_weight, - mod_consts[160], -#if PYTHON_VERSION >= 0x300 - mod_consts[291], -#endif - codeobj_608fe3c25a20e7407073e8ada1e4a0a2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__16_fix_init_weight$$$function__1_rescale() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__16_fix_init_weight$$$function__1_rescale, - mod_consts[161], -#if PYTHON_VERSION >= 0x300 - mod_consts[162], -#endif - codeobj_b5558490320606969b02cc72fbce71c2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__17__init_weights() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__17__init_weights, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[292], -#endif - codeobj_d3ae6dfcfdfb59872f24376c5abceab9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__18_get_classifier() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__18_get_classifier, - mod_consts[293], -#if PYTHON_VERSION >= 0x300 - mod_consts[294], -#endif - codeobj_4767d123c180f4ce20b41f46dcfe0fa7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__19_reset_classifier(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__19_reset_classifier, - mod_consts[295], -#if PYTHON_VERSION >= 0x300 - mod_consts[296], -#endif - codeobj_f2a65ca76842944dd804c12b66e87a5d, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__1__cfg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__1__cfg, - mod_consts[249], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_1a25f4e6272cd37b0391185d6e15332d, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__20_forward_features() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__20_forward_features, - mod_consts[179], -#if PYTHON_VERSION >= 0x300 - mod_consts[297], -#endif - codeobj_2192bdbd8e91262dd573c14e59b5b144, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__21_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__21_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[298], -#endif - codeobj_490b645cee54b66ea24504c582d15e25, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__22_get_intermediate_layers() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__22_get_intermediate_layers, - mod_consts[299], -#if PYTHON_VERSION >= 0x300 - mod_consts[300], -#endif - codeobj_ae30f9a36795259179b59fe1c61f577b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__23_interpolate_pos_embed() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__23_interpolate_pos_embed, - mod_consts[219], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_f1a5127b96c07704e8fb5584f8d146f7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__24_convert_weights_to_fp16(PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__24_convert_weights_to_fp16, - mod_consts[223], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_cdc1bdc0d0f99246b06c37d69566725f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$eva_vit, - mod_consts[200], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__24_convert_weights_to_fp16$$$function__1__convert_weights_to_fp16() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__24_convert_weights_to_fp16$$$function__1__convert_weights_to_fp16, - mod_consts[198], -#if PYTHON_VERSION >= 0x300 - mod_consts[199], -#endif - codeobj_798eb7b5936251f17f02ea63a4c80711, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__25_create_eva_vit_g(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__25_create_eva_vit_g, - mod_consts[302], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_dfea8ca4ca30978daca1027e66969d32, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__2___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__2___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[261], -#endif - codeobj_cbbf930efb7d03951d3f0d44d452b5c5, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__3_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__3_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[263], -#endif - codeobj_606b69ee75e6213fc8a924a5ab3c203e, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__4_extra_repr(PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__4_extra_repr, - mod_consts[266], -#if PYTHON_VERSION >= 0x300 - mod_consts[267], -#endif - codeobj_0382e55983fd56587f1869ac50f89780, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__5___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__5___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[270], -#endif - codeobj_aca10258238f16e5d32cdec7d38f6aa1, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__6_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__6_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[271], -#endif - codeobj_a9e2d880945280c132cf97a150626697, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__7___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__7___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[273], -#endif - codeobj_dee30e4e144137543edf2e9eb10bf246, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__8_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__8_forward, - mod_consts[262], -#if PYTHON_VERSION >= 0x300 - mod_consts[274], -#endif - codeobj_9fd144b2d64377624d1cbd90f98752ee, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$eva_vit$$$function__9___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$eva_vit$$$function__9___init__, - mod_consts[9], -#if PYTHON_VERSION >= 0x300 - mod_consts[276], -#endif - codeobj_d92c71c73bff0f22de3676bfa424f040, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$eva_vit, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$eva_vit[] = { - impl_models$eva_vit$$$function__16_fix_init_weight$$$function__1_rescale, - impl_models$eva_vit$$$function__24_convert_weights_to_fp16$$$function__1__convert_weights_to_fp16, - impl_models$eva_vit$$$function__1__cfg, - impl_models$eva_vit$$$function__2___init__, - impl_models$eva_vit$$$function__3_forward, - impl_models$eva_vit$$$function__4_extra_repr, - impl_models$eva_vit$$$function__5___init__, - impl_models$eva_vit$$$function__6_forward, - impl_models$eva_vit$$$function__7___init__, - impl_models$eva_vit$$$function__8_forward, - impl_models$eva_vit$$$function__9___init__, - impl_models$eva_vit$$$function__10_forward, - impl_models$eva_vit$$$function__11___init__, - impl_models$eva_vit$$$function__12_forward, - impl_models$eva_vit$$$function__13___init__, - impl_models$eva_vit$$$function__14_forward, - impl_models$eva_vit$$$function__15___init__, - impl_models$eva_vit$$$function__16_fix_init_weight, - impl_models$eva_vit$$$function__17__init_weights, - impl_models$eva_vit$$$function__18_get_classifier, - impl_models$eva_vit$$$function__19_reset_classifier, - impl_models$eva_vit$$$function__20_forward_features, - impl_models$eva_vit$$$function__21_forward, - impl_models$eva_vit$$$function__22_get_intermediate_layers, - impl_models$eva_vit$$$function__23_interpolate_pos_embed, - impl_models$eva_vit$$$function__24_convert_weights_to_fp16, - impl_models$eva_vit$$$function__25_create_eva_vit_g, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$eva_vit; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$eva_vit) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$eva_vit[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$eva_vit, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$eva_vit(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$eva_vit = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.eva_vit: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.eva_vit: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.eva_vit: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$eva_vit\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$eva_vit = MODULE_DICT(module_models$eva_vit); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$eva_vit, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$eva_vit, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$eva_vit, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$eva_vit, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$eva_vit, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$eva_vit); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$eva_vit); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_5_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_6_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__bases = NULL; - PyObject *tmp_class_creation_6__bases_orig = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - struct Nuitka_FrameObject *frame_ca7d5a72cb9493a006e151c55e0654a6; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$eva_vit$$$class__1_DropPath_32 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_1347fc2fd0cc8327fc442e80aef3d34a_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *locals_models$eva_vit$$$class__2_Mlp_46 = NULL; - struct Nuitka_FrameObject *frame_b7e284487c7a724fe375c971bffefa37_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_b7e284487c7a724fe375c971bffefa37_3 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *locals_models$eva_vit$$$class__3_Attention_66 = NULL; - struct Nuitka_FrameObject *frame_2edfa8351c80e7d7fdb434fec9d71413_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *locals_models$eva_vit$$$class__4_Block_153 = NULL; - struct Nuitka_FrameObject *frame_307103cd4c8c91221c1b5d3bbd668de5_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5 = NULL; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *locals_models$eva_vit$$$class__5_PatchEmbed_185 = NULL; - struct Nuitka_FrameObject *frame_1cd964112254225e4c50e7367fadca6e_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_1cd964112254225e4c50e7367fadca6e_6 = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *locals_models$eva_vit$$$class__6_RelativePositionBias_209 = NULL; - struct Nuitka_FrameObject *frame_1bb0233c85dac073bd221db7b8d08c7d_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7 = NULL; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *locals_models$eva_vit$$$class__7_VisionTransformer_248 = NULL; - struct Nuitka_FrameObject *frame_15d041386150a57970a9bb49e9945556_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_15d041386150a57970a9bb49e9945556_8 = NULL; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[224], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[225], tmp_assign_source_2); - } - // Frame without reuse. - frame_ca7d5a72cb9493a006e151c55e0654a6 = MAKE_MODULE_FRAME(codeobj_ca7d5a72cb9493a006e151c55e0654a6, module_models$eva_vit); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_ca7d5a72cb9493a006e151c55e0654a6); - assert(Py_REFCNT(frame_ca7d5a72cb9493a006e151c55e0654a6) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[226]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[226]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[227], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[226]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[226]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[228], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[229], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[167]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 8; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[167], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[230]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[231]; - tmp_level_name_2 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 9; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$eva_vit, - mod_consts[212], - mod_consts[41] - ); - } else { - tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[212]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[212], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[34]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 11; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[34], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[232]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 12; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$eva_vit, - mod_consts[17], - mod_consts[41] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[17]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_3; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[233]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = Py_None; - tmp_level_name_5 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 13; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_import_name_from_3 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$eva_vit, - mod_consts[17], - mod_consts[41] - ); - } else { - tmp_import_name_from_3 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[17]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$eva_vit, - mod_consts[192], - mod_consts[41] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[192]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[75], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_5; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[234]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = Py_None; - tmp_level_name_6 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 14; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_import_name_from_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$eva_vit, - mod_consts[235], - mod_consts[41] - ); - } else { - tmp_import_name_from_5 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[235]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$eva_vit, - mod_consts[178], - mod_consts[41] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[178]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[178], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[236]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[237]; - tmp_level_name_7 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 15; - tmp_assign_source_10 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_10; - } - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_7 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$eva_vit, - mod_consts[11], - mod_consts[41] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[11]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_8 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$eva_vit, - mod_consts[116], - mod_consts[41] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[116]); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[116], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_9; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_9 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$eva_vit, - mod_consts[156], - mod_consts[41] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[156]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[156], tmp_assign_source_13); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_10; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[238]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[239]; - tmp_level_name_8 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 16; - tmp_import_name_from_10 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_import_name_from_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$eva_vit, - mod_consts[240], - mod_consts[41] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[240]); - } - - Py_DECREF(tmp_import_name_from_10); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[240], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[241]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[242]; - tmp_level_name_9 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 17; - tmp_assign_source_15 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_15; - } - // Tried code: - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_11; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_11 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$eva_vit, - mod_consts[243], - mod_consts[41] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[243]); - } - - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[243], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_12; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_12 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$eva_vit, - mod_consts[244], - mod_consts[41] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[244]); - } - - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[244], tmp_assign_source_17); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[245]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = Py_None; - tmp_level_name_10 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 18; - tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[245], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_import_name_from_13; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[246]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$eva_vit; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[247]; - tmp_level_name_11 = mod_consts[41]; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 20; - tmp_import_name_from_13 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$eva_vit, - mod_consts[215], - mod_consts[41] - ); - } else { - tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[215]); - } - - Py_DECREF(tmp_import_name_from_13); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[215], tmp_assign_source_19); - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[248]; - Py_INCREF(tmp_defaults_1); - - - tmp_assign_source_20 = MAKE_FUNCTION_models$eva_vit$$$function__1__cfg(tmp_defaults_1); - - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[249], tmp_assign_source_20); - } - // Tried code: - { - PyObject *tmp_assign_source_21; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[250]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_assign_source_21 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_21, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_22 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_22; - } - { - PyObject *tmp_assign_source_23; - tmp_assign_source_23 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[251]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[41]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_24 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_24; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[252]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_25; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[252]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_tuple_element_2 = mod_consts[8]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 32; - tmp_assign_source_25 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_25; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[253]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[255]; - tmp_getattr_default_1 = mod_consts[256]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[255]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_3; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 32; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_3; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_26; - tmp_assign_source_26 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_26; - } - branch_end_2:; - { - PyObject *tmp_assign_source_27; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$eva_vit$$$class__1_DropPath_32 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[258]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[224], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[8]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - if (isFrameUnusable(cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2)) { - Py_XDECREF(cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2 = MAKE_FUNCTION_FRAME(codeobj_1347fc2fd0cc8327fc442e80aef3d34a, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2->m_type_description == NULL); - frame_1347fc2fd0cc8327fc442e80aef3d34a_2 = cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1347fc2fd0cc8327fc442e80aef3d34a_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1347fc2fd0cc8327fc442e80aef3d34a_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[260]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__2___init__(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__3_forward(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_dict_key_1 = mod_consts[264]; - tmp_dict_value_1 = PyObject_GetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[265]); - - if (tmp_dict_value_1 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_1 = (PyObject *)&PyUnicode_Type; - Py_INCREF(tmp_dict_value_1); - } - } - - tmp_annotations_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__4_extra_repr(tmp_annotations_1); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[266], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1347fc2fd0cc8327fc442e80aef3d34a_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1347fc2fd0cc8327fc442e80aef3d34a_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1347fc2fd0cc8327fc442e80aef3d34a_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1347fc2fd0cc8327fc442e80aef3d34a_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1347fc2fd0cc8327fc442e80aef3d34a_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1347fc2fd0cc8327fc442e80aef3d34a_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_1347fc2fd0cc8327fc442e80aef3d34a_2 == cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2); - cache_frame_1347fc2fd0cc8327fc442e80aef3d34a_2 = NULL; - } - - assertFrameObject(frame_1347fc2fd0cc8327fc442e80aef3d34a_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_5; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__1_DropPath_32, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - branch_no_4:; - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[8]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$eva_vit$$$class__1_DropPath_32; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 32; - tmp_assign_source_28 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_5; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_28; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_27 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_27); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_DECREF(locals_models$eva_vit$$$class__1_DropPath_32); - locals_models$eva_vit$$$class__1_DropPath_32 = NULL; - goto try_return_handler_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__1_DropPath_32); - locals_models$eva_vit$$$class__1_DropPath_32 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 32; - goto try_except_handler_3; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_27); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_29; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[250]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_assign_source_29 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_29, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_29; - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_30 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_30; - } - { - PyObject *tmp_assign_source_31; - tmp_assign_source_31 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[251]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[41]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_32 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_32; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[252]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[252]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_tuple_element_6 = mod_consts[104]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 46; - tmp_assign_source_33 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_33; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[253]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[255]; - tmp_getattr_default_2 = mod_consts[256]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[255]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_6; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 46; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_6; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_34; - } - branch_end_6:; - { - PyObject *tmp_assign_source_35; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$eva_vit$$$class__2_Mlp_46 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__2_Mlp_46, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[104]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__2_Mlp_46, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_8; - } - if (isFrameUnusable(cache_frame_b7e284487c7a724fe375c971bffefa37_3)) { - Py_XDECREF(cache_frame_b7e284487c7a724fe375c971bffefa37_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b7e284487c7a724fe375c971bffefa37_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b7e284487c7a724fe375c971bffefa37_3 = MAKE_FUNCTION_FRAME(codeobj_b7e284487c7a724fe375c971bffefa37, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b7e284487c7a724fe375c971bffefa37_3->m_type_description == NULL); - frame_b7e284487c7a724fe375c971bffefa37_3 = cache_frame_b7e284487c7a724fe375c971bffefa37_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b7e284487c7a724fe375c971bffefa37_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b7e284487c7a724fe375c971bffefa37_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - PyObject *tmp_tuple_element_8; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_tuple_element_8 = Py_None; - tmp_defaults_3 = PyTuple_New(4); - { - PyObject *tmp_expression_name_13; - PyTuple_SET_ITEM0(tmp_defaults_3, 0, tmp_tuple_element_8); - tmp_tuple_element_8 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_3, 1, tmp_tuple_element_8); - tmp_expression_name_13 = PyObject_GetItem(locals_models$eva_vit$$$class__2_Mlp_46, mod_consts[17]); - - if (tmp_expression_name_13 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_2 = "c"; - goto tuple_build_exception_3; - } - Py_INCREF(tmp_expression_name_13); - } - } - - tmp_tuple_element_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[269]); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_2 = "c"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_defaults_3, 2, tmp_tuple_element_8); - tmp_tuple_element_8 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_3, 3, tmp_tuple_element_8); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_defaults_3); - goto frame_exception_exit_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - - tmp_closure_1[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__5___init__(tmp_defaults_3, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__2_Mlp_46, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__6_forward(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__2_Mlp_46, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b7e284487c7a724fe375c971bffefa37_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b7e284487c7a724fe375c971bffefa37_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b7e284487c7a724fe375c971bffefa37_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b7e284487c7a724fe375c971bffefa37_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b7e284487c7a724fe375c971bffefa37_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b7e284487c7a724fe375c971bffefa37_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b7e284487c7a724fe375c971bffefa37_3 == cache_frame_b7e284487c7a724fe375c971bffefa37_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b7e284487c7a724fe375c971bffefa37_3); - cache_frame_b7e284487c7a724fe375c971bffefa37_3 = NULL; - } - - assertFrameObject(frame_b7e284487c7a724fe375c971bffefa37_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_8; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_8; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__2_Mlp_46, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_8; - } - branch_no_8:; - { - PyObject *tmp_assign_source_36; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_9; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_9 = mod_consts[104]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_9 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_9); - tmp_tuple_element_9 = locals_models$eva_vit$$$class__2_Mlp_46; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 46; - tmp_assign_source_36 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - - goto try_except_handler_8; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_36); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_35 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_35); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_DECREF(locals_models$eva_vit$$$class__2_Mlp_46); - locals_models$eva_vit$$$class__2_Mlp_46 = NULL; - goto try_return_handler_7; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__2_Mlp_46); - locals_models$eva_vit$$$class__2_Mlp_46 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_7; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 46; - goto try_except_handler_6; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[104], tmp_assign_source_35); - } - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_37; - PyObject *tmp_tuple_element_10; - PyObject *tmp_expression_name_14; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_tuple_element_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[250]); - if (tmp_tuple_element_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_assign_source_37 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_37, 0, tmp_tuple_element_10); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_37; - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_38 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_38; - } - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[251]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_15 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[41]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_40 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_40; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_16 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_16, mod_consts[252]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_11; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_17 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[252]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_tuple_element_11 = mod_consts[97]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_11 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 66; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_41; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_18; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_18 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_18, mod_consts[253]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_12; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[255]; - tmp_getattr_default_3 = mod_consts[256]; - tmp_tuple_element_12 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_19; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_19 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_19 == NULL)); - tmp_tuple_element_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[255]); - Py_DECREF(tmp_expression_name_19); - if (tmp_tuple_element_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_12); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_9; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 66; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_9; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_42; - tmp_assign_source_42 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_42; - } - branch_end_10:; - { - PyObject *tmp_assign_source_43; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$eva_vit$$$class__3_Attention_66 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__3_Attention_66, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_11; - } - tmp_dictset_value = mod_consts[97]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__3_Attention_66, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_11; - } - if (isFrameUnusable(cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4)) { - Py_XDECREF(cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4 = MAKE_FUNCTION_FRAME(codeobj_2edfa8351c80e7d7fdb434fec9d71413, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4->m_type_description == NULL); - frame_2edfa8351c80e7d7fdb434fec9d71413_4 = cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2edfa8351c80e7d7fdb434fec9d71413_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2edfa8351c80e7d7fdb434fec9d71413_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_4 = mod_consts[272]; - Py_INCREF(tmp_defaults_4); - - tmp_closure_2[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__7___init__(tmp_defaults_4, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__3_Attention_66, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - { - PyObject *tmp_defaults_5; - tmp_defaults_5 = mod_consts[260]; - Py_INCREF(tmp_defaults_5); - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__8_forward(tmp_defaults_5); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__3_Attention_66, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2edfa8351c80e7d7fdb434fec9d71413_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2edfa8351c80e7d7fdb434fec9d71413_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2edfa8351c80e7d7fdb434fec9d71413_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2edfa8351c80e7d7fdb434fec9d71413_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2edfa8351c80e7d7fdb434fec9d71413_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2edfa8351c80e7d7fdb434fec9d71413_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2edfa8351c80e7d7fdb434fec9d71413_4 == cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4); - cache_frame_2edfa8351c80e7d7fdb434fec9d71413_4 = NULL; - } - - assertFrameObject(frame_2edfa8351c80e7d7fdb434fec9d71413_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_11; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_11; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__3_Attention_66, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_11; - } - branch_no_12:; - { - PyObject *tmp_assign_source_44; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_13; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_13 = mod_consts[97]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_13); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_13 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_13); - tmp_tuple_element_13 = locals_models$eva_vit$$$class__3_Attention_66; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_13); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 66; - tmp_assign_source_44 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - - goto try_except_handler_11; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_44); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_43 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_43); - goto try_return_handler_11; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - Py_DECREF(locals_models$eva_vit$$$class__3_Attention_66); - locals_models$eva_vit$$$class__3_Attention_66 = NULL; - goto try_return_handler_10; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__3_Attention_66); - locals_models$eva_vit$$$class__3_Attention_66 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_10; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 66; - goto try_except_handler_9; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[97], tmp_assign_source_43); - } - goto try_end_5; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_45; - PyObject *tmp_tuple_element_14; - PyObject *tmp_expression_name_20; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_tuple_element_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[250]); - if (tmp_tuple_element_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_assign_source_45 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_45, 0, tmp_tuple_element_14); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_46; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_46 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[251]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_21 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[41]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_21, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_48 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_48; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_22; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_22 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_22, mod_consts[252]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_15; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_23 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[252]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_tuple_element_15 = mod_consts[149]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_15 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 153; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_49; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_24; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_24 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_24, mod_consts[253]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_16; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[255]; - tmp_getattr_default_4 = mod_consts[256]; - tmp_tuple_element_16 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_25; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_25 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_25 == NULL)); - tmp_tuple_element_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[255]); - Py_DECREF(tmp_expression_name_25); - if (tmp_tuple_element_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_16); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_12; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_12; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 153; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_12; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_50; - tmp_assign_source_50 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_50; - } - branch_end_14:; - { - PyObject *tmp_assign_source_51; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$eva_vit$$$class__4_Block_153 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_14; - } - tmp_dictset_value = mod_consts[149]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_14; - } - if (isFrameUnusable(cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5)) { - Py_XDECREF(cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5 = MAKE_FUNCTION_FRAME(codeobj_307103cd4c8c91221c1b5d3bbd668de5, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5->m_type_description == NULL); - frame_307103cd4c8c91221c1b5d3bbd668de5_5 = cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_307103cd4c8c91221c1b5d3bbd668de5_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_307103cd4c8c91221c1b5d3bbd668de5_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_6; - PyObject *tmp_tuple_element_17; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_tuple_element_17 = mod_consts[275]; - tmp_defaults_6 = PyTuple_New(11); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_expression_name_27; - PyTuple_SET_ITEM0(tmp_defaults_6, 0, tmp_tuple_element_17); - tmp_tuple_element_17 = Py_False; - PyTuple_SET_ITEM0(tmp_defaults_6, 1, tmp_tuple_element_17); - tmp_tuple_element_17 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_6, 2, tmp_tuple_element_17); - tmp_tuple_element_17 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_6, 3, tmp_tuple_element_17); - tmp_tuple_element_17 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_6, 4, tmp_tuple_element_17); - tmp_tuple_element_17 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_6, 5, tmp_tuple_element_17); - tmp_tuple_element_17 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_6, 6, tmp_tuple_element_17); - tmp_expression_name_26 = PyObject_GetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[17]); - - if (tmp_expression_name_26 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_26 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_26 == NULL)) { - tmp_expression_name_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_2 = "c"; - goto tuple_build_exception_6; - } - Py_INCREF(tmp_expression_name_26); - } - } - - tmp_tuple_element_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[269]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_2 = "c"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_defaults_6, 7, tmp_tuple_element_17); - tmp_expression_name_27 = PyObject_GetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[17]); - - if (tmp_expression_name_27 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_27 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_27 == NULL)) { - tmp_expression_name_27 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_2 = "c"; - goto tuple_build_exception_6; - } - Py_INCREF(tmp_expression_name_27); - } - } - - tmp_tuple_element_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[173]); - Py_DECREF(tmp_expression_name_27); - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_2 = "c"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_defaults_6, 8, tmp_tuple_element_17); - tmp_tuple_element_17 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_6, 9, tmp_tuple_element_17); - tmp_tuple_element_17 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_6, 10, tmp_tuple_element_17); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_defaults_6); - goto frame_exception_exit_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - - tmp_closure_3[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__9___init__(tmp_defaults_6, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - { - PyObject *tmp_defaults_7; - tmp_defaults_7 = mod_consts[260]; - Py_INCREF(tmp_defaults_7); - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__10_forward(tmp_defaults_7); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_307103cd4c8c91221c1b5d3bbd668de5_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_307103cd4c8c91221c1b5d3bbd668de5_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_307103cd4c8c91221c1b5d3bbd668de5_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_307103cd4c8c91221c1b5d3bbd668de5_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_307103cd4c8c91221c1b5d3bbd668de5_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_307103cd4c8c91221c1b5d3bbd668de5_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_307103cd4c8c91221c1b5d3bbd668de5_5 == cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5); - cache_frame_307103cd4c8c91221c1b5d3bbd668de5_5 = NULL; - } - - assertFrameObject(frame_307103cd4c8c91221c1b5d3bbd668de5_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_14; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_14; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__4_Block_153, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_14; - } - branch_no_16:; - { - PyObject *tmp_assign_source_52; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_18 = mod_consts[149]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_18 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_18); - tmp_tuple_element_18 = locals_models$eva_vit$$$class__4_Block_153; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 153; - tmp_assign_source_52 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - - goto try_except_handler_14; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_52); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_51 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_51); - goto try_return_handler_14; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - Py_DECREF(locals_models$eva_vit$$$class__4_Block_153); - locals_models$eva_vit$$$class__4_Block_153 = NULL; - goto try_return_handler_13; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__4_Block_153); - locals_models$eva_vit$$$class__4_Block_153 = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto try_except_handler_13; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 153; - goto try_except_handler_12; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[149], tmp_assign_source_51); - } - goto try_end_6; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_53; - PyObject *tmp_tuple_element_19; - PyObject *tmp_expression_name_28; - tmp_expression_name_28 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_28 == NULL)) { - tmp_expression_name_28 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[250]); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_assign_source_53 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_53, 0, tmp_tuple_element_19); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_53; - } - { - PyObject *tmp_assign_source_54; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_54 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_54; - } - { - PyObject *tmp_assign_source_55; - tmp_assign_source_55 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_55; - } - { - PyObject *tmp_assign_source_56; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_29; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[251]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_29 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[41]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_29, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_56 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_56; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_30 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[252]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_57; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_31 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[252]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_tuple_element_20 = mod_consts[135]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 185; - tmp_assign_source_57 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_57; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_32; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_32 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_32, mod_consts[253]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_21; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[255]; - tmp_getattr_default_5 = mod_consts[256]; - tmp_tuple_element_21 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_33; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_21); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_33 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_33 == NULL)); - tmp_tuple_element_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[255]); - Py_DECREF(tmp_expression_name_33); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_21); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_15; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_15; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 185; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_15; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_58; - tmp_assign_source_58 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_58; - } - branch_end_18:; - { - PyObject *tmp_assign_source_59; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$eva_vit$$$class__5_PatchEmbed_185 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__5_PatchEmbed_185, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[278]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__5_PatchEmbed_185, mod_consts[224], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[135]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__5_PatchEmbed_185, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - if (isFrameUnusable(cache_frame_1cd964112254225e4c50e7367fadca6e_6)) { - Py_XDECREF(cache_frame_1cd964112254225e4c50e7367fadca6e_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1cd964112254225e4c50e7367fadca6e_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1cd964112254225e4c50e7367fadca6e_6 = MAKE_FUNCTION_FRAME(codeobj_1cd964112254225e4c50e7367fadca6e, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1cd964112254225e4c50e7367fadca6e_6->m_type_description == NULL); - frame_1cd964112254225e4c50e7367fadca6e_6 = cache_frame_1cd964112254225e4c50e7367fadca6e_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1cd964112254225e4c50e7367fadca6e_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1cd964112254225e4c50e7367fadca6e_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_8; - struct Nuitka_CellObject *tmp_closure_4[1]; - tmp_defaults_8 = mod_consts[279]; - Py_INCREF(tmp_defaults_8); - - tmp_closure_4[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__11___init__(tmp_defaults_8, tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__5_PatchEmbed_185, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__12_forward(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__5_PatchEmbed_185, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1cd964112254225e4c50e7367fadca6e_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1cd964112254225e4c50e7367fadca6e_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1cd964112254225e4c50e7367fadca6e_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1cd964112254225e4c50e7367fadca6e_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1cd964112254225e4c50e7367fadca6e_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1cd964112254225e4c50e7367fadca6e_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_1cd964112254225e4c50e7367fadca6e_6 == cache_frame_1cd964112254225e4c50e7367fadca6e_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1cd964112254225e4c50e7367fadca6e_6); - cache_frame_1cd964112254225e4c50e7367fadca6e_6 = NULL; - } - - assertFrameObject(frame_1cd964112254225e4c50e7367fadca6e_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_17; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__5_PatchEmbed_185, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - branch_no_20:; - { - PyObject *tmp_assign_source_60; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_22; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_10 = tmp_class_creation_5__metaclass; - tmp_tuple_element_22 = mod_consts[135]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_22 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_22); - tmp_tuple_element_22 = locals_models$eva_vit$$$class__5_PatchEmbed_185; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 185; - tmp_assign_source_60 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - - goto try_except_handler_17; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_60); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_59 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_59); - goto try_return_handler_17; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - Py_DECREF(locals_models$eva_vit$$$class__5_PatchEmbed_185); - locals_models$eva_vit$$$class__5_PatchEmbed_185 = NULL; - goto try_return_handler_16; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__5_PatchEmbed_185); - locals_models$eva_vit$$$class__5_PatchEmbed_185 = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto try_except_handler_16; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 185; - goto try_except_handler_15; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[135], tmp_assign_source_59); - } - goto try_end_7; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_61; - PyObject *tmp_tuple_element_23; - PyObject *tmp_expression_name_34; - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_tuple_element_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[250]); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_assign_source_61 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_61, 0, tmp_tuple_element_23); - assert(tmp_class_creation_6__bases_orig == NULL); - tmp_class_creation_6__bases_orig = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - PyObject *tmp_dircall_arg1_6; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig; - Py_INCREF(tmp_dircall_arg1_6); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_6}; - tmp_assign_source_62 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - assert(tmp_class_creation_6__bases == NULL); - tmp_class_creation_6__bases = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - tmp_assign_source_63 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_63; - } - { - PyObject *tmp_assign_source_64; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - nuitka_bool tmp_condition_result_32; - int tmp_truth_name_6; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_35; - PyObject *tmp_subscript_name_6; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[251]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_class_creation_6__bases); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_condition_result_32 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_expression_name_35 = tmp_class_creation_6__bases; - tmp_subscript_name_6 = mod_consts[41]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_35, tmp_subscript_name_6, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_metaclass_name_6 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_bases_name_6 = tmp_class_creation_6__bases; - tmp_assign_source_64 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_64; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_33 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_expression_name_36; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_36 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_36, mod_consts[252]); - tmp_condition_result_34 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_65; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_37; - PyObject *tmp_args_name_11; - PyObject *tmp_tuple_element_24; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_37 = tmp_class_creation_6__metaclass; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[252]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_tuple_element_24 = mod_consts[142]; - tmp_args_name_11 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_11, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_24 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_11, 1, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 209; - tmp_assign_source_65 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_name_11); - if (tmp_assign_source_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_65; - } - { - nuitka_bool tmp_condition_result_35; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_38; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_38 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_38, mod_consts[253]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_condition_result_35 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_25; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[255]; - tmp_getattr_default_6 = mod_consts[256]; - tmp_tuple_element_25 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_39; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_25); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_12 = tmp_class_creation_6__prepared; - tmp_expression_name_39 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_39 == NULL)); - tmp_tuple_element_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[255]); - Py_DECREF(tmp_expression_name_39); - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_25); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_18; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_18; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 209; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_18; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_66; - tmp_assign_source_66 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_66; - } - branch_end_22:; - { - PyObject *tmp_assign_source_67; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$eva_vit$$$class__6_RelativePositionBias_209 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__6_RelativePositionBias_209, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_20; - } - tmp_dictset_value = mod_consts[142]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__6_RelativePositionBias_209, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_20; - } - if (isFrameUnusable(cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7)) { - Py_XDECREF(cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7 = MAKE_FUNCTION_FRAME(codeobj_1bb0233c85dac073bd221db7b8d08c7d, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7->m_type_description == NULL); - frame_1bb0233c85dac073bd221db7b8d08c7d_7 = cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1bb0233c85dac073bd221db7b8d08c7d_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1bb0233c85dac073bd221db7b8d08c7d_7) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_5[1]; - - tmp_closure_5[0] = outline_5_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__13___init__(tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__6_RelativePositionBias_209, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_2 = "c"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__14_forward(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__6_RelativePositionBias_209, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - type_description_2 = "c"; - goto frame_exception_exit_7; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1bb0233c85dac073bd221db7b8d08c7d_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1bb0233c85dac073bd221db7b8d08c7d_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1bb0233c85dac073bd221db7b8d08c7d_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1bb0233c85dac073bd221db7b8d08c7d_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1bb0233c85dac073bd221db7b8d08c7d_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1bb0233c85dac073bd221db7b8d08c7d_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_1bb0233c85dac073bd221db7b8d08c7d_7 == cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7); - cache_frame_1bb0233c85dac073bd221db7b8d08c7d_7 = NULL; - } - - assertFrameObject(frame_1bb0233c85dac073bd221db7b8d08c7d_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_20; - skip_nested_handling_6:; - { - nuitka_bool tmp_condition_result_36; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_compexpr_left_6 = tmp_class_creation_6__bases; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_compexpr_right_6 = tmp_class_creation_6__bases_orig; - tmp_condition_result_36 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_condition_result_36 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_20; - } - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_36 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dictset_value = tmp_class_creation_6__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__6_RelativePositionBias_209, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_20; - } - branch_no_24:; - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_name_12; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_26; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_12 = tmp_class_creation_6__metaclass; - tmp_tuple_element_26 = mod_consts[142]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_26 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_26); - tmp_tuple_element_26 = locals_models$eva_vit$$$class__6_RelativePositionBias_209; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 209; - tmp_assign_source_68 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_20; - } - { - PyObject *old = Nuitka_Cell_GET(outline_5_var___class__); - PyCell_SET(outline_5_var___class__, tmp_assign_source_68); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_5_var___class__)); - tmp_assign_source_67 = Nuitka_Cell_GET(outline_5_var___class__); - Py_INCREF(tmp_assign_source_67); - goto try_return_handler_20; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_20:; - Py_DECREF(locals_models$eva_vit$$$class__6_RelativePositionBias_209); - locals_models$eva_vit$$$class__6_RelativePositionBias_209 = NULL; - goto try_return_handler_19; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__6_RelativePositionBias_209); - locals_models$eva_vit$$$class__6_RelativePositionBias_209 = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto try_except_handler_19; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 209; - goto try_except_handler_18; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[142], tmp_assign_source_67); - } - goto try_end_8; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - Py_DECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_69; - PyObject *tmp_tuple_element_27; - PyObject *tmp_expression_name_40; - tmp_expression_name_40 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_40 == NULL)) { - tmp_expression_name_40 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_tuple_element_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[250]); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_assign_source_69 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_69, 0, tmp_tuple_element_27); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_dircall_arg1_7; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_7 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_7); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_7}; - tmp_assign_source_70 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_70; - } - { - PyObject *tmp_assign_source_71; - tmp_assign_source_71 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_37; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_38; - int tmp_truth_name_7; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_41; - PyObject *tmp_subscript_name_7; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_37 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[251]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - goto condexpr_end_13; - condexpr_false_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_condition_result_38 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_41 = tmp_class_creation_7__bases; - tmp_subscript_name_7 = mod_consts[41]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_41, tmp_subscript_name_7, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - goto condexpr_end_14; - condexpr_false_14:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_14:; - condexpr_end_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_72 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_72; - } - { - nuitka_bool tmp_condition_result_39; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[251]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_39 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[251]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_expression_name_42; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_42 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_42, mod_consts[252]); - tmp_condition_result_40 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_73; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_28; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_43 = tmp_class_creation_7__metaclass; - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[252]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_tuple_element_28 = mod_consts[204]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_28 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 248; - tmp_assign_source_73 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_73; - } - { - nuitka_bool tmp_condition_result_41; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_44; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_44 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_44, mod_consts[253]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_condition_result_41 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_29; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[254]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[255]; - tmp_getattr_default_7 = mod_consts[256]; - tmp_tuple_element_29 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_45; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_29); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_14 = tmp_class_creation_7__prepared; - tmp_expression_name_45 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_45 == NULL)); - tmp_tuple_element_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[255]); - Py_DECREF(tmp_expression_name_45); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_29); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_21; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_21; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 248; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_21; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_74; - tmp_assign_source_74 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_74; - } - branch_end_26:; - { - PyObject *tmp_assign_source_75; - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$eva_vit$$$class__7_VisionTransformer_248 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[257], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_23; - } - tmp_dictset_value = mod_consts[284]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[224], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_23; - } - tmp_dictset_value = mod_consts[204]; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[259], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_23; - } - if (isFrameUnusable(cache_frame_15d041386150a57970a9bb49e9945556_8)) { - Py_XDECREF(cache_frame_15d041386150a57970a9bb49e9945556_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_15d041386150a57970a9bb49e9945556_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_15d041386150a57970a9bb49e9945556_8 = MAKE_FUNCTION_FRAME(codeobj_15d041386150a57970a9bb49e9945556, module_models$eva_vit, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_15d041386150a57970a9bb49e9945556_8->m_type_description == NULL); - frame_15d041386150a57970a9bb49e9945556_8 = cache_frame_15d041386150a57970a9bb49e9945556_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_15d041386150a57970a9bb49e9945556_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_15d041386150a57970a9bb49e9945556_8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_9; - PyObject *tmp_tuple_element_30; - struct Nuitka_CellObject *tmp_closure_6[1]; - tmp_tuple_element_30 = mod_consts[285]; - tmp_defaults_9 = PyTuple_New(21); - { - PyObject *tmp_expression_name_46; - PyTuple_SET_ITEM0(tmp_defaults_9, 0, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[209]; - PyTuple_SET_ITEM0(tmp_defaults_9, 1, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[30]; - PyTuple_SET_ITEM0(tmp_defaults_9, 2, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[286]; - PyTuple_SET_ITEM0(tmp_defaults_9, 3, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[287]; - PyTuple_SET_ITEM0(tmp_defaults_9, 4, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[288]; - PyTuple_SET_ITEM0(tmp_defaults_9, 5, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[288]; - PyTuple_SET_ITEM0(tmp_defaults_9, 6, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[275]; - PyTuple_SET_ITEM0(tmp_defaults_9, 7, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_False; - PyTuple_SET_ITEM0(tmp_defaults_9, 8, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_9, 9, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_9, 10, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_9, 11, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[101]; - PyTuple_SET_ITEM0(tmp_defaults_9, 12, tmp_tuple_element_30); - tmp_expression_name_46 = PyObject_GetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[17]); - - if (tmp_expression_name_46 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_46 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_46 == NULL)) { - tmp_expression_name_46 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_2 = "c"; - goto tuple_build_exception_10; - } - Py_INCREF(tmp_expression_name_46); - } - } - - tmp_tuple_element_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[173]); - Py_DECREF(tmp_expression_name_46); - if (tmp_tuple_element_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_2 = "c"; - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_defaults_9, 13, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_None; - PyTuple_SET_ITEM0(tmp_defaults_9, 14, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_True; - PyTuple_SET_ITEM0(tmp_defaults_9, 15, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_False; - PyTuple_SET_ITEM0(tmp_defaults_9, 16, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_False; - PyTuple_SET_ITEM0(tmp_defaults_9, 17, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_True; - PyTuple_SET_ITEM0(tmp_defaults_9, 18, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[289]; - PyTuple_SET_ITEM0(tmp_defaults_9, 19, tmp_tuple_element_30); - tmp_tuple_element_30 = Py_False; - PyTuple_SET_ITEM0(tmp_defaults_9, 20, tmp_tuple_element_30); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_defaults_9); - goto frame_exception_exit_8; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - - tmp_closure_6[0] = outline_6_var___class__; - Py_INCREF(tmp_closure_6[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__15___init__(tmp_defaults_9, tmp_closure_6); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[9], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__16_fix_init_weight(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[160], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__17__init_weights(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__18_get_classifier(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[293], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - { - PyObject *tmp_defaults_10; - tmp_defaults_10 = mod_consts[248]; - Py_INCREF(tmp_defaults_10); - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__19_reset_classifier(tmp_defaults_10); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[295], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__20_forward_features(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[179], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__21_forward(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[262], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$eva_vit$$$function__22_get_intermediate_layers(); - - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[299], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15d041386150a57970a9bb49e9945556_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15d041386150a57970a9bb49e9945556_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_15d041386150a57970a9bb49e9945556_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_15d041386150a57970a9bb49e9945556_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_15d041386150a57970a9bb49e9945556_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_15d041386150a57970a9bb49e9945556_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_15d041386150a57970a9bb49e9945556_8 == cache_frame_15d041386150a57970a9bb49e9945556_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_15d041386150a57970a9bb49e9945556_8); - cache_frame_15d041386150a57970a9bb49e9945556_8 = NULL; - } - - assertFrameObject(frame_15d041386150a57970a9bb49e9945556_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_23; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_42; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_7 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_7 = tmp_class_creation_7__bases_orig; - tmp_condition_result_42 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_7, tmp_compexpr_right_7); - if (tmp_condition_result_42 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_23; - } - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_42 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$eva_vit$$$class__7_VisionTransformer_248, mod_consts[268], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_23; - } - branch_no_28:; - { - PyObject *tmp_assign_source_76; - PyObject *tmp_called_name_14; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_31; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_14 = tmp_class_creation_7__metaclass; - tmp_tuple_element_31 = mod_consts[204]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_31); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_31 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_31); - tmp_tuple_element_31 = locals_models$eva_vit$$$class__7_VisionTransformer_248; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_31); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame.f_lineno = 248; - tmp_assign_source_76 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - - goto try_except_handler_23; - } - { - PyObject *old = Nuitka_Cell_GET(outline_6_var___class__); - PyCell_SET(outline_6_var___class__, tmp_assign_source_76); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_6_var___class__)); - tmp_assign_source_75 = Nuitka_Cell_GET(outline_6_var___class__); - Py_INCREF(tmp_assign_source_75); - goto try_return_handler_23; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_23:; - Py_DECREF(locals_models$eva_vit$$$class__7_VisionTransformer_248); - locals_models$eva_vit$$$class__7_VisionTransformer_248 = NULL; - goto try_return_handler_22; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$eva_vit$$$class__7_VisionTransformer_248); - locals_models$eva_vit$$$class__7_VisionTransformer_248 = NULL; - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto try_except_handler_22; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_22:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 248; - goto try_except_handler_21; - outline_result_7:; - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[204], tmp_assign_source_75); - } - goto try_end_9; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - { - PyObject *tmp_assign_source_77; - - - tmp_assign_source_77 = MAKE_FUNCTION_models$eva_vit$$$function__23_interpolate_pos_embed(); - - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[219], tmp_assign_source_77); - } - { - PyObject *tmp_assign_source_78; - PyObject *tmp_annotations_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_47; - tmp_dict_key_2 = mod_consts[183]; - tmp_expression_name_47 = GET_STRING_DICT_VALUE(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_expression_name_47 == NULL)) { - tmp_expression_name_47 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_expression_name_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - - goto frame_exception_exit_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[250]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - - goto frame_exception_exit_1; - } - tmp_annotations_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - - - tmp_assign_source_78 = MAKE_FUNCTION_models$eva_vit$$$function__24_convert_weights_to_fp16(tmp_annotations_2); - - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[223], tmp_assign_source_78); - } - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca7d5a72cb9493a006e151c55e0654a6); -#endif - popFrameStack(); - - assertFrameObject(frame_ca7d5a72cb9493a006e151c55e0654a6); - - goto frame_no_exception_8; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca7d5a72cb9493a006e151c55e0654a6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ca7d5a72cb9493a006e151c55e0654a6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ca7d5a72cb9493a006e151c55e0654a6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ca7d5a72cb9493a006e151c55e0654a6, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_8:; - { - PyObject *tmp_assign_source_79; - PyObject *tmp_defaults_11; - tmp_defaults_11 = mod_consts[301]; - Py_INCREF(tmp_defaults_11); - - - tmp_assign_source_79 = MAKE_FUNCTION_models$eva_vit$$$function__25_create_eva_vit_g(tmp_defaults_11); - - UPDATE_STRING_DICT1(moduledict_models$eva_vit, (Nuitka_StringObject *)mod_consts[302], tmp_assign_source_79); - } - - return module_models$eva_vit; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.medomni.const b/medomni/models.build/module.models.medomni.const deleted file mode 100644 index 7c876531f1a36ae7633215083d87e4ce727e7ed1..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.medomni.const and /dev/null differ diff --git a/medomni/models.build/module.models.medomni.cpp b/medomni/models.build/module.models.medomni.cpp deleted file mode 100644 index 64aba98dbdfbc6b0e0224a33a6cb343b64abc3ba..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.medomni.cpp +++ /dev/null @@ -1,38679 +0,0 @@ -/* Generated code for Python module 'models.medomni' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$medomni" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$medomni; -PyDictObject *moduledict_models$medomni; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[427]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.medomni")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$medomni(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.medomni"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_9ec165929909407799d453e45497312e; -static PyCodeObject *codeobj_f8d430278d8f22db0c1b6695d87fc403; -static PyCodeObject *codeobj_a07adb3ba7b5ecdd090d9e8bd3538758; -static PyCodeObject *codeobj_9129cbc7a5937ced0a59dbc8f2b1d733; -static PyCodeObject *codeobj_2b980890218eabf65dba6955c1a411cb; -static PyCodeObject *codeobj_2bfedd52eb2b9a86da6206d8f1c74946; -static PyCodeObject *codeobj_3dff9b49b754524c204218b310bab92a; -static PyCodeObject *codeobj_7dd0e173fd5b9e5264bedbaef5273d73; -static PyCodeObject *codeobj_777f64075f34e26db58464aa23f1612d; -static PyCodeObject *codeobj_f7ea6d2166fdaac86d7b7ca1183fa788; -static PyCodeObject *codeobj_d2f58e6bb06a4692c3656c24d85d021a; -static PyCodeObject *codeobj_bf4ab9cbb92d186f405c3be3a733e29d; -static PyCodeObject *codeobj_3aa613e03147c6f2399acab5c1305f7d; -static PyCodeObject *codeobj_804a3b1982fe4aa094fd88c0a9b78d3c; -static PyCodeObject *codeobj_bafd54298174b71f14fe34b504f2d310; -static PyCodeObject *codeobj_a857b90746524b0f4e613f69ba28c483; -static PyCodeObject *codeobj_ea4311308622894ee092f9d1d78caed6; -static PyCodeObject *codeobj_72e571477b5dc2bd38e0e86b0a0de60e; -static PyCodeObject *codeobj_f95e44d753f4300b9d1729fd5fe23665; -static PyCodeObject *codeobj_49ea2443b67f8243bd66c0e5006f9f7f; -static PyCodeObject *codeobj_be4d763165207bb6f34f3b001a052c77; -static PyCodeObject *codeobj_d10652caba20e67f8bd77f38c4e215f3; -static PyCodeObject *codeobj_010242f3bfb425fd481def0b05eda19a; -static PyCodeObject *codeobj_fdd0fdd61cda0cb17e895d6a30ef4152; -static PyCodeObject *codeobj_2a6c8758471a94b0895819adf83231eb; -static PyCodeObject *codeobj_e7626200ed1c8391557645c1d2741317; -static PyCodeObject *codeobj_3a4557b158ae92b2a85eacbc8373fbb9; -static PyCodeObject *codeobj_51ac6f6a34af3417d8c3c1759c4211b6; -static PyCodeObject *codeobj_e6cbd6ab08e931bc9b9b941fe0172524; -static PyCodeObject *codeobj_26640540576f00a7228ef8b7c4a4557c; -static PyCodeObject *codeobj_5d3730cffd30a603a90d37809e509118; -static PyCodeObject *codeobj_421a1f3164c7f8a0d45fec2238125564; -static PyCodeObject *codeobj_80a532cc5cda5fecebccb60ba68b1770; -static PyCodeObject *codeobj_8b8e1f84e9bf1152c5b6ccec24173b9e; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[400]); CHECK_OBJECT(module_filename_obj); - codeobj_9ec165929909407799d453e45497312e = MAKE_CODEOBJECT(module_filename_obj, 356, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[306], mod_consts[401], NULL, 1, 0, 0); - codeobj_f8d430278d8f22db0c1b6695d87fc403 = MAKE_CODEOBJECT(module_filename_obj, 350, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[403], NULL, 1, 0, 0); - codeobj_a07adb3ba7b5ecdd090d9e8bd3538758 = MAKE_CODEOBJECT(module_filename_obj, 293, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[404], NULL, 1, 0, 0); - codeobj_9129cbc7a5937ced0a59dbc8f2b1d733 = MAKE_CODEOBJECT(module_filename_obj, 457, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[405], NULL, 1, 0, 0); - codeobj_2b980890218eabf65dba6955c1a411cb = MAKE_CODEOBJECT(module_filename_obj, 371, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[406], NULL, 1, 0, 0); - codeobj_2bfedd52eb2b9a86da6206d8f1c74946 = MAKE_CODEOBJECT(module_filename_obj, 372, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[406], NULL, 1, 0, 0); - codeobj_3dff9b49b754524c204218b310bab92a = MAKE_CODEOBJECT(module_filename_obj, 362, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[407], NULL, 1, 0, 0); - codeobj_7dd0e173fd5b9e5264bedbaef5273d73 = MAKE_CODEOBJECT(module_filename_obj, 375, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[408], NULL, 1, 0, 0); - codeobj_777f64075f34e26db58464aa23f1612d = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[409], NULL, NULL, 0, 0, 0); - codeobj_f7ea6d2166fdaac86d7b7ca1183fa788 = MAKE_CODEOBJECT(module_filename_obj, 214, CO_OPTIMIZED | CO_NOFREE, mod_consts[125], mod_consts[410], NULL, 0, 0, 0); - codeobj_d2f58e6bb06a4692c3656c24d85d021a = MAKE_CODEOBJECT(module_filename_obj, 64, CO_NOFREE, mod_consts[47], mod_consts[410], NULL, 0, 0, 0); - codeobj_bf4ab9cbb92d186f405c3be3a733e29d = MAKE_CODEOBJECT(module_filename_obj, 31, CO_NOFREE, mod_consts[17], mod_consts[410], NULL, 0, 0, 0); - codeobj_3aa613e03147c6f2399acab5c1305f7d = MAKE_CODEOBJECT(module_filename_obj, 39, CO_NOFREE, mod_consts[76], mod_consts[410], NULL, 0, 0, 0); - codeobj_804a3b1982fe4aa094fd88c0a9b78d3c = MAKE_CODEOBJECT(module_filename_obj, 133, CO_NOFREE, mod_consts[383], mod_consts[410], NULL, 0, 0, 0); - codeobj_bafd54298174b71f14fe34b504f2d310 = MAKE_CODEOBJECT(module_filename_obj, 80, CO_NOFREE, mod_consts[164], mod_consts[410], NULL, 0, 0, 0); - codeobj_a857b90746524b0f4e613f69ba28c483 = MAKE_CODEOBJECT(module_filename_obj, 81, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[31], mod_consts[411], mod_consts[410], 3, 0, 0); - codeobj_ea4311308622894ee092f9d1d78caed6 = MAKE_CODEOBJECT(module_filename_obj, 138, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[31], mod_consts[412], mod_consts[410], 7, 0, 0); - codeobj_72e571477b5dc2bd38e0e86b0a0de60e = MAKE_CODEOBJECT(module_filename_obj, 65, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[31], mod_consts[413], mod_consts[410], 2, 0, 0); - codeobj_f95e44d753f4300b9d1729fd5fe23665 = MAKE_CODEOBJECT(module_filename_obj, 56, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[50], mod_consts[414], NULL, 2, 0, 0); - codeobj_49ea2443b67f8243bd66c0e5006f9f7f = MAKE_CODEOBJECT(module_filename_obj, 282, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[231], mod_consts[415], NULL, 4, 0, 0); - codeobj_be4d763165207bb6f34f3b001a052c77 = MAKE_CODEOBJECT(module_filename_obj, 86, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[416], NULL, 3, 0, 0); - codeobj_d10652caba20e67f8bd77f38c4e215f3 = MAKE_CODEOBJECT(module_filename_obj, 69, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[417], NULL, 3, 0, 0); - codeobj_010242f3bfb425fd481def0b05eda19a = MAKE_CODEOBJECT(module_filename_obj, 345, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[418], NULL, 2, 0, 0); - codeobj_fdd0fdd61cda0cb17e895d6a30ef4152 = MAKE_CODEOBJECT(module_filename_obj, 215, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[419], mod_consts[410], 2, 0, 0); - codeobj_2a6c8758471a94b0895819adf83231eb = MAKE_CODEOBJECT(module_filename_obj, 34, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[420], mod_consts[410], 2, 0, 0); - codeobj_e7626200ed1c8391557645c1d2741317 = MAKE_CODEOBJECT(module_filename_obj, 42, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[420], mod_consts[410], 2, 0, 0); - codeobj_3a4557b158ae92b2a85eacbc8373fbb9 = MAKE_CODEOBJECT(module_filename_obj, 487, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[398], mod_consts[421], NULL, 3, 0, 0); - codeobj_51ac6f6a34af3417d8c3c1759c4211b6 = MAKE_CODEOBJECT(module_filename_obj, 315, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[264], mod_consts[422], NULL, 4, 0, 0); - codeobj_e6cbd6ab08e931bc9b9b941fe0172524 = MAKE_CODEOBJECT(module_filename_obj, 325, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[248], mod_consts[423], NULL, 6, 0, 0); - codeobj_26640540576f00a7228ef8b7c4a4557c = MAKE_CODEOBJECT(module_filename_obj, 47, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[12], mod_consts[424], NULL, 1, 0, 0); - codeobj_5d3730cffd30a603a90d37809e509118 = MAKE_CODEOBJECT(module_filename_obj, 104, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[287], mod_consts[425], NULL, 2, 0, 0); - codeobj_421a1f3164c7f8a0d45fec2238125564 = MAKE_CODEOBJECT(module_filename_obj, 118, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[293], mod_consts[425], NULL, 2, 0, 0); - codeobj_80a532cc5cda5fecebccb60ba68b1770 = MAKE_CODEOBJECT(module_filename_obj, 90, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[382], mod_consts[425], NULL, 2, 0, 0); - codeobj_8b8e1f84e9bf1152c5b6ccec24173b9e = MAKE_CODEOBJECT(module_filename_obj, 276, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[179], mod_consts[426], NULL, 1, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_GENERATOR_models$medomni$$$function__17_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__10_trans_det(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__11_trans_keypoint(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__12___init__$$$function__1_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__13_vit_to_cpu(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__14_encode_img(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__15_prompt_concat(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__16_prompt_wrap(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__17_forward(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__18_from_config(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__1_forward(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__2_forward(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__3_replace_batchnorm_2d(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__4_dice_loss(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__5___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__6_forward(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__7___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__8_forward(); - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__9_trans_seg(); - - -// The module function definitions. -static PyObject *impl_models$medomni$$$function__1_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_orig_type = NULL; - PyObject *var_ret = NULL; - struct Nuitka_FrameObject *frame_2a6c8758471a94b0895819adf83231eb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_2a6c8758471a94b0895819adf83231eb = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_2a6c8758471a94b0895819adf83231eb)) { - Py_XDECREF(cache_frame_2a6c8758471a94b0895819adf83231eb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2a6c8758471a94b0895819adf83231eb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2a6c8758471a94b0895819adf83231eb = MAKE_FUNCTION_FRAME(codeobj_2a6c8758471a94b0895819adf83231eb, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2a6c8758471a94b0895819adf83231eb->m_type_description == NULL); - frame_2a6c8758471a94b0895819adf83231eb = cache_frame_2a6c8758471a94b0895819adf83231eb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2a6c8758471a94b0895819adf83231eb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2a6c8758471a94b0895819adf83231eb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[0]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_orig_type == NULL); - var_orig_type = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[2]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_x; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[4]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_2a6c8758471a94b0895819adf83231eb->m_frame.f_lineno = 36; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_2a6c8758471a94b0895819adf83231eb->m_frame.f_lineno = 36; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_ret == NULL); - var_ret = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_ret); - tmp_called_instance_1 = var_ret; - CHECK_OBJECT(var_orig_type); - tmp_args_element_name_3 = var_orig_type; - frame_2a6c8758471a94b0895819adf83231eb->m_frame.f_lineno = 37; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[4], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2a6c8758471a94b0895819adf83231eb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2a6c8758471a94b0895819adf83231eb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2a6c8758471a94b0895819adf83231eb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2a6c8758471a94b0895819adf83231eb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2a6c8758471a94b0895819adf83231eb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2a6c8758471a94b0895819adf83231eb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2a6c8758471a94b0895819adf83231eb, - type_description_1, - par_self, - par_x, - var_orig_type, - var_ret, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_2a6c8758471a94b0895819adf83231eb == cache_frame_2a6c8758471a94b0895819adf83231eb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2a6c8758471a94b0895819adf83231eb); - cache_frame_2a6c8758471a94b0895819adf83231eb = NULL; - } - - assertFrameObject(frame_2a6c8758471a94b0895819adf83231eb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__2_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_orig_type = NULL; - PyObject *var_ret = NULL; - struct Nuitka_FrameObject *frame_e7626200ed1c8391557645c1d2741317; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e7626200ed1c8391557645c1d2741317 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e7626200ed1c8391557645c1d2741317)) { - Py_XDECREF(cache_frame_e7626200ed1c8391557645c1d2741317); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e7626200ed1c8391557645c1d2741317 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e7626200ed1c8391557645c1d2741317 = MAKE_FUNCTION_FRAME(codeobj_e7626200ed1c8391557645c1d2741317, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e7626200ed1c8391557645c1d2741317->m_type_description == NULL); - frame_e7626200ed1c8391557645c1d2741317 = cache_frame_e7626200ed1c8391557645c1d2741317; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e7626200ed1c8391557645c1d2741317); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e7626200ed1c8391557645c1d2741317) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[0]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_orig_type == NULL); - var_orig_type = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[2]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_x; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[4]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_e7626200ed1c8391557645c1d2741317->m_frame.f_lineno = 44; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_e7626200ed1c8391557645c1d2741317->m_frame.f_lineno = 44; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_ret == NULL); - var_ret = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_ret); - tmp_called_instance_1 = var_ret; - CHECK_OBJECT(var_orig_type); - tmp_args_element_name_3 = var_orig_type; - frame_e7626200ed1c8391557645c1d2741317->m_frame.f_lineno = 45; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[4], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e7626200ed1c8391557645c1d2741317); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e7626200ed1c8391557645c1d2741317); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e7626200ed1c8391557645c1d2741317); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e7626200ed1c8391557645c1d2741317, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e7626200ed1c8391557645c1d2741317->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e7626200ed1c8391557645c1d2741317, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e7626200ed1c8391557645c1d2741317, - type_description_1, - par_self, - par_x, - var_orig_type, - var_ret, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_e7626200ed1c8391557645c1d2741317 == cache_frame_e7626200ed1c8391557645c1d2741317) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e7626200ed1c8391557645c1d2741317); - cache_frame_e7626200ed1c8391557645c1d2741317 = NULL; - } - - assertFrameObject(frame_e7626200ed1c8391557645c1d2741317); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__3_replace_batchnorm_2d(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - PyObject *var_name = NULL; - PyObject *var_module = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_26640540576f00a7228ef8b7c4a4557c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - int tmp_res; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_26640540576f00a7228ef8b7c4a4557c = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_26640540576f00a7228ef8b7c4a4557c)) { - Py_XDECREF(cache_frame_26640540576f00a7228ef8b7c4a4557c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_26640540576f00a7228ef8b7c4a4557c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_26640540576f00a7228ef8b7c4a4557c = MAKE_FUNCTION_FRAME(codeobj_26640540576f00a7228ef8b7c4a4557c, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_26640540576f00a7228ef8b7c4a4557c->m_type_description == NULL); - frame_26640540576f00a7228ef8b7c4a4557c = cache_frame_26640540576f00a7228ef8b7c4a4557c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_26640540576f00a7228ef8b7c4a4557c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_26640540576f00a7228ef8b7c4a4557c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_called_name_1 = (PyObject *)&PyReversed_Type; - CHECK_OBJECT(par_model); - tmp_expression_name_1 = par_model; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[7]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_26640540576f00a7228ef8b7c4a4557c->m_frame.f_lineno = 48; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[8]); - Py_DECREF(tmp_called_instance_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_26640540576f00a7228ef8b7c4a4557c->m_frame.f_lineno = 48; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_6; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_module; - var_module = tmp_assign_source_7; - Py_INCREF(var_module); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_len_arg_1; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_tmp_condition_result_1_object_1; - CHECK_OBJECT(var_module); - tmp_called_instance_2 = var_module; - frame_26640540576f00a7228ef8b7c4a4557c->m_frame.f_lineno = 49; - tmp_list_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[10]); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_len_arg_1 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_len_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_compexpr_left_1 = BUILTIN_LEN(tmp_len_arg_1); - Py_DECREF(tmp_len_arg_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_1 = mod_consts[11]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - assert(!(tmp_tmp_condition_result_1_object_1 == NULL)); - tmp_condition_result_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1) == 1; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_ass_subscript_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (var_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_2 = var_module; - frame_26640540576f00a7228ef8b7c4a4557c->m_frame.f_lineno = 50; - tmp_ass_subvalue_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_model == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = par_model; - tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[7]); - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_name); - tmp_ass_subscript_1 = var_name; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_3; - if (var_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_isinstance_inst_1 = var_module; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[16]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_called_name_3; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_ass_subscript_2; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_dict_key_1 = mod_consts[18]; - tmp_dict_value_1 = mod_consts[19]; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_4; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[20]; - if (var_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_4 = var_module; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[21]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_1); - goto try_except_handler_2; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_26640540576f00a7228ef8b7c4a4557c->m_frame.f_lineno = 53; - tmp_ass_subvalue_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_model == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_model; - tmp_ass_subscribed_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[7]); - if (tmp_ass_subscribed_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_2); - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_name); - tmp_ass_subscript_2 = var_name; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - } - branch_no_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 54; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = par_model; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_26640540576f00a7228ef8b7c4a4557c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_26640540576f00a7228ef8b7c4a4557c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_26640540576f00a7228ef8b7c4a4557c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_26640540576f00a7228ef8b7c4a4557c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_26640540576f00a7228ef8b7c4a4557c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_26640540576f00a7228ef8b7c4a4557c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_26640540576f00a7228ef8b7c4a4557c, - type_description_1, - par_model, - var_name, - var_module - ); - - - // Release cached frame if used for exception. - if (frame_26640540576f00a7228ef8b7c4a4557c == cache_frame_26640540576f00a7228ef8b7c4a4557c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_26640540576f00a7228ef8b7c4a4557c); - cache_frame_26640540576f00a7228ef8b7c4a4557c = NULL; - } - - assertFrameObject(frame_26640540576f00a7228ef8b7c4a4557c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_module); - var_module = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_module); - var_module = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__4_dice_loss(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *par_target = python_pars[1]; - PyObject *var_smooth = NULL; - PyObject *var_iflat = NULL; - PyObject *var_tflat = NULL; - PyObject *var_intersection = NULL; - struct Nuitka_FrameObject *frame_f95e44d753f4300b9d1729fd5fe23665; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_f95e44d753f4300b9d1729fd5fe23665 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f95e44d753f4300b9d1729fd5fe23665)) { - Py_XDECREF(cache_frame_f95e44d753f4300b9d1729fd5fe23665); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f95e44d753f4300b9d1729fd5fe23665 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f95e44d753f4300b9d1729fd5fe23665 = MAKE_FUNCTION_FRAME(codeobj_f95e44d753f4300b9d1729fd5fe23665, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f95e44d753f4300b9d1729fd5fe23665->m_type_description == NULL); - frame_f95e44d753f4300b9d1729fd5fe23665 = cache_frame_f95e44d753f4300b9d1729fd5fe23665; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f95e44d753f4300b9d1729fd5fe23665); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f95e44d753f4300b9d1729fd5fe23665) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_f95e44d753f4300b9d1729fd5fe23665->m_frame.f_lineno = 57; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[22], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[23]; - assert(var_smooth == NULL); - Py_INCREF(tmp_assign_source_2); - var_smooth = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_input); - tmp_called_instance_2 = par_input; - frame_f95e44d753f4300b9d1729fd5fe23665->m_frame.f_lineno = 59; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[24], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_iflat == NULL); - var_iflat = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_target); - tmp_called_instance_3 = par_target; - frame_f95e44d753f4300b9d1729fd5fe23665->m_frame.f_lineno = 60; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[24], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_tflat == NULL); - var_tflat = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_4; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_iflat); - tmp_left_name_1 = var_iflat; - CHECK_OBJECT(var_tflat); - tmp_right_name_1 = var_tflat; - tmp_called_instance_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_f95e44d753f4300b9d1729fd5fe23665->m_frame.f_lineno = 61; - tmp_assign_source_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[26]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_intersection == NULL); - var_intersection = tmp_assign_source_5; - } - { - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_called_instance_5; - PyObject *tmp_right_name_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_right_name_6; - tmp_left_name_4 = mod_consts[27]; - CHECK_OBJECT(var_intersection); - tmp_right_name_2 = var_intersection; - tmp_left_name_3 = BINARY_OPERATION_MULT_OBJECT_FLOAT_OBJECT(tmp_left_name_4, tmp_right_name_2); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_smooth); - tmp_right_name_3 = var_smooth; - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_FLOAT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_iflat == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[28]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = var_iflat; - frame_f95e44d753f4300b9d1729fd5fe23665->m_frame.f_lineno = 62; - tmp_left_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[26]); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_tflat == NULL) { - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = var_tflat; - frame_f95e44d753f4300b9d1729fd5fe23665->m_frame.f_lineno = 62; - tmp_right_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[26]); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_5); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_smooth == NULL) { - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = var_smooth; - tmp_right_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_4); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f95e44d753f4300b9d1729fd5fe23665); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f95e44d753f4300b9d1729fd5fe23665); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f95e44d753f4300b9d1729fd5fe23665); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f95e44d753f4300b9d1729fd5fe23665, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f95e44d753f4300b9d1729fd5fe23665->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f95e44d753f4300b9d1729fd5fe23665, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f95e44d753f4300b9d1729fd5fe23665, - type_description_1, - par_input, - par_target, - var_smooth, - var_iflat, - var_tflat, - var_intersection - ); - - - // Release cached frame if used for exception. - if (frame_f95e44d753f4300b9d1729fd5fe23665 == cache_frame_f95e44d753f4300b9d1729fd5fe23665) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f95e44d753f4300b9d1729fd5fe23665); - cache_frame_f95e44d753f4300b9d1729fd5fe23665 = NULL; - } - - assertFrameObject(frame_f95e44d753f4300b9d1729fd5fe23665); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_smooth); - var_smooth = NULL; - Py_XDECREF(var_iflat); - var_iflat = NULL; - Py_XDECREF(var_tflat); - var_tflat = NULL; - Py_XDECREF(var_intersection); - var_intersection = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_smooth); - var_smooth = NULL; - Py_XDECREF(var_iflat); - var_iflat = NULL; - Py_XDECREF(var_tflat); - var_tflat = NULL; - Py_XDECREF(var_intersection); - var_intersection = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__5___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_gamma = python_pars[1]; - struct Nuitka_FrameObject *frame_72e571477b5dc2bd38e0e86b0a0de60e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_72e571477b5dc2bd38e0e86b0a0de60e = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_72e571477b5dc2bd38e0e86b0a0de60e)) { - Py_XDECREF(cache_frame_72e571477b5dc2bd38e0e86b0a0de60e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_72e571477b5dc2bd38e0e86b0a0de60e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_72e571477b5dc2bd38e0e86b0a0de60e = MAKE_FUNCTION_FRAME(codeobj_72e571477b5dc2bd38e0e86b0a0de60e, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_72e571477b5dc2bd38e0e86b0a0de60e->m_type_description == NULL); - frame_72e571477b5dc2bd38e0e86b0a0de60e = cache_frame_72e571477b5dc2bd38e0e86b0a0de60e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_72e571477b5dc2bd38e0e86b0a0de60e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_72e571477b5dc2bd38e0e86b0a0de60e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_72e571477b5dc2bd38e0e86b0a0de60e->m_frame.f_lineno = 66; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[31]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_gamma); - tmp_assattr_name_1 = par_gamma; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[32], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72e571477b5dc2bd38e0e86b0a0de60e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72e571477b5dc2bd38e0e86b0a0de60e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_72e571477b5dc2bd38e0e86b0a0de60e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_72e571477b5dc2bd38e0e86b0a0de60e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_72e571477b5dc2bd38e0e86b0a0de60e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_72e571477b5dc2bd38e0e86b0a0de60e, - type_description_1, - par_self, - par_gamma, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_72e571477b5dc2bd38e0e86b0a0de60e == cache_frame_72e571477b5dc2bd38e0e86b0a0de60e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_72e571477b5dc2bd38e0e86b0a0de60e); - cache_frame_72e571477b5dc2bd38e0e86b0a0de60e = NULL; - } - - assertFrameObject(frame_72e571477b5dc2bd38e0e86b0a0de60e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__6_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_max_val = NULL; - PyObject *var_loss = NULL; - PyObject *var_invprobs = NULL; - struct Nuitka_FrameObject *frame_d10652caba20e67f8bd77f38c4e215f3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_d10652caba20e67f8bd77f38c4e215f3 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d10652caba20e67f8bd77f38c4e215f3)) { - Py_XDECREF(cache_frame_d10652caba20e67f8bd77f38c4e215f3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d10652caba20e67f8bd77f38c4e215f3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d10652caba20e67f8bd77f38c4e215f3 = MAKE_FUNCTION_FRAME(codeobj_d10652caba20e67f8bd77f38c4e215f3, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d10652caba20e67f8bd77f38c4e215f3->m_type_description == NULL); - frame_d10652caba20e67f8bd77f38c4e215f3 = cache_frame_d10652caba20e67f8bd77f38c4e215f3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d10652caba20e67f8bd77f38c4e215f3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d10652caba20e67f8bd77f38c4e215f3) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 70; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[33]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_called_instance_2 = par_input; - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 70; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[33]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_4; - tmp_expression_name_1 = mod_consts[34]; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[35]); - assert(!(tmp_called_name_1 == NULL)); - if (par_target == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_target; - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 72; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[33]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_input; - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 72; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[33]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 71; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_make_exception_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 71; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 71; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_operand_name_2; - PyObject *tmp_kwargs_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_2 = par_input; - tmp_expression_name_2 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_2); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[38]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[39]); - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 73; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_max_val == NULL); - var_max_val = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_called_instance_5; - PyObject *tmp_left_name_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_operand_name_3; - PyObject *tmp_right_name_5; - PyObject *tmp_called_instance_7; - PyObject *tmp_left_name_6; - PyObject *tmp_operand_name_4; - PyObject *tmp_right_name_6; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = par_input; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = par_target; - tmp_right_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_2 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_max_val); - tmp_right_name_3 = var_max_val; - tmp_left_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_max_val == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_3 = var_max_val; - tmp_called_instance_6 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_3); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 75; - tmp_left_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[41]); - Py_DECREF(tmp_called_instance_6); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_4 = par_input; - tmp_left_name_6 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_4); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_max_val == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = var_max_val; - tmp_called_instance_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_left_name_6); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 75; - tmp_right_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[41]); - Py_DECREF(tmp_called_instance_7); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 75; - tmp_right_name_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[42]); - Py_DECREF(tmp_called_instance_5); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_4); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_4); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_7; - PyObject *tmp_operand_name_5; - PyObject *tmp_right_name_7; - PyObject *tmp_left_name_8; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_8; - PyObject *tmp_right_name_9; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[44]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_5 = par_input; - tmp_left_name_7 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_5); - if (tmp_left_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_left_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_9 = par_target; - tmp_right_name_8 = mod_consts[27]; - tmp_left_name_8 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_9, tmp_right_name_8); - if (tmp_left_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_left_name_7); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_9 = mod_consts[23]; - tmp_right_name_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_FLOAT(tmp_left_name_8, tmp_right_name_9); - Py_DECREF(tmp_left_name_8); - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_left_name_7); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_left_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 76; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_invprobs == NULL); - var_invprobs = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_10; - PyObject *tmp_called_instance_8; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_10; - PyObject *tmp_expression_name_4; - PyObject *tmp_right_name_11; - CHECK_OBJECT(var_invprobs); - tmp_left_name_11 = var_invprobs; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_right_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[32]); - if (tmp_right_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_8 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_11, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 77; - tmp_left_name_10 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[41]); - Py_DECREF(tmp_called_instance_8); - if (tmp_left_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_loss); - tmp_right_name_11 = var_loss; - tmp_assign_source_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_10, tmp_right_name_11); - Py_DECREF(tmp_left_name_10); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_loss; - var_loss = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_9; - CHECK_OBJECT(var_loss); - tmp_called_instance_9 = var_loss; - frame_d10652caba20e67f8bd77f38c4e215f3->m_frame.f_lineno = 78; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[45]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d10652caba20e67f8bd77f38c4e215f3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d10652caba20e67f8bd77f38c4e215f3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d10652caba20e67f8bd77f38c4e215f3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d10652caba20e67f8bd77f38c4e215f3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d10652caba20e67f8bd77f38c4e215f3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d10652caba20e67f8bd77f38c4e215f3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d10652caba20e67f8bd77f38c4e215f3, - type_description_1, - par_self, - par_input, - par_target, - var_max_val, - var_loss, - var_invprobs - ); - - - // Release cached frame if used for exception. - if (frame_d10652caba20e67f8bd77f38c4e215f3 == cache_frame_d10652caba20e67f8bd77f38c4e215f3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d10652caba20e67f8bd77f38c4e215f3); - cache_frame_d10652caba20e67f8bd77f38c4e215f3 = NULL; - } - - assertFrameObject(frame_d10652caba20e67f8bd77f38c4e215f3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_max_val); - var_max_val = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_invprobs); - var_invprobs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_max_val); - var_max_val = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_invprobs); - var_invprobs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_alpha = python_pars[1]; - PyObject *par_gamma = python_pars[2]; - struct Nuitka_FrameObject *frame_a857b90746524b0f4e613f69ba28c483; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_a857b90746524b0f4e613f69ba28c483 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a857b90746524b0f4e613f69ba28c483)) { - Py_XDECREF(cache_frame_a857b90746524b0f4e613f69ba28c483); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a857b90746524b0f4e613f69ba28c483 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a857b90746524b0f4e613f69ba28c483 = MAKE_FUNCTION_FRAME(codeobj_a857b90746524b0f4e613f69ba28c483, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a857b90746524b0f4e613f69ba28c483->m_type_description == NULL); - frame_a857b90746524b0f4e613f69ba28c483 = cache_frame_a857b90746524b0f4e613f69ba28c483; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a857b90746524b0f4e613f69ba28c483); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a857b90746524b0f4e613f69ba28c483) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_a857b90746524b0f4e613f69ba28c483->m_frame.f_lineno = 82; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[31]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_alpha); - tmp_assattr_name_1 = par_alpha; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[46], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gamma); - tmp_args_element_name_1 = par_gamma; - frame_a857b90746524b0f4e613f69ba28c483->m_frame.f_lineno = 84; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[48], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a857b90746524b0f4e613f69ba28c483); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a857b90746524b0f4e613f69ba28c483); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a857b90746524b0f4e613f69ba28c483, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a857b90746524b0f4e613f69ba28c483->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a857b90746524b0f4e613f69ba28c483, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a857b90746524b0f4e613f69ba28c483, - type_description_1, - par_self, - par_alpha, - par_gamma, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_a857b90746524b0f4e613f69ba28c483 == cache_frame_a857b90746524b0f4e613f69ba28c483) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a857b90746524b0f4e613f69ba28c483); - cache_frame_a857b90746524b0f4e613f69ba28c483 = NULL; - } - - assertFrameObject(frame_a857b90746524b0f4e613f69ba28c483); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_alpha); - Py_DECREF(par_alpha); - par_alpha = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_alpha); - Py_DECREF(par_alpha); - par_alpha = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__8_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_loss = NULL; - struct Nuitka_FrameObject *frame_be4d763165207bb6f34f3b001a052c77; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_be4d763165207bb6f34f3b001a052c77 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_be4d763165207bb6f34f3b001a052c77)) { - Py_XDECREF(cache_frame_be4d763165207bb6f34f3b001a052c77); - -#if _DEBUG_REFCOUNTS - if (cache_frame_be4d763165207bb6f34f3b001a052c77 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_be4d763165207bb6f34f3b001a052c77 = MAKE_FUNCTION_FRAME(codeobj_be4d763165207bb6f34f3b001a052c77, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_be4d763165207bb6f34f3b001a052c77->m_type_description == NULL); - frame_be4d763165207bb6f34f3b001a052c77 = cache_frame_be4d763165207bb6f34f3b001a052c77; - - // Push the new frame as the currently active one. - pushFrameStack(frame_be4d763165207bb6f34f3b001a052c77); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_be4d763165207bb6f34f3b001a052c77) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[46]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_be4d763165207bb6f34f3b001a052c77->m_frame.f_lineno = 87; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_right_name_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[48], - call_args - ); - } - - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[42]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[50]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[50]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_input; - if (par_target == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_target; - frame_be4d763165207bb6f34f3b001a052c77->m_frame.f_lineno = 87; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_be4d763165207bb6f34f3b001a052c77->m_frame.f_lineno = 87; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_loss); - tmp_called_instance_2 = var_loss; - frame_be4d763165207bb6f34f3b001a052c77->m_frame.f_lineno = 88; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[45]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be4d763165207bb6f34f3b001a052c77); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be4d763165207bb6f34f3b001a052c77); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_be4d763165207bb6f34f3b001a052c77); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_be4d763165207bb6f34f3b001a052c77, exception_lineno); - } else if (exception_tb->tb_frame != &frame_be4d763165207bb6f34f3b001a052c77->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_be4d763165207bb6f34f3b001a052c77, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_be4d763165207bb6f34f3b001a052c77, - type_description_1, - par_self, - par_input, - par_target, - var_loss - ); - - - // Release cached frame if used for exception. - if (frame_be4d763165207bb6f34f3b001a052c77 == cache_frame_be4d763165207bb6f34f3b001a052c77) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_be4d763165207bb6f34f3b001a052c77); - cache_frame_be4d763165207bb6f34f3b001a052c77 = NULL; - } - - assertFrameObject(frame_be4d763165207bb6f34f3b001a052c77); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__9_trans_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_sample_num = python_pars[0]; - PyObject *par_bsz = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_c_bsz = NULL; - PyObject *var_num1 = NULL; - PyObject *var_num2 = NULL; - PyObject *var_num3 = NULL; - PyObject *var_c4 = NULL; - PyObject *var_num = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_80a532cc5cda5fecebccb60ba68b1770; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_80a532cc5cda5fecebccb60ba68b1770 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_80a532cc5cda5fecebccb60ba68b1770)) { - Py_XDECREF(cache_frame_80a532cc5cda5fecebccb60ba68b1770); - -#if _DEBUG_REFCOUNTS - if (cache_frame_80a532cc5cda5fecebccb60ba68b1770 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_80a532cc5cda5fecebccb60ba68b1770 = MAKE_FUNCTION_FRAME(codeobj_80a532cc5cda5fecebccb60ba68b1770, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_80a532cc5cda5fecebccb60ba68b1770->m_type_description == NULL); - frame_80a532cc5cda5fecebccb60ba68b1770 = cache_frame_80a532cc5cda5fecebccb60ba68b1770; - - // Push the new frame as the currently active one. - pushFrameStack(frame_80a532cc5cda5fecebccb60ba68b1770); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_80a532cc5cda5fecebccb60ba68b1770) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_tuple_element_1 = par_bsz; - tmp_args_element_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[52]; - PyTuple_SET_ITEM0(tmp_args_element_name_1, 1, tmp_tuple_element_1); - frame_80a532cc5cda5fecebccb60ba68b1770->m_frame.f_lineno = 91; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[51], tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[11]; - assert(var_c_bsz == NULL); - Py_INCREF(tmp_assign_source_2); - var_c_bsz = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_sample_num); - tmp_iter_arg_1 = par_sample_num; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 93; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_num1; - var_num1 = tmp_assign_source_5; - Py_INCREF(var_num1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_num1); - tmp_called_instance_2 = var_num1; - frame_80a532cc5cda5fecebccb60ba68b1770->m_frame.f_lineno = 94; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[54], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_num2; - var_num2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_num2); - tmp_iter_arg_2 = var_num2; - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 95; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_9 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_num3; - var_num3 = tmp_assign_source_9; - Py_INCREF(var_num3); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_num3); - tmp_compexpr_left_1 = var_num3; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 96; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = mod_consts[11]; - { - PyObject *old = var_c4; - var_c4 = tmp_assign_source_10; - Py_INCREF(var_c4); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_num3); - tmp_called_instance_3 = var_num3; - frame_80a532cc5cda5fecebccb60ba68b1770->m_frame.f_lineno = 98; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[56], 0) - ); - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 98; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_13 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_num; - var_num = tmp_assign_source_13; - Py_INCREF(var_num); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_float_arg_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_num); - tmp_float_arg_1 = var_num; - tmp_ass_subvalue_1 = TO_FLOAT(tmp_float_arg_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_labels == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = var_labels; - if (var_c_bsz == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_2 = var_c_bsz; - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_2); - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_c4; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 100; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_left_name_1 = var_c4; - tmp_right_name_1 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_14 = tmp_left_name_1; - var_c4 = tmp_assign_source_14; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_c_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 101; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_left_name_2 = var_c_bsz; - tmp_right_name_2 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_15 = tmp_left_name_2; - var_c_bsz = tmp_assign_source_15; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_labels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 102; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_labels; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80a532cc5cda5fecebccb60ba68b1770); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80a532cc5cda5fecebccb60ba68b1770); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80a532cc5cda5fecebccb60ba68b1770); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_80a532cc5cda5fecebccb60ba68b1770, exception_lineno); - } else if (exception_tb->tb_frame != &frame_80a532cc5cda5fecebccb60ba68b1770->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_80a532cc5cda5fecebccb60ba68b1770, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_80a532cc5cda5fecebccb60ba68b1770, - type_description_1, - par_sample_num, - par_bsz, - var_labels, - var_c_bsz, - var_num1, - var_num2, - var_num3, - var_c4, - var_num - ); - - - // Release cached frame if used for exception. - if (frame_80a532cc5cda5fecebccb60ba68b1770 == cache_frame_80a532cc5cda5fecebccb60ba68b1770) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_80a532cc5cda5fecebccb60ba68b1770); - cache_frame_80a532cc5cda5fecebccb60ba68b1770 = NULL; - } - - assertFrameObject(frame_80a532cc5cda5fecebccb60ba68b1770); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__10_trans_det(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_sample_num = python_pars[0]; - PyObject *par_bsz = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_c_bsz = NULL; - PyObject *var_num1 = NULL; - PyObject *var_num2 = NULL; - PyObject *var_num3 = NULL; - PyObject *var_c4 = NULL; - PyObject *var_num = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_5d3730cffd30a603a90d37809e509118; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_5d3730cffd30a603a90d37809e509118 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5d3730cffd30a603a90d37809e509118)) { - Py_XDECREF(cache_frame_5d3730cffd30a603a90d37809e509118); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5d3730cffd30a603a90d37809e509118 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5d3730cffd30a603a90d37809e509118 = MAKE_FUNCTION_FRAME(codeobj_5d3730cffd30a603a90d37809e509118, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5d3730cffd30a603a90d37809e509118->m_type_description == NULL); - frame_5d3730cffd30a603a90d37809e509118 = cache_frame_5d3730cffd30a603a90d37809e509118; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5d3730cffd30a603a90d37809e509118); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5d3730cffd30a603a90d37809e509118) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_tuple_element_1 = par_bsz; - tmp_args_element_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[61]; - PyTuple_SET_ITEM0(tmp_args_element_name_1, 1, tmp_tuple_element_1); - frame_5d3730cffd30a603a90d37809e509118->m_frame.f_lineno = 105; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[51], tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[11]; - assert(var_c_bsz == NULL); - Py_INCREF(tmp_assign_source_2); - var_c_bsz = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_sample_num); - tmp_iter_arg_1 = par_sample_num; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 107; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_num1; - var_num1 = tmp_assign_source_5; - Py_INCREF(var_num1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_num1); - tmp_called_instance_2 = var_num1; - frame_5d3730cffd30a603a90d37809e509118->m_frame.f_lineno = 108; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[62], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_num2; - var_num2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_num2); - tmp_iter_arg_2 = var_num2; - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 109; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_9 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_num3; - var_num3 = tmp_assign_source_9; - Py_INCREF(var_num3); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_num3); - tmp_compexpr_left_1 = var_num3; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 110; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = mod_consts[11]; - { - PyObject *old = var_c4; - var_c4 = tmp_assign_source_10; - Py_INCREF(var_c4); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_num3); - tmp_called_instance_3 = var_num3; - frame_5d3730cffd30a603a90d37809e509118->m_frame.f_lineno = 112; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[56], 0) - ); - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 112; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_13 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_num; - var_num = tmp_assign_source_13; - Py_INCREF(var_num); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_float_arg_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_num); - tmp_float_arg_1 = var_num; - tmp_ass_subvalue_1 = TO_FLOAT(tmp_float_arg_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_labels == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = var_labels; - if (var_c_bsz == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_2 = var_c_bsz; - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_2); - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_c4; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_left_name_1 = var_c4; - tmp_right_name_1 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_14 = tmp_left_name_1; - var_c4 = tmp_assign_source_14; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_c_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 115; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_left_name_2 = var_c_bsz; - tmp_right_name_2 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_15 = tmp_left_name_2; - var_c_bsz = tmp_assign_source_15; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_labels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 116; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_labels; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5d3730cffd30a603a90d37809e509118); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5d3730cffd30a603a90d37809e509118); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5d3730cffd30a603a90d37809e509118); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5d3730cffd30a603a90d37809e509118, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5d3730cffd30a603a90d37809e509118->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5d3730cffd30a603a90d37809e509118, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5d3730cffd30a603a90d37809e509118, - type_description_1, - par_sample_num, - par_bsz, - var_labels, - var_c_bsz, - var_num1, - var_num2, - var_num3, - var_c4, - var_num - ); - - - // Release cached frame if used for exception. - if (frame_5d3730cffd30a603a90d37809e509118 == cache_frame_5d3730cffd30a603a90d37809e509118) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5d3730cffd30a603a90d37809e509118); - cache_frame_5d3730cffd30a603a90d37809e509118 = NULL; - } - - assertFrameObject(frame_5d3730cffd30a603a90d37809e509118); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__11_trans_keypoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_sample_num = python_pars[0]; - PyObject *par_bsz = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_c_bsz = NULL; - PyObject *var_num1 = NULL; - PyObject *var_num2 = NULL; - PyObject *var_num3 = NULL; - PyObject *var_c4 = NULL; - PyObject *var_num = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_421a1f3164c7f8a0d45fec2238125564; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_421a1f3164c7f8a0d45fec2238125564 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_421a1f3164c7f8a0d45fec2238125564)) { - Py_XDECREF(cache_frame_421a1f3164c7f8a0d45fec2238125564); - -#if _DEBUG_REFCOUNTS - if (cache_frame_421a1f3164c7f8a0d45fec2238125564 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_421a1f3164c7f8a0d45fec2238125564 = MAKE_FUNCTION_FRAME(codeobj_421a1f3164c7f8a0d45fec2238125564, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_421a1f3164c7f8a0d45fec2238125564->m_type_description == NULL); - frame_421a1f3164c7f8a0d45fec2238125564 = cache_frame_421a1f3164c7f8a0d45fec2238125564; - - // Push the new frame as the currently active one. - pushFrameStack(frame_421a1f3164c7f8a0d45fec2238125564); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_421a1f3164c7f8a0d45fec2238125564) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_tuple_element_1 = par_bsz; - tmp_args_element_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[63]; - PyTuple_SET_ITEM0(tmp_args_element_name_1, 1, tmp_tuple_element_1); - frame_421a1f3164c7f8a0d45fec2238125564->m_frame.f_lineno = 119; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[51], tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[11]; - assert(var_c_bsz == NULL); - Py_INCREF(tmp_assign_source_2); - var_c_bsz = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_sample_num); - tmp_iter_arg_1 = par_sample_num; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 121; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_num1; - var_num1 = tmp_assign_source_5; - Py_INCREF(var_num1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_num1); - tmp_called_instance_2 = var_num1; - frame_421a1f3164c7f8a0d45fec2238125564->m_frame.f_lineno = 122; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[62], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_num2; - var_num2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_num2); - tmp_iter_arg_2 = var_num2; - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 123; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_9 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_num3; - var_num3 = tmp_assign_source_9; - Py_INCREF(var_num3); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_num3); - tmp_compexpr_left_1 = var_num3; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 124; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = mod_consts[11]; - { - PyObject *old = var_c4; - var_c4 = tmp_assign_source_10; - Py_INCREF(var_c4); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_num3); - tmp_called_instance_3 = var_num3; - frame_421a1f3164c7f8a0d45fec2238125564->m_frame.f_lineno = 126; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[56], 0) - ); - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 126; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_13 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_num; - var_num = tmp_assign_source_13; - Py_INCREF(var_num); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_float_arg_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_num); - tmp_float_arg_1 = var_num; - tmp_ass_subvalue_1 = TO_FLOAT(tmp_float_arg_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_labels == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = var_labels; - if (var_c_bsz == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_2 = var_c_bsz; - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_2); - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_c4; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 128; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_left_name_1 = var_c4; - tmp_right_name_1 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_14 = tmp_left_name_1; - var_c4 = tmp_assign_source_14; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_c_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 129; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_left_name_2 = var_c_bsz; - tmp_right_name_2 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_15 = tmp_left_name_2; - var_c_bsz = tmp_assign_source_15; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_labels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_labels; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_421a1f3164c7f8a0d45fec2238125564); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_421a1f3164c7f8a0d45fec2238125564); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_421a1f3164c7f8a0d45fec2238125564); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_421a1f3164c7f8a0d45fec2238125564, exception_lineno); - } else if (exception_tb->tb_frame != &frame_421a1f3164c7f8a0d45fec2238125564->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_421a1f3164c7f8a0d45fec2238125564, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_421a1f3164c7f8a0d45fec2238125564, - type_description_1, - par_sample_num, - par_bsz, - var_labels, - var_c_bsz, - var_num1, - var_num2, - var_num3, - var_c4, - var_num - ); - - - // Release cached frame if used for exception. - if (frame_421a1f3164c7f8a0d45fec2238125564 == cache_frame_421a1f3164c7f8a0d45fec2238125564) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_421a1f3164c7f8a0d45fec2238125564); - cache_frame_421a1f3164c7f8a0d45fec2238125564 = NULL; - } - - assertFrameObject(frame_421a1f3164c7f8a0d45fec2238125564); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__12___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_freeze_vit = python_pars[1]; - PyObject *par_num_query_token = python_pars[2]; - PyObject *par_llama_model = python_pars[3]; - PyObject *par_max_txt_len = python_pars[4]; - PyObject *par_low_resource = python_pars[5]; - PyObject *par_end_sym = python_pars[6]; - PyObject *var_name = NULL; - PyObject *var_param = NULL; - PyObject *var_special_token = NULL; - PyObject *var_CastOutputToFloat = NULL; - PyObject *var_peft_config = NULL; - PyObject *var_text_det = NULL; - PyObject *var_text2seg_2d = NULL; - PyObject *var_text2seg_3d = NULL; - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - PyObject *tmp_for_loop_4__for_iterator = NULL; - PyObject *tmp_for_loop_4__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_tuple_unpack_4__element_1 = NULL; - PyObject *tmp_tuple_unpack_4__element_2 = NULL; - PyObject *tmp_tuple_unpack_4__source_iter = NULL; - struct Nuitka_FrameObject *frame_ea4311308622894ee092f9d1d78caed6; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *tmp_dictset_value; - PyObject *tmp_dictset_dict; - PyObject *tmp_dictset_key; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214 = NULL; - struct Nuitka_FrameObject *frame_f7ea6d2166fdaac86d7b7ca1183fa788_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - static struct Nuitka_FrameObject *cache_frame_ea4311308622894ee092f9d1d78caed6 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ea4311308622894ee092f9d1d78caed6)) { - Py_XDECREF(cache_frame_ea4311308622894ee092f9d1d78caed6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ea4311308622894ee092f9d1d78caed6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ea4311308622894ee092f9d1d78caed6 = MAKE_FUNCTION_FRAME(codeobj_ea4311308622894ee092f9d1d78caed6, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ea4311308622894ee092f9d1d78caed6->m_type_description == NULL); - frame_ea4311308622894ee092f9d1d78caed6 = cache_frame_ea4311308622894ee092f9d1d78caed6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ea4311308622894ee092f9d1d78caed6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ea4311308622894ee092f9d1d78caed6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 147; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[31]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 149; - tmp_assattr_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[64]); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[65], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_low_resource); - tmp_assattr_name_2 = par_low_resource; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 150; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[66], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_2; - tmp_called_name_1 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_1 != NULL); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 152; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, mod_consts[68]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_assattr_target_3; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[69]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[69]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 153; - tmp_assattr_name_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[70], - &PyTuple_GET_ITEM(mod_consts[71], 0) - ); - - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[72], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[74]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 154; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[75], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_assattr_target_5; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 155; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, mod_consts[77]); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[78], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_4; - PyObject *tmp_assattr_target_6; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 156; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, mod_consts[79]); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[80], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_freeze_vit); - tmp_truth_name_1 = CHECK_IF_TRUE(par_freeze_vit); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 159; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[81]); - Py_DECREF(tmp_called_instance_4); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_6; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_7; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_assattr_target_7; - tmp_assattr_name_7 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_7 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[82], tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_2; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_called_instance_5; - PyObject *tmp_expression_name_2; - PyObject *tmp_assattr_target_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_instance_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[72]); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 161; - tmp_assattr_name_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[83]); - Py_DECREF(tmp_called_instance_5); - if (tmp_assattr_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[72], tmp_assattr_name_8); - Py_DECREF(tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_assattr_target_9; - PyObject *tmp_expression_name_3; - tmp_assattr_name_9 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_9 == NULL)) { - tmp_assattr_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_assattr_target_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[72]); - if (tmp_assattr_target_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[85], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_target_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_6; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_instance_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[78]); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 163; - tmp_iter_arg_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[81]); - Py_DECREF(tmp_called_instance_6); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_2__for_iterator == NULL); - tmp_for_loop_2__for_iterator = tmp_assign_source_8; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_9 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_9 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_4 = tmp_for_loop_2__iter_value; - tmp_assign_source_10 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_12 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_12 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - } - goto try_end_4; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_6; - // End of try: - try_end_4:; - goto try_end_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_5; - // End of try: - try_end_5:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_13 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_13; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_14 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_14; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_assattr_target_10; - tmp_assattr_name_10 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_10 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[82], tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_5; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_5; - } - goto loop_start_2; - loop_end_2:; - goto try_end_6; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_called_instance_7; - PyObject *tmp_expression_name_5; - PyObject *tmp_assattr_target_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_called_instance_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[78]); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 165; - tmp_assattr_name_11 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[83]); - Py_DECREF(tmp_called_instance_7); - if (tmp_assattr_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[78], tmp_assattr_name_11); - Py_DECREF(tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_assattr_target_12; - PyObject *tmp_expression_name_6; - tmp_assattr_name_12 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_12 == NULL)) { - tmp_assattr_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_assattr_target_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[78]); - if (tmp_assattr_target_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[85], tmp_assattr_name_12); - Py_DECREF(tmp_assattr_target_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_iter_arg_5; - PyObject *tmp_called_instance_8; - PyObject *tmp_expression_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_called_instance_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[75]); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 167; - tmp_iter_arg_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[81]); - Py_DECREF(tmp_called_instance_8); - if (tmp_iter_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_15 = MAKE_ITERATOR(tmp_iter_arg_5); - Py_DECREF(tmp_iter_arg_5); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_15; - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_16 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_16 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_iter_arg_6; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_iter_arg_6 = tmp_for_loop_3__iter_value; - tmp_assign_source_17 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_6); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_18; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_18 = UNPACK_NEXT(tmp_unpack_5, 0, 2); - if (tmp_assign_source_18 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_19 = UNPACK_NEXT(tmp_unpack_6, 1, 2); - if (tmp_assign_source_19 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - } - goto try_end_7; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_9; - // End of try: - try_end_7:; - goto try_end_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_8; - // End of try: - try_end_8:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_20; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_20 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_20; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_21 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_21; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_assattr_target_13; - tmp_assattr_name_13 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_13 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[82], tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_8; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_8; - } - goto loop_start_3; - loop_end_3:; - goto try_end_9; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assattr_name_14; - PyObject *tmp_called_instance_9; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_instance_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[75]); - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 169; - tmp_assattr_name_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[83]); - Py_DECREF(tmp_called_instance_9); - if (tmp_assattr_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_14 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_14, mod_consts[75], tmp_assattr_name_14); - Py_DECREF(tmp_assattr_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_15; - PyObject *tmp_assattr_target_15; - PyObject *tmp_expression_name_9; - tmp_assattr_name_15 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_15 == NULL)) { - tmp_assattr_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_self; - tmp_assattr_target_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[75]); - if (tmp_assattr_target_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_15, mod_consts[85], tmp_assattr_name_15); - Py_DECREF(tmp_assattr_target_15); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_iter_arg_7; - PyObject *tmp_called_instance_10; - PyObject *tmp_expression_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_called_instance_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[80]); - if (tmp_called_instance_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 171; - tmp_iter_arg_7 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[81]); - Py_DECREF(tmp_called_instance_10); - if (tmp_iter_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_22 = MAKE_ITERATOR(tmp_iter_arg_7); - Py_DECREF(tmp_iter_arg_7); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_4__for_iterator == NULL); - tmp_for_loop_4__for_iterator = tmp_assign_source_22; - } - // Tried code: - loop_start_4:; - { - PyObject *tmp_next_source_4; - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_for_loop_4__for_iterator); - tmp_next_source_4 = tmp_for_loop_4__for_iterator; - tmp_assign_source_23 = ITERATOR_NEXT(tmp_next_source_4); - if (tmp_assign_source_23 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_4; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_11; - } - } - - { - PyObject *old = tmp_for_loop_4__iter_value; - tmp_for_loop_4__iter_value = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_24; - PyObject *tmp_iter_arg_8; - CHECK_OBJECT(tmp_for_loop_4__iter_value); - tmp_iter_arg_8 = tmp_for_loop_4__iter_value; - tmp_assign_source_24 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_8); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_12; - } - { - PyObject *old = tmp_tuple_unpack_4__source_iter; - tmp_tuple_unpack_4__source_iter = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_25 = UNPACK_NEXT(tmp_unpack_7, 0, 2); - if (tmp_assign_source_25 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_1; - tmp_tuple_unpack_4__element_1 = tmp_assign_source_25; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_26 = UNPACK_NEXT(tmp_unpack_8, 1, 2); - if (tmp_assign_source_26 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_2; - tmp_tuple_unpack_4__element_2 = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_4; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_iterator_name_4 = tmp_tuple_unpack_4__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_4); assert(HAS_ITERNEXT(tmp_iterator_name_4)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_4)->tp_iternext)(tmp_iterator_name_4); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - } - goto try_end_10; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_12; - // End of try: - try_end_10:; - goto try_end_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_11; - // End of try: - try_end_11:; - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - { - PyObject *tmp_assign_source_27; - CHECK_OBJECT(tmp_tuple_unpack_4__element_1); - tmp_assign_source_27 = tmp_tuple_unpack_4__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_27; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - - { - PyObject *tmp_assign_source_28; - CHECK_OBJECT(tmp_tuple_unpack_4__element_2); - tmp_assign_source_28 = tmp_tuple_unpack_4__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_28; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - { - PyObject *tmp_assattr_name_16; - PyObject *tmp_assattr_target_16; - tmp_assattr_name_16 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_16 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_16, mod_consts[82], tmp_assattr_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_11; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_11; - } - goto loop_start_4; - loop_end_4:; - goto try_end_12; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - { - PyObject *tmp_assattr_name_17; - PyObject *tmp_called_instance_11; - PyObject *tmp_expression_name_11; - PyObject *tmp_assattr_target_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_called_instance_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[80]); - if (tmp_called_instance_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 173; - tmp_assattr_name_17 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[83]); - Py_DECREF(tmp_called_instance_11); - if (tmp_assattr_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_17 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_17, mod_consts[80], tmp_assattr_name_17); - Py_DECREF(tmp_assattr_name_17); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_18; - PyObject *tmp_assattr_target_18; - PyObject *tmp_expression_name_12; - tmp_assattr_name_18 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_18 == NULL)) { - tmp_assattr_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_assattr_target_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[80]); - if (tmp_assattr_target_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_18, mod_consts[85], tmp_assattr_name_18); - Py_DECREF(tmp_assattr_target_18); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_12; - PyObject *tmp_call_result_3; - tmp_called_instance_12 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[86]); - - if (unlikely(tmp_called_instance_12 == NULL)) { - tmp_called_instance_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[86]); - } - - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 175; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_12, - mod_consts[87], - &PyTuple_GET_ITEM(mod_consts[88], 0) - ); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_1:; - { - PyObject *tmp_called_name_5; - PyObject *tmp_call_result_4; - tmp_called_name_5 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_5 != NULL); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 176; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, mod_consts[89]); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_call_result_5; - tmp_called_name_6 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_6 != NULL); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 178; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, mod_consts[90]); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_5); - } - { - PyObject *tmp_assattr_name_19; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_19; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[70]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_llama_model); - tmp_tuple_element_1 = par_llama_model; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[92]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 179; - tmp_assattr_name_19 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_19 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_19, mod_consts[93], tmp_assattr_name_19); - Py_DECREF(tmp_assattr_name_19); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_29; - tmp_assign_source_29 = PyDict_New(); - assert(var_special_token == NULL); - var_special_token = tmp_assign_source_29; - } - tmp_dictset_value = LIST_COPY(mod_consts[94]); - CHECK_OBJECT(var_special_token); - tmp_dictset_dict = var_special_token; - tmp_dictset_key = mod_consts[95]; - tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - assert(!(tmp_res != 0)); - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_call_result_6; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_self; - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[93]); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[96]); - Py_DECREF(tmp_expression_name_14); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_special_token == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[97]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = var_special_token; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 182; - tmp_call_result_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_8); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_6); - } - { - PyObject *tmp_called_instance_13; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_called_instance_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[93]); - if (tmp_called_instance_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 185; - tmp_call_result_7 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_13, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[99], 0) - ); - - Py_DECREF(tmp_called_instance_13); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_7); - } - { - PyObject *tmp_called_instance_14; - PyObject *tmp_expression_name_17; - PyObject *tmp_call_result_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 186; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_called_instance_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[93]); - if (tmp_called_instance_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 186; - tmp_call_result_8 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_14, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[100], 0) - ); - - Py_DECREF(tmp_called_instance_14); - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_8); - } - { - PyObject *tmp_called_instance_15; - PyObject *tmp_expression_name_18; - PyObject *tmp_call_result_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_self; - tmp_called_instance_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[93]); - if (tmp_called_instance_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 187; - tmp_call_result_9 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_15, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - Py_DECREF(tmp_called_instance_15); - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_9); - } - { - PyObject *tmp_called_instance_16; - PyObject *tmp_expression_name_19; - PyObject *tmp_call_result_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 189; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_self; - tmp_called_instance_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[93]); - if (tmp_called_instance_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 189; - tmp_call_result_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_16, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[102], 0) - ); - - Py_DECREF(tmp_called_instance_16); - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_10); - } - { - PyObject *tmp_assattr_name_20; - PyObject *tmp_expression_name_20; - PyObject *tmp_expression_name_21; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_name_2; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_assattr_target_20; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_self; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[93]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = mod_consts[99]; - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[103]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 190; - tmp_expression_name_21 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[104]); - Py_DECREF(tmp_expression_name_21); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assattr_name_20 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_20, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_20); - if (tmp_assattr_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_20 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_20, mod_consts[105], tmp_assattr_name_20); - Py_DECREF(tmp_assattr_name_20); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_21; - PyObject *tmp_expression_name_23; - PyObject *tmp_expression_name_24; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_25; - PyObject *tmp_args_name_3; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_subscript_name_2; - PyObject *tmp_assattr_target_21; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[93]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = mod_consts[100]; - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[103]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 191; - tmp_expression_name_24 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[104]); - Py_DECREF(tmp_expression_name_24); - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[11]; - tmp_assattr_name_21 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_23, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_23); - if (tmp_assattr_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_21); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_21 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_21, mod_consts[106], tmp_assattr_name_21); - Py_DECREF(tmp_assattr_name_21); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_22; - PyObject *tmp_expression_name_26; - PyObject *tmp_expression_name_27; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_28; - PyObject *tmp_args_name_4; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_subscript_name_3; - PyObject *tmp_assattr_target_22; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_self; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[93]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_4 = mod_consts[101]; - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[103]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 192; - tmp_expression_name_27 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[104]); - Py_DECREF(tmp_expression_name_27); - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[11]; - tmp_assattr_name_22 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_26, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_26); - if (tmp_assattr_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_22); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_22 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_22, mod_consts[107], tmp_assattr_name_22); - Py_DECREF(tmp_assattr_name_22); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_23; - PyObject *tmp_expression_name_29; - PyObject *tmp_expression_name_30; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_subscript_name_4; - PyObject *tmp_assattr_target_23; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[93]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_5 = mod_consts[102]; - tmp_kwargs_name_6 = PyDict_Copy(mod_consts[103]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 194; - tmp_expression_name_30 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_5, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[104]); - Py_DECREF(tmp_expression_name_30); - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[11]; - tmp_assattr_name_23 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_29, tmp_subscript_name_4, 0); - Py_DECREF(tmp_expression_name_29); - if (tmp_assattr_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_23 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_23, mod_consts[108], tmp_assattr_name_23); - Py_DECREF(tmp_assattr_name_23); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_24; - PyObject *tmp_assattr_target_24; - PyObject *tmp_expression_name_32; - tmp_assattr_name_24 = mod_consts[11]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 195; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = par_self; - tmp_assattr_target_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[93]); - if (tmp_assattr_target_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_24, mod_consts[109], tmp_assattr_name_24); - Py_DECREF(tmp_assattr_target_24); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_33; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_33 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[66]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 197; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_25; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_7; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_35; - PyObject *tmp_assattr_target_25; - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[70]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_llama_model == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_llama_model; - tmp_args_name_6 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[112]; - tmp_expression_name_35 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_35 == NULL)) { - tmp_expression_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[113]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_7 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[114]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[115]; - tmp_dict_value_1 = mod_consts[116]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 198; - tmp_assattr_name_25 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_6, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_assattr_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_25); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_25 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_25, mod_consts[111], tmp_assattr_name_25); - Py_DECREF(tmp_assattr_name_25); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_26; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_36; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_8; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_37; - PyObject *tmp_assattr_target_26; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[70]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_llama_model == NULL) { - Py_DECREF(tmp_called_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_llama_model; - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[112]; - tmp_expression_name_37 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_37 == NULL)) { - tmp_expression_name_37 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[113]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_8 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_8, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 205; - tmp_assattr_name_26 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_7, tmp_kwargs_name_8); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_8); - if (tmp_assattr_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_26); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_26 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_26, mod_consts[111], tmp_assattr_name_26); - Py_DECREF(tmp_assattr_name_26); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_38; - PyObject *tmp_expression_name_39; - PyObject *tmp_call_result_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_len_arg_1; - PyObject *tmp_expression_name_40; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_39 = par_self; - tmp_expression_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[111]); - if (tmp_expression_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[117]); - Py_DECREF(tmp_expression_name_38); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_40 = par_self; - tmp_len_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[93]); - if (tmp_len_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = BUILTIN_LEN(tmp_len_arg_1); - Py_DECREF(tmp_len_arg_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 210; - tmp_call_result_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_15, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_11); - } - { - PyObject *tmp_assattr_name_27; - PyObject *tmp_called_instance_17; - PyObject *tmp_expression_name_41; - PyObject *tmp_assattr_target_27; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_41 = par_self; - tmp_called_instance_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[111]); - if (tmp_called_instance_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 211; - tmp_assattr_name_27 = CALL_METHOD_NO_ARGS(tmp_called_instance_17, mod_consts[118]); - Py_DECREF(tmp_called_instance_17); - if (tmp_assattr_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_27); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_27 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_27, mod_consts[119], tmp_assattr_name_27); - Py_DECREF(tmp_assattr_name_27); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_28; - PyObject *tmp_called_instance_18; - PyObject *tmp_expression_name_42; - PyObject *tmp_assattr_target_28; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_42 = par_self; - tmp_called_instance_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[111]); - if (tmp_called_instance_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 212; - tmp_assattr_name_28 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[120]); - Py_DECREF(tmp_called_instance_18); - if (tmp_assattr_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_28); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_28 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_28, mod_consts[121], tmp_assattr_name_28); - Py_DECREF(tmp_assattr_name_28); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - // Tried code: - { - PyObject *tmp_assign_source_30; - PyObject *tmp_tuple_element_4; - PyObject *tmp_expression_name_43; - tmp_expression_name_43 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_43 == NULL)) { - tmp_expression_name_43 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_tuple_element_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[122]); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_assign_source_30 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_30, 0, tmp_tuple_element_4); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_30; - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_31 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - tmp_assign_source_32 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_3; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_44; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[123]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_condition_result_4 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_44 = tmp_class_creation_1__bases; - tmp_subscript_name_5 = mod_consts[11]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_44, tmp_subscript_name_5, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_33 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_33; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_5 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - branch_no_3:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_expression_name_45; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_45 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_45, mod_consts[124]); - tmp_condition_result_6 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_46; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_46 = tmp_class_creation_1__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[124]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_tuple_element_5 = mod_consts[125]; - tmp_args_name_8 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_5 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_1__class_decl_dict; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 214; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_8, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_47; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_47 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_47, mod_consts[126]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_condition_result_7 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_6; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[128]; - tmp_getattr_default_1 = mod_consts[129]; - tmp_tuple_element_6 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_48; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_48 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_48 == NULL)); - tmp_tuple_element_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[128]); - Py_DECREF(tmp_expression_name_48); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_6); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 214; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - branch_no_5:; - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assign_source_35; - tmp_assign_source_35 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_35; - } - branch_end_4:; - { - PyObject *tmp_assign_source_36; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[131]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - if (isFrameUnusable(cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2)) { - Py_XDECREF(cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2 = MAKE_FUNCTION_FRAME(codeobj_f7ea6d2166fdaac86d7b7ca1183fa788, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2->m_type_description == NULL); - frame_f7ea6d2166fdaac86d7b7ca1183fa788_2 = cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f7ea6d2166fdaac86d7b7ca1183fa788_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f7ea6d2166fdaac86d7b7ca1183fa788_2) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__12___init__$$$function__1_forward(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f7ea6d2166fdaac86d7b7ca1183fa788_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f7ea6d2166fdaac86d7b7ca1183fa788_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f7ea6d2166fdaac86d7b7ca1183fa788_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f7ea6d2166fdaac86d7b7ca1183fa788_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f7ea6d2166fdaac86d7b7ca1183fa788_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f7ea6d2166fdaac86d7b7ca1183fa788_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_f7ea6d2166fdaac86d7b7ca1183fa788_2 == cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2); - cache_frame_f7ea6d2166fdaac86d7b7ca1183fa788_2 = NULL; - } - - assertFrameObject(frame_f7ea6d2166fdaac86d7b7ca1183fa788_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_8 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_8 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - assert(tmp_condition_result_8 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_6:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - branch_no_6:; - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_17 = tmp_class_creation_1__metaclass; - tmp_tuple_element_7 = mod_consts[125]; - tmp_args_name_9 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_7 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_7); - tmp_tuple_element_7 = locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214; - PyTuple_SET_ITEM0(tmp_args_name_9, 2, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_1__class_decl_dict; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 214; - tmp_assign_source_37 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_9, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_37); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_36 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_36); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_DECREF(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214); - locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214 = NULL; - goto try_return_handler_15; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214); - locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_15; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 214; - goto try_except_handler_14; - outline_result_1:; - assert(var_CastOutputToFloat == NULL); - var_CastOutputToFloat = tmp_assign_source_36; - } - goto try_end_13; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_13:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assattr_name_29; - PyObject *tmp_called_name_18; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_49; - PyObject *tmp_expression_name_50; - PyObject *tmp_assattr_target_29; - PyObject *tmp_expression_name_51; - CHECK_OBJECT(var_CastOutputToFloat); - tmp_called_name_18 = var_CastOutputToFloat; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_50 = par_self; - tmp_expression_name_49 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[111]); - if (tmp_expression_name_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[135]); - Py_DECREF(tmp_expression_name_49); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 216; - tmp_assattr_name_29 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_18, tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assattr_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_29); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_51 = par_self; - tmp_assattr_target_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_51, mod_consts[111]); - if (tmp_assattr_target_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_29); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_29, mod_consts[135], tmp_assattr_name_29); - Py_DECREF(tmp_assattr_name_29); - Py_DECREF(tmp_assattr_target_29); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_19; - PyObject *tmp_call_result_12; - tmp_called_name_19 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_19 != NULL); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 219; - tmp_call_result_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_19, mod_consts[136]); - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_12); - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_20; - PyObject *tmp_kwargs_name_11; - tmp_called_name_20 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[137]); - - if (unlikely(tmp_called_name_20 == NULL)) { - tmp_called_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[137]); - } - - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_11 = DEEP_COPY(mod_consts[138]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 220; - tmp_assign_source_38 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_20, tmp_kwargs_name_11); - Py_DECREF(tmp_kwargs_name_11); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_peft_config == NULL); - var_peft_config = tmp_assign_source_38; - } - { - PyObject *tmp_assattr_name_30; - PyObject *tmp_called_name_21; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_52; - PyObject *tmp_args_element_name_5; - PyObject *tmp_assattr_target_30; - tmp_called_name_21 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[139]); - - if (unlikely(tmp_called_name_21 == NULL)) { - tmp_called_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[139]); - } - - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_52 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[111]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_peft_config); - tmp_args_element_name_5 = var_peft_config; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 226; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_assattr_name_30 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_21, call_args); - } - - Py_DECREF(tmp_args_element_name_4); - if (tmp_assattr_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_30); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_30 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_30, mod_consts[111], tmp_assattr_name_30); - Py_DECREF(tmp_assattr_name_30); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_31; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_53; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_54; - PyObject *tmp_expression_name_55; - PyObject *tmp_expression_name_56; - PyObject *tmp_assattr_target_31; - tmp_expression_name_53 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_53 == NULL)) { - tmp_expression_name_53 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_53, mod_consts[140]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_6 = mod_consts[77]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_22); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_56 = par_self; - tmp_expression_name_55 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[111]); - if (tmp_expression_name_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_54 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[141]); - Py_DECREF(tmp_expression_name_55); - if (tmp_expression_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[142]); - Py_DECREF(tmp_expression_name_54); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 227; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assattr_name_31 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_22, call_args); - } - - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assattr_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_31 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_31, mod_consts[143], tmp_assattr_name_31); - Py_DECREF(tmp_assattr_name_31); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_32; - PyObject *tmp_called_name_23; - PyObject *tmp_expression_name_57; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_58; - PyObject *tmp_expression_name_59; - PyObject *tmp_expression_name_60; - PyObject *tmp_assattr_target_32; - tmp_expression_name_57 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_57 == NULL)) { - tmp_expression_name_57 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[140]); - if (tmp_called_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_8 = mod_consts[79]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_60 = par_self; - tmp_expression_name_59 = LOOKUP_ATTRIBUTE(tmp_expression_name_60, mod_consts[111]); - if (tmp_expression_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_58 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[141]); - Py_DECREF(tmp_expression_name_59); - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_58, mod_consts[142]); - Py_DECREF(tmp_expression_name_58); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 228; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assattr_name_32 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_23, call_args); - } - - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assattr_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_32); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_32 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_32, mod_consts[144], tmp_assattr_name_32); - Py_DECREF(tmp_assattr_name_32); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_61; - PyObject *tmp_args_element_name_10; - PyObject *tmp_called_name_25; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_62; - PyObject *tmp_expression_name_63; - PyObject *tmp_expression_name_64; - PyObject *tmp_args_element_name_12; - PyObject *tmp_called_name_26; - PyObject *tmp_expression_name_65; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_66; - PyObject *tmp_expression_name_67; - PyObject *tmp_expression_name_68; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - PyObject *tmp_called_name_27; - PyObject *tmp_expression_name_69; - PyObject *tmp_kwargs_name_12; - PyObject *tmp_args_element_name_16; - PyObject *tmp_called_name_28; - PyObject *tmp_args_element_name_17; - PyObject *tmp_called_instance_19; - tmp_expression_name_61 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_61 == NULL)) { - tmp_expression_name_61 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[122]); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_25 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_25 == NULL)) { - tmp_called_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_24); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_64 = par_self; - tmp_expression_name_63 = LOOKUP_ATTRIBUTE(tmp_expression_name_64, mod_consts[111]); - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_62 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[141]); - Py_DECREF(tmp_expression_name_63); - if (tmp_expression_name_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[142]); - Py_DECREF(tmp_expression_name_62); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 232; - tmp_args_element_name_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_25, tmp_args_element_name_11); - Py_DECREF(tmp_args_element_name_11); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_65 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_65 == NULL)) { - tmp_expression_name_65 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[140]); - if (tmp_called_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_68 = par_self; - tmp_expression_name_67 = LOOKUP_ATTRIBUTE(tmp_expression_name_68, mod_consts[111]); - if (tmp_expression_name_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_66 = LOOKUP_ATTRIBUTE(tmp_expression_name_67, mod_consts[141]); - Py_DECREF(tmp_expression_name_67); - if (tmp_expression_name_66 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_66, mod_consts[142]); - Py_DECREF(tmp_expression_name_66); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = mod_consts[79]; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 233; - { - PyObject *call_args[] = {tmp_args_element_name_13, tmp_args_element_name_14}; - tmp_args_element_name_12 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_26, call_args); - } - - Py_DECREF(tmp_called_name_26); - Py_DECREF(tmp_args_element_name_13); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_69 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_69 == NULL)) { - tmp_expression_name_69 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 234; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_69, mod_consts[145]); - if (tmp_called_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 234; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_12 = PyDict_Copy(mod_consts[146]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 234; - tmp_args_element_name_15 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_27, tmp_kwargs_name_12); - Py_DECREF(tmp_called_name_27); - Py_DECREF(tmp_kwargs_name_12); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 234; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_28 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_28 == NULL)) { - tmp_called_name_28 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - - exception_lineno = 235; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 235; - tmp_args_element_name_16 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_28, mod_consts[79]); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - - exception_lineno = 235; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_19 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_called_instance_19 == NULL)) { - tmp_called_instance_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_called_instance_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - Py_DECREF(tmp_args_element_name_16); - - exception_lineno = 236; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 236; - tmp_args_element_name_17 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_19, - mod_consts[140], - &PyTuple_GET_ITEM(mod_consts[147], 0) - ); - - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - Py_DECREF(tmp_args_element_name_16); - - exception_lineno = 236; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 231; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_12, tmp_args_element_name_15, tmp_args_element_name_16, tmp_args_element_name_17}; - tmp_assign_source_39 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_24, call_args); - } - - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - Py_DECREF(tmp_args_element_name_16); - Py_DECREF(tmp_args_element_name_17); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_text_det == NULL); - var_text_det = tmp_assign_source_39; - } - { - PyObject *tmp_assattr_name_33; - PyObject *tmp_assattr_target_33; - CHECK_OBJECT(var_text_det); - tmp_assattr_name_33 = var_text_det; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 238; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_33 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_33, mod_consts[148], tmp_assattr_name_33); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_34; - PyObject *tmp_called_instance_20; - PyObject *tmp_expression_name_70; - PyObject *tmp_assattr_target_34; - tmp_expression_name_70 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_70 == NULL)) { - tmp_expression_name_70 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_70, mod_consts[15]); - if (tmp_called_instance_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 239; - tmp_assattr_name_34 = CALL_METHOD_NO_ARGS(tmp_called_instance_20, mod_consts[149]); - Py_DECREF(tmp_called_instance_20); - if (tmp_assattr_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_34); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_34 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_34, mod_consts[150], tmp_assattr_name_34); - Py_DECREF(tmp_assattr_name_34); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_35; - PyObject *tmp_called_name_29; - PyObject *tmp_expression_name_71; - PyObject *tmp_kwargs_name_13; - PyObject *tmp_assattr_target_35; - tmp_expression_name_71 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_expression_name_71 == NULL)) { - tmp_expression_name_71 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - if (tmp_expression_name_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_71, mod_consts[152]); - if (tmp_called_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_13 = PyDict_Copy(mod_consts[153]); - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 253; - tmp_assattr_name_35 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_29, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_29); - Py_DECREF(tmp_kwargs_name_13); - if (tmp_assattr_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_35); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_35 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_35, mod_consts[154], tmp_assattr_name_35); - Py_DECREF(tmp_assattr_name_35); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_36; - PyObject *tmp_called_name_30; - PyObject *tmp_args_element_name_18; - PyObject *tmp_expression_name_72; - PyObject *tmp_assattr_target_36; - tmp_called_name_30 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_30 == NULL)) { - tmp_called_name_30 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_72 = par_self; - tmp_args_element_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_72, mod_consts[154]); - if (tmp_args_element_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 254; - tmp_assattr_name_36 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_30, tmp_args_element_name_18); - Py_DECREF(tmp_args_element_name_18); - if (tmp_assattr_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_36); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_36 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_36, mod_consts[154], tmp_assattr_name_36); - Py_DECREF(tmp_assattr_name_36); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_called_name_31; - PyObject *tmp_expression_name_73; - PyObject *tmp_args_element_name_19; - PyObject *tmp_called_name_32; - PyObject *tmp_args_element_name_20; - PyObject *tmp_expression_name_74; - PyObject *tmp_expression_name_75; - PyObject *tmp_expression_name_76; - PyObject *tmp_args_element_name_21; - PyObject *tmp_called_name_33; - PyObject *tmp_expression_name_77; - PyObject *tmp_args_element_name_22; - PyObject *tmp_expression_name_78; - PyObject *tmp_expression_name_79; - PyObject *tmp_expression_name_80; - PyObject *tmp_args_element_name_23; - tmp_expression_name_73 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_73 == NULL)) { - tmp_expression_name_73 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_73, mod_consts[122]); - if (tmp_called_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_32 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_32 == NULL)) { - tmp_called_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_76 = par_self; - tmp_expression_name_75 = LOOKUP_ATTRIBUTE(tmp_expression_name_76, mod_consts[111]); - if (tmp_expression_name_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_74 = LOOKUP_ATTRIBUTE(tmp_expression_name_75, mod_consts[141]); - Py_DECREF(tmp_expression_name_75); - if (tmp_expression_name_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_74, mod_consts[142]); - Py_DECREF(tmp_expression_name_74); - if (tmp_args_element_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 257; - tmp_args_element_name_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_32, tmp_args_element_name_20); - Py_DECREF(tmp_args_element_name_20); - if (tmp_args_element_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_77 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_77 == NULL)) { - tmp_expression_name_77 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_77, mod_consts[140]); - if (tmp_called_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_80 = par_self; - tmp_expression_name_79 = LOOKUP_ATTRIBUTE(tmp_expression_name_80, mod_consts[111]); - if (tmp_expression_name_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_78 = LOOKUP_ATTRIBUTE(tmp_expression_name_79, mod_consts[141]); - Py_DECREF(tmp_expression_name_79); - if (tmp_expression_name_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_78, mod_consts[142]); - Py_DECREF(tmp_expression_name_78); - if (tmp_args_element_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_23 = mod_consts[155]; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 258; - { - PyObject *call_args[] = {tmp_args_element_name_22, tmp_args_element_name_23}; - tmp_args_element_name_21 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_33, call_args); - } - - Py_DECREF(tmp_called_name_33); - Py_DECREF(tmp_args_element_name_22); - if (tmp_args_element_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 256; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_21}; - tmp_assign_source_40 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_31, call_args); - } - - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_args_element_name_21); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_text2seg_2d == NULL); - var_text2seg_2d = tmp_assign_source_40; - } - { - PyObject *tmp_assattr_name_37; - PyObject *tmp_assattr_target_37; - CHECK_OBJECT(var_text2seg_2d); - tmp_assattr_name_37 = var_text2seg_2d; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 260; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_37 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_37, mod_consts[156], tmp_assattr_name_37); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_38; - PyObject *tmp_called_name_34; - PyObject *tmp_assattr_target_38; - tmp_called_name_34 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_34 == NULL)) { - tmp_called_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 261; - tmp_assattr_name_38 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_34, mod_consts[155]); - if (tmp_assattr_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_38); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_38 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_38, mod_consts[157], tmp_assattr_name_38); - Py_DECREF(tmp_assattr_name_38); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_39; - PyObject *tmp_called_name_35; - PyObject *tmp_assattr_target_39; - tmp_called_name_35 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_35 == NULL)) { - tmp_called_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 262; - tmp_assattr_name_39 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_35, &PyTuple_GET_ITEM(mod_consts[158], 0)); - - if (tmp_assattr_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_39); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_39 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_39, mod_consts[159], tmp_assattr_name_39); - Py_DECREF(tmp_assattr_name_39); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_36; - PyObject *tmp_expression_name_81; - PyObject *tmp_args_element_name_24; - PyObject *tmp_called_name_37; - PyObject *tmp_args_element_name_25; - PyObject *tmp_expression_name_82; - PyObject *tmp_expression_name_83; - PyObject *tmp_expression_name_84; - PyObject *tmp_args_element_name_26; - PyObject *tmp_called_name_38; - PyObject *tmp_expression_name_85; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_86; - PyObject *tmp_expression_name_87; - PyObject *tmp_expression_name_88; - PyObject *tmp_args_element_name_28; - tmp_expression_name_81 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_81 == NULL)) { - tmp_expression_name_81 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_36 = LOOKUP_ATTRIBUTE(tmp_expression_name_81, mod_consts[122]); - if (tmp_called_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_37 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_37 == NULL)) { - tmp_called_name_37 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_36); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_84 = par_self; - tmp_expression_name_83 = LOOKUP_ATTRIBUTE(tmp_expression_name_84, mod_consts[111]); - if (tmp_expression_name_83 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_82 = LOOKUP_ATTRIBUTE(tmp_expression_name_83, mod_consts[141]); - Py_DECREF(tmp_expression_name_83); - if (tmp_expression_name_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_82, mod_consts[142]); - Py_DECREF(tmp_expression_name_82); - if (tmp_args_element_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 264; - tmp_args_element_name_24 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_37, tmp_args_element_name_25); - Py_DECREF(tmp_args_element_name_25); - if (tmp_args_element_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_85 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_85 == NULL)) { - tmp_expression_name_85 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_85, mod_consts[140]); - if (tmp_called_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_88 = par_self; - tmp_expression_name_87 = LOOKUP_ATTRIBUTE(tmp_expression_name_88, mod_consts[111]); - if (tmp_expression_name_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_86 = LOOKUP_ATTRIBUTE(tmp_expression_name_87, mod_consts[141]); - Py_DECREF(tmp_expression_name_87); - if (tmp_expression_name_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_86, mod_consts[142]); - Py_DECREF(tmp_expression_name_86); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_28 = mod_consts[79]; - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 265; - { - PyObject *call_args[] = {tmp_args_element_name_27, tmp_args_element_name_28}; - tmp_args_element_name_26 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_38, call_args); - } - - Py_DECREF(tmp_called_name_38); - Py_DECREF(tmp_args_element_name_27); - if (tmp_args_element_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 263; - { - PyObject *call_args[] = {tmp_args_element_name_24, tmp_args_element_name_26}; - tmp_assign_source_41 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_36, call_args); - } - - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_args_element_name_26); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_text2seg_3d == NULL); - var_text2seg_3d = tmp_assign_source_41; - } - { - PyObject *tmp_assattr_name_40; - PyObject *tmp_assattr_target_40; - CHECK_OBJECT(var_text2seg_3d); - tmp_assattr_name_40 = var_text2seg_3d; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_40 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_40, mod_consts[160], tmp_assattr_name_40); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_41; - PyObject *tmp_called_name_39; - PyObject *tmp_assattr_target_41; - tmp_called_name_39 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_39 == NULL)) { - tmp_called_name_39 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 268; - tmp_assattr_name_41 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_39, mod_consts[79]); - if (tmp_assattr_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_41); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_41 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_41, mod_consts[161], tmp_assattr_name_41); - Py_DECREF(tmp_assattr_name_41); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_42; - PyObject *tmp_called_name_40; - PyObject *tmp_assattr_target_42; - tmp_called_name_40 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_40 == NULL)) { - tmp_called_name_40 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 269; - tmp_assattr_name_42 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_40, &PyTuple_GET_ITEM(mod_consts[162], 0)); - - if (tmp_assattr_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_42); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_42 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_42, mod_consts[163], tmp_assattr_name_42); - Py_DECREF(tmp_assattr_name_42); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_43; - PyObject *tmp_called_name_41; - PyObject *tmp_assattr_target_43; - tmp_called_name_41 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[164]); - - if (unlikely(tmp_called_name_41 == NULL)) { - tmp_called_name_41 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[164]); - } - - if (tmp_called_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_ea4311308622894ee092f9d1d78caed6->m_frame.f_lineno = 270; - tmp_assattr_name_43 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_41, &PyTuple_GET_ITEM(mod_consts[165], 0)); - - if (tmp_assattr_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_43); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_43 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_43, mod_consts[166], tmp_assattr_name_43); - Py_DECREF(tmp_assattr_name_43); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_44; - PyObject *tmp_assattr_target_44; - if (par_max_txt_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 272; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_44 = par_max_txt_len; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 272; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_44 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_44, mod_consts[167], tmp_assattr_name_44); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_45; - PyObject *tmp_assattr_target_45; - if (par_end_sym == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[168]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_45 = par_end_sym; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_45 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_45, mod_consts[168], tmp_assattr_name_45); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_46; - PyObject *tmp_assattr_target_46; - tmp_assattr_name_46 = PyList_New(0); - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_46); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 274; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_46 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_46, mod_consts[169], tmp_assattr_name_46); - Py_DECREF(tmp_assattr_name_46); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 274; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea4311308622894ee092f9d1d78caed6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea4311308622894ee092f9d1d78caed6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ea4311308622894ee092f9d1d78caed6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ea4311308622894ee092f9d1d78caed6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ea4311308622894ee092f9d1d78caed6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ea4311308622894ee092f9d1d78caed6, - type_description_1, - par_self, - par_freeze_vit, - par_num_query_token, - par_llama_model, - par_max_txt_len, - par_low_resource, - par_end_sym, - var_name, - var_param, - var_special_token, - var_CastOutputToFloat, - var_peft_config, - var_text_det, - var_text2seg_2d, - var_text2seg_3d, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ea4311308622894ee092f9d1d78caed6 == cache_frame_ea4311308622894ee092f9d1d78caed6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ea4311308622894ee092f9d1d78caed6); - cache_frame_ea4311308622894ee092f9d1d78caed6 = NULL; - } - - assertFrameObject(frame_ea4311308622894ee092f9d1d78caed6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_freeze_vit); - par_freeze_vit = NULL; - Py_XDECREF(par_num_query_token); - par_num_query_token = NULL; - Py_XDECREF(par_llama_model); - par_llama_model = NULL; - Py_XDECREF(par_max_txt_len); - par_max_txt_len = NULL; - Py_XDECREF(par_low_resource); - par_low_resource = NULL; - Py_XDECREF(par_end_sym); - par_end_sym = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_special_token); - var_special_token = NULL; - CHECK_OBJECT(var_CastOutputToFloat); - Py_DECREF(var_CastOutputToFloat); - var_CastOutputToFloat = NULL; - CHECK_OBJECT(var_peft_config); - Py_DECREF(var_peft_config); - var_peft_config = NULL; - CHECK_OBJECT(var_text_det); - Py_DECREF(var_text_det); - var_text_det = NULL; - CHECK_OBJECT(var_text2seg_2d); - Py_DECREF(var_text2seg_2d); - var_text2seg_2d = NULL; - CHECK_OBJECT(var_text2seg_3d); - Py_DECREF(var_text2seg_3d); - var_text2seg_3d = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_freeze_vit); - par_freeze_vit = NULL; - Py_XDECREF(par_num_query_token); - par_num_query_token = NULL; - Py_XDECREF(par_llama_model); - par_llama_model = NULL; - Py_XDECREF(par_max_txt_len); - par_max_txt_len = NULL; - Py_XDECREF(par_low_resource); - par_low_resource = NULL; - Py_XDECREF(par_end_sym); - par_end_sym = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_special_token); - var_special_token = NULL; - Py_XDECREF(var_CastOutputToFloat); - var_CastOutputToFloat = NULL; - Py_XDECREF(var_peft_config); - var_peft_config = NULL; - Py_XDECREF(var_text_det); - var_text_det = NULL; - Py_XDECREF(var_text2seg_2d); - var_text2seg_2d = NULL; - Py_XDECREF(var_text2seg_3d); - var_text2seg_3d = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - Py_XDECREF(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214); - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - Py_XDECREF(locals_models$medomni$$$function__12___init__$$$class__1_CastOutputToFloat_214); - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__12___init__$$$function__1_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_fdd0fdd61cda0cb17e895d6a30ef4152; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152)) { - Py_XDECREF(cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152 = MAKE_FUNCTION_FRAME(codeobj_fdd0fdd61cda0cb17e895d6a30ef4152, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152->m_type_description == NULL); - frame_fdd0fdd61cda0cb17e895d6a30ef4152 = cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fdd0fdd61cda0cb17e895d6a30ef4152); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fdd0fdd61cda0cb17e895d6a30ef4152) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_2; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_fdd0fdd61cda0cb17e895d6a30ef4152->m_frame.f_lineno = 215; - tmp_expression_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[2], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[170]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[113]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_fdd0fdd61cda0cb17e895d6a30ef4152->m_frame.f_lineno = 215; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fdd0fdd61cda0cb17e895d6a30ef4152); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fdd0fdd61cda0cb17e895d6a30ef4152); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fdd0fdd61cda0cb17e895d6a30ef4152); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fdd0fdd61cda0cb17e895d6a30ef4152, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fdd0fdd61cda0cb17e895d6a30ef4152->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fdd0fdd61cda0cb17e895d6a30ef4152, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fdd0fdd61cda0cb17e895d6a30ef4152, - type_description_1, - par_self, - par_x, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_fdd0fdd61cda0cb17e895d6a30ef4152 == cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152); - cache_frame_fdd0fdd61cda0cb17e895d6a30ef4152 = NULL; - } - - assertFrameObject(frame_fdd0fdd61cda0cb17e895d6a30ef4152); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__13_vit_to_cpu(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_8b8e1f84e9bf1152c5b6ccec24173b9e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e)) { - Py_XDECREF(cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e = MAKE_FUNCTION_FRAME(codeobj_8b8e1f84e9bf1152c5b6ccec24173b9e, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e->m_type_description == NULL); - frame_8b8e1f84e9bf1152c5b6ccec24173b9e = cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8b8e1f84e9bf1152c5b6ccec24173b9e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8b8e1f84e9bf1152c5b6ccec24173b9e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[171]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 277; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_8b8e1f84e9bf1152c5b6ccec24173b9e->m_frame.f_lineno = 277; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[170], - &PyTuple_GET_ITEM(mod_consts[172], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 277; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 278; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[171]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_8b8e1f84e9bf1152c5b6ccec24173b9e->m_frame.f_lineno = 278; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[173]); - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_call_result_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 279; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[174]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_8b8e1f84e9bf1152c5b6ccec24173b9e->m_frame.f_lineno = 279; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[170], - &PyTuple_GET_ITEM(mod_consts[172], 0) - ); - - Py_DECREF(tmp_called_instance_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 280; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[174]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_8b8e1f84e9bf1152c5b6ccec24173b9e->m_frame.f_lineno = 280; - tmp_call_result_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[173]); - Py_DECREF(tmp_called_instance_4); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8b8e1f84e9bf1152c5b6ccec24173b9e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8b8e1f84e9bf1152c5b6ccec24173b9e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8b8e1f84e9bf1152c5b6ccec24173b9e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8b8e1f84e9bf1152c5b6ccec24173b9e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8b8e1f84e9bf1152c5b6ccec24173b9e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8b8e1f84e9bf1152c5b6ccec24173b9e, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_8b8e1f84e9bf1152c5b6ccec24173b9e == cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e); - cache_frame_8b8e1f84e9bf1152c5b6ccec24173b9e = NULL; - } - - assertFrameObject(frame_8b8e1f84e9bf1152c5b6ccec24173b9e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__14_encode_img(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_image = python_pars[1]; - PyObject *par_modals = python_pars[2]; - PyObject *par_task_types = python_pars[3]; - PyObject *var_B = NULL; - PyObject *var_S = NULL; - PyObject *var__ = NULL; - PyObject *var_device = NULL; - PyObject *var_image_embeds_list = NULL; - PyObject *var_image_embeds = NULL; - PyObject *var_inputs_llama = NULL; - PyObject *var_atts_llama = NULL; - PyObject *var_image_embeds_unp = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__element_4 = NULL; - PyObject *tmp_tuple_unpack_1__element_5 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_49ea2443b67f8243bd66c0e5006f9f7f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - struct Nuitka_FrameObject *frame_a07adb3ba7b5ecdd090d9e8bd3538758_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_49ea2443b67f8243bd66c0e5006f9f7f = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_49ea2443b67f8243bd66c0e5006f9f7f)) { - Py_XDECREF(cache_frame_49ea2443b67f8243bd66c0e5006f9f7f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_49ea2443b67f8243bd66c0e5006f9f7f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_49ea2443b67f8243bd66c0e5006f9f7f = MAKE_FUNCTION_FRAME(codeobj_49ea2443b67f8243bd66c0e5006f9f7f, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_49ea2443b67f8243bd66c0e5006f9f7f->m_type_description == NULL); - frame_49ea2443b67f8243bd66c0e5006f9f7f = cache_frame_49ea2443b67f8243bd66c0e5006f9f7f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_49ea2443b67f8243bd66c0e5006f9f7f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_49ea2443b67f8243bd66c0e5006f9f7f) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_image); - tmp_expression_name_1 = par_image; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[175]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 5); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 5); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 5); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_4, 3, 5); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_4 == NULL); - tmp_tuple_unpack_1__element_4 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_5, 4, 5); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_5 == NULL); - tmp_tuple_unpack_1__element_5 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[176]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_B == NULL); - Py_INCREF(tmp_assign_source_7); - var_B = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_S == NULL); - Py_INCREF(tmp_assign_source_8); - var_S = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_9); - var__ = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_4); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_4; - { - PyObject *old = var__; - assert(old != NULL); - var__ = tmp_assign_source_10; - Py_INCREF(var__); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_5); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_5; - { - PyObject *old = var__; - assert(old != NULL); - var__ = tmp_assign_source_11; - Py_INCREF(var__); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_expression_name_2; - if (par_image == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 284; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_image; - tmp_assign_source_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[178]); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_device == NULL); - var_device = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = Py_None; - assert(var_image_embeds_list == NULL); - Py_INCREF(tmp_assign_source_13); - var_image_embeds_list = tmp_assign_source_13; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[66]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 286; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 287; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 287; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[179]); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_instance_2; - if (par_image == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_image; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 288; - tmp_assign_source_14 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[170], - &PyTuple_GET_ITEM(mod_consts[172], 0) - ); - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_image; - par_image = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_instance_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_3 = par_self; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 290; - tmp_assign_source_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[180]); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_4 = tmp_with_1__source; - tmp_called_name_1 = LOOKUP_SPECIAL(tmp_expression_name_4, mod_consts[181]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 290; - tmp_assign_source_16 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_5 = tmp_with_1__source; - tmp_assign_source_17 = LOOKUP_SPECIAL(tmp_expression_name_5, mod_consts[182]); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_17; - } - { - nuitka_bool tmp_assign_source_18; - tmp_assign_source_18 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_18; - } - // Tried code: - // Tried code: - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[183]; - CHECK_OBJECT(par_modals); - tmp_compexpr_right_1 = par_modals; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_2 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[75]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_tuple_element_1 = par_image; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[184]); - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 292; - tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds_list; - assert(old != NULL); - var_image_embeds_list = tmp_assign_source_19; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - // Tried code: - { - PyObject *tmp_assign_source_21; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_image_embeds_list); - tmp_iter_arg_2 = var_image_embeds_list; - tmp_assign_source_21 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_7; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_22; - } - if (isFrameUnusable(cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2)) { - Py_XDECREF(cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2 = MAKE_FUNCTION_FRAME(codeobj_a07adb3ba7b5ecdd090d9e8bd3538758, module_models$medomni, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2->m_type_description == NULL); - frame_a07adb3ba7b5ecdd090d9e8bd3538758_2 = cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_23 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_23 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 293; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_24 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_24; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - CHECK_OBJECT(outline_0_var__); - tmp_expression_name_7 = outline_0_var__; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[170]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - if (var_device == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[178]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - - tmp_args_element_name_1 = var_device; - frame_a07adb3ba7b5ecdd090d9e8bd3538758_2->m_frame.f_lineno = 293; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_20 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_20); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_7; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a07adb3ba7b5ecdd090d9e8bd3538758_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a07adb3ba7b5ecdd090d9e8bd3538758_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a07adb3ba7b5ecdd090d9e8bd3538758_2, - type_description_2, - outline_0_var__, - var_device - ); - - - // Release cached frame if used for exception. - if (frame_a07adb3ba7b5ecdd090d9e8bd3538758_2 == cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); - cache_frame_a07adb3ba7b5ecdd090d9e8bd3538758_2 = NULL; - } - - assertFrameObject(frame_a07adb3ba7b5ecdd090d9e8bd3538758_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_7; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 293; - goto try_except_handler_6; - outline_result_1:; - { - PyObject *old = var_image_embeds_list; - var_image_embeds_list = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_image_embeds_list); - tmp_expression_name_8 = var_image_embeds_list; - tmp_subscript_name_1 = mod_consts[185]; - tmp_called_instance_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_1, -1); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 294; - tmp_assign_source_25 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[186]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_image_embeds == NULL); - var_image_embeds = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_instance_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_9; - PyObject *tmp_called_instance_6; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_6; - tmp_called_instance_6 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_called_instance_6 == NULL)) { - tmp_called_instance_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_image_embeds); - tmp_args_element_name_2 = var_image_embeds; - tmp_args_element_name_3 = mod_consts[188]; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 295; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_expression_name_9 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_6, - mod_consts[187], - call_args - ); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[24]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_B); - tmp_args_element_name_4 = var_B; - if (var_image_embeds == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[189]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_11 = var_image_embeds; - tmp_expression_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[175]); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_2 = mod_consts[60]; - tmp_args_element_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_2, 1); - Py_DECREF(tmp_expression_name_10); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_6 = mod_consts[185]; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 295; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_called_instance_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 295; - tmp_assign_source_26 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_5, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - Py_DECREF(tmp_called_instance_5); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds; - var_image_embeds = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_12 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[144]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_7 = par_self; - CHECK_OBJECT(var_image_embeds); - tmp_args_element_name_8 = var_image_embeds; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 296; - tmp_args_element_name_7 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[80], tmp_args_element_name_8); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 296; - tmp_assign_source_27 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_inputs_llama == NULL); - var_inputs_llama = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_13; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_14; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_tuple_element_2 = var_inputs_llama; - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[193]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[194]; - if (var_B == NULL) { - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_1 = var_B; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[196]; - CHECK_OBJECT(var_S); - tmp_dict_value_1 = var_S; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 297; - tmp_expression_name_13 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[170]); - Py_DECREF(tmp_expression_name_13); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[113]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 297; - tmp_assign_source_28 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_inputs_llama; - assert(old != NULL); - var_inputs_llama = tmp_assign_source_28; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_15; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_17; - PyObject *tmp_called_instance_8; - PyObject *tmp_subscript_name_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_19; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[197]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_called_instance_8 = var_inputs_llama; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 298; - tmp_expression_name_17 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[33]); - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_3 = mod_consts[198]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_3); - Py_DECREF(tmp_expression_name_17); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[0]; - tmp_expression_name_18 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_18 == NULL)) { - tmp_expression_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[199]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 298; - tmp_expression_name_15 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[170]); - Py_DECREF(tmp_expression_name_15); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_19 = par_image; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[178]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 298; - tmp_assign_source_29 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_atts_llama == NULL); - var_atts_llama = tmp_assign_source_29; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 300; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_11 = par_image; - tmp_args_element_name_12 = mod_consts[200]; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 300; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_assign_source_30 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_10, call_args); - } - - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = par_image; - par_image = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_instance_9; - PyObject *tmp_expression_name_20; - PyObject *tmp_called_instance_10; - PyObject *tmp_args_element_name_13; - PyObject *tmp_subscript_name_4; - PyObject *tmp_args_element_name_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_10 = par_self; - CHECK_OBJECT(par_image); - tmp_args_element_name_13 = par_image; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 301; - tmp_expression_name_20 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_10, mod_consts[72], tmp_args_element_name_13); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_4 = mod_consts[201]; - tmp_called_instance_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_20, tmp_subscript_name_4); - Py_DECREF(tmp_expression_name_20); - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_device); - tmp_args_element_name_14 = var_device; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 301; - tmp_assign_source_31 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_9, mod_consts[170], tmp_args_element_name_14); - Py_DECREF(tmp_called_instance_9); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_image_embeds == NULL); - var_image_embeds = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_21; - PyObject *tmp_called_instance_11; - PyObject *tmp_args_element_name_15; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_args_element_name_16; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - CHECK_OBJECT(var_image_embeds); - tmp_called_instance_11 = var_image_embeds; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 302; - tmp_expression_name_21 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_11, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[24]); - Py_DECREF(tmp_expression_name_21); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_B); - tmp_left_name_1 = var_B; - CHECK_OBJECT(var_S); - tmp_right_name_1 = var_S; - tmp_args_element_name_15 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_16 = mod_consts[185]; - tmp_args_element_name_17 = mod_consts[202]; - tmp_args_element_name_18 = mod_consts[202]; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 302; - { - PyObject *call_args[] = {tmp_args_element_name_15, tmp_args_element_name_16, tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_assign_source_32 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_11, call_args); - } - - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_15); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_image_embeds_unp == NULL); - var_image_embeds_unp = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_instance_12; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - tmp_called_instance_12 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_called_instance_12 == NULL)) { - tmp_called_instance_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_image_embeds_unp); - tmp_args_element_name_19 = var_image_embeds_unp; - tmp_args_element_name_20 = mod_consts[204]; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 303; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_assign_source_33 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_12, - mod_consts[203], - call_args - ); - } - - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds_unp; - var_image_embeds_unp = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_instance_13; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_element_name_21; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_args_element_name_22; - PyObject *tmp_args_element_name_23; - CHECK_OBJECT(var_image_embeds_unp); - tmp_expression_name_22 = var_image_embeds_unp; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[24]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (var_B == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_left_name_2 = var_B; - if (var_S == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_right_name_2 = var_S; - tmp_args_element_name_21 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_args_element_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_12); - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_22 = mod_consts[185]; - tmp_args_element_name_23 = mod_consts[206]; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 304; - { - PyObject *call_args[] = {tmp_args_element_name_21, tmp_args_element_name_22, tmp_args_element_name_23}; - tmp_called_instance_13 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_12, call_args); - } - - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_21); - if (tmp_called_instance_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 304; - tmp_assign_source_34 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_13, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - Py_DECREF(tmp_called_instance_13); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds; - var_image_embeds = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_element_name_24; - PyObject *tmp_called_instance_14; - PyObject *tmp_args_element_name_25; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_23 = par_self; - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[143]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_14 = par_self; - CHECK_OBJECT(var_image_embeds); - tmp_args_element_name_25 = var_image_embeds; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 305; - tmp_args_element_name_24 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_14, mod_consts[78], tmp_args_element_name_25); - if (tmp_args_element_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 305; - tmp_assign_source_35 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_13, tmp_args_element_name_24); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_element_name_24); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_inputs_llama == NULL); - var_inputs_llama = tmp_assign_source_35; - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = mod_consts[207]; - CHECK_OBJECT(par_task_types); - tmp_compexpr_right_2 = par_task_types; - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_3 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_36; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_24; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_args_element_name_26; - PyObject *tmp_expression_name_25; - tmp_called_name_15 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_15 == NULL)) { - tmp_called_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_tuple_element_4 = var_inputs_llama; - tmp_args_name_4 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[193]; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_4); - tmp_dict_key_3 = mod_consts[194]; - if (var_B == NULL) { - Py_DECREF(tmp_args_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_3 = var_B; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[196]; - if (var_S == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_3 = var_S; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - goto try_except_handler_6; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 307; - tmp_expression_name_24 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[170]); - Py_DECREF(tmp_expression_name_24); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_25 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_25 == NULL)) { - tmp_expression_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[113]); - if (tmp_args_element_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 307; - tmp_assign_source_36 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_14, tmp_args_element_name_26); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_element_name_26); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_inputs_llama; - assert(old != NULL); - var_inputs_llama = tmp_assign_source_36; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_26; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_28; - PyObject *tmp_called_instance_15; - PyObject *tmp_subscript_name_5; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_30; - tmp_expression_name_27 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_27 == NULL)) { - tmp_expression_name_27 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[197]); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_called_instance_15 = var_inputs_llama; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 308; - tmp_expression_name_28 = CALL_METHOD_NO_ARGS(tmp_called_instance_15, mod_consts[33]); - if (tmp_expression_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_5 = mod_consts[198]; - tmp_tuple_element_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_28, tmp_subscript_name_5); - Py_DECREF(tmp_expression_name_28); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_5, 0, tmp_tuple_element_5); - tmp_dict_key_4 = mod_consts[0]; - tmp_expression_name_29 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_29 == NULL)) { - tmp_expression_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_5); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[199]); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_5); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_kwargs_name_5 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 308; - tmp_expression_name_26 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[170]); - Py_DECREF(tmp_expression_name_26); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_30 = par_image; - tmp_args_element_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[178]); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 308; - tmp_assign_source_37 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_27); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_27); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_atts_llama == NULL); - var_atts_llama = tmp_assign_source_37; - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_instance_16; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_31; - PyObject *tmp_called_name_19; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - PyObject *tmp_args_element_name_28; - PyObject *tmp_expression_name_32; - tmp_called_name_19 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_19 == NULL)) { - tmp_called_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_tuple_element_6 = var_inputs_llama; - tmp_args_name_6 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_tuple_element_6 = mod_consts[193]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_6); - tmp_dict_key_5 = mod_consts[194]; - if (var_B == NULL) { - Py_DECREF(tmp_args_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_5 = var_B; - tmp_kwargs_name_6 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[196]; - if (var_S == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_5 = var_S; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - goto try_except_handler_6; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 310; - tmp_expression_name_31 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[170]); - Py_DECREF(tmp_expression_name_31); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_32 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_32 == NULL)) { - tmp_expression_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[113]); - if (tmp_args_element_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 310; - tmp_called_instance_16 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_18, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_element_name_28); - if (tmp_called_instance_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 310; - tmp_assign_source_38 = CALL_METHOD_NO_ARGS(tmp_called_instance_16, mod_consts[186]); - Py_DECREF(tmp_called_instance_16); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_inputs_llama; - assert(old != NULL); - var_inputs_llama = tmp_assign_source_38; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_instance_17; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_33; - PyObject *tmp_called_name_21; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_7; - PyObject *tmp_expression_name_35; - PyObject *tmp_called_instance_18; - PyObject *tmp_subscript_name_6; - PyObject *tmp_kwargs_name_7; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - PyObject *tmp_expression_name_36; - PyObject *tmp_args_element_name_29; - PyObject *tmp_expression_name_37; - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[197]); - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_called_instance_18 = var_inputs_llama; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - tmp_expression_name_35 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[33]); - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_6 = mod_consts[198]; - tmp_tuple_element_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_35, tmp_subscript_name_6); - Py_DECREF(tmp_expression_name_35); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_7, 0, tmp_tuple_element_7); - tmp_dict_key_6 = mod_consts[0]; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[199]); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_kwargs_name_7 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - tmp_expression_name_33 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[170]); - Py_DECREF(tmp_expression_name_33); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_37 = par_image; - tmp_args_element_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[178]); - if (tmp_args_element_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_20); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - tmp_called_instance_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_29); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_args_element_name_29); - if (tmp_called_instance_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - tmp_assign_source_39 = CALL_METHOD_NO_ARGS(tmp_called_instance_17, mod_consts[186]); - Py_DECREF(tmp_called_instance_17); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_atts_llama == NULL); - var_atts_llama = tmp_assign_source_39; - } - branch_end_3:; - branch_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_5 == NULL) { - exception_keeper_tb_5 = MAKE_TRACEBACK(frame_49ea2443b67f8243bd66c0e5006f9f7f, exception_keeper_lineno_5); - } else if (exception_keeper_lineno_5 != 0) { - exception_keeper_tb_5 = ADD_TRACEBACK(exception_keeper_tb_5, frame_49ea2443b67f8243bd66c0e5006f9f7f, exception_keeper_lineno_5); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_5, &exception_keeper_value_5, &exception_keeper_tb_5); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_5, exception_keeper_tb_5); - PUBLISH_EXCEPTION(&exception_keeper_type_5, &exception_keeper_value_5, &exception_keeper_tb_5); - // Tried code: - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - tmp_compexpr_left_3 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_3 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_3, tmp_compexpr_right_3); - assert(!(tmp_res == -1)); - tmp_condition_result_4 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - nuitka_bool tmp_assign_source_40; - tmp_assign_source_40 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_40; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_22; - PyObject *tmp_args_element_name_30; - PyObject *tmp_args_element_name_31; - PyObject *tmp_args_element_name_32; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_22 = tmp_with_1__exit; - tmp_args_element_name_30 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_31 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_32 = EXC_TRACEBACK(PyThreadState_GET()); - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - { - PyObject *call_args[] = {tmp_args_element_name_30, tmp_args_element_name_31, tmp_args_element_name_32}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_22, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 311; - } - - if (exception_tb && exception_tb->tb_frame == &frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame) frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - branch_no_5:; - goto branch_end_4; - branch_no_4:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 290; - } - - if (exception_tb && exception_tb->tb_frame == &frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame) frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - branch_end_4:; - goto try_end_4; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_5; - // End of try: - try_end_4:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_3; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_3:; - goto try_end_5; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_6; - nuitka_bool tmp_compexpr_left_4; - nuitka_bool tmp_compexpr_right_4; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_4 = tmp_with_1__indicator; - tmp_compexpr_right_4 = NUITKA_BOOL_TRUE; - tmp_condition_result_6 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_called_name_23; - PyObject *tmp_call_result_2; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_23 = tmp_with_1__exit; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_23, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_7); - Py_XDECREF(exception_keeper_value_7); - Py_XDECREF(exception_keeper_tb_7); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_6:; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_4; - // End of try: - try_end_5:; - { - bool tmp_condition_result_7; - nuitka_bool tmp_compexpr_left_5; - nuitka_bool tmp_compexpr_right_5; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_5 = tmp_with_1__indicator; - tmp_compexpr_right_5 = NUITKA_BOOL_TRUE; - tmp_condition_result_7 = (tmp_compexpr_left_5 == tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_called_name_24; - PyObject *tmp_call_result_3; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_24 = tmp_with_1__exit; - frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame.f_lineno = 311; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_24, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_7:; - goto try_end_6; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - { - PyObject *tmp_tuple_element_8; - if (var_inputs_llama == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[209]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_8 = var_inputs_llama; - tmp_return_value = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_8); - if (var_atts_llama == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[210]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_8 = var_atts_llama; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_8); - if (var_image_embeds_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[211]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_8 = var_image_embeds_list; - PyTuple_SET_ITEM0(tmp_return_value, 2, tmp_tuple_element_8); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_49ea2443b67f8243bd66c0e5006f9f7f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_49ea2443b67f8243bd66c0e5006f9f7f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_49ea2443b67f8243bd66c0e5006f9f7f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_49ea2443b67f8243bd66c0e5006f9f7f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_49ea2443b67f8243bd66c0e5006f9f7f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_49ea2443b67f8243bd66c0e5006f9f7f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_49ea2443b67f8243bd66c0e5006f9f7f, - type_description_1, - par_self, - par_image, - par_modals, - par_task_types, - var_B, - var_S, - var__, - var_device, - var_image_embeds_list, - var_image_embeds, - var_inputs_llama, - var_atts_llama, - var_image_embeds_unp - ); - - - // Release cached frame if used for exception. - if (frame_49ea2443b67f8243bd66c0e5006f9f7f == cache_frame_49ea2443b67f8243bd66c0e5006f9f7f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_49ea2443b67f8243bd66c0e5006f9f7f); - cache_frame_49ea2443b67f8243bd66c0e5006f9f7f = NULL; - } - - assertFrameObject(frame_49ea2443b67f8243bd66c0e5006f9f7f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_image); - par_image = NULL; - CHECK_OBJECT(par_modals); - Py_DECREF(par_modals); - par_modals = NULL; - CHECK_OBJECT(par_task_types); - Py_DECREF(par_task_types); - par_task_types = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_S); - var_S = NULL; - CHECK_OBJECT(var__); - Py_DECREF(var__); - var__ = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_image_embeds_list); - var_image_embeds_list = NULL; - Py_XDECREF(var_image_embeds); - var_image_embeds = NULL; - Py_XDECREF(var_inputs_llama); - var_inputs_llama = NULL; - Py_XDECREF(var_atts_llama); - var_atts_llama = NULL; - Py_XDECREF(var_image_embeds_unp); - var_image_embeds_unp = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_image); - par_image = NULL; - CHECK_OBJECT(par_modals); - Py_DECREF(par_modals); - par_modals = NULL; - CHECK_OBJECT(par_task_types); - Py_DECREF(par_task_types); - par_task_types = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_S); - var_S = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_image_embeds_list); - var_image_embeds_list = NULL; - Py_XDECREF(var_image_embeds); - var_image_embeds = NULL; - Py_XDECREF(var_inputs_llama); - var_inputs_llama = NULL; - Py_XDECREF(var_atts_llama); - var_atts_llama = NULL; - Py_XDECREF(var_image_embeds_unp); - var_image_embeds_unp = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__15_prompt_concat(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_img_embeds = python_pars[1]; - PyObject *par_atts_img = python_pars[2]; - PyObject *par_prompt = python_pars[3]; - PyObject *var_batch_size = NULL; - PyObject *var_p_after_embeds = NULL; - PyObject *var_wrapped_img_embeds = NULL; - PyObject *var_wrapped_atts_img = NULL; - struct Nuitka_FrameObject *frame_51ac6f6a34af3417d8c3c1759c4211b6; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_51ac6f6a34af3417d8c3c1759c4211b6 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_51ac6f6a34af3417d8c3c1759c4211b6)) { - Py_XDECREF(cache_frame_51ac6f6a34af3417d8c3c1759c4211b6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_51ac6f6a34af3417d8c3c1759c4211b6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_51ac6f6a34af3417d8c3c1759c4211b6 = MAKE_FUNCTION_FRAME(codeobj_51ac6f6a34af3417d8c3c1759c4211b6, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_51ac6f6a34af3417d8c3c1759c4211b6->m_type_description == NULL); - frame_51ac6f6a34af3417d8c3c1759c4211b6 = cache_frame_51ac6f6a34af3417d8c3c1759c4211b6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_51ac6f6a34af3417d8c3c1759c4211b6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_51ac6f6a34af3417d8c3c1759c4211b6) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_prompt); - tmp_truth_name_1 = CHECK_IF_TRUE(par_prompt); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_img_embeds); - tmp_expression_name_2 = par_img_embeds; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[175]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_batch_size == NULL); - var_batch_size = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[119]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_prompt); - tmp_expression_name_4 = par_prompt; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[104]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_51ac6f6a34af3417d8c3c1759c4211b6->m_frame.f_lineno = 318; - tmp_called_instance_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_2 = var_batch_size; - tmp_args_element_name_3 = mod_consts[185]; - tmp_args_element_name_4 = mod_consts[185]; - frame_51ac6f6a34af3417d8c3c1759c4211b6->m_frame.f_lineno = 318; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_1, - mod_consts[212], - call_args - ); - } - - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_p_after_embeds == NULL); - var_p_after_embeds = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_list_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[213]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_list_element_1 = par_img_embeds; - tmp_tuple_element_1 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_1, 0, tmp_list_element_1); - CHECK_OBJECT(var_p_after_embeds); - tmp_list_element_1 = var_p_after_embeds; - PyList_SET_ITEM0(tmp_tuple_element_1, 1, tmp_list_element_1); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[215]); - frame_51ac6f6a34af3417d8c3c1759c4211b6->m_frame.f_lineno = 319; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_wrapped_img_embeds == NULL); - var_wrapped_img_embeds = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(par_atts_img); - tmp_expression_name_7 = par_atts_img; - tmp_subscript_name_2 = mod_consts[216]; - tmp_expression_name_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_2); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[212]); - Py_DECREF(tmp_expression_name_6); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_5 = mod_consts[185]; - CHECK_OBJECT(var_wrapped_img_embeds); - tmp_expression_name_9 = var_wrapped_img_embeds; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[175]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[60]; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_3, 1); - Py_DECREF(tmp_expression_name_8); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_51ac6f6a34af3417d8c3c1759c4211b6->m_frame.f_lineno = 320; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assign_source_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_wrapped_atts_img == NULL); - var_wrapped_atts_img = tmp_assign_source_4; - } - { - PyObject *tmp_tuple_element_2; - if (var_wrapped_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[217]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 321; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_wrapped_img_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_wrapped_atts_img); - tmp_tuple_element_2 = var_wrapped_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_tuple_element_3; - CHECK_OBJECT(par_img_embeds); - tmp_tuple_element_3 = par_img_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_3); - CHECK_OBJECT(par_atts_img); - tmp_tuple_element_3 = par_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_3); - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_51ac6f6a34af3417d8c3c1759c4211b6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_51ac6f6a34af3417d8c3c1759c4211b6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_51ac6f6a34af3417d8c3c1759c4211b6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_51ac6f6a34af3417d8c3c1759c4211b6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_51ac6f6a34af3417d8c3c1759c4211b6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_51ac6f6a34af3417d8c3c1759c4211b6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_51ac6f6a34af3417d8c3c1759c4211b6, - type_description_1, - par_self, - par_img_embeds, - par_atts_img, - par_prompt, - var_batch_size, - var_p_after_embeds, - var_wrapped_img_embeds, - var_wrapped_atts_img - ); - - - // Release cached frame if used for exception. - if (frame_51ac6f6a34af3417d8c3c1759c4211b6 == cache_frame_51ac6f6a34af3417d8c3c1759c4211b6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_51ac6f6a34af3417d8c3c1759c4211b6); - cache_frame_51ac6f6a34af3417d8c3c1759c4211b6 = NULL; - } - - assertFrameObject(frame_51ac6f6a34af3417d8c3c1759c4211b6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt); - par_prompt = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_p_after_embeds); - var_p_after_embeds = NULL; - Py_XDECREF(var_wrapped_img_embeds); - var_wrapped_img_embeds = NULL; - Py_XDECREF(var_wrapped_atts_img); - var_wrapped_atts_img = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt); - par_prompt = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_p_after_embeds); - var_p_after_embeds = NULL; - Py_XDECREF(var_wrapped_img_embeds); - var_wrapped_img_embeds = NULL; - Py_XDECREF(var_wrapped_atts_img); - var_wrapped_atts_img = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__16_prompt_wrap(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_img_embeds = python_pars[1]; - PyObject *par_atts_img = python_pars[2]; - PyObject *par_prompt_list = python_pars[3]; - PyObject *par_num_imgs = python_pars[4]; - PyObject *par_seg = python_pars[5]; - PyObject *var_bsz = NULL; - PyObject *var_img_idx = NULL; - PyObject *var_i = NULL; - PyObject *var_j = NULL; - PyObject *var_prompt_tokens = NULL; - PyObject *var_idx = NULL; - PyObject *var_p_embeds = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - struct Nuitka_FrameObject *frame_e6cbd6ab08e931bc9b9b941fe0172524; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e6cbd6ab08e931bc9b9b941fe0172524 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e6cbd6ab08e931bc9b9b941fe0172524)) { - Py_XDECREF(cache_frame_e6cbd6ab08e931bc9b9b941fe0172524); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e6cbd6ab08e931bc9b9b941fe0172524 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e6cbd6ab08e931bc9b9b941fe0172524 = MAKE_FUNCTION_FRAME(codeobj_e6cbd6ab08e931bc9b9b941fe0172524, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e6cbd6ab08e931bc9b9b941fe0172524->m_type_description == NULL); - frame_e6cbd6ab08e931bc9b9b941fe0172524 = cache_frame_e6cbd6ab08e931bc9b9b941fe0172524; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e6cbd6ab08e931bc9b9b941fe0172524); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e6cbd6ab08e931bc9b9b941fe0172524) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_img_embeds); - tmp_expression_name_2 = par_img_embeds; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[175]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bsz == NULL); - var_bsz = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_prompt_list); - tmp_truth_name_1 = CHECK_IF_TRUE(par_prompt_list); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = DEEP_COPY(mod_consts[218]); - assert(var_img_idx == NULL); - var_img_idx = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_len_arg_1; - CHECK_OBJECT(par_num_imgs); - tmp_len_arg_1 = par_num_imgs; - tmp_xrange_low_1 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooo"; - exception_lineno = 329; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_5; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_xrange_low_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (par_num_imgs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[219]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_num_imgs; - CHECK_OBJECT(var_i); - tmp_subscript_name_2 = var_i; - tmp_xrange_low_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_xrange_low_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_iter_arg_2 = BUILTIN_XRANGE1(tmp_xrange_low_2); - Py_DECREF(tmp_xrange_low_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooo"; - exception_lineno = 330; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_8 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_j; - var_j = tmp_assign_source_8; - Py_INCREF(var_j); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_3; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_5 = var_img_idx; - tmp_subscript_name_3 = mod_consts[11]; - tmp_expression_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_3, 0); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[221]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - if (var_i == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = var_i; - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 331; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 332; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_6 = var_img_idx; - tmp_subscript_name_4 = mod_consts[60]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_4, 1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_j); - tmp_args_element_name_2 = var_j; - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 332; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[221], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(par_self); - tmp_expression_name_8 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[93]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_prompt_list); - tmp_tuple_element_1 = par_prompt_list; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[223]); - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 333; - tmp_expression_name_7 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[170]); - Py_DECREF(tmp_expression_name_7); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_img_embeds; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[178]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 333; - tmp_assign_source_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prompt_tokens == NULL); - var_prompt_tokens = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(var_prompt_tokens); - tmp_expression_name_11 = var_prompt_tokens; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[104]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[224]; - tmp_expression_name_10 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[225]); - Py_DECREF(tmp_expression_name_10); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[226]); - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 334; - tmp_assign_source_10 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_idx == NULL); - var_idx = tmp_assign_source_10; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_ass_subscript_1; - tmp_ass_subvalue_1 = mod_consts[227]; - if (var_prompt_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[228]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 335; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = var_prompt_tokens; - tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[104]); - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_idx); - tmp_ass_subscript_1 = var_idx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[119]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_prompt_tokens == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[228]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = var_prompt_tokens; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[104]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 336; - tmp_called_instance_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_4); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bsz); - tmp_args_element_name_5 = var_bsz; - tmp_args_element_name_6 = mod_consts[185]; - tmp_args_element_name_7 = mod_consts[185]; - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 336; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_11 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[212], - call_args - ); - } - - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_p_embeds == NULL); - var_p_embeds = tmp_assign_source_11; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_seg); - tmp_compexpr_left_2 = par_seg; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_15; - PyObject *tmp_called_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_5; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_17; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_img_embeds; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_subscript_name_5 = var_img_idx; - tmp_args_element_name_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_16, tmp_subscript_name_5); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = mod_consts[229]; - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 338; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_expression_name_15 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_args_element_name_8); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[170]); - Py_DECREF(tmp_expression_name_15); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_17 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_17 == NULL)) { - tmp_expression_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[113]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 338; - tmp_ass_subvalue_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_10); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_p_embeds); - tmp_ass_subscribed_2 = var_p_embeds; - CHECK_OBJECT(var_idx); - tmp_ass_subscript_2 = var_idx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_18; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_6; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_20; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_img_embeds; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_subscript_name_6 = var_img_idx; - tmp_args_element_name_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_6); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_12 = mod_consts[229]; - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 340; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_expression_name_18 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_args_element_name_11); - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[170]); - Py_DECREF(tmp_expression_name_18); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[113]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 340; - tmp_called_instance_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_13); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame.f_lineno = 340; - tmp_ass_subvalue_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[186]); - Py_DECREF(tmp_called_instance_3); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_p_embeds); - tmp_ass_subscribed_3 = var_p_embeds; - CHECK_OBJECT(var_idx); - tmp_ass_subscript_3 = var_idx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_tuple_element_2; - if (var_p_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[230]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 341; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_p_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_atts_img); - tmp_tuple_element_2 = par_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_tuple_element_3; - if (par_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 343; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_img_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_3); - CHECK_OBJECT(par_atts_img); - tmp_tuple_element_3 = par_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_3); - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e6cbd6ab08e931bc9b9b941fe0172524); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e6cbd6ab08e931bc9b9b941fe0172524); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e6cbd6ab08e931bc9b9b941fe0172524); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e6cbd6ab08e931bc9b9b941fe0172524, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e6cbd6ab08e931bc9b9b941fe0172524->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e6cbd6ab08e931bc9b9b941fe0172524, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e6cbd6ab08e931bc9b9b941fe0172524, - type_description_1, - par_self, - par_img_embeds, - par_atts_img, - par_prompt_list, - par_num_imgs, - par_seg, - var_bsz, - var_img_idx, - var_i, - var_j, - var_prompt_tokens, - var_idx, - var_p_embeds - ); - - - // Release cached frame if used for exception. - if (frame_e6cbd6ab08e931bc9b9b941fe0172524 == cache_frame_e6cbd6ab08e931bc9b9b941fe0172524) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e6cbd6ab08e931bc9b9b941fe0172524); - cache_frame_e6cbd6ab08e931bc9b9b941fe0172524 = NULL; - } - - assertFrameObject(frame_e6cbd6ab08e931bc9b9b941fe0172524); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt_list); - par_prompt_list = NULL; - Py_XDECREF(par_num_imgs); - par_num_imgs = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_idx); - var_img_idx = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_idx); - var_idx = NULL; - Py_XDECREF(var_p_embeds); - var_p_embeds = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt_list); - par_prompt_list = NULL; - Py_XDECREF(par_num_imgs); - par_num_imgs = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_idx); - var_img_idx = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_idx); - var_idx = NULL; - Py_XDECREF(var_p_embeds); - var_p_embeds = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni$$$function__17_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_samples = python_pars[1]; - PyObject *var_image = NULL; - PyObject *var_bsz = NULL; - PyObject *var_img_embeds = NULL; - PyObject *var_atts_img = NULL; - PyObject *var_img_embeds_list = NULL; - PyObject *var_prefix_list = NULL; - PyObject *var_tag_list = NULL; - PyObject *var_placeholder = NULL; - PyObject *var_j = NULL; - PyObject *var_num = NULL; - PyObject *var_prefix = NULL; - PyObject *var_i = NULL; - PyObject *var_prompt = NULL; - PyObject *var_tags = NULL; - PyObject *var_tag = NULL; - PyObject *var_sample_ans = NULL; - PyObject *var_sample_num = NULL; - PyObject *var_text = NULL; - PyObject *var_prompt_tokens = NULL; - PyObject *var_to_regress_tokens = NULL; - PyObject *var_targets = NULL; - PyObject *var_empty_targets = NULL; - PyObject *var_batch_size = NULL; - PyObject *var_bos = NULL; - PyObject *var_bos_embeds = NULL; - PyObject *var_atts_bos = NULL; - PyObject *var_to_regress_embeds = NULL; - PyObject *var_inputs_embeds = NULL; - PyObject *var_attention_mask = NULL; - PyObject *var_outputs = NULL; - PyObject *var_loss = NULL; - PyObject *var_hidden_states = NULL; - PyObject *var_token_mask = NULL; - PyObject *var_target_states = NULL; - PyObject *var_det_states = NULL; - PyObject *var_labels = NULL; - PyObject *var_det_loss = NULL; - PyObject *var_point_states = NULL; - PyObject *var_keypoint_loss = NULL; - PyObject *var_masks = NULL; - PyObject *var_seg_states = NULL; - PyObject *var_last_feats = NULL; - PyObject *var_seg_preds = NULL; - PyObject *var_feats = NULL; - PyObject *var_seg_feats = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *outline_1_var_t = NULL; - PyObject *outline_2_var_ans = NULL; - PyObject *outline_3_var_ans = NULL; - PyObject *outline_4_var_t = NULL; - PyObject *outline_5_var__ = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - PyObject *tmp_for_loop_4__for_iterator = NULL; - PyObject *tmp_for_loop_4__iter_value = NULL; - PyObject *tmp_genexpr_1__$0 = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_listcomp_2__$0 = NULL; - PyObject *tmp_listcomp_2__contraction = NULL; - PyObject *tmp_listcomp_2__iter_value_0 = NULL; - PyObject *tmp_listcomp_3__$0 = NULL; - PyObject *tmp_listcomp_3__contraction = NULL; - PyObject *tmp_listcomp_3__iter_value_0 = NULL; - PyObject *tmp_listcomp_4__$0 = NULL; - PyObject *tmp_listcomp_4__contraction = NULL; - PyObject *tmp_listcomp_4__iter_value_0 = NULL; - PyObject *tmp_listcomp_5__$0 = NULL; - PyObject *tmp_listcomp_5__contraction = NULL; - PyObject *tmp_listcomp_5__iter_value_0 = NULL; - PyObject *tmp_listcomp_6__$0 = NULL; - PyObject *tmp_listcomp_6__contraction = NULL; - PyObject *tmp_listcomp_6__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - PyObject *tmp_with_2__enter = NULL; - PyObject *tmp_with_2__exit = NULL; - nuitka_bool tmp_with_2__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_2__source = NULL; - PyObject *tmp_with_3__enter = NULL; - PyObject *tmp_with_3__exit = NULL; - nuitka_bool tmp_with_3__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_3__source = NULL; - PyObject *tmp_with_4__enter = NULL; - PyObject *tmp_with_4__exit = NULL; - nuitka_bool tmp_with_4__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_4__source = NULL; - PyObject *tmp_with_5__enter = NULL; - PyObject *tmp_with_5__exit = NULL; - nuitka_bool tmp_with_5__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_5__source = NULL; - PyObject *tmp_with_6__enter = NULL; - PyObject *tmp_with_6__exit = NULL; - nuitka_bool tmp_with_6__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_6__source = NULL; - PyObject *tmp_with_7__enter = NULL; - PyObject *tmp_with_7__exit = NULL; - nuitka_bool tmp_with_7__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_7__source = NULL; - struct Nuitka_FrameObject *frame_010242f3bfb425fd481def0b05eda19a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - struct Nuitka_FrameObject *frame_f8d430278d8f22db0c1b6695d87fc403_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_f8d430278d8f22db0c1b6695d87fc403_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - int tmp_res; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - struct Nuitka_FrameObject *frame_3dff9b49b754524c204218b310bab92a_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - static struct Nuitka_FrameObject *cache_frame_3dff9b49b754524c204218b310bab92a_3 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - struct Nuitka_FrameObject *frame_2b980890218eabf65dba6955c1a411cb_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - static struct Nuitka_FrameObject *cache_frame_2b980890218eabf65dba6955c1a411cb_4 = NULL; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - struct Nuitka_FrameObject *frame_2bfedd52eb2b9a86da6206d8f1c74946_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - static struct Nuitka_FrameObject *cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - struct Nuitka_FrameObject *frame_7dd0e173fd5b9e5264bedbaef5273d73_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - static struct Nuitka_FrameObject *cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6 = NULL; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *exception_preserved_type_2; - PyObject *exception_preserved_value_2; - PyTracebackObject *exception_preserved_tb_2; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - PyObject *exception_keeper_type_29; - PyObject *exception_keeper_value_29; - PyTracebackObject *exception_keeper_tb_29; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_29; - PyObject *exception_preserved_type_3; - PyObject *exception_preserved_value_3; - PyTracebackObject *exception_preserved_tb_3; - PyObject *exception_keeper_type_30; - PyObject *exception_keeper_value_30; - PyTracebackObject *exception_keeper_tb_30; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_30; - PyObject *exception_keeper_type_31; - PyObject *exception_keeper_value_31; - PyTracebackObject *exception_keeper_tb_31; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_31; - PyObject *exception_keeper_type_32; - PyObject *exception_keeper_value_32; - PyTracebackObject *exception_keeper_tb_32; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_32; - PyObject *exception_keeper_type_33; - PyObject *exception_keeper_value_33; - PyTracebackObject *exception_keeper_tb_33; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_33; - PyObject *exception_preserved_type_4; - PyObject *exception_preserved_value_4; - PyTracebackObject *exception_preserved_tb_4; - PyObject *exception_keeper_type_34; - PyObject *exception_keeper_value_34; - PyTracebackObject *exception_keeper_tb_34; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_34; - PyObject *exception_keeper_type_35; - PyObject *exception_keeper_value_35; - PyTracebackObject *exception_keeper_tb_35; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_35; - PyObject *exception_keeper_type_36; - PyObject *exception_keeper_value_36; - PyTracebackObject *exception_keeper_tb_36; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_36; - PyObject *exception_keeper_type_37; - PyObject *exception_keeper_value_37; - PyTracebackObject *exception_keeper_tb_37; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_37; - PyObject *exception_preserved_type_5; - PyObject *exception_preserved_value_5; - PyTracebackObject *exception_preserved_tb_5; - PyObject *exception_keeper_type_38; - PyObject *exception_keeper_value_38; - PyTracebackObject *exception_keeper_tb_38; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_38; - PyObject *exception_keeper_type_39; - PyObject *exception_keeper_value_39; - PyTracebackObject *exception_keeper_tb_39; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_39; - PyObject *exception_keeper_type_40; - PyObject *exception_keeper_value_40; - PyTracebackObject *exception_keeper_tb_40; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_40; - struct Nuitka_FrameObject *frame_9129cbc7a5937ced0a59dbc8f2b1d733_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - PyObject *exception_keeper_type_41; - PyObject *exception_keeper_value_41; - PyTracebackObject *exception_keeper_tb_41; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_41; - static struct Nuitka_FrameObject *cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7 = NULL; - PyObject *exception_keeper_type_42; - PyObject *exception_keeper_value_42; - PyTracebackObject *exception_keeper_tb_42; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_42; - PyObject *exception_keeper_type_43; - PyObject *exception_keeper_value_43; - PyTracebackObject *exception_keeper_tb_43; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_43; - PyObject *exception_preserved_type_6; - PyObject *exception_preserved_value_6; - PyTracebackObject *exception_preserved_tb_6; - PyObject *exception_keeper_type_44; - PyObject *exception_keeper_value_44; - PyTracebackObject *exception_keeper_tb_44; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_44; - PyObject *exception_keeper_type_45; - PyObject *exception_keeper_value_45; - PyTracebackObject *exception_keeper_tb_45; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_45; - PyObject *exception_keeper_type_46; - PyObject *exception_keeper_value_46; - PyTracebackObject *exception_keeper_tb_46; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_46; - PyObject *exception_keeper_type_47; - PyObject *exception_keeper_value_47; - PyTracebackObject *exception_keeper_tb_47; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_47; - PyObject *exception_preserved_type_7; - PyObject *exception_preserved_value_7; - PyTracebackObject *exception_preserved_tb_7; - PyObject *exception_keeper_type_48; - PyObject *exception_keeper_value_48; - PyTracebackObject *exception_keeper_tb_48; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_48; - PyObject *exception_keeper_type_49; - PyObject *exception_keeper_value_49; - PyTracebackObject *exception_keeper_tb_49; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_49; - PyObject *exception_keeper_type_50; - PyObject *exception_keeper_value_50; - PyTracebackObject *exception_keeper_tb_50; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_50; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_010242f3bfb425fd481def0b05eda19a = NULL; - PyObject *exception_keeper_type_51; - PyObject *exception_keeper_value_51; - PyTracebackObject *exception_keeper_tb_51; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_51; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_010242f3bfb425fd481def0b05eda19a)) { - Py_XDECREF(cache_frame_010242f3bfb425fd481def0b05eda19a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_010242f3bfb425fd481def0b05eda19a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_010242f3bfb425fd481def0b05eda19a = MAKE_FUNCTION_FRAME(codeobj_010242f3bfb425fd481def0b05eda19a, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_010242f3bfb425fd481def0b05eda19a->m_type_description == NULL); - frame_010242f3bfb425fd481def0b05eda19a = cache_frame_010242f3bfb425fd481def0b05eda19a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_010242f3bfb425fd481def0b05eda19a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_010242f3bfb425fd481def0b05eda19a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_samples); - tmp_expression_name_1 = par_samples; - tmp_subscript_name_1 = mod_consts[177]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 346; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_image == NULL); - var_image = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_image); - tmp_expression_name_3 = var_image; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[175]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[11]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bsz == NULL); - var_bsz = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[231]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_1 = var_image; - CHECK_OBJECT(par_samples); - tmp_expression_name_5 = par_samples; - tmp_subscript_name_3 = mod_consts[232]; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_samples); - tmp_expression_name_6 = par_samples; - tmp_subscript_name_4 = mod_consts[233]; - tmp_args_element_name_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_4); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 348; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[234]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_img_embeds == NULL); - Py_INCREF(tmp_assign_source_7); - var_img_embeds = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_atts_img == NULL); - Py_INCREF(tmp_assign_source_8); - var_atts_img = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var_img_embeds_list == NULL); - Py_INCREF(tmp_assign_source_9); - var_img_embeds_list = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = PyList_New(0); - assert(var_prefix_list == NULL); - var_prefix_list = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_2; - PyObject *tmp_xrange_low_1; - CHECK_OBJECT(var_bsz); - tmp_xrange_low_1 = var_bsz; - tmp_iter_arg_2 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_12 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_13; - } - if (isFrameUnusable(cache_frame_f8d430278d8f22db0c1b6695d87fc403_2)) { - Py_XDECREF(cache_frame_f8d430278d8f22db0c1b6695d87fc403_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f8d430278d8f22db0c1b6695d87fc403_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f8d430278d8f22db0c1b6695d87fc403_2 = MAKE_FUNCTION_FRAME(codeobj_f8d430278d8f22db0c1b6695d87fc403, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f8d430278d8f22db0c1b6695d87fc403_2->m_type_description == NULL); - frame_f8d430278d8f22db0c1b6695d87fc403_2 = cache_frame_f8d430278d8f22db0c1b6695d87fc403_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f8d430278d8f22db0c1b6695d87fc403_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f8d430278d8f22db0c1b6695d87fc403_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_14 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_14 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 350; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_15 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_15; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_append_value_1 = PyList_New(0); - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_2 = "o"; - goto try_except_handler_5; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_2 = "o"; - goto try_except_handler_5; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_11 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_11); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f8d430278d8f22db0c1b6695d87fc403_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f8d430278d8f22db0c1b6695d87fc403_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_4; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f8d430278d8f22db0c1b6695d87fc403_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f8d430278d8f22db0c1b6695d87fc403_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f8d430278d8f22db0c1b6695d87fc403_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f8d430278d8f22db0c1b6695d87fc403_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f8d430278d8f22db0c1b6695d87fc403_2, - type_description_2, - outline_0_var__ - ); - - - // Release cached frame if used for exception. - if (frame_f8d430278d8f22db0c1b6695d87fc403_2 == cache_frame_f8d430278d8f22db0c1b6695d87fc403_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f8d430278d8f22db0c1b6695d87fc403_2); - cache_frame_f8d430278d8f22db0c1b6695d87fc403_2 = NULL; - } - - assertFrameObject(frame_f8d430278d8f22db0c1b6695d87fc403_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 350; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_tag_list == NULL); - var_tag_list = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = LIST_COPY(mod_consts[235]); - assert(var_placeholder == NULL); - var_placeholder = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_iter_arg_3; - PyObject *tmp_xrange_low_2; - CHECK_OBJECT(var_bsz); - tmp_xrange_low_2 = var_bsz; - tmp_iter_arg_3 = BUILTIN_XRANGE1(tmp_xrange_low_2); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_17 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_17; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_2 = tmp_for_loop_1__for_iterator; - tmp_assign_source_18 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_18 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 352; - goto try_except_handler_6; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_19; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_19 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_j; - var_j = tmp_assign_source_19; - Py_INCREF(var_j); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_5; - PyObject *tmp_subscript_name_6; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 353; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_8 = par_samples; - tmp_subscript_name_5 = mod_consts[219]; - tmp_expression_name_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_8, tmp_subscript_name_5); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_j); - tmp_subscript_name_6 = var_j; - tmp_assign_source_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_6); - Py_DECREF(tmp_expression_name_7); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_num; - var_num = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = mod_consts[237]; - { - PyObject *old = var_prefix; - var_prefix = tmp_assign_source_21; - Py_INCREF(var_prefix); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_iter_arg_4; - PyObject *tmp_xrange_low_3; - CHECK_OBJECT(var_num); - tmp_xrange_low_3 = var_num; - tmp_iter_arg_4 = BUILTIN_XRANGE1(tmp_xrange_low_3); - if (tmp_iter_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_22 = MAKE_ITERATOR(tmp_iter_arg_4); - Py_DECREF(tmp_iter_arg_4); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_3 = tmp_for_loop_2__for_iterator; - tmp_assign_source_23 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_23 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 355; - goto try_except_handler_7; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_24 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_24; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_2; - PyObject *tmp_unicode_arg_1; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_4; - PyObject *tmp_right_name_5; - PyObject *tmp_right_name_6; - PyObject *tmp_unicode_arg_2; - PyObject *tmp_right_name_7; - if (var_prefix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[238]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_left_name_1 = var_prefix; - tmp_left_name_7 = mod_consts[239]; - CHECK_OBJECT(var_i); - tmp_unicode_arg_1 = var_i; - tmp_right_name_2 = PyObject_Unicode(tmp_unicode_arg_1); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_6 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_7, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_3 = mod_consts[240]; - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_6, tmp_right_name_3); - Py_DECREF(tmp_left_name_6); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_expression_name_9 = mod_consts[237]; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[241]); - assert(!(tmp_called_name_2 == NULL)); - { - PyObject *tmp_assign_source_26; - PyObject *tmp_iter_arg_5; - if (var_placeholder == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[242]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_iter_arg_5 = var_placeholder; - tmp_assign_source_26 = MAKE_ITERATOR(tmp_iter_arg_5); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_genexpr_1__$0; - tmp_genexpr_1__$0 = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_args_element_name_4 = MAKE_GENERATOR_models$medomni$$$function__17_forward$$$genexpr__1_genexpr(tmp_closure_1); - - goto try_return_handler_8; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_2; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_2:; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 356; - tmp_right_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_4); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_4); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_5 = mod_consts[243]; - tmp_left_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_4, tmp_right_name_5); - Py_DECREF(tmp_left_name_4); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - CHECK_OBJECT(var_i); - tmp_unicode_arg_2 = var_i; - tmp_right_name_6 = PyObject_Unicode(tmp_unicode_arg_2); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_6); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_6); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_7 = mod_consts[240]; - tmp_right_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_2, tmp_right_name_7); - Py_DECREF(tmp_left_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_assign_source_25 = tmp_left_name_1; - var_prefix = tmp_assign_source_25; - - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_7; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_8; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_8; - PyObject *tmp_unicode_arg_3; - PyObject *tmp_right_name_9; - if (var_tag_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[244]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_expression_name_11 = var_tag_list; - if (var_j == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[245]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_subscript_name_7 = var_j; - tmp_expression_name_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_7); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[221]); - Py_DECREF(tmp_expression_name_10); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_9 = mod_consts[239]; - CHECK_OBJECT(var_i); - tmp_unicode_arg_3 = var_i; - tmp_right_name_8 = PyObject_Unicode(tmp_unicode_arg_3); - if (tmp_right_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_8 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_9, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_left_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_9 = mod_consts[240]; - tmp_args_element_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_8, tmp_right_name_9); - Py_DECREF(tmp_left_name_8); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 357; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - goto loop_start_3; - loop_end_3:; - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_6; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - if (var_prefix_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[246]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_12 = var_prefix_list; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[221]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_left_name_10 = mod_consts[247]; - if (var_prefix == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[238]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_right_name_10 = var_prefix; - tmp_args_element_name_6 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_10, tmp_right_name_10); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 358; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - goto loop_start_2; - loop_end_2:; - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Tried code: - { - PyObject *tmp_assign_source_27; - PyObject *tmp_iter_arg_6; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_13 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[248]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - CHECK_OBJECT(var_img_embeds); - tmp_tuple_element_1 = var_img_embeds; - tmp_args_name_1 = PyTuple_New(4); - { - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_8; - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_atts_img); - tmp_tuple_element_1 = var_atts_img; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - if (var_prefix_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[246]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = var_prefix_list; - PyTuple_SET_ITEM0(tmp_args_name_1, 2, tmp_tuple_element_1); - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_14 = par_samples; - tmp_subscript_name_8 = mod_consts[219]; - tmp_tuple_element_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_14, tmp_subscript_name_8); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 3, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - goto try_except_handler_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_1 = mod_consts[249]; - tmp_compexpr_left_1 = mod_consts[207]; - if (par_samples == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_15 = par_samples; - tmp_subscript_name_9 = mod_consts[233]; - tmp_compexpr_right_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_9); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_dict_value_1 = Py_None; - goto condexpr_end_1; - condexpr_false_1:; - tmp_dict_value_1 = mod_consts[250]; - condexpr_end_1:; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 359; - tmp_iter_arg_6 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_assign_source_27 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_6); - Py_DECREF(tmp_iter_arg_6); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_27; - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_28 = UNPACK_NEXT(tmp_unpack_4, 0, 2); - if (tmp_assign_source_28 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_28; - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_29 = UNPACK_NEXT(tmp_unpack_5, 1, 2); - if (tmp_assign_source_29 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_29; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_9; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_30; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_30 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_img_embeds; - var_img_embeds = tmp_assign_source_30; - Py_INCREF(var_img_embeds); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_31; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_31 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_atts_img; - var_atts_img = tmp_assign_source_31; - Py_INCREF(var_atts_img); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_16; - tmp_assattr_name_1 = mod_consts[251]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 360; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[93]); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[252], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_32; - // Tried code: - { - PyObject *tmp_assign_source_33; - PyObject *tmp_iter_arg_7; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_10; - if (par_samples == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 362; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - } - - tmp_expression_name_17 = par_samples; - tmp_subscript_name_10 = mod_consts[253]; - tmp_iter_arg_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_10); - if (tmp_iter_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - } - tmp_assign_source_33 = MAKE_ITERATOR(tmp_iter_arg_7); - Py_DECREF(tmp_iter_arg_7); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - } - assert(tmp_listcomp_2__$0 == NULL); - tmp_listcomp_2__$0 = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = PyList_New(0); - assert(tmp_listcomp_2__contraction == NULL); - tmp_listcomp_2__contraction = tmp_assign_source_34; - } - if (isFrameUnusable(cache_frame_3dff9b49b754524c204218b310bab92a_3)) { - Py_XDECREF(cache_frame_3dff9b49b754524c204218b310bab92a_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3dff9b49b754524c204218b310bab92a_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3dff9b49b754524c204218b310bab92a_3 = MAKE_FUNCTION_FRAME(codeobj_3dff9b49b754524c204218b310bab92a, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3dff9b49b754524c204218b310bab92a_3->m_type_description == NULL); - frame_3dff9b49b754524c204218b310bab92a_3 = cache_frame_3dff9b49b754524c204218b310bab92a_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3dff9b49b754524c204218b310bab92a_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3dff9b49b754524c204218b310bab92a_3) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_4:; - { - PyObject *tmp_next_source_4; - PyObject *tmp_assign_source_35; - CHECK_OBJECT(tmp_listcomp_2__$0); - tmp_next_source_4 = tmp_listcomp_2__$0; - tmp_assign_source_35 = ITERATOR_NEXT(tmp_next_source_4); - if (tmp_assign_source_35 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_4; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 362; - goto try_except_handler_12; - } - } - - { - PyObject *old = tmp_listcomp_2__iter_value_0; - tmp_listcomp_2__iter_value_0 = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_36; - CHECK_OBJECT(tmp_listcomp_2__iter_value_0); - tmp_assign_source_36 = tmp_listcomp_2__iter_value_0; - { - PyObject *old = outline_1_var_t; - outline_1_var_t = tmp_assign_source_36; - Py_INCREF(outline_1_var_t); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_2; - PyObject *tmp_append_value_2; - CHECK_OBJECT(tmp_listcomp_2__contraction); - tmp_append_list_2 = tmp_listcomp_2__contraction; - CHECK_OBJECT(outline_1_var_t); - tmp_append_value_2 = outline_1_var_t; - assert(PyList_Check(tmp_append_list_2)); - tmp_result = LIST_APPEND0(tmp_append_list_2, tmp_append_value_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_2 = "o"; - goto try_except_handler_12; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_2 = "o"; - goto try_except_handler_12; - } - goto loop_start_4; - loop_end_4:; - CHECK_OBJECT(tmp_listcomp_2__contraction); - tmp_assign_source_32 = tmp_listcomp_2__contraction; - Py_INCREF(tmp_assign_source_32); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_XDECREF(tmp_listcomp_2__$0); - tmp_listcomp_2__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_2__contraction); - Py_DECREF(tmp_listcomp_2__contraction); - tmp_listcomp_2__contraction = NULL; - Py_XDECREF(tmp_listcomp_2__iter_value_0); - tmp_listcomp_2__iter_value_0 = NULL; - goto frame_return_exit_3; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_2__$0); - tmp_listcomp_2__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_2__contraction); - Py_DECREF(tmp_listcomp_2__contraction); - tmp_listcomp_2__contraction = NULL; - Py_XDECREF(tmp_listcomp_2__iter_value_0); - tmp_listcomp_2__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_3; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3dff9b49b754524c204218b310bab92a_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_3:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3dff9b49b754524c204218b310bab92a_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_11; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3dff9b49b754524c204218b310bab92a_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3dff9b49b754524c204218b310bab92a_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3dff9b49b754524c204218b310bab92a_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3dff9b49b754524c204218b310bab92a_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3dff9b49b754524c204218b310bab92a_3, - type_description_2, - outline_1_var_t - ); - - - // Release cached frame if used for exception. - if (frame_3dff9b49b754524c204218b310bab92a_3 == cache_frame_3dff9b49b754524c204218b310bab92a_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3dff9b49b754524c204218b310bab92a_3); - cache_frame_3dff9b49b754524c204218b310bab92a_3 = NULL; - } - - assertFrameObject(frame_3dff9b49b754524c204218b310bab92a_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - skip_nested_handling_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - Py_XDECREF(outline_1_var_t); - outline_1_var_t = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_1_var_t); - outline_1_var_t = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 362; - goto frame_exception_exit_1; - outline_result_3:; - assert(var_prompt == NULL); - var_prompt = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_iter_arg_8; - PyObject *tmp_xrange_low_4; - PyObject *tmp_len_arg_1; - CHECK_OBJECT(var_prompt); - tmp_len_arg_1 = var_prompt; - tmp_xrange_low_4 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_xrange_low_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_8 = BUILTIN_XRANGE1(tmp_xrange_low_4); - Py_DECREF(tmp_xrange_low_4); - if (tmp_iter_arg_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_37 = MAKE_ITERATOR(tmp_iter_arg_8); - Py_DECREF(tmp_iter_arg_8); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_37; - } - // Tried code: - loop_start_5:; - { - PyObject *tmp_next_source_5; - PyObject *tmp_assign_source_38; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_5 = tmp_for_loop_3__for_iterator; - tmp_assign_source_38 = ITERATOR_NEXT(tmp_next_source_5); - if (tmp_assign_source_38 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_5; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 363; - goto try_except_handler_13; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_38; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_39 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_39; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_40; - tmp_assign_source_40 = mod_consts[237]; - { - PyObject *old = var_tags; - var_tags = tmp_assign_source_40; - Py_INCREF(var_tags); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_iter_arg_9; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_11; - if (var_tag_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[244]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_expression_name_18 = var_tag_list; - CHECK_OBJECT(var_i); - tmp_subscript_name_11 = var_i; - tmp_iter_arg_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_18, tmp_subscript_name_11); - if (tmp_iter_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_assign_source_41 = MAKE_ITERATOR(tmp_iter_arg_9); - Py_DECREF(tmp_iter_arg_9); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - { - PyObject *old = tmp_for_loop_4__for_iterator; - tmp_for_loop_4__for_iterator = tmp_assign_source_41; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_6:; - { - PyObject *tmp_next_source_6; - PyObject *tmp_assign_source_42; - CHECK_OBJECT(tmp_for_loop_4__for_iterator); - tmp_next_source_6 = tmp_for_loop_4__for_iterator; - tmp_assign_source_42 = ITERATOR_NEXT(tmp_next_source_6); - if (tmp_assign_source_42 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_6; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 365; - goto try_except_handler_14; - } - } - - { - PyObject *old = tmp_for_loop_4__iter_value; - tmp_for_loop_4__iter_value = tmp_assign_source_42; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_43; - CHECK_OBJECT(tmp_for_loop_4__iter_value); - tmp_assign_source_43 = tmp_for_loop_4__iter_value; - { - PyObject *old = var_tag; - var_tag = tmp_assign_source_43; - Py_INCREF(var_tag); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_12; - CHECK_OBJECT(var_tag); - tmp_compexpr_left_2 = var_tag; - if (var_prompt == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_expression_name_19 = var_prompt; - if (var_i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_subscript_name_12 = var_i; - tmp_compexpr_right_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_12); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_condition_result_2 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_44; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - if (var_tags == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[255]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 367; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_left_name_11 = var_tags; - CHECK_OBJECT(var_tag); - tmp_right_name_11 = var_tag; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_11, tmp_right_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_assign_source_44 = tmp_left_name_11; - var_tags = tmp_assign_source_44; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - goto loop_start_6; - loop_end_6:; - goto try_end_7; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_13; - // End of try: - try_end_7:; - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_20; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_13; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (var_prompt == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_expression_name_21 = var_prompt; - if (var_i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_subscript_name_13 = var_i; - tmp_expression_name_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_21, tmp_subscript_name_13); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[256]); - Py_DECREF(tmp_expression_name_20); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_args_element_name_7 = mod_consts[257]; - if (var_tags == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[255]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_args_element_name_8 = var_tags; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 368; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_ass_subvalue_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_called_name_6); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - if (var_prompt == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_ass_subscribed_1 = var_prompt; - if (var_i == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_ass_subscript_1 = var_i; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - goto loop_start_5; - loop_end_5:; - goto try_end_8; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - bool tmp_condition_result_3; - int tmp_or_left_truth_1; - bool tmp_or_left_value_1; - bool tmp_or_right_value_1; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_14; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_23; - PyObject *tmp_subscript_name_15; - tmp_compexpr_left_3 = mod_consts[258]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_samples; - tmp_subscript_name_14 = mod_consts[233]; - tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_22, tmp_subscript_name_14); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res == 1) ? true : false; - tmp_or_left_truth_1 = tmp_or_left_value_1 != false ? 1 : 0; - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - tmp_compexpr_left_4 = mod_consts[259]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_23 = par_samples; - tmp_subscript_name_15 = mod_consts[233]; - tmp_compexpr_right_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_23, tmp_subscript_name_15); - if (tmp_compexpr_right_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_4, tmp_compexpr_left_4); - Py_DECREF(tmp_compexpr_right_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res == 1) ? true : false; - tmp_condition_result_3 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_3 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_3 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_45; - // Tried code: - { - PyObject *tmp_assign_source_46; - PyObject *tmp_iter_arg_10; - PyObject *tmp_expression_name_24; - PyObject *tmp_subscript_name_16; - if (par_samples == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 371; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - - tmp_expression_name_24 = par_samples; - tmp_subscript_name_16 = mod_consts[260]; - tmp_iter_arg_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_24, tmp_subscript_name_16); - if (tmp_iter_arg_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - tmp_assign_source_46 = MAKE_ITERATOR(tmp_iter_arg_10); - Py_DECREF(tmp_iter_arg_10); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - assert(tmp_listcomp_3__$0 == NULL); - tmp_listcomp_3__$0 = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyList_New(0); - assert(tmp_listcomp_3__contraction == NULL); - tmp_listcomp_3__contraction = tmp_assign_source_47; - } - if (isFrameUnusable(cache_frame_2b980890218eabf65dba6955c1a411cb_4)) { - Py_XDECREF(cache_frame_2b980890218eabf65dba6955c1a411cb_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2b980890218eabf65dba6955c1a411cb_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2b980890218eabf65dba6955c1a411cb_4 = MAKE_FUNCTION_FRAME(codeobj_2b980890218eabf65dba6955c1a411cb, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2b980890218eabf65dba6955c1a411cb_4->m_type_description == NULL); - frame_2b980890218eabf65dba6955c1a411cb_4 = cache_frame_2b980890218eabf65dba6955c1a411cb_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2b980890218eabf65dba6955c1a411cb_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2b980890218eabf65dba6955c1a411cb_4) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_7:; - { - PyObject *tmp_next_source_7; - PyObject *tmp_assign_source_48; - CHECK_OBJECT(tmp_listcomp_3__$0); - tmp_next_source_7 = tmp_listcomp_3__$0; - tmp_assign_source_48 = ITERATOR_NEXT(tmp_next_source_7); - if (tmp_assign_source_48 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_7; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 371; - goto try_except_handler_16; - } - } - - { - PyObject *old = tmp_listcomp_3__iter_value_0; - tmp_listcomp_3__iter_value_0 = tmp_assign_source_48; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_49; - CHECK_OBJECT(tmp_listcomp_3__iter_value_0); - tmp_assign_source_49 = tmp_listcomp_3__iter_value_0; - { - PyObject *old = outline_2_var_ans; - outline_2_var_ans = tmp_assign_source_49; - Py_INCREF(outline_2_var_ans); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_3; - PyObject *tmp_append_value_3; - PyObject *tmp_expression_name_25; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_17; - CHECK_OBJECT(tmp_listcomp_3__contraction); - tmp_append_list_3 = tmp_listcomp_3__contraction; - CHECK_OBJECT(outline_2_var_ans); - tmp_called_instance_1 = outline_2_var_ans; - frame_2b980890218eabf65dba6955c1a411cb_4->m_frame.f_lineno = 371; - tmp_expression_name_25 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[261], 0) - ); - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - tmp_subscript_name_17 = mod_consts[11]; - tmp_append_value_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_25, tmp_subscript_name_17, 0); - Py_DECREF(tmp_expression_name_25); - if (tmp_append_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - assert(PyList_Check(tmp_append_list_3)); - tmp_result = LIST_APPEND1(tmp_append_list_3, tmp_append_value_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - goto loop_start_7; - loop_end_7:; - CHECK_OBJECT(tmp_listcomp_3__contraction); - tmp_assign_source_45 = tmp_listcomp_3__contraction; - Py_INCREF(tmp_assign_source_45); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_XDECREF(tmp_listcomp_3__$0); - tmp_listcomp_3__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_3__contraction); - Py_DECREF(tmp_listcomp_3__contraction); - tmp_listcomp_3__contraction = NULL; - Py_XDECREF(tmp_listcomp_3__iter_value_0); - tmp_listcomp_3__iter_value_0 = NULL; - goto frame_return_exit_4; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_3__$0); - tmp_listcomp_3__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_3__contraction); - Py_DECREF(tmp_listcomp_3__contraction); - tmp_listcomp_3__contraction = NULL; - Py_XDECREF(tmp_listcomp_3__iter_value_0); - tmp_listcomp_3__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_4; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2b980890218eabf65dba6955c1a411cb_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_return_exit_4:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2b980890218eabf65dba6955c1a411cb_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_15; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2b980890218eabf65dba6955c1a411cb_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2b980890218eabf65dba6955c1a411cb_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2b980890218eabf65dba6955c1a411cb_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2b980890218eabf65dba6955c1a411cb_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2b980890218eabf65dba6955c1a411cb_4, - type_description_2, - outline_2_var_ans - ); - - - // Release cached frame if used for exception. - if (frame_2b980890218eabf65dba6955c1a411cb_4 == cache_frame_2b980890218eabf65dba6955c1a411cb_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2b980890218eabf65dba6955c1a411cb_4); - cache_frame_2b980890218eabf65dba6955c1a411cb_4 = NULL; - } - - assertFrameObject(frame_2b980890218eabf65dba6955c1a411cb_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - skip_nested_handling_3:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_XDECREF(outline_2_var_ans); - outline_2_var_ans = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_2_var_ans); - outline_2_var_ans = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 371; - goto frame_exception_exit_1; - outline_result_4:; - assert(var_sample_ans == NULL); - var_sample_ans = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_50; - // Tried code: - { - PyObject *tmp_assign_source_51; - PyObject *tmp_iter_arg_11; - PyObject *tmp_expression_name_26; - PyObject *tmp_subscript_name_18; - if (par_samples == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 372; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - - tmp_expression_name_26 = par_samples; - tmp_subscript_name_18 = mod_consts[260]; - tmp_iter_arg_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_26, tmp_subscript_name_18); - if (tmp_iter_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - tmp_assign_source_51 = MAKE_ITERATOR(tmp_iter_arg_11); - Py_DECREF(tmp_iter_arg_11); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - assert(tmp_listcomp_4__$0 == NULL); - tmp_listcomp_4__$0 = tmp_assign_source_51; - } - { - PyObject *tmp_assign_source_52; - tmp_assign_source_52 = PyList_New(0); - assert(tmp_listcomp_4__contraction == NULL); - tmp_listcomp_4__contraction = tmp_assign_source_52; - } - if (isFrameUnusable(cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5)) { - Py_XDECREF(cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5 = MAKE_FUNCTION_FRAME(codeobj_2bfedd52eb2b9a86da6206d8f1c74946, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5->m_type_description == NULL); - frame_2bfedd52eb2b9a86da6206d8f1c74946_5 = cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2bfedd52eb2b9a86da6206d8f1c74946_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2bfedd52eb2b9a86da6206d8f1c74946_5) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_8:; - { - PyObject *tmp_next_source_8; - PyObject *tmp_assign_source_53; - CHECK_OBJECT(tmp_listcomp_4__$0); - tmp_next_source_8 = tmp_listcomp_4__$0; - tmp_assign_source_53 = ITERATOR_NEXT(tmp_next_source_8); - if (tmp_assign_source_53 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_8; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 372; - goto try_except_handler_18; - } - } - - { - PyObject *old = tmp_listcomp_4__iter_value_0; - tmp_listcomp_4__iter_value_0 = tmp_assign_source_53; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_54; - CHECK_OBJECT(tmp_listcomp_4__iter_value_0); - tmp_assign_source_54 = tmp_listcomp_4__iter_value_0; - { - PyObject *old = outline_3_var_ans; - outline_3_var_ans = tmp_assign_source_54; - Py_INCREF(outline_3_var_ans); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_4; - PyObject *tmp_append_value_4; - PyObject *tmp_expression_name_27; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_19; - CHECK_OBJECT(tmp_listcomp_4__contraction); - tmp_append_list_4 = tmp_listcomp_4__contraction; - CHECK_OBJECT(outline_3_var_ans); - tmp_called_instance_2 = outline_3_var_ans; - frame_2bfedd52eb2b9a86da6206d8f1c74946_5->m_frame.f_lineno = 372; - tmp_expression_name_27 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[261], 0) - ); - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - tmp_subscript_name_19 = mod_consts[60]; - tmp_append_value_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_19, 1); - Py_DECREF(tmp_expression_name_27); - if (tmp_append_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - assert(PyList_Check(tmp_append_list_4)); - tmp_result = LIST_APPEND1(tmp_append_list_4, tmp_append_value_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - goto loop_start_8; - loop_end_8:; - CHECK_OBJECT(tmp_listcomp_4__contraction); - tmp_assign_source_50 = tmp_listcomp_4__contraction; - Py_INCREF(tmp_assign_source_50); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_XDECREF(tmp_listcomp_4__$0); - tmp_listcomp_4__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_4__contraction); - Py_DECREF(tmp_listcomp_4__contraction); - tmp_listcomp_4__contraction = NULL; - Py_XDECREF(tmp_listcomp_4__iter_value_0); - tmp_listcomp_4__iter_value_0 = NULL; - goto frame_return_exit_5; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_4__$0); - tmp_listcomp_4__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_4__contraction); - Py_DECREF(tmp_listcomp_4__contraction); - tmp_listcomp_4__contraction = NULL; - Py_XDECREF(tmp_listcomp_4__iter_value_0); - tmp_listcomp_4__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_5; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bfedd52eb2b9a86da6206d8f1c74946_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_return_exit_5:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bfedd52eb2b9a86da6206d8f1c74946_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_17; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bfedd52eb2b9a86da6206d8f1c74946_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2bfedd52eb2b9a86da6206d8f1c74946_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2bfedd52eb2b9a86da6206d8f1c74946_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2bfedd52eb2b9a86da6206d8f1c74946_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2bfedd52eb2b9a86da6206d8f1c74946_5, - type_description_2, - outline_3_var_ans - ); - - - // Release cached frame if used for exception. - if (frame_2bfedd52eb2b9a86da6206d8f1c74946_5 == cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5); - cache_frame_2bfedd52eb2b9a86da6206d8f1c74946_5 = NULL; - } - - assertFrameObject(frame_2bfedd52eb2b9a86da6206d8f1c74946_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - skip_nested_handling_4:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - Py_XDECREF(outline_3_var_ans); - outline_3_var_ans = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_3_var_ans); - outline_3_var_ans = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 372; - goto frame_exception_exit_1; - outline_result_5:; - assert(var_sample_num == NULL); - var_sample_num = tmp_assign_source_50; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_55; - PyObject *tmp_expression_name_28; - PyObject *tmp_subscript_name_20; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 374; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_samples; - tmp_subscript_name_20 = mod_consts[260]; - tmp_assign_source_55 = LOOKUP_SUBSCRIPT(tmp_expression_name_28, tmp_subscript_name_20); - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_sample_ans == NULL); - var_sample_ans = tmp_assign_source_55; - } - branch_end_2:; - { - PyObject *tmp_assign_source_56; - // Tried code: - { - PyObject *tmp_assign_source_57; - PyObject *tmp_iter_arg_12; - CHECK_OBJECT(var_sample_ans); - tmp_iter_arg_12 = var_sample_ans; - tmp_assign_source_57 = MAKE_ITERATOR(tmp_iter_arg_12); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_19; - } - assert(tmp_listcomp_5__$0 == NULL); - tmp_listcomp_5__$0 = tmp_assign_source_57; - } - { - PyObject *tmp_assign_source_58; - tmp_assign_source_58 = PyList_New(0); - assert(tmp_listcomp_5__contraction == NULL); - tmp_listcomp_5__contraction = tmp_assign_source_58; - } - if (isFrameUnusable(cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6)) { - Py_XDECREF(cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6 = MAKE_FUNCTION_FRAME(codeobj_7dd0e173fd5b9e5264bedbaef5273d73, module_models$medomni, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6->m_type_description == NULL); - frame_7dd0e173fd5b9e5264bedbaef5273d73_6 = cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7dd0e173fd5b9e5264bedbaef5273d73_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7dd0e173fd5b9e5264bedbaef5273d73_6) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_9:; - { - PyObject *tmp_next_source_9; - PyObject *tmp_assign_source_59; - CHECK_OBJECT(tmp_listcomp_5__$0); - tmp_next_source_9 = tmp_listcomp_5__$0; - tmp_assign_source_59 = ITERATOR_NEXT(tmp_next_source_9); - if (tmp_assign_source_59 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_9; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 375; - goto try_except_handler_20; - } - } - - { - PyObject *old = tmp_listcomp_5__iter_value_0; - tmp_listcomp_5__iter_value_0 = tmp_assign_source_59; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_60; - CHECK_OBJECT(tmp_listcomp_5__iter_value_0); - tmp_assign_source_60 = tmp_listcomp_5__iter_value_0; - { - PyObject *old = outline_4_var_t; - outline_4_var_t = tmp_assign_source_60; - Py_INCREF(outline_4_var_t); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_5; - PyObject *tmp_append_value_5; - PyObject *tmp_left_name_12; - PyObject *tmp_left_name_13; - PyObject *tmp_right_name_12; - PyObject *tmp_unicode_arg_4; - PyObject *tmp_right_name_13; - PyObject *tmp_expression_name_29; - CHECK_OBJECT(tmp_listcomp_5__contraction); - tmp_append_list_5 = tmp_listcomp_5__contraction; - tmp_left_name_13 = mod_consts[262]; - CHECK_OBJECT(outline_4_var_t); - tmp_unicode_arg_4 = outline_4_var_t; - tmp_right_name_12 = PyObject_Unicode(tmp_unicode_arg_4); - if (tmp_right_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - tmp_left_name_12 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_13, tmp_right_name_12); - Py_DECREF(tmp_right_name_12); - if (tmp_left_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_12); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - - tmp_expression_name_29 = par_self; - tmp_right_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[168]); - if (tmp_right_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_12); - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - tmp_append_value_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_12, tmp_right_name_13); - Py_DECREF(tmp_left_name_12); - Py_DECREF(tmp_right_name_13); - if (tmp_append_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - assert(PyList_Check(tmp_append_list_5)); - tmp_result = LIST_APPEND1(tmp_append_list_5, tmp_append_value_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - goto loop_start_9; - loop_end_9:; - CHECK_OBJECT(tmp_listcomp_5__contraction); - tmp_assign_source_56 = tmp_listcomp_5__contraction; - Py_INCREF(tmp_assign_source_56); - goto try_return_handler_20; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_20:; - Py_XDECREF(tmp_listcomp_5__$0); - tmp_listcomp_5__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_5__contraction); - Py_DECREF(tmp_listcomp_5__contraction); - tmp_listcomp_5__contraction = NULL; - Py_XDECREF(tmp_listcomp_5__iter_value_0); - tmp_listcomp_5__iter_value_0 = NULL; - goto frame_return_exit_6; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_5__$0); - tmp_listcomp_5__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_5__contraction); - Py_DECREF(tmp_listcomp_5__contraction); - tmp_listcomp_5__contraction = NULL; - Py_XDECREF(tmp_listcomp_5__iter_value_0); - tmp_listcomp_5__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_6; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7dd0e173fd5b9e5264bedbaef5273d73_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_return_exit_6:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7dd0e173fd5b9e5264bedbaef5273d73_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_19; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7dd0e173fd5b9e5264bedbaef5273d73_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7dd0e173fd5b9e5264bedbaef5273d73_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7dd0e173fd5b9e5264bedbaef5273d73_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7dd0e173fd5b9e5264bedbaef5273d73_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7dd0e173fd5b9e5264bedbaef5273d73_6, - type_description_2, - outline_4_var_t, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_7dd0e173fd5b9e5264bedbaef5273d73_6 == cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6); - cache_frame_7dd0e173fd5b9e5264bedbaef5273d73_6 = NULL; - } - - assertFrameObject(frame_7dd0e173fd5b9e5264bedbaef5273d73_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_19; - skip_nested_handling_5:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - Py_XDECREF(outline_4_var_t); - outline_4_var_t = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_4_var_t); - outline_4_var_t = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 375; - goto frame_exception_exit_1; - outline_result_6:; - assert(var_text == NULL); - var_text = tmp_assign_source_56; - } - { - PyObject *tmp_assign_source_61; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_30; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_32; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[93]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_prompt == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 378; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_prompt; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[263]); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 377; - tmp_expression_name_30 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[170]); - Py_DECREF(tmp_expression_name_30); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 384; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = var_image; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[178]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 384; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 377; - tmp_assign_source_61 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prompt_tokens == NULL); - var_prompt_tokens = tmp_assign_source_61; - } - // Tried code: - { - PyObject *tmp_assign_source_62; - PyObject *tmp_iter_arg_13; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 386; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_21; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_img_embeds); - tmp_args_element_name_10 = var_img_embeds; - CHECK_OBJECT(var_atts_img); - tmp_args_element_name_11 = var_atts_img; - CHECK_OBJECT(var_prompt_tokens); - tmp_args_element_name_12 = var_prompt_tokens; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 386; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_iter_arg_13 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[264], - call_args - ); - } - - if (tmp_iter_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_21; - } - tmp_assign_source_62 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_13); - Py_DECREF(tmp_iter_arg_13); - if (tmp_assign_source_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_21; - } - assert(tmp_tuple_unpack_3__source_iter == NULL); - tmp_tuple_unpack_3__source_iter = tmp_assign_source_62; - } - // Tried code: - { - PyObject *tmp_assign_source_63; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_63 = UNPACK_NEXT(tmp_unpack_6, 0, 2); - if (tmp_assign_source_63 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - assert(tmp_tuple_unpack_3__element_1 == NULL); - tmp_tuple_unpack_3__element_1 = tmp_assign_source_63; - } - { - PyObject *tmp_assign_source_64; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_64 = UNPACK_NEXT(tmp_unpack_7, 1, 2); - if (tmp_assign_source_64 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - assert(tmp_tuple_unpack_3__element_2 == NULL); - tmp_tuple_unpack_3__element_2 = tmp_assign_source_64; - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - } - goto try_end_9; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto try_except_handler_21; - // End of try: - try_end_9:; - goto try_end_10; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_65; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_65 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_img_embeds; - var_img_embeds = tmp_assign_source_65; - Py_INCREF(var_img_embeds); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_66; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_66 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_atts_img; - var_atts_img = tmp_assign_source_66; - Py_INCREF(var_atts_img); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - PyObject *tmp_assign_source_67; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_33; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_36; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_34 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[93]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_text); - tmp_tuple_element_3 = var_text; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[265]; - tmp_dict_value_2 = mod_consts[266]; - tmp_kwargs_name_3 = _PyDict_NewPresized( 5 ); - { - PyObject *tmp_expression_name_35; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[267]; - tmp_dict_value_2 = mod_consts[268]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[269]; - tmp_dict_value_2 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[270]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 393; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_35 = par_self; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[167]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[96]; - tmp_dict_value_2 = Py_False; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 388; - tmp_expression_name_33 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[170]); - Py_DECREF(tmp_expression_name_33); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 395; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_36 = var_image; - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[178]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 395; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 388; - tmp_assign_source_67 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_13); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_to_regress_tokens == NULL); - var_to_regress_tokens = tmp_assign_source_67; - } - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_37; - PyObject *tmp_expression_name_38; - PyObject *tmp_args_element_name_14; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_expression_name_39; - PyObject *tmp_expression_name_40; - PyObject *tmp_expression_name_41; - PyObject *tmp_args_element_name_15; - CHECK_OBJECT(var_to_regress_tokens); - tmp_expression_name_38 = var_to_regress_tokens; - tmp_expression_name_37 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[104]); - if (tmp_expression_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[271]); - Py_DECREF(tmp_expression_name_37); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_to_regress_tokens == NULL) { - Py_DECREF(tmp_called_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_39 = var_to_regress_tokens; - tmp_compexpr_left_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[104]); - if (tmp_compexpr_left_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_compexpr_left_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_41 = par_self; - tmp_expression_name_40 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[93]); - if (tmp_expression_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_compexpr_left_5); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[273]); - Py_DECREF(tmp_expression_name_40); - if (tmp_compexpr_right_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_compexpr_left_5); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - Py_DECREF(tmp_compexpr_left_5); - Py_DECREF(tmp_compexpr_right_5); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_15 = mod_consts[274]; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 397; - { - PyObject *call_args[] = {tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_assign_source_68 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_11, call_args); - } - - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_14); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_targets == NULL); - var_targets = tmp_assign_source_68; - } - { - PyObject *tmp_assign_source_69; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_42; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_list_element_1; - PyObject *tmp_expression_name_44; - PyObject *tmp_expression_name_45; - PyObject *tmp_subscript_name_21; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_expression_name_48; - PyObject *tmp_args_element_name_16; - PyObject *tmp_expression_name_49; - tmp_expression_name_43 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_43 == NULL)) { - tmp_expression_name_43 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[197]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_atts_img); - tmp_expression_name_45 = var_atts_img; - tmp_expression_name_44 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[175]); - if (tmp_expression_name_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_21 = mod_consts[11]; - tmp_list_element_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_44, tmp_subscript_name_21, 0); - Py_DECREF(tmp_expression_name_44); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_4 = PyList_New(2); - { - PyObject *tmp_left_name_14; - PyObject *tmp_expression_name_46; - PyObject *tmp_expression_name_47; - PyObject *tmp_subscript_name_22; - PyObject *tmp_right_name_14; - PyList_SET_ITEM(tmp_tuple_element_4, 0, tmp_list_element_1); - if (var_atts_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[275]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - - tmp_expression_name_47 = var_atts_img; - tmp_expression_name_46 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[175]); - if (tmp_expression_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - tmp_subscript_name_22 = mod_consts[60]; - tmp_left_name_14 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_46, tmp_subscript_name_22, 1); - Py_DECREF(tmp_expression_name_46); - if (tmp_left_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - tmp_right_name_14 = mod_consts[60]; - tmp_list_element_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_14, tmp_right_name_14); - Py_DECREF(tmp_left_name_14); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_tuple_element_4, 1, tmp_list_element_1); - } - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_tuple_element_4); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_dict_key_3 = mod_consts[0]; - tmp_expression_name_48 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_48 == NULL)) { - tmp_expression_name_48 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_4); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[199]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_4); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 402; - tmp_expression_name_42 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[170]); - Py_DECREF(tmp_expression_name_42); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_49 = var_image; - tmp_args_element_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[178]); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_12); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 402; - tmp_called_instance_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_16); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_16); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 402; - tmp_assign_source_69 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[276], - &PyTuple_GET_ITEM(mod_consts[277], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_empty_targets == NULL); - var_empty_targets = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_50; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_5; - PyObject *tmp_list_element_2; - PyObject *tmp_kwargs_name_5; - tmp_expression_name_50 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_50 == NULL)) { - tmp_expression_name_50 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[213]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_empty_targets); - tmp_list_element_2 = var_empty_targets; - tmp_tuple_element_5 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_5, 0, tmp_list_element_2); - CHECK_OBJECT(var_targets); - tmp_list_element_2 = var_targets; - PyList_SET_ITEM0(tmp_tuple_element_5, 1, tmp_list_element_2); - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_5, 0, tmp_tuple_element_5); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[215]); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 405; - tmp_assign_source_70 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_targets; - var_targets = tmp_assign_source_70; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_71; - PyObject *tmp_expression_name_51; - PyObject *tmp_expression_name_52; - PyObject *tmp_subscript_name_23; - CHECK_OBJECT(var_img_embeds); - tmp_expression_name_52 = var_img_embeds; - tmp_expression_name_51 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[175]); - if (tmp_expression_name_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 407; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_23 = mod_consts[11]; - tmp_assign_source_71 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_51, tmp_subscript_name_23, 0); - Py_DECREF(tmp_expression_name_51); - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 407; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_batch_size == NULL); - var_batch_size = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_left_name_15; - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_53; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_list_element_3; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_expression_name_54; - PyObject *tmp_expression_name_55; - PyObject *tmp_right_name_15; - PyObject *tmp_expression_name_58; - PyObject *tmp_expression_name_59; - tmp_expression_name_53 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_53 == NULL)) { - tmp_expression_name_53 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_53, mod_consts[197]); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_list_element_3 = var_batch_size; - tmp_tuple_element_6 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_6, 0, tmp_list_element_3); - tmp_list_element_3 = mod_consts[60]; - PyList_SET_ITEM0(tmp_tuple_element_6, 1, tmp_list_element_3); - tmp_args_name_6 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_dict_key_4 = mod_consts[0]; - if (var_to_regress_tokens == NULL) { - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 409; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_55 = var_to_regress_tokens; - tmp_expression_name_54 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[104]); - if (tmp_expression_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 409; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[0]); - Py_DECREF(tmp_expression_name_54); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 409; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_6 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_56; - PyObject *tmp_expression_name_57; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[178]; - if (var_to_regress_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_expression_name_57 = var_to_regress_tokens; - tmp_expression_name_56 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[104]); - if (tmp_expression_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[178]); - Py_DECREF(tmp_expression_name_56); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 408; - tmp_left_name_15 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_left_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_59 = par_self; - tmp_expression_name_58 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[93]); - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_15); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_58, mod_consts[278]); - Py_DECREF(tmp_expression_name_58); - if (tmp_right_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_15); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_72 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_15, tmp_right_name_15); - Py_DECREF(tmp_left_name_15); - Py_DECREF(tmp_right_name_15); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bos == NULL); - var_bos = tmp_assign_source_72; - } - { - PyObject *tmp_assign_source_73; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 412; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - CHECK_OBJECT(var_bos); - tmp_args_element_name_17 = var_bos; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 412; - tmp_assign_source_73 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[119], tmp_args_element_name_17); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 412; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bos_embeds == NULL); - var_bos_embeds = tmp_assign_source_73; - } - { - PyObject *tmp_assign_source_74; - PyObject *tmp_expression_name_60; - PyObject *tmp_subscript_name_24; - if (var_atts_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[275]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 413; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_60 = var_atts_img; - tmp_subscript_name_24 = mod_consts[216]; - tmp_assign_source_74 = LOOKUP_SUBSCRIPT(tmp_expression_name_60, tmp_subscript_name_24); - if (tmp_assign_source_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_atts_bos == NULL); - var_atts_bos = tmp_assign_source_74; - } - { - PyObject *tmp_assign_source_75; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_61; - PyObject *tmp_args_element_name_18; - PyObject *tmp_expression_name_62; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_61 = par_self; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[119]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_to_regress_tokens == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_62 = var_to_regress_tokens; - tmp_args_element_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[104]); - if (tmp_args_element_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 415; - tmp_assign_source_75 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_18); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_18); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_to_regress_embeds == NULL); - var_to_regress_embeds = tmp_assign_source_75; - } - { - PyObject *tmp_assign_source_76; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_63; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_7; - PyObject *tmp_list_element_4; - PyObject *tmp_kwargs_name_7; - tmp_expression_name_63 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_63 == NULL)) { - tmp_expression_name_63 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[213]); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bos_embeds); - tmp_list_element_4 = var_bos_embeds; - tmp_tuple_element_7 = PyList_New(3); - PyList_SET_ITEM0(tmp_tuple_element_7, 0, tmp_list_element_4); - if (var_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_2; - } - - tmp_list_element_4 = var_img_embeds; - PyList_SET_ITEM0(tmp_tuple_element_7, 1, tmp_list_element_4); - CHECK_OBJECT(var_to_regress_embeds); - tmp_list_element_4 = var_to_regress_embeds; - PyList_SET_ITEM0(tmp_tuple_element_7, 2, tmp_list_element_4); - goto list_build_noexception_2; - // Exception handling pass through code for list_build: - list_build_exception_2:; - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_tuple_element_7); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_2:; - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_7, 0, tmp_tuple_element_7); - tmp_kwargs_name_7 = PyDict_Copy(mod_consts[215]); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 416; - tmp_assign_source_76 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_inputs_embeds == NULL); - var_inputs_embeds = tmp_assign_source_76; - } - { - PyObject *tmp_assign_source_77; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_64; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_8; - PyObject *tmp_list_element_5; - PyObject *tmp_kwargs_name_8; - tmp_expression_name_64 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_64 == NULL)) { - tmp_expression_name_64 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_64, mod_consts[213]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_atts_bos); - tmp_list_element_5 = var_atts_bos; - tmp_tuple_element_8 = PyList_New(3); - { - PyObject *tmp_expression_name_65; - PyList_SET_ITEM0(tmp_tuple_element_8, 0, tmp_list_element_5); - if (var_atts_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[275]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_3; - } - - tmp_list_element_5 = var_atts_img; - PyList_SET_ITEM0(tmp_tuple_element_8, 1, tmp_list_element_5); - if (var_to_regress_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_3; - } - - tmp_expression_name_65 = var_to_regress_tokens; - tmp_list_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[279]); - if (tmp_list_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_3; - } - PyList_SET_ITEM(tmp_tuple_element_8, 2, tmp_list_element_5); - } - goto list_build_noexception_3; - // Exception handling pass through code for list_build: - list_build_exception_3:; - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_tuple_element_8); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_3:; - tmp_args_name_8 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_8, 0, tmp_tuple_element_8); - tmp_kwargs_name_8 = PyDict_Copy(mod_consts[215]); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 417; - tmp_assign_source_77 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_8); - Py_DECREF(tmp_kwargs_name_8); - if (tmp_assign_source_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_mask == NULL); - var_attention_mask = tmp_assign_source_77; - } - // Tried code: - { - PyObject *tmp_assign_source_78; - PyObject *tmp_called_instance_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - - tmp_called_instance_6 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 418; - tmp_assign_source_78 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[180]); - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_78; - } - { - PyObject *tmp_assign_source_79; - PyObject *tmp_called_name_19; - PyObject *tmp_expression_name_66; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_66 = tmp_with_1__source; - tmp_called_name_19 = LOOKUP_SPECIAL(tmp_expression_name_66, mod_consts[181]); - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 418; - tmp_assign_source_79 = CALL_FUNCTION_NO_ARGS(tmp_called_name_19); - Py_DECREF(tmp_called_name_19); - if (tmp_assign_source_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_79; - } - { - PyObject *tmp_assign_source_80; - PyObject *tmp_expression_name_67; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_67 = tmp_with_1__source; - tmp_assign_source_80 = LOOKUP_SPECIAL(tmp_expression_name_67, mod_consts[182]); - if (tmp_assign_source_80 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_80; - } - { - nuitka_bool tmp_assign_source_81; - tmp_assign_source_81 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_81; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_82; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_68; - PyObject *tmp_kwargs_name_9; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 419; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_25; - } - - tmp_expression_name_68 = par_self; - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_68, mod_consts[111]); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 419; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_25; - } - tmp_dict_key_5 = mod_consts[280]; - CHECK_OBJECT(var_inputs_embeds); - tmp_dict_value_5 = var_inputs_embeds; - tmp_kwargs_name_9 = _PyDict_NewPresized( 5 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[279]; - CHECK_OBJECT(var_attention_mask); - tmp_dict_value_5 = var_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[281]; - tmp_dict_value_5 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[57]; - CHECK_OBJECT(var_targets); - tmp_dict_value_5 = var_targets; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[282]; - tmp_dict_value_5 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 419; - tmp_assign_source_82 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_20, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_kwargs_name_9); - if (tmp_assign_source_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 419; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_25; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_82; - } - goto try_end_11; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_21 == NULL) { - exception_keeper_tb_21 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_21); - } else if (exception_keeper_lineno_21 != 0) { - exception_keeper_tb_21 = ADD_TRACEBACK(exception_keeper_tb_21, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_21); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_21, &exception_keeper_value_21, &exception_keeper_tb_21); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_21, exception_keeper_tb_21); - PUBLISH_EXCEPTION(&exception_keeper_type_21, &exception_keeper_value_21, &exception_keeper_tb_21); - // Tried code: - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - tmp_compexpr_left_6 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_6 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_6, tmp_compexpr_right_6); - assert(!(tmp_res == -1)); - tmp_condition_result_4 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_assign_source_83; - tmp_assign_source_83 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_83; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_21; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - PyObject *tmp_args_element_name_21; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_21 = tmp_with_1__exit; - tmp_args_element_name_19 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_20 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_21 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 424; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20, tmp_args_element_name_21}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_21, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 424; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - branch_no_4:; - goto branch_end_3; - branch_no_3:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 418; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - branch_end_3:; - goto try_end_12; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto try_except_handler_24; - // End of try: - try_end_12:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_11; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_11:; - goto try_end_13; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_6; - nuitka_bool tmp_compexpr_left_7; - nuitka_bool tmp_compexpr_right_7; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_7 = tmp_with_1__indicator; - tmp_compexpr_right_7 = NUITKA_BOOL_TRUE; - tmp_condition_result_6 = (tmp_compexpr_left_7 == tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_22; - PyObject *tmp_call_result_3; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_22 = tmp_with_1__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 424; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_22, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_23); - Py_XDECREF(exception_keeper_value_23); - Py_XDECREF(exception_keeper_tb_23); - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_5:; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto try_except_handler_23; - // End of try: - try_end_13:; - { - bool tmp_condition_result_7; - nuitka_bool tmp_compexpr_left_8; - nuitka_bool tmp_compexpr_right_8; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_8 = tmp_with_1__indicator; - tmp_compexpr_right_8 = NUITKA_BOOL_TRUE; - tmp_condition_result_7 = (tmp_compexpr_left_8 == tmp_compexpr_right_8) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_called_name_23; - PyObject *tmp_call_result_4; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_23 = tmp_with_1__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 424; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_23, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_6:; - goto try_end_14; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto frame_exception_exit_1; - // End of try: - try_end_14:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - { - PyObject *tmp_assign_source_84; - PyObject *tmp_expression_name_69; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 426; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_69 = var_outputs; - tmp_assign_source_84 = LOOKUP_ATTRIBUTE(tmp_expression_name_69, mod_consts[284]); - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_84; - } - { - bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - PyObject *tmp_expression_name_70; - PyObject *tmp_subscript_name_25; - tmp_compexpr_left_9 = mod_consts[258]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 428; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_70 = par_samples; - tmp_subscript_name_25 = mod_consts[233]; - tmp_compexpr_right_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_70, tmp_subscript_name_25); - if (tmp_compexpr_right_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_9, tmp_compexpr_left_9); - Py_DECREF(tmp_compexpr_right_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_8 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_8 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - // Tried code: - { - PyObject *tmp_assign_source_85; - PyObject *tmp_called_instance_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - - tmp_called_instance_7 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 429; - tmp_assign_source_85 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[180]); - if (tmp_assign_source_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - assert(tmp_with_3__source == NULL); - tmp_with_3__source = tmp_assign_source_85; - } - { - PyObject *tmp_assign_source_86; - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_71; - CHECK_OBJECT(tmp_with_3__source); - tmp_expression_name_71 = tmp_with_3__source; - tmp_called_name_24 = LOOKUP_SPECIAL(tmp_expression_name_71, mod_consts[181]); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 429; - tmp_assign_source_86 = CALL_FUNCTION_NO_ARGS(tmp_called_name_24); - Py_DECREF(tmp_called_name_24); - if (tmp_assign_source_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - assert(tmp_with_3__enter == NULL); - tmp_with_3__enter = tmp_assign_source_86; - } - { - PyObject *tmp_assign_source_87; - PyObject *tmp_expression_name_72; - CHECK_OBJECT(tmp_with_3__source); - tmp_expression_name_72 = tmp_with_3__source; - tmp_assign_source_87 = LOOKUP_SPECIAL(tmp_expression_name_72, mod_consts[182]); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - assert(tmp_with_3__exit == NULL); - tmp_with_3__exit = tmp_assign_source_87; - } - { - nuitka_bool tmp_assign_source_88; - tmp_assign_source_88 = NUITKA_BOOL_TRUE; - tmp_with_3__indicator = tmp_assign_source_88; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_89; - PyObject *tmp_expression_name_73; - PyObject *tmp_expression_name_74; - PyObject *tmp_subscript_name_26; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 430; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_74 = var_outputs; - tmp_expression_name_73 = LOOKUP_ATTRIBUTE(tmp_expression_name_74, mod_consts[285]); - if (tmp_expression_name_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_subscript_name_26 = mod_consts[185]; - tmp_assign_source_89 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_73, tmp_subscript_name_26, -1); - Py_DECREF(tmp_expression_name_73); - if (tmp_assign_source_89 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_hidden_states == NULL); - var_hidden_states = tmp_assign_source_89; - } - { - PyObject *tmp_assign_source_90; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - PyObject *tmp_expression_name_75; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_compexpr_left_10 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_75 = par_self; - tmp_compexpr_right_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_75, mod_consts[105]); - if (tmp_compexpr_right_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_assign_source_90 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_10, tmp_compexpr_right_10); - Py_DECREF(tmp_compexpr_right_10); - if (tmp_assign_source_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_token_mask == NULL); - var_token_mask = tmp_assign_source_90; - } - { - PyObject *tmp_assign_source_91; - PyObject *tmp_expression_name_76; - PyObject *tmp_subscript_name_27; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_76 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_27 = var_token_mask; - tmp_assign_source_91 = LOOKUP_SUBSCRIPT(tmp_expression_name_76, tmp_subscript_name_27); - if (tmp_assign_source_91 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_target_states == NULL); - var_target_states = tmp_assign_source_91; - } - // Tried code: - { - PyObject *tmp_assign_source_92; - PyObject *tmp_called_instance_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - - tmp_called_instance_8 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 433; - tmp_assign_source_92 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[180]); - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - assert(tmp_with_2__source == NULL); - tmp_with_2__source = tmp_assign_source_92; - } - { - PyObject *tmp_assign_source_93; - PyObject *tmp_called_name_25; - PyObject *tmp_expression_name_77; - CHECK_OBJECT(tmp_with_2__source); - tmp_expression_name_77 = tmp_with_2__source; - tmp_called_name_25 = LOOKUP_SPECIAL(tmp_expression_name_77, mod_consts[181]); - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 433; - tmp_assign_source_93 = CALL_FUNCTION_NO_ARGS(tmp_called_name_25); - Py_DECREF(tmp_called_name_25); - if (tmp_assign_source_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - assert(tmp_with_2__enter == NULL); - tmp_with_2__enter = tmp_assign_source_93; - } - { - PyObject *tmp_assign_source_94; - PyObject *tmp_expression_name_78; - CHECK_OBJECT(tmp_with_2__source); - tmp_expression_name_78 = tmp_with_2__source; - tmp_assign_source_94 = LOOKUP_SPECIAL(tmp_expression_name_78, mod_consts[182]); - if (tmp_assign_source_94 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - assert(tmp_with_2__exit == NULL); - tmp_with_2__exit = tmp_assign_source_94; - } - { - nuitka_bool tmp_assign_source_95; - tmp_assign_source_95 = NUITKA_BOOL_TRUE; - tmp_with_2__indicator = tmp_assign_source_95; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_96; - PyObject *tmp_called_instance_9; - PyObject *tmp_args_element_name_22; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_32; - } - - tmp_called_instance_9 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_22 = var_target_states; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 434; - tmp_assign_source_96 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_9, mod_consts[148], tmp_args_element_name_22); - if (tmp_assign_source_96 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_32; - } - assert(var_det_states == NULL); - var_det_states = tmp_assign_source_96; - } - goto try_end_15; - // Exception handler code: - try_except_handler_32:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 2. - GET_CURRENT_EXCEPTION(&exception_preserved_type_2, &exception_preserved_value_2, &exception_preserved_tb_2); - - if (exception_keeper_tb_25 == NULL) { - exception_keeper_tb_25 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_25); - } else if (exception_keeper_lineno_25 != 0) { - exception_keeper_tb_25 = ADD_TRACEBACK(exception_keeper_tb_25, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_25); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_25, &exception_keeper_value_25, &exception_keeper_tb_25); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_25, exception_keeper_tb_25); - PUBLISH_EXCEPTION(&exception_keeper_type_25, &exception_keeper_value_25, &exception_keeper_tb_25); - // Tried code: - { - bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - tmp_compexpr_left_11 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_11 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_11, tmp_compexpr_right_11); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_9 != false) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - nuitka_bool tmp_assign_source_97; - tmp_assign_source_97 = NUITKA_BOOL_FALSE; - tmp_with_2__indicator = tmp_assign_source_97; - } - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_operand_name_2; - PyObject *tmp_called_name_26; - PyObject *tmp_args_element_name_23; - PyObject *tmp_args_element_name_24; - PyObject *tmp_args_element_name_25; - CHECK_OBJECT(tmp_with_2__exit); - tmp_called_name_26 = tmp_with_2__exit; - tmp_args_element_name_23 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_24 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_25 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 434; - { - PyObject *call_args[] = {tmp_args_element_name_23, tmp_args_element_name_24, tmp_args_element_name_25}; - tmp_operand_name_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_26, call_args); - } - - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - } - tmp_condition_result_10 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 434; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - branch_no_9:; - goto branch_end_8; - branch_no_8:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 433; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - branch_end_8:; - goto try_end_16; - // Exception handler code: - try_except_handler_33:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 2. - SET_CURRENT_EXCEPTION(exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2); - - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto try_except_handler_31; - // End of try: - try_end_16:; - // Restore previous exception id 2. - SET_CURRENT_EXCEPTION(exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2); - - goto try_end_15; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_15:; - goto try_end_17; - // Exception handler code: - try_except_handler_31:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_11; - nuitka_bool tmp_compexpr_left_12; - nuitka_bool tmp_compexpr_right_12; - assert(tmp_with_2__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_12 = tmp_with_2__indicator; - tmp_compexpr_right_12 = NUITKA_BOOL_TRUE; - tmp_condition_result_11 = (tmp_compexpr_left_12 == tmp_compexpr_right_12) ? true : false; - if (tmp_condition_result_11 != false) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_called_name_27; - PyObject *tmp_call_result_5; - CHECK_OBJECT(tmp_with_2__exit); - tmp_called_name_27 = tmp_with_2__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 434; - tmp_call_result_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_27, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_27); - Py_XDECREF(exception_keeper_value_27); - Py_XDECREF(exception_keeper_tb_27); - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - Py_DECREF(tmp_call_result_5); - } - branch_no_10:; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto try_except_handler_30; - // End of try: - try_end_17:; - { - bool tmp_condition_result_12; - nuitka_bool tmp_compexpr_left_13; - nuitka_bool tmp_compexpr_right_13; - assert(tmp_with_2__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_13 = tmp_with_2__indicator; - tmp_compexpr_right_13 = NUITKA_BOOL_TRUE; - tmp_condition_result_12 = (tmp_compexpr_left_13 == tmp_compexpr_right_13) ? true : false; - if (tmp_condition_result_12 != false) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_called_name_28; - PyObject *tmp_call_result_6; - CHECK_OBJECT(tmp_with_2__exit); - tmp_called_name_28 = tmp_with_2__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 434; - tmp_call_result_6 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_28, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - Py_DECREF(tmp_call_result_6); - } - branch_no_11:; - goto try_end_18; - // Exception handler code: - try_except_handler_30:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_2__source); - tmp_with_2__source = NULL; - Py_XDECREF(tmp_with_2__enter); - tmp_with_2__enter = NULL; - Py_XDECREF(tmp_with_2__exit); - tmp_with_2__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto try_except_handler_29; - // End of try: - try_end_18:; - CHECK_OBJECT(tmp_with_2__source); - Py_DECREF(tmp_with_2__source); - tmp_with_2__source = NULL; - CHECK_OBJECT(tmp_with_2__enter); - Py_DECREF(tmp_with_2__enter); - tmp_with_2__enter = NULL; - Py_XDECREF(tmp_with_2__exit); - tmp_with_2__exit = NULL; - { - PyObject *tmp_assign_source_98; - PyObject *tmp_called_name_29; - PyObject *tmp_args_element_name_26; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_79; - PyObject *tmp_expression_name_80; - PyObject *tmp_subscript_name_28; - tmp_called_name_29 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[287]); - - if (unlikely(tmp_called_name_29 == NULL)) { - tmp_called_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[287]); - } - - if (tmp_called_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - if (var_sample_num == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[288]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_args_element_name_26 = var_sample_num; - if (var_det_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[289]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_80 = var_det_states; - tmp_expression_name_79 = LOOKUP_ATTRIBUTE(tmp_expression_name_80, mod_consts[175]); - if (tmp_expression_name_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_subscript_name_28 = mod_consts[11]; - tmp_args_element_name_27 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_79, tmp_subscript_name_28, 0); - Py_DECREF(tmp_expression_name_79); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 435; - { - PyObject *call_args[] = {tmp_args_element_name_26, tmp_args_element_name_27}; - tmp_assign_source_98 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_29, call_args); - } - - Py_DECREF(tmp_args_element_name_27); - if (tmp_assign_source_98 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_98; - } - { - PyObject *tmp_assign_source_99; - PyObject *tmp_called_name_30; - PyObject *tmp_expression_name_81; - PyObject *tmp_args_element_name_28; - PyObject *tmp_expression_name_82; - CHECK_OBJECT(var_labels); - tmp_expression_name_81 = var_labels; - tmp_called_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_81, mod_consts[170]); - if (tmp_called_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - if (var_targets == NULL) { - Py_DECREF(tmp_called_name_30); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_82 = var_targets; - tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_82, mod_consts[178]); - if (tmp_args_element_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_30); - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 436; - tmp_assign_source_99 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_30, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_30); - Py_DECREF(tmp_args_element_name_28); - if (tmp_assign_source_99 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - { - PyObject *old = var_labels; - var_labels = tmp_assign_source_99; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_100; - PyObject *tmp_called_name_31; - PyObject *tmp_expression_name_83; - PyObject *tmp_args_element_name_29; - PyObject *tmp_args_element_name_30; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_83 = par_self; - tmp_called_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_83, mod_consts[150]); - if (tmp_called_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - if (var_det_states == NULL) { - Py_DECREF(tmp_called_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[289]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_args_element_name_29 = var_det_states; - CHECK_OBJECT(var_labels); - tmp_args_element_name_30 = var_labels; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 437; - { - PyObject *call_args[] = {tmp_args_element_name_29, tmp_args_element_name_30}; - tmp_assign_source_100 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_31, call_args); - } - - Py_DECREF(tmp_called_name_31); - if (tmp_assign_source_100 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_det_loss == NULL); - var_det_loss = tmp_assign_source_100; - } - { - PyObject *tmp_assign_source_101; - PyObject *tmp_left_name_16; - PyObject *tmp_right_name_16; - PyObject *tmp_left_name_17; - PyObject *tmp_right_name_17; - CHECK_OBJECT(var_loss); - tmp_left_name_16 = var_loss; - CHECK_OBJECT(var_det_loss); - tmp_left_name_17 = var_det_loss; - tmp_right_name_17 = mod_consts[290]; - tmp_right_name_16 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_17, tmp_right_name_17); - if (tmp_right_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_16, tmp_right_name_16); - Py_DECREF(tmp_right_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_assign_source_101 = tmp_left_name_16; - var_loss = tmp_assign_source_101; - - } - goto try_end_19; - // Exception handler code: - try_except_handler_29:; - exception_keeper_type_29 = exception_type; - exception_keeper_value_29 = exception_value; - exception_keeper_tb_29 = exception_tb; - exception_keeper_lineno_29 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 3. - GET_CURRENT_EXCEPTION(&exception_preserved_type_3, &exception_preserved_value_3, &exception_preserved_tb_3); - - if (exception_keeper_tb_29 == NULL) { - exception_keeper_tb_29 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_29); - } else if (exception_keeper_lineno_29 != 0) { - exception_keeper_tb_29 = ADD_TRACEBACK(exception_keeper_tb_29, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_29); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_29, &exception_keeper_value_29, &exception_keeper_tb_29); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_29, exception_keeper_tb_29); - PUBLISH_EXCEPTION(&exception_keeper_type_29, &exception_keeper_value_29, &exception_keeper_tb_29); - // Tried code: - { - bool tmp_condition_result_13; - PyObject *tmp_compexpr_left_14; - PyObject *tmp_compexpr_right_14; - tmp_compexpr_left_14 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_14 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_14, tmp_compexpr_right_14); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_13 != false) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - nuitka_bool tmp_assign_source_102; - tmp_assign_source_102 = NUITKA_BOOL_FALSE; - tmp_with_3__indicator = tmp_assign_source_102; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_operand_name_3; - PyObject *tmp_called_name_32; - PyObject *tmp_args_element_name_31; - PyObject *tmp_args_element_name_32; - PyObject *tmp_args_element_name_33; - CHECK_OBJECT(tmp_with_3__exit); - tmp_called_name_32 = tmp_with_3__exit; - tmp_args_element_name_31 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_32 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_33 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 438; - { - PyObject *call_args[] = {tmp_args_element_name_31, tmp_args_element_name_32, tmp_args_element_name_33}; - tmp_operand_name_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_32, call_args); - } - - if (tmp_operand_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - Py_DECREF(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - } - tmp_condition_result_14 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 438; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - branch_no_13:; - goto branch_end_12; - branch_no_12:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 429; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - branch_end_12:; - goto try_end_20; - // Exception handler code: - try_except_handler_34:; - exception_keeper_type_30 = exception_type; - exception_keeper_value_30 = exception_value; - exception_keeper_tb_30 = exception_tb; - exception_keeper_lineno_30 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 3. - SET_CURRENT_EXCEPTION(exception_preserved_type_3, exception_preserved_value_3, exception_preserved_tb_3); - - // Re-raise. - exception_type = exception_keeper_type_30; - exception_value = exception_keeper_value_30; - exception_tb = exception_keeper_tb_30; - exception_lineno = exception_keeper_lineno_30; - - goto try_except_handler_28; - // End of try: - try_end_20:; - // Restore previous exception id 3. - SET_CURRENT_EXCEPTION(exception_preserved_type_3, exception_preserved_value_3, exception_preserved_tb_3); - - goto try_end_19; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_19:; - goto try_end_21; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_31 = exception_type; - exception_keeper_value_31 = exception_value; - exception_keeper_tb_31 = exception_tb; - exception_keeper_lineno_31 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_15; - nuitka_bool tmp_compexpr_left_15; - nuitka_bool tmp_compexpr_right_15; - assert(tmp_with_3__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_15 = tmp_with_3__indicator; - tmp_compexpr_right_15 = NUITKA_BOOL_TRUE; - tmp_condition_result_15 = (tmp_compexpr_left_15 == tmp_compexpr_right_15) ? true : false; - if (tmp_condition_result_15 != false) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_called_name_33; - PyObject *tmp_call_result_7; - CHECK_OBJECT(tmp_with_3__exit); - tmp_called_name_33 = tmp_with_3__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 438; - tmp_call_result_7 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_33, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_31); - Py_XDECREF(exception_keeper_value_31); - Py_XDECREF(exception_keeper_tb_31); - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - Py_DECREF(tmp_call_result_7); - } - branch_no_14:; - // Re-raise. - exception_type = exception_keeper_type_31; - exception_value = exception_keeper_value_31; - exception_tb = exception_keeper_tb_31; - exception_lineno = exception_keeper_lineno_31; - - goto try_except_handler_27; - // End of try: - try_end_21:; - { - bool tmp_condition_result_16; - nuitka_bool tmp_compexpr_left_16; - nuitka_bool tmp_compexpr_right_16; - assert(tmp_with_3__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_16 = tmp_with_3__indicator; - tmp_compexpr_right_16 = NUITKA_BOOL_TRUE; - tmp_condition_result_16 = (tmp_compexpr_left_16 == tmp_compexpr_right_16) ? true : false; - if (tmp_condition_result_16 != false) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_called_name_34; - PyObject *tmp_call_result_8; - CHECK_OBJECT(tmp_with_3__exit); - tmp_called_name_34 = tmp_with_3__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 438; - tmp_call_result_8 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_34, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - Py_DECREF(tmp_call_result_8); - } - branch_no_15:; - goto try_end_22; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_32 = exception_type; - exception_keeper_value_32 = exception_value; - exception_keeper_tb_32 = exception_tb; - exception_keeper_lineno_32 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_3__source); - tmp_with_3__source = NULL; - Py_XDECREF(tmp_with_3__enter); - tmp_with_3__enter = NULL; - Py_XDECREF(tmp_with_3__exit); - tmp_with_3__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_32; - exception_value = exception_keeper_value_32; - exception_tb = exception_keeper_tb_32; - exception_lineno = exception_keeper_lineno_32; - - goto frame_exception_exit_1; - // End of try: - try_end_22:; - CHECK_OBJECT(tmp_with_3__source); - Py_DECREF(tmp_with_3__source); - tmp_with_3__source = NULL; - CHECK_OBJECT(tmp_with_3__enter); - Py_DECREF(tmp_with_3__enter); - tmp_with_3__enter = NULL; - Py_XDECREF(tmp_with_3__exit); - tmp_with_3__exit = NULL; - branch_no_7:; - { - bool tmp_condition_result_17; - PyObject *tmp_compexpr_left_17; - PyObject *tmp_compexpr_right_17; - PyObject *tmp_expression_name_84; - PyObject *tmp_subscript_name_29; - tmp_compexpr_left_17 = mod_consts[259]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 440; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_84 = par_samples; - tmp_subscript_name_29 = mod_consts[233]; - tmp_compexpr_right_17 = LOOKUP_SUBSCRIPT(tmp_expression_name_84, tmp_subscript_name_29); - if (tmp_compexpr_right_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_17, tmp_compexpr_left_17); - Py_DECREF(tmp_compexpr_right_17); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_17 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_17 != false) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - // Tried code: - { - PyObject *tmp_assign_source_103; - PyObject *tmp_called_instance_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - - tmp_called_instance_10 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 441; - tmp_assign_source_103 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[180]); - if (tmp_assign_source_103 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - assert(tmp_with_5__source == NULL); - tmp_with_5__source = tmp_assign_source_103; - } - { - PyObject *tmp_assign_source_104; - PyObject *tmp_called_name_35; - PyObject *tmp_expression_name_85; - CHECK_OBJECT(tmp_with_5__source); - tmp_expression_name_85 = tmp_with_5__source; - tmp_called_name_35 = LOOKUP_SPECIAL(tmp_expression_name_85, mod_consts[181]); - if (tmp_called_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 441; - tmp_assign_source_104 = CALL_FUNCTION_NO_ARGS(tmp_called_name_35); - Py_DECREF(tmp_called_name_35); - if (tmp_assign_source_104 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - assert(tmp_with_5__enter == NULL); - tmp_with_5__enter = tmp_assign_source_104; - } - { - PyObject *tmp_assign_source_105; - PyObject *tmp_expression_name_86; - CHECK_OBJECT(tmp_with_5__source); - tmp_expression_name_86 = tmp_with_5__source; - tmp_assign_source_105 = LOOKUP_SPECIAL(tmp_expression_name_86, mod_consts[182]); - if (tmp_assign_source_105 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - assert(tmp_with_5__exit == NULL); - tmp_with_5__exit = tmp_assign_source_105; - } - { - nuitka_bool tmp_assign_source_106; - tmp_assign_source_106 = NUITKA_BOOL_TRUE; - tmp_with_5__indicator = tmp_assign_source_106; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_107; - PyObject *tmp_expression_name_87; - PyObject *tmp_expression_name_88; - PyObject *tmp_subscript_name_30; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 442; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_88 = var_outputs; - tmp_expression_name_87 = LOOKUP_ATTRIBUTE(tmp_expression_name_88, mod_consts[285]); - if (tmp_expression_name_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 442; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_subscript_name_30 = mod_consts[185]; - tmp_assign_source_107 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_87, tmp_subscript_name_30, -1); - Py_DECREF(tmp_expression_name_87); - if (tmp_assign_source_107 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 442; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_107; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_108; - PyObject *tmp_compexpr_left_18; - PyObject *tmp_compexpr_right_18; - PyObject *tmp_expression_name_89; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_compexpr_left_18 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_89 = par_self; - tmp_compexpr_right_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_89, mod_consts[291]); - if (tmp_compexpr_right_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_assign_source_108 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_18, tmp_compexpr_right_18); - Py_DECREF(tmp_compexpr_right_18); - if (tmp_assign_source_108 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_token_mask; - var_token_mask = tmp_assign_source_108; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_109; - PyObject *tmp_expression_name_90; - PyObject *tmp_subscript_name_31; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_90 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_31 = var_token_mask; - tmp_assign_source_109 = LOOKUP_SUBSCRIPT(tmp_expression_name_90, tmp_subscript_name_31); - if (tmp_assign_source_109 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_target_states; - var_target_states = tmp_assign_source_109; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_110; - PyObject *tmp_called_instance_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - - tmp_called_instance_11 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 445; - tmp_assign_source_110 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[180]); - if (tmp_assign_source_110 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - assert(tmp_with_4__source == NULL); - tmp_with_4__source = tmp_assign_source_110; - } - { - PyObject *tmp_assign_source_111; - PyObject *tmp_called_name_36; - PyObject *tmp_expression_name_91; - CHECK_OBJECT(tmp_with_4__source); - tmp_expression_name_91 = tmp_with_4__source; - tmp_called_name_36 = LOOKUP_SPECIAL(tmp_expression_name_91, mod_consts[181]); - if (tmp_called_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 445; - tmp_assign_source_111 = CALL_FUNCTION_NO_ARGS(tmp_called_name_36); - Py_DECREF(tmp_called_name_36); - if (tmp_assign_source_111 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - assert(tmp_with_4__enter == NULL); - tmp_with_4__enter = tmp_assign_source_111; - } - { - PyObject *tmp_assign_source_112; - PyObject *tmp_expression_name_92; - CHECK_OBJECT(tmp_with_4__source); - tmp_expression_name_92 = tmp_with_4__source; - tmp_assign_source_112 = LOOKUP_SPECIAL(tmp_expression_name_92, mod_consts[182]); - if (tmp_assign_source_112 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - assert(tmp_with_4__exit == NULL); - tmp_with_4__exit = tmp_assign_source_112; - } - { - nuitka_bool tmp_assign_source_113; - tmp_assign_source_113 = NUITKA_BOOL_TRUE; - tmp_with_4__indicator = tmp_assign_source_113; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_114; - PyObject *tmp_called_instance_12; - PyObject *tmp_args_element_name_34; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_40; - } - - tmp_called_instance_12 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_34 = var_target_states; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 446; - tmp_assign_source_114 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_12, mod_consts[292], tmp_args_element_name_34); - if (tmp_assign_source_114 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_40; - } - assert(var_point_states == NULL); - var_point_states = tmp_assign_source_114; - } - goto try_end_23; - // Exception handler code: - try_except_handler_40:; - exception_keeper_type_33 = exception_type; - exception_keeper_value_33 = exception_value; - exception_keeper_tb_33 = exception_tb; - exception_keeper_lineno_33 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 4. - GET_CURRENT_EXCEPTION(&exception_preserved_type_4, &exception_preserved_value_4, &exception_preserved_tb_4); - - if (exception_keeper_tb_33 == NULL) { - exception_keeper_tb_33 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_33); - } else if (exception_keeper_lineno_33 != 0) { - exception_keeper_tb_33 = ADD_TRACEBACK(exception_keeper_tb_33, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_33); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_33, &exception_keeper_value_33, &exception_keeper_tb_33); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_33, exception_keeper_tb_33); - PUBLISH_EXCEPTION(&exception_keeper_type_33, &exception_keeper_value_33, &exception_keeper_tb_33); - // Tried code: - { - bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_19; - PyObject *tmp_compexpr_right_19; - tmp_compexpr_left_19 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_19 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_19, tmp_compexpr_right_19); - assert(!(tmp_res == -1)); - tmp_condition_result_18 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_18 != false) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - { - nuitka_bool tmp_assign_source_115; - tmp_assign_source_115 = NUITKA_BOOL_FALSE; - tmp_with_4__indicator = tmp_assign_source_115; - } - { - nuitka_bool tmp_condition_result_19; - PyObject *tmp_operand_name_4; - PyObject *tmp_called_name_37; - PyObject *tmp_args_element_name_35; - PyObject *tmp_args_element_name_36; - PyObject *tmp_args_element_name_37; - CHECK_OBJECT(tmp_with_4__exit); - tmp_called_name_37 = tmp_with_4__exit; - tmp_args_element_name_35 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_36 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_37 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 446; - { - PyObject *call_args[] = {tmp_args_element_name_35, tmp_args_element_name_36, tmp_args_element_name_37}; - tmp_operand_name_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_37, call_args); - } - - if (tmp_operand_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - Py_DECREF(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - } - tmp_condition_result_19 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 446; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - branch_no_18:; - goto branch_end_17; - branch_no_17:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 445; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - branch_end_17:; - goto try_end_24; - // Exception handler code: - try_except_handler_41:; - exception_keeper_type_34 = exception_type; - exception_keeper_value_34 = exception_value; - exception_keeper_tb_34 = exception_tb; - exception_keeper_lineno_34 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 4. - SET_CURRENT_EXCEPTION(exception_preserved_type_4, exception_preserved_value_4, exception_preserved_tb_4); - - // Re-raise. - exception_type = exception_keeper_type_34; - exception_value = exception_keeper_value_34; - exception_tb = exception_keeper_tb_34; - exception_lineno = exception_keeper_lineno_34; - - goto try_except_handler_39; - // End of try: - try_end_24:; - // Restore previous exception id 4. - SET_CURRENT_EXCEPTION(exception_preserved_type_4, exception_preserved_value_4, exception_preserved_tb_4); - - goto try_end_23; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_23:; - goto try_end_25; - // Exception handler code: - try_except_handler_39:; - exception_keeper_type_35 = exception_type; - exception_keeper_value_35 = exception_value; - exception_keeper_tb_35 = exception_tb; - exception_keeper_lineno_35 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_20; - nuitka_bool tmp_compexpr_left_20; - nuitka_bool tmp_compexpr_right_20; - assert(tmp_with_4__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_20 = tmp_with_4__indicator; - tmp_compexpr_right_20 = NUITKA_BOOL_TRUE; - tmp_condition_result_20 = (tmp_compexpr_left_20 == tmp_compexpr_right_20) ? true : false; - if (tmp_condition_result_20 != false) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_called_name_38; - PyObject *tmp_call_result_9; - CHECK_OBJECT(tmp_with_4__exit); - tmp_called_name_38 = tmp_with_4__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 446; - tmp_call_result_9 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_38, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_35); - Py_XDECREF(exception_keeper_value_35); - Py_XDECREF(exception_keeper_tb_35); - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - Py_DECREF(tmp_call_result_9); - } - branch_no_19:; - // Re-raise. - exception_type = exception_keeper_type_35; - exception_value = exception_keeper_value_35; - exception_tb = exception_keeper_tb_35; - exception_lineno = exception_keeper_lineno_35; - - goto try_except_handler_38; - // End of try: - try_end_25:; - { - bool tmp_condition_result_21; - nuitka_bool tmp_compexpr_left_21; - nuitka_bool tmp_compexpr_right_21; - assert(tmp_with_4__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_21 = tmp_with_4__indicator; - tmp_compexpr_right_21 = NUITKA_BOOL_TRUE; - tmp_condition_result_21 = (tmp_compexpr_left_21 == tmp_compexpr_right_21) ? true : false; - if (tmp_condition_result_21 != false) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - } - branch_yes_20:; - { - PyObject *tmp_called_name_39; - PyObject *tmp_call_result_10; - CHECK_OBJECT(tmp_with_4__exit); - tmp_called_name_39 = tmp_with_4__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 446; - tmp_call_result_10 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_39, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - Py_DECREF(tmp_call_result_10); - } - branch_no_20:; - goto try_end_26; - // Exception handler code: - try_except_handler_38:; - exception_keeper_type_36 = exception_type; - exception_keeper_value_36 = exception_value; - exception_keeper_tb_36 = exception_tb; - exception_keeper_lineno_36 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_4__source); - tmp_with_4__source = NULL; - Py_XDECREF(tmp_with_4__enter); - tmp_with_4__enter = NULL; - Py_XDECREF(tmp_with_4__exit); - tmp_with_4__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_36; - exception_value = exception_keeper_value_36; - exception_tb = exception_keeper_tb_36; - exception_lineno = exception_keeper_lineno_36; - - goto try_except_handler_37; - // End of try: - try_end_26:; - CHECK_OBJECT(tmp_with_4__source); - Py_DECREF(tmp_with_4__source); - tmp_with_4__source = NULL; - CHECK_OBJECT(tmp_with_4__enter); - Py_DECREF(tmp_with_4__enter); - tmp_with_4__enter = NULL; - Py_XDECREF(tmp_with_4__exit); - tmp_with_4__exit = NULL; - { - PyObject *tmp_assign_source_116; - PyObject *tmp_called_name_40; - PyObject *tmp_args_element_name_38; - PyObject *tmp_args_element_name_39; - PyObject *tmp_expression_name_93; - PyObject *tmp_expression_name_94; - PyObject *tmp_subscript_name_32; - tmp_called_name_40 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[293]); - - if (unlikely(tmp_called_name_40 == NULL)) { - tmp_called_name_40 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[293]); - } - - if (tmp_called_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - if (var_sample_num == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[288]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_args_element_name_38 = var_sample_num; - if (var_point_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[294]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_94 = var_point_states; - tmp_expression_name_93 = LOOKUP_ATTRIBUTE(tmp_expression_name_94, mod_consts[175]); - if (tmp_expression_name_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_subscript_name_32 = mod_consts[11]; - tmp_args_element_name_39 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_93, tmp_subscript_name_32, 0); - Py_DECREF(tmp_expression_name_93); - if (tmp_args_element_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 447; - { - PyObject *call_args[] = {tmp_args_element_name_38, tmp_args_element_name_39}; - tmp_assign_source_116 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_40, call_args); - } - - Py_DECREF(tmp_args_element_name_39); - if (tmp_assign_source_116 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_labels; - var_labels = tmp_assign_source_116; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_117; - PyObject *tmp_called_name_41; - PyObject *tmp_expression_name_95; - PyObject *tmp_args_element_name_40; - PyObject *tmp_expression_name_96; - CHECK_OBJECT(var_labels); - tmp_expression_name_95 = var_labels; - tmp_called_name_41 = LOOKUP_ATTRIBUTE(tmp_expression_name_95, mod_consts[170]); - if (tmp_called_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - if (var_targets == NULL) { - Py_DECREF(tmp_called_name_41); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_96 = var_targets; - tmp_args_element_name_40 = LOOKUP_ATTRIBUTE(tmp_expression_name_96, mod_consts[178]); - if (tmp_args_element_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_41); - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 448; - tmp_assign_source_117 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_41, tmp_args_element_name_40); - Py_DECREF(tmp_called_name_41); - Py_DECREF(tmp_args_element_name_40); - if (tmp_assign_source_117 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_labels; - var_labels = tmp_assign_source_117; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_118; - PyObject *tmp_called_name_42; - PyObject *tmp_expression_name_97; - PyObject *tmp_args_element_name_41; - PyObject *tmp_args_element_name_42; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_97 = par_self; - tmp_called_name_42 = LOOKUP_ATTRIBUTE(tmp_expression_name_97, mod_consts[295]); - if (tmp_called_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - if (var_point_states == NULL) { - Py_DECREF(tmp_called_name_42); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[294]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_args_element_name_41 = var_point_states; - CHECK_OBJECT(var_labels); - tmp_args_element_name_42 = var_labels; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 449; - { - PyObject *call_args[] = {tmp_args_element_name_41, tmp_args_element_name_42}; - tmp_assign_source_118 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_42, call_args); - } - - Py_DECREF(tmp_called_name_42); - if (tmp_assign_source_118 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - assert(var_keypoint_loss == NULL); - var_keypoint_loss = tmp_assign_source_118; - } - { - PyObject *tmp_assign_source_119; - PyObject *tmp_left_name_18; - PyObject *tmp_right_name_18; - PyObject *tmp_left_name_19; - PyObject *tmp_right_name_19; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_left_name_18 = var_loss; - CHECK_OBJECT(var_keypoint_loss); - tmp_left_name_19 = var_keypoint_loss; - tmp_right_name_19 = mod_consts[290]; - tmp_right_name_18 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_19, tmp_right_name_19); - if (tmp_right_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_18, tmp_right_name_18); - Py_DECREF(tmp_right_name_18); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_assign_source_119 = tmp_left_name_18; - var_loss = tmp_assign_source_119; - - } - goto try_end_27; - // Exception handler code: - try_except_handler_37:; - exception_keeper_type_37 = exception_type; - exception_keeper_value_37 = exception_value; - exception_keeper_tb_37 = exception_tb; - exception_keeper_lineno_37 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 5. - GET_CURRENT_EXCEPTION(&exception_preserved_type_5, &exception_preserved_value_5, &exception_preserved_tb_5); - - if (exception_keeper_tb_37 == NULL) { - exception_keeper_tb_37 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_37); - } else if (exception_keeper_lineno_37 != 0) { - exception_keeper_tb_37 = ADD_TRACEBACK(exception_keeper_tb_37, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_37); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_37, &exception_keeper_value_37, &exception_keeper_tb_37); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_37, exception_keeper_tb_37); - PUBLISH_EXCEPTION(&exception_keeper_type_37, &exception_keeper_value_37, &exception_keeper_tb_37); - // Tried code: - { - bool tmp_condition_result_22; - PyObject *tmp_compexpr_left_22; - PyObject *tmp_compexpr_right_22; - tmp_compexpr_left_22 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_22 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_22, tmp_compexpr_right_22); - assert(!(tmp_res == -1)); - tmp_condition_result_22 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_22 != false) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - { - nuitka_bool tmp_assign_source_120; - tmp_assign_source_120 = NUITKA_BOOL_FALSE; - tmp_with_5__indicator = tmp_assign_source_120; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_5; - PyObject *tmp_called_name_43; - PyObject *tmp_args_element_name_43; - PyObject *tmp_args_element_name_44; - PyObject *tmp_args_element_name_45; - CHECK_OBJECT(tmp_with_5__exit); - tmp_called_name_43 = tmp_with_5__exit; - tmp_args_element_name_43 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_44 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_45 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 450; - { - PyObject *call_args[] = {tmp_args_element_name_43, tmp_args_element_name_44, tmp_args_element_name_45}; - tmp_operand_name_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_43, call_args); - } - - if (tmp_operand_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - Py_DECREF(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 450; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - branch_no_22:; - goto branch_end_21; - branch_no_21:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 441; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - branch_end_21:; - goto try_end_28; - // Exception handler code: - try_except_handler_42:; - exception_keeper_type_38 = exception_type; - exception_keeper_value_38 = exception_value; - exception_keeper_tb_38 = exception_tb; - exception_keeper_lineno_38 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 5. - SET_CURRENT_EXCEPTION(exception_preserved_type_5, exception_preserved_value_5, exception_preserved_tb_5); - - // Re-raise. - exception_type = exception_keeper_type_38; - exception_value = exception_keeper_value_38; - exception_tb = exception_keeper_tb_38; - exception_lineno = exception_keeper_lineno_38; - - goto try_except_handler_36; - // End of try: - try_end_28:; - // Restore previous exception id 5. - SET_CURRENT_EXCEPTION(exception_preserved_type_5, exception_preserved_value_5, exception_preserved_tb_5); - - goto try_end_27; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_27:; - goto try_end_29; - // Exception handler code: - try_except_handler_36:; - exception_keeper_type_39 = exception_type; - exception_keeper_value_39 = exception_value; - exception_keeper_tb_39 = exception_tb; - exception_keeper_lineno_39 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_24; - nuitka_bool tmp_compexpr_left_23; - nuitka_bool tmp_compexpr_right_23; - assert(tmp_with_5__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_23 = tmp_with_5__indicator; - tmp_compexpr_right_23 = NUITKA_BOOL_TRUE; - tmp_condition_result_24 = (tmp_compexpr_left_23 == tmp_compexpr_right_23) ? true : false; - if (tmp_condition_result_24 != false) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_called_name_44; - PyObject *tmp_call_result_11; - CHECK_OBJECT(tmp_with_5__exit); - tmp_called_name_44 = tmp_with_5__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 450; - tmp_call_result_11 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_44, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_39); - Py_XDECREF(exception_keeper_value_39); - Py_XDECREF(exception_keeper_tb_39); - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - Py_DECREF(tmp_call_result_11); - } - branch_no_23:; - // Re-raise. - exception_type = exception_keeper_type_39; - exception_value = exception_keeper_value_39; - exception_tb = exception_keeper_tb_39; - exception_lineno = exception_keeper_lineno_39; - - goto try_except_handler_35; - // End of try: - try_end_29:; - { - bool tmp_condition_result_25; - nuitka_bool tmp_compexpr_left_24; - nuitka_bool tmp_compexpr_right_24; - assert(tmp_with_5__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_24 = tmp_with_5__indicator; - tmp_compexpr_right_24 = NUITKA_BOOL_TRUE; - tmp_condition_result_25 = (tmp_compexpr_left_24 == tmp_compexpr_right_24) ? true : false; - if (tmp_condition_result_25 != false) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - } - branch_yes_24:; - { - PyObject *tmp_called_name_45; - PyObject *tmp_call_result_12; - CHECK_OBJECT(tmp_with_5__exit); - tmp_called_name_45 = tmp_with_5__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 450; - tmp_call_result_12 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_45, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - Py_DECREF(tmp_call_result_12); - } - branch_no_24:; - goto try_end_30; - // Exception handler code: - try_except_handler_35:; - exception_keeper_type_40 = exception_type; - exception_keeper_value_40 = exception_value; - exception_keeper_tb_40 = exception_tb; - exception_keeper_lineno_40 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_5__source); - tmp_with_5__source = NULL; - Py_XDECREF(tmp_with_5__enter); - tmp_with_5__enter = NULL; - Py_XDECREF(tmp_with_5__exit); - tmp_with_5__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_40; - exception_value = exception_keeper_value_40; - exception_tb = exception_keeper_tb_40; - exception_lineno = exception_keeper_lineno_40; - - goto frame_exception_exit_1; - // End of try: - try_end_30:; - CHECK_OBJECT(tmp_with_5__source); - Py_DECREF(tmp_with_5__source); - tmp_with_5__source = NULL; - CHECK_OBJECT(tmp_with_5__enter); - Py_DECREF(tmp_with_5__enter); - tmp_with_5__enter = NULL; - Py_XDECREF(tmp_with_5__exit); - tmp_with_5__exit = NULL; - branch_no_16:; - { - bool tmp_condition_result_26; - PyObject *tmp_compexpr_left_25; - PyObject *tmp_compexpr_right_25; - PyObject *tmp_expression_name_98; - PyObject *tmp_subscript_name_33; - tmp_compexpr_left_25 = mod_consts[207]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 452; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_98 = par_samples; - tmp_subscript_name_33 = mod_consts[233]; - tmp_compexpr_right_25 = LOOKUP_SUBSCRIPT(tmp_expression_name_98, tmp_subscript_name_33); - if (tmp_compexpr_right_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 452; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_25, tmp_compexpr_left_25); - Py_DECREF(tmp_compexpr_right_25); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 452; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_26 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_26 != false) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - { - bool tmp_condition_result_27; - PyObject *tmp_compexpr_left_26; - PyObject *tmp_compexpr_right_26; - PyObject *tmp_expression_name_99; - PyObject *tmp_subscript_name_34; - tmp_compexpr_left_26 = mod_consts[183]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 453; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_99 = par_samples; - tmp_subscript_name_34 = mod_consts[232]; - tmp_compexpr_right_26 = LOOKUP_SUBSCRIPT(tmp_expression_name_99, tmp_subscript_name_34); - if (tmp_compexpr_right_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 453; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_26, tmp_compexpr_left_26); - Py_DECREF(tmp_compexpr_right_26); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 453; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_27 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_27 != false) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_121; - PyObject *tmp_expression_name_100; - PyObject *tmp_subscript_name_35; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 454; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_100 = par_samples; - tmp_subscript_name_35 = mod_consts[296]; - tmp_assign_source_121 = LOOKUP_SUBSCRIPT(tmp_expression_name_100, tmp_subscript_name_35); - if (tmp_assign_source_121 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 454; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_masks == NULL); - var_masks = tmp_assign_source_121; - } - // Tried code: - { - PyObject *tmp_assign_source_122; - PyObject *tmp_called_instance_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - - tmp_called_instance_13 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 455; - tmp_assign_source_122 = CALL_METHOD_NO_ARGS(tmp_called_instance_13, mod_consts[180]); - if (tmp_assign_source_122 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - assert(tmp_with_6__source == NULL); - tmp_with_6__source = tmp_assign_source_122; - } - { - PyObject *tmp_assign_source_123; - PyObject *tmp_called_name_46; - PyObject *tmp_expression_name_101; - CHECK_OBJECT(tmp_with_6__source); - tmp_expression_name_101 = tmp_with_6__source; - tmp_called_name_46 = LOOKUP_SPECIAL(tmp_expression_name_101, mod_consts[181]); - if (tmp_called_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 455; - tmp_assign_source_123 = CALL_FUNCTION_NO_ARGS(tmp_called_name_46); - Py_DECREF(tmp_called_name_46); - if (tmp_assign_source_123 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - assert(tmp_with_6__enter == NULL); - tmp_with_6__enter = tmp_assign_source_123; - } - { - PyObject *tmp_assign_source_124; - PyObject *tmp_expression_name_102; - CHECK_OBJECT(tmp_with_6__source); - tmp_expression_name_102 = tmp_with_6__source; - tmp_assign_source_124 = LOOKUP_SPECIAL(tmp_expression_name_102, mod_consts[182]); - if (tmp_assign_source_124 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - assert(tmp_with_6__exit == NULL); - tmp_with_6__exit = tmp_assign_source_124; - } - { - nuitka_bool tmp_assign_source_125; - tmp_assign_source_125 = NUITKA_BOOL_TRUE; - tmp_with_6__indicator = tmp_assign_source_125; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_126; - PyObject *tmp_called_name_47; - PyObject *tmp_expression_name_103; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_9; - PyObject *tmp_kwargs_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_103 = par_self; - tmp_called_name_47 = LOOKUP_ATTRIBUTE(tmp_expression_name_103, mod_consts[75]); - if (tmp_called_name_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_47); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_tuple_element_9 = var_image; - tmp_args_name_9 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_9); - tmp_kwargs_name_10 = PyDict_Copy(mod_consts[184]); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 456; - tmp_assign_source_126 = CALL_FUNCTION(tmp_called_name_47, tmp_args_name_9, tmp_kwargs_name_10); - Py_DECREF(tmp_called_name_47); - Py_DECREF(tmp_args_name_9); - Py_DECREF(tmp_kwargs_name_10); - if (tmp_assign_source_126 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_img_embeds_list; - assert(old != NULL); - var_img_embeds_list = tmp_assign_source_126; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_127; - // Tried code: - { - PyObject *tmp_assign_source_128; - PyObject *tmp_iter_arg_14; - CHECK_OBJECT(var_img_embeds_list); - tmp_iter_arg_14 = var_img_embeds_list; - tmp_assign_source_128 = MAKE_ITERATOR(tmp_iter_arg_14); - if (tmp_assign_source_128 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_46; - } - assert(tmp_listcomp_6__$0 == NULL); - tmp_listcomp_6__$0 = tmp_assign_source_128; - } - { - PyObject *tmp_assign_source_129; - tmp_assign_source_129 = PyList_New(0); - assert(tmp_listcomp_6__contraction == NULL); - tmp_listcomp_6__contraction = tmp_assign_source_129; - } - if (isFrameUnusable(cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7)) { - Py_XDECREF(cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7 = MAKE_FUNCTION_FRAME(codeobj_9129cbc7a5937ced0a59dbc8f2b1d733, module_models$medomni, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7->m_type_description == NULL); - frame_9129cbc7a5937ced0a59dbc8f2b1d733_7 = cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_10:; - { - PyObject *tmp_next_source_10; - PyObject *tmp_assign_source_130; - CHECK_OBJECT(tmp_listcomp_6__$0); - tmp_next_source_10 = tmp_listcomp_6__$0; - tmp_assign_source_130 = ITERATOR_NEXT(tmp_next_source_10); - if (tmp_assign_source_130 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_10; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 457; - goto try_except_handler_47; - } - } - - { - PyObject *old = tmp_listcomp_6__iter_value_0; - tmp_listcomp_6__iter_value_0 = tmp_assign_source_130; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_131; - CHECK_OBJECT(tmp_listcomp_6__iter_value_0); - tmp_assign_source_131 = tmp_listcomp_6__iter_value_0; - { - PyObject *old = outline_5_var__; - outline_5_var__ = tmp_assign_source_131; - Py_INCREF(outline_5_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_6; - PyObject *tmp_append_value_6; - PyObject *tmp_called_name_48; - PyObject *tmp_expression_name_104; - PyObject *tmp_args_element_name_46; - PyObject *tmp_expression_name_105; - CHECK_OBJECT(tmp_listcomp_6__contraction); - tmp_append_list_6 = tmp_listcomp_6__contraction; - CHECK_OBJECT(outline_5_var__); - tmp_expression_name_104 = outline_5_var__; - tmp_called_name_48 = LOOKUP_ATTRIBUTE(tmp_expression_name_104, mod_consts[170]); - if (tmp_called_name_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - if (var_targets == NULL) { - Py_DECREF(tmp_called_name_48); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - - tmp_expression_name_105 = var_targets; - tmp_args_element_name_46 = LOOKUP_ATTRIBUTE(tmp_expression_name_105, mod_consts[178]); - if (tmp_args_element_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_48); - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - frame_9129cbc7a5937ced0a59dbc8f2b1d733_7->m_frame.f_lineno = 457; - tmp_append_value_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_48, tmp_args_element_name_46); - Py_DECREF(tmp_called_name_48); - Py_DECREF(tmp_args_element_name_46); - if (tmp_append_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - assert(PyList_Check(tmp_append_list_6)); - tmp_result = LIST_APPEND1(tmp_append_list_6, tmp_append_value_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - goto loop_start_10; - loop_end_10:; - CHECK_OBJECT(tmp_listcomp_6__contraction); - tmp_assign_source_127 = tmp_listcomp_6__contraction; - Py_INCREF(tmp_assign_source_127); - goto try_return_handler_47; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_47:; - Py_XDECREF(tmp_listcomp_6__$0); - tmp_listcomp_6__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_6__contraction); - Py_DECREF(tmp_listcomp_6__contraction); - tmp_listcomp_6__contraction = NULL; - Py_XDECREF(tmp_listcomp_6__iter_value_0); - tmp_listcomp_6__iter_value_0 = NULL; - goto frame_return_exit_7; - // Exception handler code: - try_except_handler_47:; - exception_keeper_type_41 = exception_type; - exception_keeper_value_41 = exception_value; - exception_keeper_tb_41 = exception_tb; - exception_keeper_lineno_41 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_6__$0); - tmp_listcomp_6__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_6__contraction); - Py_DECREF(tmp_listcomp_6__contraction); - tmp_listcomp_6__contraction = NULL; - Py_XDECREF(tmp_listcomp_6__iter_value_0); - tmp_listcomp_6__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_41; - exception_value = exception_keeper_value_41; - exception_tb = exception_keeper_tb_41; - exception_lineno = exception_keeper_lineno_41; - - goto frame_exception_exit_7; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_return_exit_7:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_46; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9129cbc7a5937ced0a59dbc8f2b1d733_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9129cbc7a5937ced0a59dbc8f2b1d733_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9129cbc7a5937ced0a59dbc8f2b1d733_7, - type_description_2, - outline_5_var__, - var_targets - ); - - - // Release cached frame if used for exception. - if (frame_9129cbc7a5937ced0a59dbc8f2b1d733_7 == cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); - cache_frame_9129cbc7a5937ced0a59dbc8f2b1d733_7 = NULL; - } - - assertFrameObject(frame_9129cbc7a5937ced0a59dbc8f2b1d733_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_46; - skip_nested_handling_6:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_46:; - Py_XDECREF(outline_5_var__); - outline_5_var__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_46:; - exception_keeper_type_42 = exception_type; - exception_keeper_value_42 = exception_value; - exception_keeper_tb_42 = exception_tb; - exception_keeper_lineno_42 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_5_var__); - outline_5_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_42; - exception_value = exception_keeper_value_42; - exception_tb = exception_keeper_tb_42; - exception_lineno = exception_keeper_lineno_42; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 457; - goto try_except_handler_45; - outline_result_7:; - { - PyObject *old = var_img_embeds_list; - var_img_embeds_list = tmp_assign_source_127; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_132; - PyObject *tmp_expression_name_106; - PyObject *tmp_expression_name_107; - PyObject *tmp_subscript_name_36; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 458; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_107 = var_outputs; - tmp_expression_name_106 = LOOKUP_ATTRIBUTE(tmp_expression_name_107, mod_consts[285]); - if (tmp_expression_name_106 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 458; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_subscript_name_36 = mod_consts[185]; - tmp_assign_source_132 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_106, tmp_subscript_name_36, -1); - Py_DECREF(tmp_expression_name_106); - if (tmp_assign_source_132 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 458; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_132; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_133; - PyObject *tmp_compexpr_left_27; - PyObject *tmp_compexpr_right_27; - PyObject *tmp_expression_name_108; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_compexpr_left_27 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_108 = par_self; - tmp_compexpr_right_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_108, mod_consts[107]); - if (tmp_compexpr_right_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_assign_source_133 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_27, tmp_compexpr_right_27); - Py_DECREF(tmp_compexpr_right_27); - if (tmp_assign_source_133 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_token_mask; - var_token_mask = tmp_assign_source_133; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_134; - PyObject *tmp_expression_name_109; - PyObject *tmp_subscript_name_37; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_109 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_37 = var_token_mask; - tmp_assign_source_134 = LOOKUP_SUBSCRIPT(tmp_expression_name_109, tmp_subscript_name_37); - if (tmp_assign_source_134 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 460; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_target_states; - var_target_states = tmp_assign_source_134; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_135; - PyObject *tmp_called_instance_14; - PyObject *tmp_args_element_name_47; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 461; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_called_instance_14 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_47 = var_target_states; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 461; - tmp_assign_source_135 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_14, mod_consts[160], tmp_args_element_name_47); - if (tmp_assign_source_135 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - assert(var_seg_states == NULL); - var_seg_states = tmp_assign_source_135; - } - { - PyObject *tmp_assign_source_136; - PyObject *tmp_expression_name_110; - PyObject *tmp_subscript_name_38; - CHECK_OBJECT(var_img_embeds_list); - tmp_expression_name_110 = var_img_embeds_list; - tmp_subscript_name_38 = mod_consts[185]; - tmp_assign_source_136 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_110, tmp_subscript_name_38, -1); - if (tmp_assign_source_136 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 462; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - assert(var_last_feats == NULL); - var_last_feats = tmp_assign_source_136; - } - { - PyObject *tmp_assign_source_137; - PyObject *tmp_left_name_20; - PyObject *tmp_right_name_20; - PyObject *tmp_called_instance_15; - PyObject *tmp_called_instance_16; - PyObject *tmp_called_instance_17; - CHECK_OBJECT(var_last_feats); - tmp_left_name_20 = var_last_feats; - CHECK_OBJECT(var_seg_states); - tmp_called_instance_17 = var_seg_states; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 463; - tmp_called_instance_16 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_17, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_called_instance_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 463; - tmp_called_instance_15 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_16, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - Py_DECREF(tmp_called_instance_16); - if (tmp_called_instance_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 463; - tmp_right_name_20 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_15, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - Py_DECREF(tmp_called_instance_15); - if (tmp_right_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_assign_source_137 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_20, tmp_right_name_20); - Py_DECREF(tmp_right_name_20); - if (tmp_assign_source_137 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_137; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_138; - PyObject *tmp_called_instance_18; - PyObject *tmp_args_element_name_48; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 464; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_called_instance_18 = par_self; - CHECK_OBJECT(var_last_feats); - tmp_args_element_name_48 = var_last_feats; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 464; - tmp_assign_source_138 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_18, mod_consts[163], tmp_args_element_name_48); - if (tmp_assign_source_138 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 464; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_138; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - int tmp_ass_subscript_res_1; - CHECK_OBJECT(var_last_feats); - tmp_ass_subvalue_2 = var_last_feats; - CHECK_OBJECT(var_img_embeds_list); - tmp_ass_subscribed_2 = var_img_embeds_list; - tmp_ass_subscript_2 = mod_consts[185]; - tmp_ass_subscript_res_1 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_2, tmp_ass_subscript_2, -1, tmp_ass_subvalue_2); - if (tmp_ass_subscript_res_1 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 465; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - } - { - PyObject *tmp_assign_source_139; - PyObject *tmp_called_name_49; - PyObject *tmp_expression_name_111; - PyObject *tmp_kwargs_name_11; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_111 = par_self; - tmp_called_name_49 = LOOKUP_ATTRIBUTE(tmp_expression_name_111, mod_consts[75]); - if (tmp_called_name_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_dict_key_6 = mod_consts[298]; - tmp_dict_value_6 = Py_False; - tmp_kwargs_name_11 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[299]; - if (var_img_embeds_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[300]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_dict_value_6 = var_img_embeds_list; - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - goto dict_build_noexception_3; - // Exception handling pass through code for dict_build: - dict_build_exception_3:; - Py_DECREF(tmp_called_name_49); - Py_DECREF(tmp_kwargs_name_11); - goto try_except_handler_45; - // Finished with no exception for dict_build: - dict_build_noexception_3:; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 466; - tmp_assign_source_139 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_49, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_49); - Py_DECREF(tmp_kwargs_name_11); - if (tmp_assign_source_139 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - assert(var_seg_preds == NULL); - var_seg_preds = tmp_assign_source_139; - } - { - PyObject *tmp_assign_source_140; - PyObject *tmp_left_name_21; - PyObject *tmp_right_name_21; - PyObject *tmp_called_name_50; - PyObject *tmp_expression_name_112; - PyObject *tmp_args_element_name_49; - PyObject *tmp_args_element_name_50; - PyObject *tmp_called_instance_19; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_left_name_21 = var_loss; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_112 = par_self; - tmp_called_name_50 = LOOKUP_ATTRIBUTE(tmp_expression_name_112, mod_consts[166]); - if (tmp_called_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - CHECK_OBJECT(var_seg_preds); - tmp_args_element_name_49 = var_seg_preds; - CHECK_OBJECT(var_masks); - tmp_called_instance_19 = var_masks; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 467; - tmp_args_element_name_50 = CALL_METHOD_NO_ARGS(tmp_called_instance_19, mod_consts[173]); - if (tmp_args_element_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_50); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 467; - { - PyObject *call_args[] = {tmp_args_element_name_49, tmp_args_element_name_50}; - tmp_right_name_21 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_50, call_args); - } - - Py_DECREF(tmp_called_name_50); - Py_DECREF(tmp_args_element_name_50); - if (tmp_right_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_21, tmp_right_name_21); - Py_DECREF(tmp_right_name_21); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_assign_source_140 = tmp_left_name_21; - var_loss = tmp_assign_source_140; - - } - goto try_end_31; - // Exception handler code: - try_except_handler_45:; - exception_keeper_type_43 = exception_type; - exception_keeper_value_43 = exception_value; - exception_keeper_tb_43 = exception_tb; - exception_keeper_lineno_43 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 6. - GET_CURRENT_EXCEPTION(&exception_preserved_type_6, &exception_preserved_value_6, &exception_preserved_tb_6); - - if (exception_keeper_tb_43 == NULL) { - exception_keeper_tb_43 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_43); - } else if (exception_keeper_lineno_43 != 0) { - exception_keeper_tb_43 = ADD_TRACEBACK(exception_keeper_tb_43, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_43); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_43, &exception_keeper_value_43, &exception_keeper_tb_43); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_43, exception_keeper_tb_43); - PUBLISH_EXCEPTION(&exception_keeper_type_43, &exception_keeper_value_43, &exception_keeper_tb_43); - // Tried code: - { - bool tmp_condition_result_28; - PyObject *tmp_compexpr_left_28; - PyObject *tmp_compexpr_right_28; - tmp_compexpr_left_28 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_28 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_28, tmp_compexpr_right_28); - assert(!(tmp_res == -1)); - tmp_condition_result_28 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_28 != false) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - nuitka_bool tmp_assign_source_141; - tmp_assign_source_141 = NUITKA_BOOL_FALSE; - tmp_with_6__indicator = tmp_assign_source_141; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_6; - PyObject *tmp_called_name_51; - PyObject *tmp_args_element_name_51; - PyObject *tmp_args_element_name_52; - PyObject *tmp_args_element_name_53; - CHECK_OBJECT(tmp_with_6__exit); - tmp_called_name_51 = tmp_with_6__exit; - tmp_args_element_name_51 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_52 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_53 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 467; - { - PyObject *call_args[] = {tmp_args_element_name_51, tmp_args_element_name_52, tmp_args_element_name_53}; - tmp_operand_name_6 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_51, call_args); - } - - if (tmp_operand_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - Py_DECREF(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - } - branch_yes_28:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 467; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - branch_no_28:; - goto branch_end_27; - branch_no_27:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 455; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - branch_end_27:; - goto try_end_32; - // Exception handler code: - try_except_handler_48:; - exception_keeper_type_44 = exception_type; - exception_keeper_value_44 = exception_value; - exception_keeper_tb_44 = exception_tb; - exception_keeper_lineno_44 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 6. - SET_CURRENT_EXCEPTION(exception_preserved_type_6, exception_preserved_value_6, exception_preserved_tb_6); - - // Re-raise. - exception_type = exception_keeper_type_44; - exception_value = exception_keeper_value_44; - exception_tb = exception_keeper_tb_44; - exception_lineno = exception_keeper_lineno_44; - - goto try_except_handler_44; - // End of try: - try_end_32:; - // Restore previous exception id 6. - SET_CURRENT_EXCEPTION(exception_preserved_type_6, exception_preserved_value_6, exception_preserved_tb_6); - - goto try_end_31; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_31:; - goto try_end_33; - // Exception handler code: - try_except_handler_44:; - exception_keeper_type_45 = exception_type; - exception_keeper_value_45 = exception_value; - exception_keeper_tb_45 = exception_tb; - exception_keeper_lineno_45 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_30; - nuitka_bool tmp_compexpr_left_29; - nuitka_bool tmp_compexpr_right_29; - assert(tmp_with_6__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_29 = tmp_with_6__indicator; - tmp_compexpr_right_29 = NUITKA_BOOL_TRUE; - tmp_condition_result_30 = (tmp_compexpr_left_29 == tmp_compexpr_right_29) ? true : false; - if (tmp_condition_result_30 != false) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - { - PyObject *tmp_called_name_52; - PyObject *tmp_call_result_13; - CHECK_OBJECT(tmp_with_6__exit); - tmp_called_name_52 = tmp_with_6__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 467; - tmp_call_result_13 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_52, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_45); - Py_XDECREF(exception_keeper_value_45); - Py_XDECREF(exception_keeper_tb_45); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - Py_DECREF(tmp_call_result_13); - } - branch_no_29:; - // Re-raise. - exception_type = exception_keeper_type_45; - exception_value = exception_keeper_value_45; - exception_tb = exception_keeper_tb_45; - exception_lineno = exception_keeper_lineno_45; - - goto try_except_handler_43; - // End of try: - try_end_33:; - { - bool tmp_condition_result_31; - nuitka_bool tmp_compexpr_left_30; - nuitka_bool tmp_compexpr_right_30; - assert(tmp_with_6__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_30 = tmp_with_6__indicator; - tmp_compexpr_right_30 = NUITKA_BOOL_TRUE; - tmp_condition_result_31 = (tmp_compexpr_left_30 == tmp_compexpr_right_30) ? true : false; - if (tmp_condition_result_31 != false) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_called_name_53; - PyObject *tmp_call_result_14; - CHECK_OBJECT(tmp_with_6__exit); - tmp_called_name_53 = tmp_with_6__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 467; - tmp_call_result_14 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_53, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - Py_DECREF(tmp_call_result_14); - } - branch_no_30:; - goto try_end_34; - // Exception handler code: - try_except_handler_43:; - exception_keeper_type_46 = exception_type; - exception_keeper_value_46 = exception_value; - exception_keeper_tb_46 = exception_tb; - exception_keeper_lineno_46 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_6__source); - tmp_with_6__source = NULL; - Py_XDECREF(tmp_with_6__enter); - tmp_with_6__enter = NULL; - Py_XDECREF(tmp_with_6__exit); - tmp_with_6__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_46; - exception_value = exception_keeper_value_46; - exception_tb = exception_keeper_tb_46; - exception_lineno = exception_keeper_lineno_46; - - goto frame_exception_exit_1; - // End of try: - try_end_34:; - CHECK_OBJECT(tmp_with_6__source); - Py_DECREF(tmp_with_6__source); - tmp_with_6__source = NULL; - CHECK_OBJECT(tmp_with_6__enter); - Py_DECREF(tmp_with_6__enter); - tmp_with_6__enter = NULL; - Py_XDECREF(tmp_with_6__exit); - tmp_with_6__exit = NULL; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_142; - PyObject *tmp_expression_name_113; - PyObject *tmp_subscript_name_39; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 469; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_113 = par_samples; - tmp_subscript_name_39 = mod_consts[296]; - tmp_assign_source_142 = LOOKUP_SUBSCRIPT(tmp_expression_name_113, tmp_subscript_name_39); - if (tmp_assign_source_142 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 469; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_masks == NULL); - var_masks = tmp_assign_source_142; - } - // Tried code: - { - PyObject *tmp_assign_source_143; - PyObject *tmp_called_instance_20; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - - tmp_called_instance_20 = par_self; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 470; - tmp_assign_source_143 = CALL_METHOD_NO_ARGS(tmp_called_instance_20, mod_consts[180]); - if (tmp_assign_source_143 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - assert(tmp_with_7__source == NULL); - tmp_with_7__source = tmp_assign_source_143; - } - { - PyObject *tmp_assign_source_144; - PyObject *tmp_called_name_54; - PyObject *tmp_expression_name_114; - CHECK_OBJECT(tmp_with_7__source); - tmp_expression_name_114 = tmp_with_7__source; - tmp_called_name_54 = LOOKUP_SPECIAL(tmp_expression_name_114, mod_consts[181]); - if (tmp_called_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 470; - tmp_assign_source_144 = CALL_FUNCTION_NO_ARGS(tmp_called_name_54); - Py_DECREF(tmp_called_name_54); - if (tmp_assign_source_144 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - assert(tmp_with_7__enter == NULL); - tmp_with_7__enter = tmp_assign_source_144; - } - { - PyObject *tmp_assign_source_145; - PyObject *tmp_expression_name_115; - CHECK_OBJECT(tmp_with_7__source); - tmp_expression_name_115 = tmp_with_7__source; - tmp_assign_source_145 = LOOKUP_SPECIAL(tmp_expression_name_115, mod_consts[182]); - if (tmp_assign_source_145 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - assert(tmp_with_7__exit == NULL); - tmp_with_7__exit = tmp_assign_source_145; - } - { - nuitka_bool tmp_assign_source_146; - tmp_assign_source_146 = NUITKA_BOOL_TRUE; - tmp_with_7__indicator = tmp_assign_source_146; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_147; - PyObject *tmp_called_name_55; - PyObject *tmp_expression_name_116; - PyObject *tmp_expression_name_117; - PyObject *tmp_args_element_name_54; - PyObject *tmp_expression_name_118; - PyObject *tmp_subscript_name_40; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_117 = par_self; - tmp_expression_name_116 = LOOKUP_ATTRIBUTE(tmp_expression_name_117, mod_consts[154]); - if (tmp_expression_name_116 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_called_name_55 = LOOKUP_ATTRIBUTE(tmp_expression_name_116, mod_consts[301]); - Py_DECREF(tmp_expression_name_116); - if (tmp_called_name_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_55); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_118 = var_image; - tmp_subscript_name_40 = mod_consts[302]; - tmp_args_element_name_54 = LOOKUP_SUBSCRIPT(tmp_expression_name_118, tmp_subscript_name_40); - if (tmp_args_element_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_55); - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 471; - tmp_assign_source_147 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_55, tmp_args_element_name_54); - Py_DECREF(tmp_called_name_55); - Py_DECREF(tmp_args_element_name_54); - if (tmp_assign_source_147 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_feats == NULL); - var_feats = tmp_assign_source_147; - } - { - PyObject *tmp_assign_source_148; - PyObject *tmp_expression_name_119; - PyObject *tmp_subscript_name_41; - CHECK_OBJECT(var_feats); - tmp_expression_name_119 = var_feats; - tmp_subscript_name_41 = mod_consts[185]; - tmp_assign_source_148 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_119, tmp_subscript_name_41, -1); - if (tmp_assign_source_148 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 472; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_last_feats == NULL); - var_last_feats = tmp_assign_source_148; - } - { - PyObject *tmp_assign_source_149; - PyObject *tmp_expression_name_120; - PyObject *tmp_expression_name_121; - PyObject *tmp_subscript_name_42; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 473; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_121 = var_outputs; - tmp_expression_name_120 = LOOKUP_ATTRIBUTE(tmp_expression_name_121, mod_consts[285]); - if (tmp_expression_name_120 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 473; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_subscript_name_42 = mod_consts[185]; - tmp_assign_source_149 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_120, tmp_subscript_name_42, -1); - Py_DECREF(tmp_expression_name_120); - if (tmp_assign_source_149 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 473; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_149; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_150; - PyObject *tmp_compexpr_left_31; - PyObject *tmp_compexpr_right_31; - PyObject *tmp_expression_name_122; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_compexpr_left_31 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_122 = par_self; - tmp_compexpr_right_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_122, mod_consts[106]); - if (tmp_compexpr_right_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_assign_source_150 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_31, tmp_compexpr_right_31); - Py_DECREF(tmp_compexpr_right_31); - if (tmp_assign_source_150 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_token_mask; - var_token_mask = tmp_assign_source_150; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_151; - PyObject *tmp_expression_name_123; - PyObject *tmp_subscript_name_43; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_123 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_43 = var_token_mask; - tmp_assign_source_151 = LOOKUP_SUBSCRIPT(tmp_expression_name_123, tmp_subscript_name_43); - if (tmp_assign_source_151 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 475; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_target_states; - var_target_states = tmp_assign_source_151; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_152; - PyObject *tmp_called_instance_21; - PyObject *tmp_args_element_name_55; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 476; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_called_instance_21 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_55 = var_target_states; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 476; - tmp_assign_source_152 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_21, mod_consts[156], tmp_args_element_name_55); - if (tmp_assign_source_152 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 476; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_seg_states == NULL); - var_seg_states = tmp_assign_source_152; - } - { - PyObject *tmp_assign_source_153; - PyObject *tmp_left_name_22; - PyObject *tmp_right_name_22; - PyObject *tmp_called_instance_22; - PyObject *tmp_called_instance_23; - CHECK_OBJECT(var_last_feats); - tmp_left_name_22 = var_last_feats; - CHECK_OBJECT(var_seg_states); - tmp_called_instance_23 = var_seg_states; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 477; - tmp_called_instance_22 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_23, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_called_instance_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 477; - tmp_right_name_22 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_22, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - Py_DECREF(tmp_called_instance_22); - if (tmp_right_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_assign_source_153 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_22, tmp_right_name_22); - Py_DECREF(tmp_right_name_22); - if (tmp_assign_source_153 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_153; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_154; - PyObject *tmp_called_instance_24; - PyObject *tmp_args_element_name_56; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 478; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_called_instance_24 = par_self; - CHECK_OBJECT(var_last_feats); - tmp_args_element_name_56 = var_last_feats; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 478; - tmp_assign_source_154 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_24, mod_consts[159], tmp_args_element_name_56); - if (tmp_assign_source_154 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 478; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_154; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - int tmp_ass_subscript_res_2; - CHECK_OBJECT(var_last_feats); - tmp_ass_subvalue_3 = var_last_feats; - CHECK_OBJECT(var_feats); - tmp_ass_subscribed_3 = var_feats; - tmp_ass_subscript_3 = mod_consts[185]; - tmp_ass_subscript_res_2 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_3, tmp_ass_subscript_3, -1, tmp_ass_subvalue_3); - if (tmp_ass_subscript_res_2 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 479; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - } - { - PyObject *tmp_assign_source_155; - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_124; - PyObject *tmp_expression_name_125; - PyObject *tmp_dircall_arg2_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_125 = par_self; - tmp_expression_name_124 = LOOKUP_ATTRIBUTE(tmp_expression_name_125, mod_consts[154]); - if (tmp_expression_name_124 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_124, mod_consts[303]); - Py_DECREF(tmp_expression_name_124); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - if (var_feats == NULL) { - Py_DECREF(tmp_dircall_arg1_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[304]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_dircall_arg2_1 = var_feats; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_assign_source_155 = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_assign_source_155 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_seg_feats == NULL); - var_seg_feats = tmp_assign_source_155; - } - { - PyObject *tmp_assign_source_156; - PyObject *tmp_called_instance_25; - PyObject *tmp_expression_name_126; - PyObject *tmp_args_element_name_57; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 481; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_126 = par_self; - tmp_called_instance_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_126, mod_consts[154]); - if (tmp_called_instance_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 481; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - CHECK_OBJECT(var_seg_feats); - tmp_args_element_name_57 = var_seg_feats; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 481; - tmp_assign_source_156 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_25, mod_consts[305], tmp_args_element_name_57); - Py_DECREF(tmp_called_instance_25); - if (tmp_assign_source_156 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 481; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_seg_preds == NULL); - var_seg_preds = tmp_assign_source_156; - } - { - PyObject *tmp_assign_source_157; - PyObject *tmp_left_name_23; - PyObject *tmp_right_name_23; - PyObject *tmp_called_name_56; - PyObject *tmp_expression_name_127; - PyObject *tmp_args_element_name_58; - PyObject *tmp_args_element_name_59; - PyObject *tmp_called_instance_26; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_left_name_23 = var_loss; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_127 = par_self; - tmp_called_name_56 = LOOKUP_ATTRIBUTE(tmp_expression_name_127, mod_consts[166]); - if (tmp_called_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - CHECK_OBJECT(var_seg_preds); - tmp_args_element_name_58 = var_seg_preds; - CHECK_OBJECT(var_masks); - tmp_called_instance_26 = var_masks; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 482; - tmp_args_element_name_59 = CALL_METHOD_NO_ARGS(tmp_called_instance_26, mod_consts[173]); - if (tmp_args_element_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_56); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 482; - { - PyObject *call_args[] = {tmp_args_element_name_58, tmp_args_element_name_59}; - tmp_right_name_23 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_56, call_args); - } - - Py_DECREF(tmp_called_name_56); - Py_DECREF(tmp_args_element_name_59); - if (tmp_right_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_23, tmp_right_name_23); - Py_DECREF(tmp_right_name_23); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_assign_source_157 = tmp_left_name_23; - var_loss = tmp_assign_source_157; - - } - goto try_end_35; - // Exception handler code: - try_except_handler_51:; - exception_keeper_type_47 = exception_type; - exception_keeper_value_47 = exception_value; - exception_keeper_tb_47 = exception_tb; - exception_keeper_lineno_47 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 7. - GET_CURRENT_EXCEPTION(&exception_preserved_type_7, &exception_preserved_value_7, &exception_preserved_tb_7); - - if (exception_keeper_tb_47 == NULL) { - exception_keeper_tb_47 = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_47); - } else if (exception_keeper_lineno_47 != 0) { - exception_keeper_tb_47 = ADD_TRACEBACK(exception_keeper_tb_47, frame_010242f3bfb425fd481def0b05eda19a, exception_keeper_lineno_47); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_47, &exception_keeper_value_47, &exception_keeper_tb_47); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_47, exception_keeper_tb_47); - PUBLISH_EXCEPTION(&exception_keeper_type_47, &exception_keeper_value_47, &exception_keeper_tb_47); - // Tried code: - { - bool tmp_condition_result_32; - PyObject *tmp_compexpr_left_32; - PyObject *tmp_compexpr_right_32; - tmp_compexpr_left_32 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_32 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_32, tmp_compexpr_right_32); - assert(!(tmp_res == -1)); - tmp_condition_result_32 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_32 != false) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - nuitka_bool tmp_assign_source_158; - tmp_assign_source_158 = NUITKA_BOOL_FALSE; - tmp_with_7__indicator = tmp_assign_source_158; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_operand_name_7; - PyObject *tmp_called_name_57; - PyObject *tmp_args_element_name_60; - PyObject *tmp_args_element_name_61; - PyObject *tmp_args_element_name_62; - CHECK_OBJECT(tmp_with_7__exit); - tmp_called_name_57 = tmp_with_7__exit; - tmp_args_element_name_60 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_61 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_62 = EXC_TRACEBACK(PyThreadState_GET()); - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 482; - { - PyObject *call_args[] = {tmp_args_element_name_60, tmp_args_element_name_61, tmp_args_element_name_62}; - tmp_operand_name_7 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_57, call_args); - } - - if (tmp_operand_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - Py_DECREF(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - } - tmp_condition_result_33 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - } - branch_yes_32:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 482; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - branch_no_32:; - goto branch_end_31; - branch_no_31:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 470; - } - - if (exception_tb && exception_tb->tb_frame == &frame_010242f3bfb425fd481def0b05eda19a->m_frame) frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - branch_end_31:; - goto try_end_36; - // Exception handler code: - try_except_handler_52:; - exception_keeper_type_48 = exception_type; - exception_keeper_value_48 = exception_value; - exception_keeper_tb_48 = exception_tb; - exception_keeper_lineno_48 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 7. - SET_CURRENT_EXCEPTION(exception_preserved_type_7, exception_preserved_value_7, exception_preserved_tb_7); - - // Re-raise. - exception_type = exception_keeper_type_48; - exception_value = exception_keeper_value_48; - exception_tb = exception_keeper_tb_48; - exception_lineno = exception_keeper_lineno_48; - - goto try_except_handler_50; - // End of try: - try_end_36:; - // Restore previous exception id 7. - SET_CURRENT_EXCEPTION(exception_preserved_type_7, exception_preserved_value_7, exception_preserved_tb_7); - - goto try_end_35; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_35:; - goto try_end_37; - // Exception handler code: - try_except_handler_50:; - exception_keeper_type_49 = exception_type; - exception_keeper_value_49 = exception_value; - exception_keeper_tb_49 = exception_tb; - exception_keeper_lineno_49 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_34; - nuitka_bool tmp_compexpr_left_33; - nuitka_bool tmp_compexpr_right_33; - assert(tmp_with_7__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_33 = tmp_with_7__indicator; - tmp_compexpr_right_33 = NUITKA_BOOL_TRUE; - tmp_condition_result_34 = (tmp_compexpr_left_33 == tmp_compexpr_right_33) ? true : false; - if (tmp_condition_result_34 != false) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - { - PyObject *tmp_called_name_58; - PyObject *tmp_call_result_15; - CHECK_OBJECT(tmp_with_7__exit); - tmp_called_name_58 = tmp_with_7__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 482; - tmp_call_result_15 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_58, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_49); - Py_XDECREF(exception_keeper_value_49); - Py_XDECREF(exception_keeper_tb_49); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - Py_DECREF(tmp_call_result_15); - } - branch_no_33:; - // Re-raise. - exception_type = exception_keeper_type_49; - exception_value = exception_keeper_value_49; - exception_tb = exception_keeper_tb_49; - exception_lineno = exception_keeper_lineno_49; - - goto try_except_handler_49; - // End of try: - try_end_37:; - { - bool tmp_condition_result_35; - nuitka_bool tmp_compexpr_left_34; - nuitka_bool tmp_compexpr_right_34; - assert(tmp_with_7__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_34 = tmp_with_7__indicator; - tmp_compexpr_right_34 = NUITKA_BOOL_TRUE; - tmp_condition_result_35 = (tmp_compexpr_left_34 == tmp_compexpr_right_34) ? true : false; - if (tmp_condition_result_35 != false) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_called_name_59; - PyObject *tmp_call_result_16; - CHECK_OBJECT(tmp_with_7__exit); - tmp_called_name_59 = tmp_with_7__exit; - frame_010242f3bfb425fd481def0b05eda19a->m_frame.f_lineno = 482; - tmp_call_result_16 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_59, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - Py_DECREF(tmp_call_result_16); - } - branch_no_34:; - goto try_end_38; - // Exception handler code: - try_except_handler_49:; - exception_keeper_type_50 = exception_type; - exception_keeper_value_50 = exception_value; - exception_keeper_tb_50 = exception_tb; - exception_keeper_lineno_50 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_7__source); - tmp_with_7__source = NULL; - Py_XDECREF(tmp_with_7__enter); - tmp_with_7__enter = NULL; - Py_XDECREF(tmp_with_7__exit); - tmp_with_7__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_50; - exception_value = exception_keeper_value_50; - exception_tb = exception_keeper_tb_50; - exception_lineno = exception_keeper_lineno_50; - - goto frame_exception_exit_1; - // End of try: - try_end_38:; - CHECK_OBJECT(tmp_with_7__source); - Py_DECREF(tmp_with_7__source); - tmp_with_7__source = NULL; - CHECK_OBJECT(tmp_with_7__enter); - Py_DECREF(tmp_with_7__enter); - tmp_with_7__enter = NULL; - Py_XDECREF(tmp_with_7__exit); - tmp_with_7__exit = NULL; - branch_end_26:; - branch_no_25:; - { - PyObject *tmp_dict_key_7; - PyObject *tmp_dict_value_7; - tmp_dict_key_7 = mod_consts[284]; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_7 = var_loss; - tmp_return_value = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_128; - PyObject *tmp_expression_name_129; - PyObject *tmp_subscript_name_44; - PyObject *tmp_subscript_name_45; - PyObject *tmp_expression_name_130; - PyObject *tmp_expression_name_131; - PyObject *tmp_subscript_name_46; - PyObject *tmp_subscript_name_47; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_7, tmp_dict_value_7); - assert(!(tmp_res != 0)); - tmp_dict_key_7 = mod_consts[232]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - - tmp_expression_name_129 = par_samples; - tmp_subscript_name_44 = mod_consts[232]; - tmp_expression_name_128 = LOOKUP_SUBSCRIPT(tmp_expression_name_129, tmp_subscript_name_44); - if (tmp_expression_name_128 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_subscript_name_45 = mod_consts[11]; - tmp_dict_value_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_128, tmp_subscript_name_45, 0); - Py_DECREF(tmp_expression_name_128); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - tmp_dict_key_7 = mod_consts[233]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - - tmp_expression_name_131 = par_samples; - tmp_subscript_name_46 = mod_consts[233]; - tmp_expression_name_130 = LOOKUP_SUBSCRIPT(tmp_expression_name_131, tmp_subscript_name_46); - if (tmp_expression_name_130 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_subscript_name_47 = mod_consts[11]; - tmp_dict_value_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_130, tmp_subscript_name_47, 0); - Py_DECREF(tmp_expression_name_130); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_4; - // Exception handling pass through code for dict_build: - dict_build_exception_4:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_4:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_010242f3bfb425fd481def0b05eda19a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_010242f3bfb425fd481def0b05eda19a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_010242f3bfb425fd481def0b05eda19a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_010242f3bfb425fd481def0b05eda19a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_010242f3bfb425fd481def0b05eda19a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_010242f3bfb425fd481def0b05eda19a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_010242f3bfb425fd481def0b05eda19a, - type_description_1, - par_self, - par_samples, - var_image, - var_bsz, - var_img_embeds, - var_atts_img, - var_img_embeds_list, - var_prefix_list, - var_tag_list, - var_placeholder, - var_j, - var_num, - var_prefix, - var_i, - var_prompt, - var_tags, - var_tag, - var_sample_ans, - var_sample_num, - var_text, - var_prompt_tokens, - var_to_regress_tokens, - var_targets, - var_empty_targets, - var_batch_size, - var_bos, - var_bos_embeds, - var_atts_bos, - var_to_regress_embeds, - var_inputs_embeds, - var_attention_mask, - var_outputs, - var_loss, - var_hidden_states, - var_token_mask, - var_target_states, - var_det_states, - var_labels, - var_det_loss, - var_point_states, - var_keypoint_loss, - var_masks, - var_seg_states, - var_last_feats, - var_seg_preds, - var_feats, - var_seg_feats - ); - - - // Release cached frame if used for exception. - if (frame_010242f3bfb425fd481def0b05eda19a == cache_frame_010242f3bfb425fd481def0b05eda19a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_010242f3bfb425fd481def0b05eda19a); - cache_frame_010242f3bfb425fd481def0b05eda19a = NULL; - } - - assertFrameObject(frame_010242f3bfb425fd481def0b05eda19a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_7:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_samples); - par_samples = NULL; - Py_XDECREF(var_image); - var_image = NULL; - CHECK_OBJECT(var_bsz); - Py_DECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_embeds); - var_img_embeds = NULL; - Py_XDECREF(var_atts_img); - var_atts_img = NULL; - Py_XDECREF(var_img_embeds_list); - var_img_embeds_list = NULL; - Py_XDECREF(var_prefix_list); - var_prefix_list = NULL; - Py_XDECREF(var_tag_list); - var_tag_list = NULL; - Py_XDECREF(var_placeholder); - var_placeholder = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_num); - var_num = NULL; - Py_XDECREF(var_prefix); - var_prefix = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_prompt); - var_prompt = NULL; - Py_XDECREF(var_tags); - var_tags = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_sample_ans); - var_sample_ans = NULL; - Py_XDECREF(var_sample_num); - var_sample_num = NULL; - Py_XDECREF(var_text); - var_text = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_to_regress_tokens); - var_to_regress_tokens = NULL; - Py_XDECREF(var_targets); - var_targets = NULL; - Py_XDECREF(var_empty_targets); - var_empty_targets = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_bos); - var_bos = NULL; - Py_XDECREF(var_bos_embeds); - var_bos_embeds = NULL; - Py_XDECREF(var_atts_bos); - var_atts_bos = NULL; - Py_XDECREF(var_to_regress_embeds); - var_to_regress_embeds = NULL; - Py_XDECREF(var_inputs_embeds); - var_inputs_embeds = NULL; - Py_XDECREF(var_attention_mask); - var_attention_mask = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_token_mask); - var_token_mask = NULL; - Py_XDECREF(var_target_states); - var_target_states = NULL; - Py_XDECREF(var_det_states); - var_det_states = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_det_loss); - var_det_loss = NULL; - Py_XDECREF(var_point_states); - var_point_states = NULL; - Py_XDECREF(var_keypoint_loss); - var_keypoint_loss = NULL; - Py_XDECREF(var_masks); - var_masks = NULL; - Py_XDECREF(var_seg_states); - var_seg_states = NULL; - Py_XDECREF(var_last_feats); - var_last_feats = NULL; - Py_XDECREF(var_seg_preds); - var_seg_preds = NULL; - Py_XDECREF(var_feats); - var_feats = NULL; - Py_XDECREF(var_seg_feats); - var_seg_feats = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_51 = exception_type; - exception_keeper_value_51 = exception_value; - exception_keeper_tb_51 = exception_tb; - exception_keeper_lineno_51 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_samples); - par_samples = NULL; - Py_XDECREF(var_image); - var_image = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_embeds); - var_img_embeds = NULL; - Py_XDECREF(var_atts_img); - var_atts_img = NULL; - Py_XDECREF(var_img_embeds_list); - var_img_embeds_list = NULL; - Py_XDECREF(var_prefix_list); - var_prefix_list = NULL; - Py_XDECREF(var_tag_list); - var_tag_list = NULL; - Py_XDECREF(var_placeholder); - var_placeholder = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_num); - var_num = NULL; - Py_XDECREF(var_prefix); - var_prefix = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_prompt); - var_prompt = NULL; - Py_XDECREF(var_tags); - var_tags = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_sample_ans); - var_sample_ans = NULL; - Py_XDECREF(var_sample_num); - var_sample_num = NULL; - Py_XDECREF(var_text); - var_text = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_to_regress_tokens); - var_to_regress_tokens = NULL; - Py_XDECREF(var_targets); - var_targets = NULL; - Py_XDECREF(var_empty_targets); - var_empty_targets = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_bos); - var_bos = NULL; - Py_XDECREF(var_bos_embeds); - var_bos_embeds = NULL; - Py_XDECREF(var_atts_bos); - var_atts_bos = NULL; - Py_XDECREF(var_to_regress_embeds); - var_to_regress_embeds = NULL; - Py_XDECREF(var_inputs_embeds); - var_inputs_embeds = NULL; - Py_XDECREF(var_attention_mask); - var_attention_mask = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_token_mask); - var_token_mask = NULL; - Py_XDECREF(var_target_states); - var_target_states = NULL; - Py_XDECREF(var_det_states); - var_det_states = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_det_loss); - var_det_loss = NULL; - Py_XDECREF(var_point_states); - var_point_states = NULL; - Py_XDECREF(var_keypoint_loss); - var_keypoint_loss = NULL; - Py_XDECREF(var_masks); - var_masks = NULL; - Py_XDECREF(var_seg_states); - var_seg_states = NULL; - Py_XDECREF(var_last_feats); - var_last_feats = NULL; - Py_XDECREF(var_seg_preds); - var_seg_preds = NULL; - Py_XDECREF(var_feats); - var_feats = NULL; - Py_XDECREF(var_seg_feats); - var_seg_feats = NULL; - // Re-raise. - exception_type = exception_keeper_type_51; - exception_value = exception_keeper_value_51; - exception_tb = exception_keeper_tb_51; - exception_lineno = exception_keeper_lineno_51; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$medomni$$$function__17_forward$$$genexpr__1_genexpr_locals { - PyObject *var_x; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$medomni$$$function__17_forward$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$medomni$$$function__17_forward$$$genexpr__1_genexpr_locals *generator_heap = (struct models$medomni$$$function__17_forward$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_x = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_9ec165929909407799d453e45497312e, module_models$medomni, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[0])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[0]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "No"; - generator_heap->exception_lineno = 356; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_x; - generator_heap->var_x = tmp_assign_source_2; - Py_INCREF(generator_heap->var_x); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_expression_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - CHECK_OBJECT(generator_heap->var_x); - tmp_expression_name_1 = generator_heap->var_x; - Py_INCREF(tmp_expression_name_1); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 356; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 356; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_x - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_x); - generator_heap->var_x = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_x); - generator_heap->var_x = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$medomni$$$function__17_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$medomni$$$function__17_forward$$$genexpr__1_genexpr_context, - module_models$medomni, - mod_consts[306], -#if PYTHON_VERSION >= 0x350 - mod_consts[307], -#endif - codeobj_9ec165929909407799d453e45497312e, - closure, - 1, - sizeof(struct models$medomni$$$function__17_forward$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$medomni$$$function__18_from_config(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_cfg = python_pars[1]; - PyObject *par_finetune = python_pars[2]; - PyObject *var_llama_model = NULL; - PyObject *var_freeze_vit = NULL; - PyObject *var_low_resource = NULL; - PyObject *var_max_txt_len = NULL; - PyObject *var_end_sym = NULL; - PyObject *var_model = NULL; - PyObject *var_ckpt_path = NULL; - PyObject *var_ckpt = NULL; - PyObject *var_current_model_dict = NULL; - PyObject *var_weights = NULL; - PyObject *var_new_state_dict = NULL; - PyObject *var_k = NULL; - PyObject *var_msg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_3a4557b158ae92b2a85eacbc8373fbb9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_3a4557b158ae92b2a85eacbc8373fbb9 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3a4557b158ae92b2a85eacbc8373fbb9)) { - Py_XDECREF(cache_frame_3a4557b158ae92b2a85eacbc8373fbb9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3a4557b158ae92b2a85eacbc8373fbb9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3a4557b158ae92b2a85eacbc8373fbb9 = MAKE_FUNCTION_FRAME(codeobj_3a4557b158ae92b2a85eacbc8373fbb9, module_models$medomni, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3a4557b158ae92b2a85eacbc8373fbb9->m_type_description == NULL); - frame_3a4557b158ae92b2a85eacbc8373fbb9 = cache_frame_3a4557b158ae92b2a85eacbc8373fbb9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3a4557b158ae92b2a85eacbc8373fbb9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3a4557b158ae92b2a85eacbc8373fbb9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_cfg); - tmp_called_instance_1 = par_cfg; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 488; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[309], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 488; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_llama_model == NULL); - var_llama_model = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 489; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_cfg; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 489; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[311], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 489; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_freeze_vit == NULL); - var_freeze_vit = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 490; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_cfg; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 490; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[312], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 490; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_low_resource == NULL); - var_low_resource = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 491; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_cfg; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 491; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[313], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 491; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_max_txt_len == NULL); - var_max_txt_len = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_5; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 492; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_cfg; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 492; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[314], 0) - ); - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_end_sym == NULL); - var_end_sym = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_cls); - tmp_called_name_1 = par_cls; - tmp_dict_key_1 = mod_consts[315]; - CHECK_OBJECT(var_freeze_vit); - tmp_dict_value_1 = var_freeze_vit; - tmp_kwargs_name_1 = _PyDict_NewPresized( 5 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[111]; - CHECK_OBJECT(var_llama_model); - tmp_dict_value_1 = var_llama_model; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[167]; - CHECK_OBJECT(var_max_txt_len); - tmp_dict_value_1 = var_max_txt_len; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[66]; - CHECK_OBJECT(var_low_resource); - tmp_dict_value_1 = var_low_resource; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[168]; - CHECK_OBJECT(var_end_sym); - tmp_dict_value_1 = var_end_sym; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 494; - tmp_assign_source_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 494; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_6; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 503; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = par_cfg; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 503; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_6, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[316], 0) - ); - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 503; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_ckpt_path == NULL); - var_ckpt_path = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_ckpt_path); - tmp_truth_name_1 = CHECK_IF_TRUE(var_ckpt_path); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 504; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_2 != NULL); - tmp_called_instance_7 = mod_consts[317]; - CHECK_OBJECT(var_ckpt_path); - tmp_args_element_name_2 = var_ckpt_path; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 505; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[35], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 505; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 505; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 505; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[318]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_ckpt_path == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[319]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = var_ckpt_path; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[320]); - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 506; - tmp_assign_source_8 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_ckpt == NULL); - var_ckpt = tmp_assign_source_8; - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - CHECK_OBJECT(par_finetune); - tmp_truth_name_2 = CHECK_IF_TRUE(par_finetune); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 507; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_8; - CHECK_OBJECT(var_model); - tmp_called_instance_8 = var_model; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 508; - tmp_assign_source_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[321]); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 508; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_current_model_dict == NULL); - var_current_model_dict = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_ckpt); - tmp_expression_name_2 = var_ckpt; - tmp_subscript_name_1 = mod_consts[14]; - tmp_assign_source_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 509; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_weights == NULL); - var_weights = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - tmp_assign_source_11 = PyDict_New(); - assert(var_new_state_dict == NULL); - var_new_state_dict = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_1; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_instance_9; - CHECK_OBJECT(var_current_model_dict); - tmp_called_instance_9 = var_current_model_dict; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 511; - tmp_list_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[322]); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_12 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_12; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_13 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_13 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooo"; - exception_lineno = 511; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_14 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_k; - var_k = tmp_assign_source_14; - Py_INCREF(var_k); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_list_arg_2; - PyObject *tmp_called_instance_10; - CHECK_OBJECT(var_k); - tmp_compexpr_left_1 = var_k; - if (var_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[323]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_10 = var_weights; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 512; - tmp_list_arg_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[322]); - if (tmp_list_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_1 = MAKE_LIST(tmp_list_arg_2); - Py_DECREF(tmp_list_arg_2); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_instance_11; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - PyObject *tmp_called_instance_12; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_3; - if (var_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[323]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = var_weights; - CHECK_OBJECT(var_k); - tmp_subscript_name_2 = var_k; - tmp_called_instance_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_called_instance_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 513; - tmp_compexpr_left_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[33]); - Py_DECREF(tmp_called_instance_11); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_current_model_dict == NULL) { - Py_DECREF(tmp_compexpr_left_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[324]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = var_current_model_dict; - CHECK_OBJECT(var_k); - tmp_subscript_name_3 = var_k; - tmp_called_instance_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_3); - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_2); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 513; - tmp_compexpr_right_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_12, mod_consts[33]); - Py_DECREF(tmp_called_instance_12); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_2); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_4 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_condition_result_4 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_4 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_4; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (var_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[323]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = var_weights; - CHECK_OBJECT(var_k); - tmp_subscript_name_4 = var_k; - tmp_ass_subvalue_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_4); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_1 = var_new_state_dict; - CHECK_OBJECT(var_k); - tmp_ass_subscript_1 = var_k; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_5; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - if (var_current_model_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[324]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_6 = var_current_model_dict; - CHECK_OBJECT(var_k); - tmp_subscript_name_5 = var_k; - tmp_ass_subvalue_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_5); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_2 = var_new_state_dict; - CHECK_OBJECT(var_k); - tmp_ass_subscript_2 = var_k; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - } - branch_end_4:; - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - tmp_called_name_4 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_4 != NULL); - CHECK_OBJECT(var_k); - tmp_args_element_name_3 = var_k; - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 518; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_6; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - if (var_current_model_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[324]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_7 = var_current_model_dict; - CHECK_OBJECT(var_k); - tmp_subscript_name_6 = var_k; - tmp_ass_subvalue_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_6); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_ass_subvalue_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_3 = var_new_state_dict; - CHECK_OBJECT(var_k); - tmp_ass_subscript_3 = var_k; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - } - branch_end_3:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_3; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = var_model; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[326]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_new_state_dict; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[327]); - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 520; - tmp_assign_source_15 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_15; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_7; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(var_model); - tmp_expression_name_9 = var_model; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[326]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_ckpt); - tmp_expression_name_10 = var_ckpt; - tmp_subscript_name_7 = mod_consts[14]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_7); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 522; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[327]); - frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame.f_lineno = 522; - tmp_assign_source_16 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_16; - } - branch_end_2:; - branch_no_1:; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 524; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_model; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3a4557b158ae92b2a85eacbc8373fbb9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3a4557b158ae92b2a85eacbc8373fbb9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3a4557b158ae92b2a85eacbc8373fbb9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3a4557b158ae92b2a85eacbc8373fbb9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3a4557b158ae92b2a85eacbc8373fbb9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3a4557b158ae92b2a85eacbc8373fbb9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3a4557b158ae92b2a85eacbc8373fbb9, - type_description_1, - par_cls, - par_cfg, - par_finetune, - var_llama_model, - var_freeze_vit, - var_low_resource, - var_max_txt_len, - var_end_sym, - var_model, - var_ckpt_path, - var_ckpt, - var_current_model_dict, - var_weights, - var_new_state_dict, - var_k, - var_msg - ); - - - // Release cached frame if used for exception. - if (frame_3a4557b158ae92b2a85eacbc8373fbb9 == cache_frame_3a4557b158ae92b2a85eacbc8373fbb9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3a4557b158ae92b2a85eacbc8373fbb9); - cache_frame_3a4557b158ae92b2a85eacbc8373fbb9 = NULL; - } - - assertFrameObject(frame_3a4557b158ae92b2a85eacbc8373fbb9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_finetune); - Py_DECREF(par_finetune); - par_finetune = NULL; - CHECK_OBJECT(var_llama_model); - Py_DECREF(var_llama_model); - var_llama_model = NULL; - CHECK_OBJECT(var_freeze_vit); - Py_DECREF(var_freeze_vit); - var_freeze_vit = NULL; - CHECK_OBJECT(var_low_resource); - Py_DECREF(var_low_resource); - var_low_resource = NULL; - CHECK_OBJECT(var_max_txt_len); - Py_DECREF(var_max_txt_len); - var_max_txt_len = NULL; - CHECK_OBJECT(var_end_sym); - Py_DECREF(var_end_sym); - var_end_sym = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_ckpt_path); - var_ckpt_path = NULL; - Py_XDECREF(var_ckpt); - var_ckpt = NULL; - Py_XDECREF(var_current_model_dict); - var_current_model_dict = NULL; - Py_XDECREF(var_weights); - var_weights = NULL; - Py_XDECREF(var_new_state_dict); - var_new_state_dict = NULL; - Py_XDECREF(var_k); - var_k = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_finetune); - Py_DECREF(par_finetune); - par_finetune = NULL; - Py_XDECREF(var_llama_model); - var_llama_model = NULL; - Py_XDECREF(var_freeze_vit); - var_freeze_vit = NULL; - Py_XDECREF(var_low_resource); - var_low_resource = NULL; - Py_XDECREF(var_max_txt_len); - var_max_txt_len = NULL; - Py_XDECREF(var_end_sym); - var_end_sym = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_ckpt_path); - var_ckpt_path = NULL; - Py_XDECREF(var_ckpt); - var_ckpt = NULL; - Py_XDECREF(var_current_model_dict); - var_current_model_dict = NULL; - Py_XDECREF(var_weights); - var_weights = NULL; - Py_XDECREF(var_new_state_dict); - var_new_state_dict = NULL; - Py_XDECREF(var_k); - var_k = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__10_trans_det() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__10_trans_det, - mod_consts[287], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_5d3730cffd30a603a90d37809e509118, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__11_trans_keypoint() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__11_trans_keypoint, - mod_consts[293], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_421a1f3164c7f8a0d45fec2238125564, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__12___init__, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - mod_consts[389], -#endif - codeobj_ea4311308622894ee092f9d1d78caed6, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__12___init__$$$function__1_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__12___init__$$$function__1_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[133], -#endif - codeobj_fdd0fdd61cda0cb17e895d6a30ef4152, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__13_vit_to_cpu() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__13_vit_to_cpu, - mod_consts[179], -#if PYTHON_VERSION >= 0x300 - mod_consts[390], -#endif - codeobj_8b8e1f84e9bf1152c5b6ccec24173b9e, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__14_encode_img() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__14_encode_img, - mod_consts[231], -#if PYTHON_VERSION >= 0x300 - mod_consts[391], -#endif - codeobj_49ea2443b67f8243bd66c0e5006f9f7f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__15_prompt_concat() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__15_prompt_concat, - mod_consts[264], -#if PYTHON_VERSION >= 0x300 - mod_consts[392], -#endif - codeobj_51ac6f6a34af3417d8c3c1759c4211b6, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__16_prompt_wrap(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__16_prompt_wrap, - mod_consts[248], -#if PYTHON_VERSION >= 0x300 - mod_consts[394], -#endif - codeobj_e6cbd6ab08e931bc9b9b941fe0172524, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__17_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__17_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[395], -#endif - codeobj_010242f3bfb425fd481def0b05eda19a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__18_from_config(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__18_from_config, - mod_consts[398], -#if PYTHON_VERSION >= 0x300 - mod_consts[399], -#endif - codeobj_3a4557b158ae92b2a85eacbc8373fbb9, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__1_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__1_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[375], -#endif - codeobj_2a6c8758471a94b0895819adf83231eb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$medomni, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__2_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__2_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[376], -#endif - codeobj_e7626200ed1c8391557645c1d2741317, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$medomni, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__3_replace_batchnorm_2d() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__3_replace_batchnorm_2d, - mod_consts[12], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_26640540576f00a7228ef8b7c4a4557c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__4_dice_loss() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__4_dice_loss, - mod_consts[50], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_f95e44d753f4300b9d1729fd5fe23665, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__5___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__5___init__, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - mod_consts[378], -#endif - codeobj_72e571477b5dc2bd38e0e86b0a0de60e, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__6_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__6_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[379], -#endif - codeobj_d10652caba20e67f8bd77f38c4e215f3, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__7___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__7___init__, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - mod_consts[380], -#endif - codeobj_a857b90746524b0f4e613f69ba28c483, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__8_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__8_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[381], -#endif - codeobj_be4d763165207bb6f34f3b001a052c77, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni$$$function__9_trans_seg() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni$$$function__9_trans_seg, - mod_consts[382], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_80a532cc5cda5fecebccb60ba68b1770, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$medomni[] = { - impl_models$medomni$$$function__12___init__$$$function__1_forward, - impl_models$medomni$$$function__1_forward, - impl_models$medomni$$$function__2_forward, - impl_models$medomni$$$function__3_replace_batchnorm_2d, - impl_models$medomni$$$function__4_dice_loss, - impl_models$medomni$$$function__5___init__, - impl_models$medomni$$$function__6_forward, - impl_models$medomni$$$function__7___init__, - impl_models$medomni$$$function__8_forward, - impl_models$medomni$$$function__9_trans_seg, - impl_models$medomni$$$function__10_trans_det, - impl_models$medomni$$$function__11_trans_keypoint, - impl_models$medomni$$$function__12___init__, - impl_models$medomni$$$function__13_vit_to_cpu, - impl_models$medomni$$$function__14_encode_img, - impl_models$medomni$$$function__15_prompt_concat, - impl_models$medomni$$$function__16_prompt_wrap, - impl_models$medomni$$$function__17_forward, - impl_models$medomni$$$function__18_from_config, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$medomni; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$medomni) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$medomni[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$medomni, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$medomni(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$medomni = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.medomni: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.medomni: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.medomni: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$medomni\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$medomni = MODULE_DICT(module_models$medomni); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$medomni, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$medomni, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$medomni, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$medomni, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$medomni, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$medomni); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$medomni); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - PyObject *tmp_import_from_3__module = NULL; - struct Nuitka_FrameObject *frame_777f64075f34e26db58464aa23f1612d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$medomni$$$class__1_GroupNorm_31 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_bf4ab9cbb92d186f405c3be3a733e29d_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$medomni$$$class__2_LayerNorm_39 = NULL; - struct Nuitka_FrameObject *frame_3aa613e03147c6f2399acab5c1305f7d_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_3aa613e03147c6f2399acab5c1305f7d_3 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *locals_models$medomni$$$class__3_FocalLoss_64 = NULL; - struct Nuitka_FrameObject *frame_d2f58e6bb06a4692c3656c24d85d021a_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *locals_models$medomni$$$class__4_MixedLoss_80 = NULL; - struct Nuitka_FrameObject *frame_bafd54298174b71f14fe34b504f2d310_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_bafd54298174b71f14fe34b504f2d310_5 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *locals_models$medomni$$$class__5_MedOmni_133 = NULL; - struct Nuitka_FrameObject *frame_804a3b1982fe4aa094fd88c0a9b78d3c_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[328], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[329], tmp_assign_source_2); - } - // Frame without reuse. - frame_777f64075f34e26db58464aa23f1612d = MAKE_MODULE_FRAME(codeobj_777f64075f34e26db58464aa23f1612d, module_models$medomni); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_777f64075f34e26db58464aa23f1612d); - assert(Py_REFCNT(frame_777f64075f34e26db58464aa23f1612d) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[330]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[330]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[331], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[330]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[330]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[332], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[333], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[86]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[86], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[334]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 2; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[334], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[5]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 4; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[335]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[336]; - tmp_level_name_4 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 5; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$medomni, - mod_consts[337], - mod_consts[11] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[337]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[337], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[338]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[339]; - tmp_level_name_5 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 6; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$medomni, - mod_consts[340], - mod_consts[11] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[340]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[340], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[341]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = Py_None; - tmp_level_name_6 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 7; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$medomni, - mod_consts[15], - mod_consts[11] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[15]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[342]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[343]; - tmp_level_name_7 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 9; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$medomni, - mod_consts[344], - mod_consts[11] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[344]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[344], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[345]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[346]; - tmp_level_name_8 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 10; - tmp_assign_source_11 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_11; - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$medomni, - mod_consts[347], - mod_consts[11] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[347]); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[347], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_6 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$medomni, - mod_consts[84], - mod_consts[11] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[84]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[84], tmp_assign_source_13); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_7; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[348]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[349]; - tmp_level_name_9 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 11; - tmp_import_name_from_7 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_import_name_from_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$medomni, - mod_consts[110], - mod_consts[11] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[110]); - } - - Py_DECREF(tmp_import_name_from_7); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[110], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_8; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[350]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = mod_consts[351]; - tmp_level_name_10 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 12; - tmp_import_name_from_8 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_import_name_from_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$medomni, - mod_consts[91], - mod_consts[11] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[91]); - } - - Py_DECREF(tmp_import_name_from_8); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[91], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_9; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[350]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[352]; - tmp_level_name_11 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 13; - tmp_import_name_from_9 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$medomni, - mod_consts[69], - mod_consts[11] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[69]); - } - - Py_DECREF(tmp_import_name_from_9); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[69], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_10; - PyObject *tmp_import_name_from_11; - PyObject *tmp_name_name_12; - PyObject *tmp_globals_arg_name_12; - PyObject *tmp_locals_arg_name_12; - PyObject *tmp_fromlist_name_12; - PyObject *tmp_level_name_12; - tmp_name_name_12 = mod_consts[353]; - tmp_globals_arg_name_12 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_12 = Py_None; - tmp_fromlist_name_12 = Py_None; - tmp_level_name_12 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 14; - tmp_import_name_from_11 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); - if (tmp_import_name_from_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_import_name_from_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$medomni, - mod_consts[15], - mod_consts[11] - ); - } else { - tmp_import_name_from_10 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[15]); - } - - Py_DECREF(tmp_import_name_from_11); - if (tmp_import_name_from_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$medomni, - mod_consts[354], - mod_consts[11] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[354]); - } - - Py_DECREF(tmp_import_name_from_10); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[43], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_name_name_13; - PyObject *tmp_globals_arg_name_13; - PyObject *tmp_locals_arg_name_13; - PyObject *tmp_fromlist_name_13; - PyObject *tmp_level_name_13; - tmp_name_name_13 = mod_consts[355]; - tmp_globals_arg_name_13 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_13 = Py_None; - tmp_fromlist_name_13 = Py_None; - tmp_level_name_13 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 15; - tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_name_13, tmp_globals_arg_name_13, tmp_locals_arg_name_13, tmp_fromlist_name_13, tmp_level_name_13); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[355], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_name_name_14; - PyObject *tmp_globals_arg_name_14; - PyObject *tmp_locals_arg_name_14; - PyObject *tmp_fromlist_name_14; - PyObject *tmp_level_name_14; - tmp_name_name_14 = mod_consts[356]; - tmp_globals_arg_name_14 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_14 = Py_None; - tmp_fromlist_name_14 = mod_consts[357]; - tmp_level_name_14 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 16; - tmp_assign_source_19 = IMPORT_MODULE5(tmp_name_name_14, tmp_globals_arg_name_14, tmp_locals_arg_name_14, tmp_fromlist_name_14, tmp_level_name_14); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_19; - } - // Tried code: - { - PyObject *tmp_assign_source_20; - PyObject *tmp_import_name_from_12; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_12 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$medomni, - mod_consts[192], - mod_consts[11] - ); - } else { - tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[192]); - } - - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[192], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_import_name_from_13; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_13 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$medomni, - mod_consts[358], - mod_consts[11] - ); - } else { - tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[358]); - } - - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[358], tmp_assign_source_21); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_import_name_from_14; - PyObject *tmp_name_name_15; - PyObject *tmp_globals_arg_name_15; - PyObject *tmp_locals_arg_name_15; - PyObject *tmp_fromlist_name_15; - PyObject *tmp_level_name_15; - tmp_name_name_15 = mod_consts[359]; - tmp_globals_arg_name_15 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_15 = Py_None; - tmp_fromlist_name_15 = mod_consts[360]; - tmp_level_name_15 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 17; - tmp_import_name_from_14 = IMPORT_MODULE5(tmp_name_name_15, tmp_globals_arg_name_15, tmp_locals_arg_name_15, tmp_fromlist_name_15, tmp_level_name_15); - if (tmp_import_name_from_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_14)) { - tmp_assign_source_22 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_14, - (PyObject *)moduledict_models$medomni, - mod_consts[361], - mod_consts[11] - ); - } else { - tmp_assign_source_22 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[361]); - } - - Py_DECREF(tmp_import_name_from_14); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[361], tmp_assign_source_22); - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_name_name_16; - PyObject *tmp_globals_arg_name_16; - PyObject *tmp_locals_arg_name_16; - PyObject *tmp_fromlist_name_16; - PyObject *tmp_level_name_16; - tmp_name_name_16 = mod_consts[362]; - tmp_globals_arg_name_16 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_16 = Py_None; - tmp_fromlist_name_16 = Py_None; - tmp_level_name_16 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 18; - tmp_assign_source_23 = IMPORT_MODULE5(tmp_name_name_16, tmp_globals_arg_name_16, tmp_locals_arg_name_16, tmp_fromlist_name_16, tmp_level_name_16); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[362], tmp_assign_source_23); - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_name_name_17; - PyObject *tmp_globals_arg_name_17; - PyObject *tmp_locals_arg_name_17; - PyObject *tmp_fromlist_name_17; - PyObject *tmp_level_name_17; - tmp_name_name_17 = mod_consts[363]; - tmp_globals_arg_name_17 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_17 = Py_None; - tmp_fromlist_name_17 = Py_None; - tmp_level_name_17 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 19; - tmp_assign_source_24 = IMPORT_MODULE5(tmp_name_name_17, tmp_globals_arg_name_17, tmp_locals_arg_name_17, tmp_fromlist_name_17, tmp_level_name_17); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[151], tmp_assign_source_24); - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_import_name_from_15; - PyObject *tmp_name_name_18; - PyObject *tmp_globals_arg_name_18; - PyObject *tmp_locals_arg_name_18; - PyObject *tmp_fromlist_name_18; - PyObject *tmp_level_name_18; - tmp_name_name_18 = mod_consts[364]; - tmp_globals_arg_name_18 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_18 = Py_None; - tmp_fromlist_name_18 = mod_consts[365]; - tmp_level_name_18 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 20; - tmp_import_name_from_15 = IMPORT_MODULE5(tmp_name_name_18, tmp_globals_arg_name_18, tmp_locals_arg_name_18, tmp_fromlist_name_18, tmp_level_name_18); - if (tmp_import_name_from_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_15)) { - tmp_assign_source_25 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_15, - (PyObject *)moduledict_models$medomni, - mod_consts[73], - mod_consts[11] - ); - } else { - tmp_assign_source_25 = IMPORT_NAME(tmp_import_name_from_15, mod_consts[73]); - } - - Py_DECREF(tmp_import_name_from_15); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[73], tmp_assign_source_25); - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_name_name_19; - PyObject *tmp_globals_arg_name_19; - PyObject *tmp_locals_arg_name_19; - PyObject *tmp_fromlist_name_19; - PyObject *tmp_level_name_19; - tmp_name_name_19 = mod_consts[366]; - tmp_globals_arg_name_19 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_19 = Py_None; - tmp_fromlist_name_19 = Py_None; - tmp_level_name_19 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 21; - tmp_assign_source_26 = IMPORT_MODULE5(tmp_name_name_19, tmp_globals_arg_name_19, tmp_locals_arg_name_19, tmp_fromlist_name_19, tmp_level_name_19); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[366], tmp_assign_source_26); - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_name_name_20; - PyObject *tmp_globals_arg_name_20; - PyObject *tmp_locals_arg_name_20; - PyObject *tmp_fromlist_name_20; - PyObject *tmp_level_name_20; - tmp_name_name_20 = mod_consts[367]; - tmp_globals_arg_name_20 = (PyObject *)moduledict_models$medomni; - tmp_locals_arg_name_20 = Py_None; - tmp_fromlist_name_20 = mod_consts[368]; - tmp_level_name_20 = mod_consts[11]; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 22; - tmp_assign_source_27 = IMPORT_MODULE5(tmp_name_name_20, tmp_globals_arg_name_20, tmp_locals_arg_name_20, tmp_fromlist_name_20, tmp_level_name_20); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_3__module == NULL); - tmp_import_from_3__module = tmp_assign_source_27; - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_import_name_from_16; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_16 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_16)) { - tmp_assign_source_28 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_16, - (PyObject *)moduledict_models$medomni, - mod_consts[139], - mod_consts[11] - ); - } else { - tmp_assign_source_28 = IMPORT_NAME(tmp_import_name_from_16, mod_consts[139]); - } - - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[139], tmp_assign_source_28); - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_import_name_from_17; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_17 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_17)) { - tmp_assign_source_29 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_17, - (PyObject *)moduledict_models$medomni, - mod_consts[137], - mod_consts[11] - ); - } else { - tmp_assign_source_29 = IMPORT_NAME(tmp_import_name_from_17, mod_consts[137]); - } - - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[137], tmp_assign_source_29); - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_import_name_from_18; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_18 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_18)) { - tmp_assign_source_30 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_18, - (PyObject *)moduledict_models$medomni, - mod_consts[369], - mod_consts[11] - ); - } else { - tmp_assign_source_30 = IMPORT_NAME(tmp_import_name_from_18, mod_consts[369]); - } - - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[369], tmp_assign_source_30); - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_import_name_from_19; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_19 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_19)) { - tmp_assign_source_31 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_19, - (PyObject *)moduledict_models$medomni, - mod_consts[370], - mod_consts[11] - ); - } else { - tmp_assign_source_31 = IMPORT_NAME(tmp_import_name_from_19, mod_consts[370]); - } - - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[370], tmp_assign_source_31); - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_import_name_from_20; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_20 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_20)) { - tmp_assign_source_32 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_20, - (PyObject *)moduledict_models$medomni, - mod_consts[371], - mod_consts[11] - ); - } else { - tmp_assign_source_32 = IMPORT_NAME(tmp_import_name_from_20, mod_consts[371]); - } - - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[371], tmp_assign_source_32); - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_import_name_from_21; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_21 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_21)) { - tmp_assign_source_33 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_21, - (PyObject *)moduledict_models$medomni, - mod_consts[372], - mod_consts[11] - ); - } else { - tmp_assign_source_33 = IMPORT_NAME(tmp_import_name_from_21, mod_consts[372]); - } - - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[372], tmp_assign_source_33); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[17]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_assign_source_34 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_34, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_34; - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_35 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_35; - } - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_36; - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[123]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[11]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_37 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_37; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[124]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[124]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_tuple_element_2 = mod_consts[17]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 31; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_38; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[126]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[128]; - tmp_getattr_default_1 = mod_consts[129]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[128]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 31; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_39; - } - branch_end_2:; - { - PyObject *tmp_assign_source_40; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$medomni$$$class__1_GroupNorm_31 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__1_GroupNorm_31, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[373]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__1_GroupNorm_31, mod_consts[328], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[17]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__1_GroupNorm_31, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2)) { - Py_XDECREF(cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2 = MAKE_FUNCTION_FRAME(codeobj_bf4ab9cbb92d186f405c3be3a733e29d, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2->m_type_description == NULL); - frame_bf4ab9cbb92d186f405c3be3a733e29d_2 = cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bf4ab9cbb92d186f405c3be3a733e29d_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bf4ab9cbb92d186f405c3be3a733e29d_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_7; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_dict_key_1 = mod_consts[3]; - tmp_expression_name_7 = PyObject_GetItem(locals_models$medomni$$$class__1_GroupNorm_31, mod_consts[5]); - - if (tmp_expression_name_7 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_7); - } - } - - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[374]); - Py_DECREF(tmp_expression_name_7); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_annotations_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__1_forward(tmp_annotations_1, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__1_GroupNorm_31, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bf4ab9cbb92d186f405c3be3a733e29d_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bf4ab9cbb92d186f405c3be3a733e29d_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bf4ab9cbb92d186f405c3be3a733e29d_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bf4ab9cbb92d186f405c3be3a733e29d_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bf4ab9cbb92d186f405c3be3a733e29d_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bf4ab9cbb92d186f405c3be3a733e29d_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_bf4ab9cbb92d186f405c3be3a733e29d_2 == cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2); - cache_frame_bf4ab9cbb92d186f405c3be3a733e29d_2 = NULL; - } - - assertFrameObject(frame_bf4ab9cbb92d186f405c3be3a733e29d_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_6; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__1_GroupNorm_31, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - branch_no_4:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[17]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$medomni$$$class__1_GroupNorm_31; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 31; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_41); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_40 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_40); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$medomni$$$class__1_GroupNorm_31); - locals_models$medomni$$$class__1_GroupNorm_31 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni$$$class__1_GroupNorm_31); - locals_models$medomni$$$class__1_GroupNorm_31 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 31; - goto try_except_handler_4; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_40); - } - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_42; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_8; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[76]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_assign_source_42 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_42, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_42; - } - { - PyObject *tmp_assign_source_43; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_43 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_43; - } - { - PyObject *tmp_assign_source_44; - tmp_assign_source_44 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_44; - } - { - PyObject *tmp_assign_source_45; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[123]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_9 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[11]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_45 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_45; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_10, mod_consts[124]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_46; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_11 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[124]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_tuple_element_6 = mod_consts[76]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 39; - tmp_assign_source_46 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_46; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_12 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_12, mod_consts[126]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[128]; - tmp_getattr_default_2 = mod_consts[129]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_13 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_13 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[128]); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 39; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_47; - } - branch_end_6:; - { - PyObject *tmp_assign_source_48; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$medomni$$$class__2_LayerNorm_39 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__2_LayerNorm_39, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[373]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__2_LayerNorm_39, mod_consts[328], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[76]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__2_LayerNorm_39, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_3aa613e03147c6f2399acab5c1305f7d_3)) { - Py_XDECREF(cache_frame_3aa613e03147c6f2399acab5c1305f7d_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3aa613e03147c6f2399acab5c1305f7d_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3aa613e03147c6f2399acab5c1305f7d_3 = MAKE_FUNCTION_FRAME(codeobj_3aa613e03147c6f2399acab5c1305f7d, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3aa613e03147c6f2399acab5c1305f7d_3->m_type_description == NULL); - frame_3aa613e03147c6f2399acab5c1305f7d_3 = cache_frame_3aa613e03147c6f2399acab5c1305f7d_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3aa613e03147c6f2399acab5c1305f7d_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3aa613e03147c6f2399acab5c1305f7d_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_14; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_dict_key_2 = mod_consts[3]; - tmp_expression_name_14 = PyObject_GetItem(locals_models$medomni$$$class__2_LayerNorm_39, mod_consts[5]); - - if (tmp_expression_name_14 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_14); - } - } - - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[374]); - Py_DECREF(tmp_expression_name_14); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - tmp_annotations_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__2_forward(tmp_annotations_2, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__2_LayerNorm_39, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3aa613e03147c6f2399acab5c1305f7d_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3aa613e03147c6f2399acab5c1305f7d_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3aa613e03147c6f2399acab5c1305f7d_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3aa613e03147c6f2399acab5c1305f7d_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3aa613e03147c6f2399acab5c1305f7d_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3aa613e03147c6f2399acab5c1305f7d_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_3aa613e03147c6f2399acab5c1305f7d_3 == cache_frame_3aa613e03147c6f2399acab5c1305f7d_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3aa613e03147c6f2399acab5c1305f7d_3); - cache_frame_3aa613e03147c6f2399acab5c1305f7d_3 = NULL; - } - - assertFrameObject(frame_3aa613e03147c6f2399acab5c1305f7d_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_9; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__2_LayerNorm_39, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - branch_no_8:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[76]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$medomni$$$class__2_LayerNorm_39; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 39; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_49); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_48 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_48); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$medomni$$$class__2_LayerNorm_39); - locals_models$medomni$$$class__2_LayerNorm_39 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni$$$class__2_LayerNorm_39); - locals_models$medomni$$$class__2_LayerNorm_39 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 39; - goto try_except_handler_7; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[76], tmp_assign_source_48); - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_50; - - - tmp_assign_source_50 = MAKE_FUNCTION_models$medomni$$$function__3_replace_batchnorm_2d(); - - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_50); - } - { - PyObject *tmp_assign_source_51; - - - tmp_assign_source_51 = MAKE_FUNCTION_models$medomni$$$function__4_dice_loss(); - - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[50], tmp_assign_source_51); - } - // Tried code: - { - PyObject *tmp_assign_source_52; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_15; - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[377]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_assign_source_52 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_52, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_52; - } - { - PyObject *tmp_assign_source_53; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_53 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_53; - } - { - PyObject *tmp_assign_source_54; - tmp_assign_source_54 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_54; - } - { - PyObject *tmp_assign_source_55; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[123]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_16 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[11]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_55 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_55; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_17 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[124]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_56; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_18 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[124]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_tuple_element_10 = mod_consts[47]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 64; - tmp_assign_source_56 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_56; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_19 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[126]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[128]; - tmp_getattr_default_3 = mod_consts[129]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_20; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_20 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_20 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[128]); - Py_DECREF(tmp_expression_name_20); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_10; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 64; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_10; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_57; - tmp_assign_source_57 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_57; - } - branch_end_10:; - { - PyObject *tmp_assign_source_58; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$medomni$$$class__3_FocalLoss_64 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__3_FocalLoss_64, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[47]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__3_FocalLoss_64, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - if (isFrameUnusable(cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4)) { - Py_XDECREF(cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4 = MAKE_FUNCTION_FRAME(codeobj_d2f58e6bb06a4692c3656c24d85d021a, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4->m_type_description == NULL); - frame_d2f58e6bb06a4692c3656c24d85d021a_4 = cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d2f58e6bb06a4692c3656c24d85d021a_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d2f58e6bb06a4692c3656c24d85d021a_4) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_3[1]; - - tmp_closure_3[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__5___init__(tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__3_FocalLoss_64, mod_consts[31], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__6_forward(); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__3_FocalLoss_64, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2f58e6bb06a4692c3656c24d85d021a_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2f58e6bb06a4692c3656c24d85d021a_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d2f58e6bb06a4692c3656c24d85d021a_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d2f58e6bb06a4692c3656c24d85d021a_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d2f58e6bb06a4692c3656c24d85d021a_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d2f58e6bb06a4692c3656c24d85d021a_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d2f58e6bb06a4692c3656c24d85d021a_4 == cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4); - cache_frame_d2f58e6bb06a4692c3656c24d85d021a_4 = NULL; - } - - assertFrameObject(frame_d2f58e6bb06a4692c3656c24d85d021a_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_12; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__3_FocalLoss_64, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - branch_no_12:; - { - PyObject *tmp_assign_source_59; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[47]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$medomni$$$class__3_FocalLoss_64; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 64; - tmp_assign_source_59 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_59); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_58 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_58); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_DECREF(locals_models$medomni$$$class__3_FocalLoss_64); - locals_models$medomni$$$class__3_FocalLoss_64 = NULL; - goto try_return_handler_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni$$$class__3_FocalLoss_64); - locals_models$medomni$$$class__3_FocalLoss_64 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 64; - goto try_except_handler_10; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_58); - } - goto try_end_6; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_60; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_21; - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[377]); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_assign_source_60 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_60, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_60; - } - { - PyObject *tmp_assign_source_61; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_61 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - tmp_assign_source_62 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[123]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_22 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[11]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_63 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_63; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_23; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_23 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_23, mod_consts[124]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_64; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_24 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[124]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_tuple_element_14 = mod_consts[164]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 80; - tmp_assign_source_64 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_64; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_25 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[126]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[128]; - tmp_getattr_default_4 = mod_consts[129]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_26 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_26 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[128]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_13; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 80; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_13; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_65; - tmp_assign_source_65 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_65; - } - branch_end_14:; - { - PyObject *tmp_assign_source_66; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$medomni$$$class__4_MixedLoss_80 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__4_MixedLoss_80, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[164]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__4_MixedLoss_80, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - if (isFrameUnusable(cache_frame_bafd54298174b71f14fe34b504f2d310_5)) { - Py_XDECREF(cache_frame_bafd54298174b71f14fe34b504f2d310_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bafd54298174b71f14fe34b504f2d310_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bafd54298174b71f14fe34b504f2d310_5 = MAKE_FUNCTION_FRAME(codeobj_bafd54298174b71f14fe34b504f2d310, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bafd54298174b71f14fe34b504f2d310_5->m_type_description == NULL); - frame_bafd54298174b71f14fe34b504f2d310_5 = cache_frame_bafd54298174b71f14fe34b504f2d310_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bafd54298174b71f14fe34b504f2d310_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bafd54298174b71f14fe34b504f2d310_5) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_4[1]; - - tmp_closure_4[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__7___init__(tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__4_MixedLoss_80, mod_consts[31], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__8_forward(); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__4_MixedLoss_80, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bafd54298174b71f14fe34b504f2d310_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bafd54298174b71f14fe34b504f2d310_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bafd54298174b71f14fe34b504f2d310_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bafd54298174b71f14fe34b504f2d310_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bafd54298174b71f14fe34b504f2d310_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bafd54298174b71f14fe34b504f2d310_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_bafd54298174b71f14fe34b504f2d310_5 == cache_frame_bafd54298174b71f14fe34b504f2d310_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bafd54298174b71f14fe34b504f2d310_5); - cache_frame_bafd54298174b71f14fe34b504f2d310_5 = NULL; - } - - assertFrameObject(frame_bafd54298174b71f14fe34b504f2d310_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_15; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__4_MixedLoss_80, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - branch_no_16:; - { - PyObject *tmp_assign_source_67; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[164]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$medomni$$$class__4_MixedLoss_80; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 80; - tmp_assign_source_67 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_67); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_66 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_66); - goto try_return_handler_15; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_DECREF(locals_models$medomni$$$class__4_MixedLoss_80); - locals_models$medomni$$$class__4_MixedLoss_80 = NULL; - goto try_return_handler_14; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni$$$class__4_MixedLoss_80); - locals_models$medomni$$$class__4_MixedLoss_80 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_14; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 80; - goto try_except_handler_13; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[164], tmp_assign_source_66); - } - goto try_end_7; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - { - PyObject *tmp_assign_source_68; - - - tmp_assign_source_68 = MAKE_FUNCTION_models$medomni$$$function__9_trans_seg(); - - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[382], tmp_assign_source_68); - } - { - PyObject *tmp_assign_source_69; - - - tmp_assign_source_69 = MAKE_FUNCTION_models$medomni$$$function__10_trans_det(); - - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[287], tmp_assign_source_69); - } - { - PyObject *tmp_assign_source_70; - - - tmp_assign_source_70 = MAKE_FUNCTION_models$medomni$$$function__11_trans_keypoint(); - - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[293], tmp_assign_source_70); - } - // Tried code: - { - PyObject *tmp_assign_source_71; - PyObject *tmp_tuple_element_17; - tmp_tuple_element_17 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[347]); - - if (unlikely(tmp_tuple_element_17 == NULL)) { - tmp_tuple_element_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[347]); - } - - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_assign_source_71 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_71, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_72 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_72; - } - { - PyObject *tmp_assign_source_73; - tmp_assign_source_73 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_73; - } - { - PyObject *tmp_assign_source_74; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[123]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_27 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[11]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_74 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_74; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_28 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[124]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_75; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_29 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[124]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_tuple_element_18 = mod_consts[383]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 133; - tmp_assign_source_75 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_75; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_30 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[126]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[128]; - tmp_getattr_default_5 = mod_consts[129]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_31 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_31 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[128]); - Py_DECREF(tmp_expression_name_31); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_16; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 133; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_16; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_76; - tmp_assign_source_76 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_76; - } - branch_end_18:; - { - PyObject *tmp_assign_source_77; - PyObject *tmp_called_name_10; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[344]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[344]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - - goto try_except_handler_16; - } - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 132; - tmp_called_name_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[384], - &PyTuple_GET_ITEM(mod_consts[385], 0) - ); - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - - goto try_except_handler_16; - } - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$medomni$$$class__5_MedOmni_133 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - tmp_dictset_value = mod_consts[383]; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - if (isFrameUnusable(cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6)) { - Py_XDECREF(cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6 = MAKE_FUNCTION_FRAME(codeobj_804a3b1982fe4aa094fd88c0a9b78d3c, module_models$medomni, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6->m_type_description == NULL); - frame_804a3b1982fe4aa094fd88c0a9b78d3c_6 = cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_804a3b1982fe4aa094fd88c0a9b78d3c_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_804a3b1982fe4aa094fd88c0a9b78d3c_6) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = PyDict_Copy(mod_consts[386]); - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[387], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - { - PyObject *tmp_defaults_1; - struct Nuitka_CellObject *tmp_closure_5[1]; - tmp_defaults_1 = mod_consts[388]; - Py_INCREF(tmp_defaults_1); - - tmp_closure_5[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__12___init__(tmp_defaults_1, tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[31], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__13_vit_to_cpu(); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[179], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__14_encode_img(); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[231], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__15_prompt_concat(); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[264], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[393]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__16_prompt_wrap(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[248], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 325; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni$$$function__17_forward(); - - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_called_name_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_defaults_3; - PyObject *tmp_classmethod_arg_1; - PyObject *tmp_defaults_4; - tmp_res = MAPPING_HAS_ITEM(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[396]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - tmp_condition_result_30 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - tmp_called_name_11 = PyObject_GetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[396]); - - if (unlikely(tmp_called_name_11 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[396]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - tmp_defaults_3 = mod_consts[397]; - Py_INCREF(tmp_defaults_3); - - - tmp_args_element_name_2 = MAKE_FUNCTION_models$medomni$$$function__18_from_config(tmp_defaults_3); - - frame_804a3b1982fe4aa094fd88c0a9b78d3c_6->m_frame.f_lineno = 486; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_2); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - goto condexpr_end_11; - condexpr_false_11:; - tmp_defaults_4 = mod_consts[397]; - Py_INCREF(tmp_defaults_4); - - - tmp_classmethod_arg_1 = MAKE_FUNCTION_models$medomni$$$function__18_from_config(tmp_defaults_4); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1); - Py_DECREF(tmp_classmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_11:; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[398], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_804a3b1982fe4aa094fd88c0a9b78d3c_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_804a3b1982fe4aa094fd88c0a9b78d3c_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_804a3b1982fe4aa094fd88c0a9b78d3c_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_804a3b1982fe4aa094fd88c0a9b78d3c_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_804a3b1982fe4aa094fd88c0a9b78d3c_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_804a3b1982fe4aa094fd88c0a9b78d3c_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_804a3b1982fe4aa094fd88c0a9b78d3c_6 == cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6); - cache_frame_804a3b1982fe4aa094fd88c0a9b78d3c_6 = NULL; - } - - assertFrameObject(frame_804a3b1982fe4aa094fd88c0a9b78d3c_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_18; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_31; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_31 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_31 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_31 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni$$$class__5_MedOmni_133, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - branch_no_20:; - { - PyObject *tmp_assign_source_78; - PyObject *tmp_called_name_12; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_12 = tmp_class_creation_5__metaclass; - tmp_tuple_element_20 = mod_consts[383]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$medomni$$$class__5_MedOmni_133; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 133; - tmp_assign_source_78 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_78); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_args_element_name_1 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_args_element_name_1); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_DECREF(locals_models$medomni$$$class__5_MedOmni_133); - locals_models$medomni$$$class__5_MedOmni_133 = NULL; - goto try_return_handler_17; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni$$$class__5_MedOmni_133); - locals_models$medomni$$$class__5_MedOmni_133 = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto try_except_handler_17; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 133; - goto try_except_handler_16; - outline_result_5:; - frame_777f64075f34e26db58464aa23f1612d->m_frame.f_lineno = 132; - tmp_assign_source_77 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - - goto try_except_handler_16; - } - UPDATE_STRING_DICT1(moduledict_models$medomni, (Nuitka_StringObject *)mod_consts[383], tmp_assign_source_77); - } - goto try_end_8; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_777f64075f34e26db58464aa23f1612d); -#endif - popFrameStack(); - - assertFrameObject(frame_777f64075f34e26db58464aa23f1612d); - - goto frame_no_exception_6; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_777f64075f34e26db58464aa23f1612d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_777f64075f34e26db58464aa23f1612d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_777f64075f34e26db58464aa23f1612d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_777f64075f34e26db58464aa23f1612d, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_6:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - - return module_models$medomni; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.medomni_bp.const b/medomni/models.build/module.models.medomni_bp.const deleted file mode 100644 index c9d97f0be491fe7bdf69ce299ea3be323ad9e44e..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.medomni_bp.const and /dev/null differ diff --git a/medomni/models.build/module.models.medomni_bp.cpp b/medomni/models.build/module.models.medomni_bp.cpp deleted file mode 100644 index a22108ef0424245cb160ce47f57747f5902cf5fa..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.medomni_bp.cpp +++ /dev/null @@ -1,38679 +0,0 @@ -/* Generated code for Python module 'models.medomni_bp' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$medomni_bp" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$medomni_bp; -PyDictObject *moduledict_models$medomni_bp; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[427]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.medomni_bp")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$medomni_bp(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.medomni_bp"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_9b154103e79061564ce08a43fe982301; -static PyCodeObject *codeobj_a23b435d9c357edb4040285571eceffb; -static PyCodeObject *codeobj_7e1dda8ee60d26582f97bb31596ad357; -static PyCodeObject *codeobj_b2b96fbed34f62b539d2c554c20d923d; -static PyCodeObject *codeobj_f5b91561ae1c4fa3afdef10fa21f1b7d; -static PyCodeObject *codeobj_61c6cd3e0de25dc41165ffa6ed32e42c; -static PyCodeObject *codeobj_ed9b4f20c21c660dd0d8fe8c995d8bb3; -static PyCodeObject *codeobj_df4c04242bced16e5cdef975c429cb8d; -static PyCodeObject *codeobj_63b85d45078d5c768ad6f82e6838a770; -static PyCodeObject *codeobj_ce5a7e5610b05275766f110c9eb7c5a7; -static PyCodeObject *codeobj_25d4492c6bc24c9ba55d89fcd7c18a51; -static PyCodeObject *codeobj_8e2d9ccb6d85da198b831c3a3c5e69c6; -static PyCodeObject *codeobj_6c800241dc87d02997e9d2e4b01fc079; -static PyCodeObject *codeobj_9f24eb05d199684a8b5a54133678fb42; -static PyCodeObject *codeobj_aee592ce980fa3c1d3fed78e1558148c; -static PyCodeObject *codeobj_59989aa3b41bd36889beee060e2da0b4; -static PyCodeObject *codeobj_f49b4cc387c566c587dd5b706722b99c; -static PyCodeObject *codeobj_4db878a8d04a4dfe8c38caaa351601be; -static PyCodeObject *codeobj_168b01bfd9d8202de2e66d125c81eec9; -static PyCodeObject *codeobj_cf7c573f3eabc09b380bf631954f6108; -static PyCodeObject *codeobj_b1ee5fd62d6c69da575619caa1d8e0c3; -static PyCodeObject *codeobj_d2f1eea242db134fa0b488a0ed0074d2; -static PyCodeObject *codeobj_fe557d162e569c6a186cf09bbb51e6fa; -static PyCodeObject *codeobj_678266b6b2faeb3dc81b89982e327d91; -static PyCodeObject *codeobj_e81ebbfb2ec3a1af6ddd6a3d2c75c165; -static PyCodeObject *codeobj_048bbd020f35504ab633cfd37d07e770; -static PyCodeObject *codeobj_3b40d46a4cb1e9e3d54dc40920fbf9d6; -static PyCodeObject *codeobj_40a21ff435291cacab2ca20091a7e59f; -static PyCodeObject *codeobj_213cbc07f24f34b89cdb18c9cf2e6690; -static PyCodeObject *codeobj_c18430faac4f931c946f463c136a2236; -static PyCodeObject *codeobj_b0b331f085277111601888195501fa13; -static PyCodeObject *codeobj_a45548cd58c2face9e36cbc89b979801; -static PyCodeObject *codeobj_30f7346d71ee32c85eb9e23ad4f81d69; -static PyCodeObject *codeobj_5d568379025a008913acddc22c837d7b; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[400]); CHECK_OBJECT(module_filename_obj); - codeobj_9b154103e79061564ce08a43fe982301 = MAKE_CODEOBJECT(module_filename_obj, 356, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[306], mod_consts[401], NULL, 1, 0, 0); - codeobj_a23b435d9c357edb4040285571eceffb = MAKE_CODEOBJECT(module_filename_obj, 350, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[403], NULL, 1, 0, 0); - codeobj_7e1dda8ee60d26582f97bb31596ad357 = MAKE_CODEOBJECT(module_filename_obj, 293, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[404], NULL, 1, 0, 0); - codeobj_b2b96fbed34f62b539d2c554c20d923d = MAKE_CODEOBJECT(module_filename_obj, 457, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[405], NULL, 1, 0, 0); - codeobj_f5b91561ae1c4fa3afdef10fa21f1b7d = MAKE_CODEOBJECT(module_filename_obj, 371, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[406], NULL, 1, 0, 0); - codeobj_61c6cd3e0de25dc41165ffa6ed32e42c = MAKE_CODEOBJECT(module_filename_obj, 372, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[406], NULL, 1, 0, 0); - codeobj_ed9b4f20c21c660dd0d8fe8c995d8bb3 = MAKE_CODEOBJECT(module_filename_obj, 362, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[407], NULL, 1, 0, 0); - codeobj_df4c04242bced16e5cdef975c429cb8d = MAKE_CODEOBJECT(module_filename_obj, 375, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[402], mod_consts[408], NULL, 1, 0, 0); - codeobj_63b85d45078d5c768ad6f82e6838a770 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[409], NULL, NULL, 0, 0, 0); - codeobj_ce5a7e5610b05275766f110c9eb7c5a7 = MAKE_CODEOBJECT(module_filename_obj, 214, CO_OPTIMIZED | CO_NOFREE, mod_consts[125], mod_consts[410], NULL, 0, 0, 0); - codeobj_25d4492c6bc24c9ba55d89fcd7c18a51 = MAKE_CODEOBJECT(module_filename_obj, 64, CO_NOFREE, mod_consts[47], mod_consts[410], NULL, 0, 0, 0); - codeobj_8e2d9ccb6d85da198b831c3a3c5e69c6 = MAKE_CODEOBJECT(module_filename_obj, 31, CO_NOFREE, mod_consts[17], mod_consts[410], NULL, 0, 0, 0); - codeobj_6c800241dc87d02997e9d2e4b01fc079 = MAKE_CODEOBJECT(module_filename_obj, 39, CO_NOFREE, mod_consts[76], mod_consts[410], NULL, 0, 0, 0); - codeobj_9f24eb05d199684a8b5a54133678fb42 = MAKE_CODEOBJECT(module_filename_obj, 133, CO_NOFREE, mod_consts[383], mod_consts[410], NULL, 0, 0, 0); - codeobj_aee592ce980fa3c1d3fed78e1558148c = MAKE_CODEOBJECT(module_filename_obj, 80, CO_NOFREE, mod_consts[164], mod_consts[410], NULL, 0, 0, 0); - codeobj_59989aa3b41bd36889beee060e2da0b4 = MAKE_CODEOBJECT(module_filename_obj, 81, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[31], mod_consts[411], mod_consts[410], 3, 0, 0); - codeobj_f49b4cc387c566c587dd5b706722b99c = MAKE_CODEOBJECT(module_filename_obj, 138, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[31], mod_consts[412], mod_consts[410], 7, 0, 0); - codeobj_4db878a8d04a4dfe8c38caaa351601be = MAKE_CODEOBJECT(module_filename_obj, 65, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[31], mod_consts[413], mod_consts[410], 2, 0, 0); - codeobj_168b01bfd9d8202de2e66d125c81eec9 = MAKE_CODEOBJECT(module_filename_obj, 56, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[50], mod_consts[414], NULL, 2, 0, 0); - codeobj_cf7c573f3eabc09b380bf631954f6108 = MAKE_CODEOBJECT(module_filename_obj, 282, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[231], mod_consts[415], NULL, 4, 0, 0); - codeobj_b1ee5fd62d6c69da575619caa1d8e0c3 = MAKE_CODEOBJECT(module_filename_obj, 86, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[416], NULL, 3, 0, 0); - codeobj_d2f1eea242db134fa0b488a0ed0074d2 = MAKE_CODEOBJECT(module_filename_obj, 69, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[417], NULL, 3, 0, 0); - codeobj_fe557d162e569c6a186cf09bbb51e6fa = MAKE_CODEOBJECT(module_filename_obj, 345, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[418], NULL, 2, 0, 0); - codeobj_678266b6b2faeb3dc81b89982e327d91 = MAKE_CODEOBJECT(module_filename_obj, 215, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[419], mod_consts[410], 2, 0, 0); - codeobj_e81ebbfb2ec3a1af6ddd6a3d2c75c165 = MAKE_CODEOBJECT(module_filename_obj, 34, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[420], mod_consts[410], 2, 0, 0); - codeobj_048bbd020f35504ab633cfd37d07e770 = MAKE_CODEOBJECT(module_filename_obj, 42, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[2], mod_consts[420], mod_consts[410], 2, 0, 0); - codeobj_3b40d46a4cb1e9e3d54dc40920fbf9d6 = MAKE_CODEOBJECT(module_filename_obj, 487, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[398], mod_consts[421], NULL, 3, 0, 0); - codeobj_40a21ff435291cacab2ca20091a7e59f = MAKE_CODEOBJECT(module_filename_obj, 315, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[264], mod_consts[422], NULL, 4, 0, 0); - codeobj_213cbc07f24f34b89cdb18c9cf2e6690 = MAKE_CODEOBJECT(module_filename_obj, 325, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[248], mod_consts[423], NULL, 6, 0, 0); - codeobj_c18430faac4f931c946f463c136a2236 = MAKE_CODEOBJECT(module_filename_obj, 47, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[12], mod_consts[424], NULL, 1, 0, 0); - codeobj_b0b331f085277111601888195501fa13 = MAKE_CODEOBJECT(module_filename_obj, 104, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[287], mod_consts[425], NULL, 2, 0, 0); - codeobj_a45548cd58c2face9e36cbc89b979801 = MAKE_CODEOBJECT(module_filename_obj, 118, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[293], mod_consts[425], NULL, 2, 0, 0); - codeobj_30f7346d71ee32c85eb9e23ad4f81d69 = MAKE_CODEOBJECT(module_filename_obj, 90, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[382], mod_consts[425], NULL, 2, 0, 0); - codeobj_5d568379025a008913acddc22c837d7b = MAKE_CODEOBJECT(module_filename_obj, 276, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[179], mod_consts[426], NULL, 1, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_GENERATOR_models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__10_trans_det(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__11_trans_keypoint(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__12___init__$$$function__1_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__13_vit_to_cpu(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__14_encode_img(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__15_prompt_concat(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__16_prompt_wrap(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__17_forward(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__18_from_config(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__1_forward(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__2_forward(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__3_replace_batchnorm_2d(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__4_dice_loss(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__5___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__6_forward(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__7___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__8_forward(); - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__9_trans_seg(); - - -// The module function definitions. -static PyObject *impl_models$medomni_bp$$$function__1_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_orig_type = NULL; - PyObject *var_ret = NULL; - struct Nuitka_FrameObject *frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165)) { - Py_XDECREF(cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165 = MAKE_FUNCTION_FRAME(codeobj_e81ebbfb2ec3a1af6ddd6a3d2c75c165, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165->m_type_description == NULL); - frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165 = cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[0]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_orig_type == NULL); - var_orig_type = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[2]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_x; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[4]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165->m_frame.f_lineno = 36; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165->m_frame.f_lineno = 36; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_ret == NULL); - var_ret = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_ret); - tmp_called_instance_1 = var_ret; - CHECK_OBJECT(var_orig_type); - tmp_args_element_name_3 = var_orig_type; - frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165->m_frame.f_lineno = 37; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[4], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165, - type_description_1, - par_self, - par_x, - var_orig_type, - var_ret, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165 == cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); - cache_frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165 = NULL; - } - - assertFrameObject(frame_e81ebbfb2ec3a1af6ddd6a3d2c75c165); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__2_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_orig_type = NULL; - PyObject *var_ret = NULL; - struct Nuitka_FrameObject *frame_048bbd020f35504ab633cfd37d07e770; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_048bbd020f35504ab633cfd37d07e770 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_048bbd020f35504ab633cfd37d07e770)) { - Py_XDECREF(cache_frame_048bbd020f35504ab633cfd37d07e770); - -#if _DEBUG_REFCOUNTS - if (cache_frame_048bbd020f35504ab633cfd37d07e770 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_048bbd020f35504ab633cfd37d07e770 = MAKE_FUNCTION_FRAME(codeobj_048bbd020f35504ab633cfd37d07e770, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_048bbd020f35504ab633cfd37d07e770->m_type_description == NULL); - frame_048bbd020f35504ab633cfd37d07e770 = cache_frame_048bbd020f35504ab633cfd37d07e770; - - // Push the new frame as the currently active one. - pushFrameStack(frame_048bbd020f35504ab633cfd37d07e770); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_048bbd020f35504ab633cfd37d07e770) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[0]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_orig_type == NULL); - var_orig_type = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_2 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[2]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_x; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[4]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_048bbd020f35504ab633cfd37d07e770->m_frame.f_lineno = 44; - tmp_args_element_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_048bbd020f35504ab633cfd37d07e770->m_frame.f_lineno = 44; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - assert(var_ret == NULL); - var_ret = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_ret); - tmp_called_instance_1 = var_ret; - CHECK_OBJECT(var_orig_type); - tmp_args_element_name_3 = var_orig_type; - frame_048bbd020f35504ab633cfd37d07e770->m_frame.f_lineno = 45; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[4], tmp_args_element_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_048bbd020f35504ab633cfd37d07e770); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_048bbd020f35504ab633cfd37d07e770); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_048bbd020f35504ab633cfd37d07e770); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_048bbd020f35504ab633cfd37d07e770, exception_lineno); - } else if (exception_tb->tb_frame != &frame_048bbd020f35504ab633cfd37d07e770->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_048bbd020f35504ab633cfd37d07e770, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_048bbd020f35504ab633cfd37d07e770, - type_description_1, - par_self, - par_x, - var_orig_type, - var_ret, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_048bbd020f35504ab633cfd37d07e770 == cache_frame_048bbd020f35504ab633cfd37d07e770) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_048bbd020f35504ab633cfd37d07e770); - cache_frame_048bbd020f35504ab633cfd37d07e770 = NULL; - } - - assertFrameObject(frame_048bbd020f35504ab633cfd37d07e770); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_orig_type); - var_orig_type = NULL; - Py_XDECREF(var_ret); - var_ret = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__3_replace_batchnorm_2d(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - PyObject *var_name = NULL; - PyObject *var_module = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_c18430faac4f931c946f463c136a2236; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - int tmp_res; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_c18430faac4f931c946f463c136a2236 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c18430faac4f931c946f463c136a2236)) { - Py_XDECREF(cache_frame_c18430faac4f931c946f463c136a2236); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c18430faac4f931c946f463c136a2236 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c18430faac4f931c946f463c136a2236 = MAKE_FUNCTION_FRAME(codeobj_c18430faac4f931c946f463c136a2236, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c18430faac4f931c946f463c136a2236->m_type_description == NULL); - frame_c18430faac4f931c946f463c136a2236 = cache_frame_c18430faac4f931c946f463c136a2236; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c18430faac4f931c946f463c136a2236); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c18430faac4f931c946f463c136a2236) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - tmp_called_name_1 = (PyObject *)&PyReversed_Type; - CHECK_OBJECT(par_model); - tmp_expression_name_1 = par_model; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[7]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_c18430faac4f931c946f463c136a2236->m_frame.f_lineno = 48; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[8]); - Py_DECREF(tmp_called_instance_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_c18430faac4f931c946f463c136a2236->m_frame.f_lineno = 48; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 48; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_6; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_module; - var_module = tmp_assign_source_7; - Py_INCREF(var_module); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_len_arg_1; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_tmp_condition_result_1_object_1; - CHECK_OBJECT(var_module); - tmp_called_instance_2 = var_module; - frame_c18430faac4f931c946f463c136a2236->m_frame.f_lineno = 49; - tmp_list_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[10]); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_len_arg_1 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_len_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_compexpr_left_1 = BUILTIN_LEN(tmp_len_arg_1); - Py_DECREF(tmp_len_arg_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_1 = mod_consts[11]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - assert(!(tmp_tmp_condition_result_1_object_1 == NULL)); - tmp_condition_result_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1) == 1; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_ass_subscript_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (var_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_2 = var_module; - frame_c18430faac4f931c946f463c136a2236->m_frame.f_lineno = 50; - tmp_ass_subvalue_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_model == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = par_model; - tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[7]); - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_name); - tmp_ass_subscript_1 = var_name; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_3; - if (var_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_isinstance_inst_1 = var_module; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[16]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_called_name_3; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_ass_subscript_2; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_dict_key_1 = mod_consts[18]; - tmp_dict_value_1 = mod_consts[19]; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_4; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[20]; - if (var_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[13]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_4 = var_module; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[21]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_1); - goto try_except_handler_2; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_c18430faac4f931c946f463c136a2236->m_frame.f_lineno = 53; - tmp_ass_subvalue_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_model == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_model; - tmp_ass_subscribed_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[7]); - if (tmp_ass_subscribed_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_2); - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_name); - tmp_ass_subscript_2 = var_name; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscribed_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - } - branch_no_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (par_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 54; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = par_model; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c18430faac4f931c946f463c136a2236); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c18430faac4f931c946f463c136a2236); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c18430faac4f931c946f463c136a2236); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c18430faac4f931c946f463c136a2236, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c18430faac4f931c946f463c136a2236->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c18430faac4f931c946f463c136a2236, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c18430faac4f931c946f463c136a2236, - type_description_1, - par_model, - var_name, - var_module - ); - - - // Release cached frame if used for exception. - if (frame_c18430faac4f931c946f463c136a2236 == cache_frame_c18430faac4f931c946f463c136a2236) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c18430faac4f931c946f463c136a2236); - cache_frame_c18430faac4f931c946f463c136a2236 = NULL; - } - - assertFrameObject(frame_c18430faac4f931c946f463c136a2236); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_module); - var_module = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_module); - var_module = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__4_dice_loss(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *par_target = python_pars[1]; - PyObject *var_smooth = NULL; - PyObject *var_iflat = NULL; - PyObject *var_tflat = NULL; - PyObject *var_intersection = NULL; - struct Nuitka_FrameObject *frame_168b01bfd9d8202de2e66d125c81eec9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_168b01bfd9d8202de2e66d125c81eec9 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_168b01bfd9d8202de2e66d125c81eec9)) { - Py_XDECREF(cache_frame_168b01bfd9d8202de2e66d125c81eec9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_168b01bfd9d8202de2e66d125c81eec9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_168b01bfd9d8202de2e66d125c81eec9 = MAKE_FUNCTION_FRAME(codeobj_168b01bfd9d8202de2e66d125c81eec9, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_168b01bfd9d8202de2e66d125c81eec9->m_type_description == NULL); - frame_168b01bfd9d8202de2e66d125c81eec9 = cache_frame_168b01bfd9d8202de2e66d125c81eec9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_168b01bfd9d8202de2e66d125c81eec9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_168b01bfd9d8202de2e66d125c81eec9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_168b01bfd9d8202de2e66d125c81eec9->m_frame.f_lineno = 57; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[22], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[23]; - assert(var_smooth == NULL); - Py_INCREF(tmp_assign_source_2); - var_smooth = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_input); - tmp_called_instance_2 = par_input; - frame_168b01bfd9d8202de2e66d125c81eec9->m_frame.f_lineno = 59; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[24], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_iflat == NULL); - var_iflat = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_target); - tmp_called_instance_3 = par_target; - frame_168b01bfd9d8202de2e66d125c81eec9->m_frame.f_lineno = 60; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[24], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_tflat == NULL); - var_tflat = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_4; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_iflat); - tmp_left_name_1 = var_iflat; - CHECK_OBJECT(var_tflat); - tmp_right_name_1 = var_tflat; - tmp_called_instance_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_168b01bfd9d8202de2e66d125c81eec9->m_frame.f_lineno = 61; - tmp_assign_source_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[26]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_intersection == NULL); - var_intersection = tmp_assign_source_5; - } - { - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_called_instance_5; - PyObject *tmp_right_name_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_right_name_6; - tmp_left_name_4 = mod_consts[27]; - CHECK_OBJECT(var_intersection); - tmp_right_name_2 = var_intersection; - tmp_left_name_3 = BINARY_OPERATION_MULT_OBJECT_FLOAT_OBJECT(tmp_left_name_4, tmp_right_name_2); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_smooth); - tmp_right_name_3 = var_smooth; - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_FLOAT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_iflat == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[28]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = var_iflat; - frame_168b01bfd9d8202de2e66d125c81eec9->m_frame.f_lineno = 62; - tmp_left_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[26]); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_tflat == NULL) { - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = var_tflat; - frame_168b01bfd9d8202de2e66d125c81eec9->m_frame.f_lineno = 62; - tmp_right_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[26]); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_5); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_right_name_5); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_smooth == NULL) { - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = var_smooth; - tmp_right_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_6); - Py_DECREF(tmp_left_name_5); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_4); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_168b01bfd9d8202de2e66d125c81eec9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_168b01bfd9d8202de2e66d125c81eec9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_168b01bfd9d8202de2e66d125c81eec9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_168b01bfd9d8202de2e66d125c81eec9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_168b01bfd9d8202de2e66d125c81eec9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_168b01bfd9d8202de2e66d125c81eec9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_168b01bfd9d8202de2e66d125c81eec9, - type_description_1, - par_input, - par_target, - var_smooth, - var_iflat, - var_tflat, - var_intersection - ); - - - // Release cached frame if used for exception. - if (frame_168b01bfd9d8202de2e66d125c81eec9 == cache_frame_168b01bfd9d8202de2e66d125c81eec9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_168b01bfd9d8202de2e66d125c81eec9); - cache_frame_168b01bfd9d8202de2e66d125c81eec9 = NULL; - } - - assertFrameObject(frame_168b01bfd9d8202de2e66d125c81eec9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_smooth); - var_smooth = NULL; - Py_XDECREF(var_iflat); - var_iflat = NULL; - Py_XDECREF(var_tflat); - var_tflat = NULL; - Py_XDECREF(var_intersection); - var_intersection = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_smooth); - var_smooth = NULL; - Py_XDECREF(var_iflat); - var_iflat = NULL; - Py_XDECREF(var_tflat); - var_tflat = NULL; - Py_XDECREF(var_intersection); - var_intersection = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__5___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_gamma = python_pars[1]; - struct Nuitka_FrameObject *frame_4db878a8d04a4dfe8c38caaa351601be; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_4db878a8d04a4dfe8c38caaa351601be = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4db878a8d04a4dfe8c38caaa351601be)) { - Py_XDECREF(cache_frame_4db878a8d04a4dfe8c38caaa351601be); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4db878a8d04a4dfe8c38caaa351601be == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4db878a8d04a4dfe8c38caaa351601be = MAKE_FUNCTION_FRAME(codeobj_4db878a8d04a4dfe8c38caaa351601be, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4db878a8d04a4dfe8c38caaa351601be->m_type_description == NULL); - frame_4db878a8d04a4dfe8c38caaa351601be = cache_frame_4db878a8d04a4dfe8c38caaa351601be; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4db878a8d04a4dfe8c38caaa351601be); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4db878a8d04a4dfe8c38caaa351601be) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_4db878a8d04a4dfe8c38caaa351601be->m_frame.f_lineno = 66; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[31]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_gamma); - tmp_assattr_name_1 = par_gamma; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[32], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4db878a8d04a4dfe8c38caaa351601be); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4db878a8d04a4dfe8c38caaa351601be); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4db878a8d04a4dfe8c38caaa351601be, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4db878a8d04a4dfe8c38caaa351601be->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4db878a8d04a4dfe8c38caaa351601be, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4db878a8d04a4dfe8c38caaa351601be, - type_description_1, - par_self, - par_gamma, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_4db878a8d04a4dfe8c38caaa351601be == cache_frame_4db878a8d04a4dfe8c38caaa351601be) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4db878a8d04a4dfe8c38caaa351601be); - cache_frame_4db878a8d04a4dfe8c38caaa351601be = NULL; - } - - assertFrameObject(frame_4db878a8d04a4dfe8c38caaa351601be); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__6_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_max_val = NULL; - PyObject *var_loss = NULL; - PyObject *var_invprobs = NULL; - struct Nuitka_FrameObject *frame_d2f1eea242db134fa0b488a0ed0074d2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_d2f1eea242db134fa0b488a0ed0074d2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d2f1eea242db134fa0b488a0ed0074d2)) { - Py_XDECREF(cache_frame_d2f1eea242db134fa0b488a0ed0074d2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d2f1eea242db134fa0b488a0ed0074d2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d2f1eea242db134fa0b488a0ed0074d2 = MAKE_FUNCTION_FRAME(codeobj_d2f1eea242db134fa0b488a0ed0074d2, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d2f1eea242db134fa0b488a0ed0074d2->m_type_description == NULL); - frame_d2f1eea242db134fa0b488a0ed0074d2 = cache_frame_d2f1eea242db134fa0b488a0ed0074d2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d2f1eea242db134fa0b488a0ed0074d2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d2f1eea242db134fa0b488a0ed0074d2) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 70; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[33]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_called_instance_2 = par_input; - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 70; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[33]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_4; - tmp_expression_name_1 = mod_consts[34]; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[35]); - assert(!(tmp_called_name_1 == NULL)); - if (par_target == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_target; - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 72; - tmp_args_element_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[33]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_input; - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 72; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[33]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 72; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 71; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_make_exception_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 71; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 71; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_operand_name_2; - PyObject *tmp_kwargs_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_2 = par_input; - tmp_expression_name_2 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_2); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[38]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[39]); - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 73; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_max_val == NULL); - var_max_val = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_called_instance_5; - PyObject *tmp_left_name_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_operand_name_3; - PyObject *tmp_right_name_5; - PyObject *tmp_called_instance_7; - PyObject *tmp_left_name_6; - PyObject *tmp_operand_name_4; - PyObject *tmp_right_name_6; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = par_input; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = par_target; - tmp_right_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_left_name_2 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_max_val); - tmp_right_name_3 = var_max_val; - tmp_left_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_max_val == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_3 = var_max_val; - tmp_called_instance_6 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_3); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 75; - tmp_left_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[41]); - Py_DECREF(tmp_called_instance_6); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_4 = par_input; - tmp_left_name_6 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_4); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_max_val == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = var_max_val; - tmp_called_instance_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_left_name_6); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 75; - tmp_right_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[41]); - Py_DECREF(tmp_called_instance_7); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 75; - tmp_right_name_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[42]); - Py_DECREF(tmp_called_instance_5); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 75; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_4); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_4); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_7; - PyObject *tmp_operand_name_5; - PyObject *tmp_right_name_7; - PyObject *tmp_left_name_8; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_8; - PyObject *tmp_right_name_9; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[44]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_5 = par_input; - tmp_left_name_7 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_5); - if (tmp_left_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_left_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_9 = par_target; - tmp_right_name_8 = mod_consts[27]; - tmp_left_name_8 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_9, tmp_right_name_8); - if (tmp_left_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_left_name_7); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_9 = mod_consts[23]; - tmp_right_name_7 = BINARY_OPERATION_SUB_OBJECT_OBJECT_FLOAT(tmp_left_name_8, tmp_right_name_9); - Py_DECREF(tmp_left_name_8); - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_left_name_7); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_left_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 76; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_invprobs == NULL); - var_invprobs = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_10; - PyObject *tmp_called_instance_8; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_10; - PyObject *tmp_expression_name_4; - PyObject *tmp_right_name_11; - CHECK_OBJECT(var_invprobs); - tmp_left_name_11 = var_invprobs; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_right_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[32]); - if (tmp_right_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_8 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_11, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 77; - tmp_left_name_10 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[41]); - Py_DECREF(tmp_called_instance_8); - if (tmp_left_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_loss); - tmp_right_name_11 = var_loss; - tmp_assign_source_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_10, tmp_right_name_11); - Py_DECREF(tmp_left_name_10); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_loss; - var_loss = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_9; - CHECK_OBJECT(var_loss); - tmp_called_instance_9 = var_loss; - frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame.f_lineno = 78; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[45]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2f1eea242db134fa0b488a0ed0074d2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2f1eea242db134fa0b488a0ed0074d2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2f1eea242db134fa0b488a0ed0074d2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d2f1eea242db134fa0b488a0ed0074d2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d2f1eea242db134fa0b488a0ed0074d2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d2f1eea242db134fa0b488a0ed0074d2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d2f1eea242db134fa0b488a0ed0074d2, - type_description_1, - par_self, - par_input, - par_target, - var_max_val, - var_loss, - var_invprobs - ); - - - // Release cached frame if used for exception. - if (frame_d2f1eea242db134fa0b488a0ed0074d2 == cache_frame_d2f1eea242db134fa0b488a0ed0074d2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d2f1eea242db134fa0b488a0ed0074d2); - cache_frame_d2f1eea242db134fa0b488a0ed0074d2 = NULL; - } - - assertFrameObject(frame_d2f1eea242db134fa0b488a0ed0074d2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_max_val); - var_max_val = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_invprobs); - var_invprobs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_max_val); - var_max_val = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_invprobs); - var_invprobs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_alpha = python_pars[1]; - PyObject *par_gamma = python_pars[2]; - struct Nuitka_FrameObject *frame_59989aa3b41bd36889beee060e2da0b4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_59989aa3b41bd36889beee060e2da0b4 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_59989aa3b41bd36889beee060e2da0b4)) { - Py_XDECREF(cache_frame_59989aa3b41bd36889beee060e2da0b4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_59989aa3b41bd36889beee060e2da0b4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_59989aa3b41bd36889beee060e2da0b4 = MAKE_FUNCTION_FRAME(codeobj_59989aa3b41bd36889beee060e2da0b4, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_59989aa3b41bd36889beee060e2da0b4->m_type_description == NULL); - frame_59989aa3b41bd36889beee060e2da0b4 = cache_frame_59989aa3b41bd36889beee060e2da0b4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_59989aa3b41bd36889beee060e2da0b4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_59989aa3b41bd36889beee060e2da0b4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_59989aa3b41bd36889beee060e2da0b4->m_frame.f_lineno = 82; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[31]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_alpha); - tmp_assattr_name_1 = par_alpha; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[46], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_assattr_target_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gamma); - tmp_args_element_name_1 = par_gamma; - frame_59989aa3b41bd36889beee060e2da0b4->m_frame.f_lineno = 84; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[48], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_59989aa3b41bd36889beee060e2da0b4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_59989aa3b41bd36889beee060e2da0b4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_59989aa3b41bd36889beee060e2da0b4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_59989aa3b41bd36889beee060e2da0b4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_59989aa3b41bd36889beee060e2da0b4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_59989aa3b41bd36889beee060e2da0b4, - type_description_1, - par_self, - par_alpha, - par_gamma, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_59989aa3b41bd36889beee060e2da0b4 == cache_frame_59989aa3b41bd36889beee060e2da0b4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_59989aa3b41bd36889beee060e2da0b4); - cache_frame_59989aa3b41bd36889beee060e2da0b4 = NULL; - } - - assertFrameObject(frame_59989aa3b41bd36889beee060e2da0b4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_alpha); - Py_DECREF(par_alpha); - par_alpha = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_alpha); - Py_DECREF(par_alpha); - par_alpha = NULL; - CHECK_OBJECT(par_gamma); - Py_DECREF(par_gamma); - par_gamma = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__8_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_loss = NULL; - struct Nuitka_FrameObject *frame_b1ee5fd62d6c69da575619caa1d8e0c3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3)) { - Py_XDECREF(cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3 = MAKE_FUNCTION_FRAME(codeobj_b1ee5fd62d6c69da575619caa1d8e0c3, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3->m_type_description == NULL); - frame_b1ee5fd62d6c69da575619caa1d8e0c3 = cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b1ee5fd62d6c69da575619caa1d8e0c3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b1ee5fd62d6c69da575619caa1d8e0c3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[46]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_b1ee5fd62d6c69da575619caa1d8e0c3->m_frame.f_lineno = 87; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_right_name_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[48], - call_args - ); - } - - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[42]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[50]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[50]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[37]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_input; - if (par_target == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[36]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_target; - frame_b1ee5fd62d6c69da575619caa1d8e0c3->m_frame.f_lineno = 87; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_b1ee5fd62d6c69da575619caa1d8e0c3->m_frame.f_lineno = 87; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_loss); - tmp_called_instance_2 = var_loss; - frame_b1ee5fd62d6c69da575619caa1d8e0c3->m_frame.f_lineno = 88; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[45]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b1ee5fd62d6c69da575619caa1d8e0c3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b1ee5fd62d6c69da575619caa1d8e0c3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b1ee5fd62d6c69da575619caa1d8e0c3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b1ee5fd62d6c69da575619caa1d8e0c3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b1ee5fd62d6c69da575619caa1d8e0c3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b1ee5fd62d6c69da575619caa1d8e0c3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b1ee5fd62d6c69da575619caa1d8e0c3, - type_description_1, - par_self, - par_input, - par_target, - var_loss - ); - - - // Release cached frame if used for exception. - if (frame_b1ee5fd62d6c69da575619caa1d8e0c3 == cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3); - cache_frame_b1ee5fd62d6c69da575619caa1d8e0c3 = NULL; - } - - assertFrameObject(frame_b1ee5fd62d6c69da575619caa1d8e0c3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__9_trans_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_sample_num = python_pars[0]; - PyObject *par_bsz = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_c_bsz = NULL; - PyObject *var_num1 = NULL; - PyObject *var_num2 = NULL; - PyObject *var_num3 = NULL; - PyObject *var_c4 = NULL; - PyObject *var_num = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_30f7346d71ee32c85eb9e23ad4f81d69; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_30f7346d71ee32c85eb9e23ad4f81d69 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_30f7346d71ee32c85eb9e23ad4f81d69)) { - Py_XDECREF(cache_frame_30f7346d71ee32c85eb9e23ad4f81d69); - -#if _DEBUG_REFCOUNTS - if (cache_frame_30f7346d71ee32c85eb9e23ad4f81d69 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_30f7346d71ee32c85eb9e23ad4f81d69 = MAKE_FUNCTION_FRAME(codeobj_30f7346d71ee32c85eb9e23ad4f81d69, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_30f7346d71ee32c85eb9e23ad4f81d69->m_type_description == NULL); - frame_30f7346d71ee32c85eb9e23ad4f81d69 = cache_frame_30f7346d71ee32c85eb9e23ad4f81d69; - - // Push the new frame as the currently active one. - pushFrameStack(frame_30f7346d71ee32c85eb9e23ad4f81d69); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_30f7346d71ee32c85eb9e23ad4f81d69) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_tuple_element_1 = par_bsz; - tmp_args_element_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[52]; - PyTuple_SET_ITEM0(tmp_args_element_name_1, 1, tmp_tuple_element_1); - frame_30f7346d71ee32c85eb9e23ad4f81d69->m_frame.f_lineno = 91; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[51], tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[11]; - assert(var_c_bsz == NULL); - Py_INCREF(tmp_assign_source_2); - var_c_bsz = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_sample_num); - tmp_iter_arg_1 = par_sample_num; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 93; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_num1; - var_num1 = tmp_assign_source_5; - Py_INCREF(var_num1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_num1); - tmp_called_instance_2 = var_num1; - frame_30f7346d71ee32c85eb9e23ad4f81d69->m_frame.f_lineno = 94; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[54], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_num2; - var_num2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_num2); - tmp_iter_arg_2 = var_num2; - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 95; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_9 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_num3; - var_num3 = tmp_assign_source_9; - Py_INCREF(var_num3); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_num3); - tmp_compexpr_left_1 = var_num3; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 96; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = mod_consts[11]; - { - PyObject *old = var_c4; - var_c4 = tmp_assign_source_10; - Py_INCREF(var_c4); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_num3); - tmp_called_instance_3 = var_num3; - frame_30f7346d71ee32c85eb9e23ad4f81d69->m_frame.f_lineno = 98; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[56], 0) - ); - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 98; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_13 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_num; - var_num = tmp_assign_source_13; - Py_INCREF(var_num); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_float_arg_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_num); - tmp_float_arg_1 = var_num; - tmp_ass_subvalue_1 = TO_FLOAT(tmp_float_arg_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_labels == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = var_labels; - if (var_c_bsz == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_2 = var_c_bsz; - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_2); - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_c4; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 100; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_left_name_1 = var_c4; - tmp_right_name_1 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_14 = tmp_left_name_1; - var_c4 = tmp_assign_source_14; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_c_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 101; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_left_name_2 = var_c_bsz; - tmp_right_name_2 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_15 = tmp_left_name_2; - var_c_bsz = tmp_assign_source_15; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_labels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 102; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_labels; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30f7346d71ee32c85eb9e23ad4f81d69); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30f7346d71ee32c85eb9e23ad4f81d69); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30f7346d71ee32c85eb9e23ad4f81d69); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_30f7346d71ee32c85eb9e23ad4f81d69, exception_lineno); - } else if (exception_tb->tb_frame != &frame_30f7346d71ee32c85eb9e23ad4f81d69->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_30f7346d71ee32c85eb9e23ad4f81d69, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_30f7346d71ee32c85eb9e23ad4f81d69, - type_description_1, - par_sample_num, - par_bsz, - var_labels, - var_c_bsz, - var_num1, - var_num2, - var_num3, - var_c4, - var_num - ); - - - // Release cached frame if used for exception. - if (frame_30f7346d71ee32c85eb9e23ad4f81d69 == cache_frame_30f7346d71ee32c85eb9e23ad4f81d69) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_30f7346d71ee32c85eb9e23ad4f81d69); - cache_frame_30f7346d71ee32c85eb9e23ad4f81d69 = NULL; - } - - assertFrameObject(frame_30f7346d71ee32c85eb9e23ad4f81d69); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__10_trans_det(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_sample_num = python_pars[0]; - PyObject *par_bsz = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_c_bsz = NULL; - PyObject *var_num1 = NULL; - PyObject *var_num2 = NULL; - PyObject *var_num3 = NULL; - PyObject *var_c4 = NULL; - PyObject *var_num = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_b0b331f085277111601888195501fa13; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_b0b331f085277111601888195501fa13 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_b0b331f085277111601888195501fa13)) { - Py_XDECREF(cache_frame_b0b331f085277111601888195501fa13); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b0b331f085277111601888195501fa13 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b0b331f085277111601888195501fa13 = MAKE_FUNCTION_FRAME(codeobj_b0b331f085277111601888195501fa13, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b0b331f085277111601888195501fa13->m_type_description == NULL); - frame_b0b331f085277111601888195501fa13 = cache_frame_b0b331f085277111601888195501fa13; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b0b331f085277111601888195501fa13); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b0b331f085277111601888195501fa13) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_tuple_element_1 = par_bsz; - tmp_args_element_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[61]; - PyTuple_SET_ITEM0(tmp_args_element_name_1, 1, tmp_tuple_element_1); - frame_b0b331f085277111601888195501fa13->m_frame.f_lineno = 105; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[51], tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[11]; - assert(var_c_bsz == NULL); - Py_INCREF(tmp_assign_source_2); - var_c_bsz = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_sample_num); - tmp_iter_arg_1 = par_sample_num; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 107; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_num1; - var_num1 = tmp_assign_source_5; - Py_INCREF(var_num1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_num1); - tmp_called_instance_2 = var_num1; - frame_b0b331f085277111601888195501fa13->m_frame.f_lineno = 108; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[62], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_num2; - var_num2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_num2); - tmp_iter_arg_2 = var_num2; - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 109; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_9 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_num3; - var_num3 = tmp_assign_source_9; - Py_INCREF(var_num3); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_num3); - tmp_compexpr_left_1 = var_num3; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 110; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = mod_consts[11]; - { - PyObject *old = var_c4; - var_c4 = tmp_assign_source_10; - Py_INCREF(var_c4); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_num3); - tmp_called_instance_3 = var_num3; - frame_b0b331f085277111601888195501fa13->m_frame.f_lineno = 112; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[56], 0) - ); - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 112; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_13 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_num; - var_num = tmp_assign_source_13; - Py_INCREF(var_num); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_float_arg_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_num); - tmp_float_arg_1 = var_num; - tmp_ass_subvalue_1 = TO_FLOAT(tmp_float_arg_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_labels == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = var_labels; - if (var_c_bsz == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_2 = var_c_bsz; - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_2); - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_c4; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_left_name_1 = var_c4; - tmp_right_name_1 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_14 = tmp_left_name_1; - var_c4 = tmp_assign_source_14; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_c_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 115; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_left_name_2 = var_c_bsz; - tmp_right_name_2 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_15 = tmp_left_name_2; - var_c_bsz = tmp_assign_source_15; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_labels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 116; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_labels; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b0b331f085277111601888195501fa13); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b0b331f085277111601888195501fa13); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b0b331f085277111601888195501fa13); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b0b331f085277111601888195501fa13, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b0b331f085277111601888195501fa13->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b0b331f085277111601888195501fa13, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b0b331f085277111601888195501fa13, - type_description_1, - par_sample_num, - par_bsz, - var_labels, - var_c_bsz, - var_num1, - var_num2, - var_num3, - var_c4, - var_num - ); - - - // Release cached frame if used for exception. - if (frame_b0b331f085277111601888195501fa13 == cache_frame_b0b331f085277111601888195501fa13) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b0b331f085277111601888195501fa13); - cache_frame_b0b331f085277111601888195501fa13 = NULL; - } - - assertFrameObject(frame_b0b331f085277111601888195501fa13); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__11_trans_keypoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_sample_num = python_pars[0]; - PyObject *par_bsz = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_c_bsz = NULL; - PyObject *var_num1 = NULL; - PyObject *var_num2 = NULL; - PyObject *var_num3 = NULL; - PyObject *var_c4 = NULL; - PyObject *var_num = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_a45548cd58c2face9e36cbc89b979801; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_a45548cd58c2face9e36cbc89b979801 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a45548cd58c2face9e36cbc89b979801)) { - Py_XDECREF(cache_frame_a45548cd58c2face9e36cbc89b979801); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a45548cd58c2face9e36cbc89b979801 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a45548cd58c2face9e36cbc89b979801 = MAKE_FUNCTION_FRAME(codeobj_a45548cd58c2face9e36cbc89b979801, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a45548cd58c2face9e36cbc89b979801->m_type_description == NULL); - frame_a45548cd58c2face9e36cbc89b979801 = cache_frame_a45548cd58c2face9e36cbc89b979801; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a45548cd58c2face9e36cbc89b979801); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a45548cd58c2face9e36cbc89b979801) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_tuple_element_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_tuple_element_1 = par_bsz; - tmp_args_element_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[63]; - PyTuple_SET_ITEM0(tmp_args_element_name_1, 1, tmp_tuple_element_1); - frame_a45548cd58c2face9e36cbc89b979801->m_frame.f_lineno = 119; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[51], tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[11]; - assert(var_c_bsz == NULL); - Py_INCREF(tmp_assign_source_2); - var_c_bsz = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_sample_num); - tmp_iter_arg_1 = par_sample_num; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 121; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_num1; - var_num1 = tmp_assign_source_5; - Py_INCREF(var_num1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_num1); - tmp_called_instance_2 = var_num1; - frame_a45548cd58c2face9e36cbc89b979801->m_frame.f_lineno = 122; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[62], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_num2; - var_num2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_num2); - tmp_iter_arg_2 = var_num2; - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 123; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_9 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_num3; - var_num3 = tmp_assign_source_9; - Py_INCREF(var_num3); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_num3); - tmp_compexpr_left_1 = var_num3; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_NE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 124; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = mod_consts[11]; - { - PyObject *old = var_c4; - var_c4 = tmp_assign_source_10; - Py_INCREF(var_c4); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_num3); - tmp_called_instance_3 = var_num3; - frame_a45548cd58c2face9e36cbc89b979801->m_frame.f_lineno = 126; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[56], 0) - ); - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_11 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_12 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_12 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 126; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_13 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_num; - var_num = tmp_assign_source_13; - Py_INCREF(var_num); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_float_arg_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_num); - tmp_float_arg_1 = var_num; - tmp_ass_subvalue_1 = TO_FLOAT(tmp_float_arg_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_labels == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = var_labels; - if (var_c_bsz == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_2 = var_c_bsz; - tmp_ass_subscript_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 0, tmp_tuple_element_2); - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_c4; - PyTuple_SET_ITEM0(tmp_ass_subscript_1, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_c4 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 128; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_left_name_1 = var_c4; - tmp_right_name_1 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_14 = tmp_left_name_1; - var_c4 = tmp_assign_source_14; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (var_c_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 129; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_left_name_2 = var_c_bsz; - tmp_right_name_2 = mod_consts[60]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_2, tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_15 = tmp_left_name_2; - var_c_bsz = tmp_assign_source_15; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_labels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[57]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 130; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_labels; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a45548cd58c2face9e36cbc89b979801); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a45548cd58c2face9e36cbc89b979801); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a45548cd58c2face9e36cbc89b979801); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a45548cd58c2face9e36cbc89b979801, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a45548cd58c2face9e36cbc89b979801->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a45548cd58c2face9e36cbc89b979801, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a45548cd58c2face9e36cbc89b979801, - type_description_1, - par_sample_num, - par_bsz, - var_labels, - var_c_bsz, - var_num1, - var_num2, - var_num3, - var_c4, - var_num - ); - - - // Release cached frame if used for exception. - if (frame_a45548cd58c2face9e36cbc89b979801 == cache_frame_a45548cd58c2face9e36cbc89b979801) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a45548cd58c2face9e36cbc89b979801); - cache_frame_a45548cd58c2face9e36cbc89b979801 = NULL; - } - - assertFrameObject(frame_a45548cd58c2face9e36cbc89b979801); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_sample_num); - par_sample_num = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_c_bsz); - var_c_bsz = NULL; - Py_XDECREF(var_num1); - var_num1 = NULL; - Py_XDECREF(var_num2); - var_num2 = NULL; - Py_XDECREF(var_num3); - var_num3 = NULL; - Py_XDECREF(var_c4); - var_c4 = NULL; - Py_XDECREF(var_num); - var_num = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__12___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_freeze_vit = python_pars[1]; - PyObject *par_num_query_token = python_pars[2]; - PyObject *par_llama_model = python_pars[3]; - PyObject *par_max_txt_len = python_pars[4]; - PyObject *par_low_resource = python_pars[5]; - PyObject *par_end_sym = python_pars[6]; - PyObject *var_name = NULL; - PyObject *var_param = NULL; - PyObject *var_special_token = NULL; - PyObject *var_CastOutputToFloat = NULL; - PyObject *var_peft_config = NULL; - PyObject *var_text_det = NULL; - PyObject *var_text2seg_2d = NULL; - PyObject *var_text2seg_3d = NULL; - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - PyObject *tmp_for_loop_4__for_iterator = NULL; - PyObject *tmp_for_loop_4__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_tuple_unpack_4__element_1 = NULL; - PyObject *tmp_tuple_unpack_4__element_2 = NULL; - PyObject *tmp_tuple_unpack_4__source_iter = NULL; - struct Nuitka_FrameObject *frame_f49b4cc387c566c587dd5b706722b99c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *tmp_dictset_value; - PyObject *tmp_dictset_dict; - PyObject *tmp_dictset_key; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214 = NULL; - struct Nuitka_FrameObject *frame_ce5a7e5610b05275766f110c9eb7c5a7_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - static struct Nuitka_FrameObject *cache_frame_f49b4cc387c566c587dd5b706722b99c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f49b4cc387c566c587dd5b706722b99c)) { - Py_XDECREF(cache_frame_f49b4cc387c566c587dd5b706722b99c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f49b4cc387c566c587dd5b706722b99c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f49b4cc387c566c587dd5b706722b99c = MAKE_FUNCTION_FRAME(codeobj_f49b4cc387c566c587dd5b706722b99c, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f49b4cc387c566c587dd5b706722b99c->m_type_description == NULL); - frame_f49b4cc387c566c587dd5b706722b99c = cache_frame_f49b4cc387c566c587dd5b706722b99c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f49b4cc387c566c587dd5b706722b99c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f49b4cc387c566c587dd5b706722b99c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 147; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[31]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 149; - tmp_assattr_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[64]); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[65], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_low_resource); - tmp_assattr_name_2 = par_low_resource; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 150; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[66], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_call_result_2; - tmp_called_name_1 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_1 != NULL); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 152; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, mod_consts[68]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_assattr_target_3; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[69]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[69]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 153; - tmp_assattr_name_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[70], - &PyTuple_GET_ITEM(mod_consts[71], 0) - ); - - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[72], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[74]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 154; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[75], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_assattr_target_5; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 155; - tmp_assattr_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, mod_consts[77]); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[78], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_4; - PyObject *tmp_assattr_target_6; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 156; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, mod_consts[79]); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[80], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_freeze_vit); - tmp_truth_name_1 = CHECK_IF_TRUE(par_freeze_vit); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 159; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[81]); - Py_DECREF(tmp_called_instance_4); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 159; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_6; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_7; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_assattr_target_7; - tmp_assattr_name_7 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_7 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[82], tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_2; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_called_instance_5; - PyObject *tmp_expression_name_2; - PyObject *tmp_assattr_target_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_instance_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[72]); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 161; - tmp_assattr_name_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[83]); - Py_DECREF(tmp_called_instance_5); - if (tmp_assattr_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[72], tmp_assattr_name_8); - Py_DECREF(tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_assattr_target_9; - PyObject *tmp_expression_name_3; - tmp_assattr_name_9 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_9 == NULL)) { - tmp_assattr_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_assattr_target_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[72]); - if (tmp_assattr_target_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[85], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_target_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_6; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_instance_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[78]); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 163; - tmp_iter_arg_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[81]); - Py_DECREF(tmp_called_instance_6); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_2__for_iterator == NULL); - tmp_for_loop_2__for_iterator = tmp_assign_source_8; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_9 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_9 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_4 = tmp_for_loop_2__iter_value; - tmp_assign_source_10 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_12 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_12 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 163; - goto try_except_handler_7; - } - } - goto try_end_4; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_6; - // End of try: - try_end_4:; - goto try_end_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_5; - // End of try: - try_end_5:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_13 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_13; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_14 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_14; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_assattr_target_10; - tmp_assattr_name_10 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_10 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[82], tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_5; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_5; - } - goto loop_start_2; - loop_end_2:; - goto try_end_6; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_called_instance_7; - PyObject *tmp_expression_name_5; - PyObject *tmp_assattr_target_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_called_instance_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[78]); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 165; - tmp_assattr_name_11 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[83]); - Py_DECREF(tmp_called_instance_7); - if (tmp_assattr_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[78], tmp_assattr_name_11); - Py_DECREF(tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_assattr_target_12; - PyObject *tmp_expression_name_6; - tmp_assattr_name_12 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_12 == NULL)) { - tmp_assattr_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_assattr_target_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[78]); - if (tmp_assattr_target_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[85], tmp_assattr_name_12); - Py_DECREF(tmp_assattr_target_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_iter_arg_5; - PyObject *tmp_called_instance_8; - PyObject *tmp_expression_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_called_instance_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[75]); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 167; - tmp_iter_arg_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[81]); - Py_DECREF(tmp_called_instance_8); - if (tmp_iter_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_15 = MAKE_ITERATOR(tmp_iter_arg_5); - Py_DECREF(tmp_iter_arg_5); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_15; - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_16 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_16 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_iter_arg_6; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_iter_arg_6 = tmp_for_loop_3__iter_value; - tmp_assign_source_17 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_6); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_18; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_18 = UNPACK_NEXT(tmp_unpack_5, 0, 2); - if (tmp_assign_source_18 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_19 = UNPACK_NEXT(tmp_unpack_6, 1, 2); - if (tmp_assign_source_19 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 167; - goto try_except_handler_10; - } - } - goto try_end_7; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_9; - // End of try: - try_end_7:; - goto try_end_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_8; - // End of try: - try_end_8:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_20; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_20 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_20; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_21 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_21; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_assattr_target_13; - tmp_assattr_name_13 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_13 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[82], tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_8; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_8; - } - goto loop_start_3; - loop_end_3:; - goto try_end_9; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - PyObject *tmp_assattr_name_14; - PyObject *tmp_called_instance_9; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_instance_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[75]); - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 169; - tmp_assattr_name_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[83]); - Py_DECREF(tmp_called_instance_9); - if (tmp_assattr_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_14 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_14, mod_consts[75], tmp_assattr_name_14); - Py_DECREF(tmp_assattr_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_15; - PyObject *tmp_assattr_target_15; - PyObject *tmp_expression_name_9; - tmp_assattr_name_15 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_15 == NULL)) { - tmp_assattr_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_self; - tmp_assattr_target_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[75]); - if (tmp_assattr_target_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_15, mod_consts[85], tmp_assattr_name_15); - Py_DECREF(tmp_assattr_target_15); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_iter_arg_7; - PyObject *tmp_called_instance_10; - PyObject *tmp_expression_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_called_instance_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[80]); - if (tmp_called_instance_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 171; - tmp_iter_arg_7 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[81]); - Py_DECREF(tmp_called_instance_10); - if (tmp_iter_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_22 = MAKE_ITERATOR(tmp_iter_arg_7); - Py_DECREF(tmp_iter_arg_7); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_4__for_iterator == NULL); - tmp_for_loop_4__for_iterator = tmp_assign_source_22; - } - // Tried code: - loop_start_4:; - { - PyObject *tmp_next_source_4; - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_for_loop_4__for_iterator); - tmp_next_source_4 = tmp_for_loop_4__for_iterator; - tmp_assign_source_23 = ITERATOR_NEXT(tmp_next_source_4); - if (tmp_assign_source_23 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_4; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_11; - } - } - - { - PyObject *old = tmp_for_loop_4__iter_value; - tmp_for_loop_4__iter_value = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_24; - PyObject *tmp_iter_arg_8; - CHECK_OBJECT(tmp_for_loop_4__iter_value); - tmp_iter_arg_8 = tmp_for_loop_4__iter_value; - tmp_assign_source_24 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_8); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_12; - } - { - PyObject *old = tmp_tuple_unpack_4__source_iter; - tmp_tuple_unpack_4__source_iter = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_25 = UNPACK_NEXT(tmp_unpack_7, 0, 2); - if (tmp_assign_source_25 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_1; - tmp_tuple_unpack_4__element_1 = tmp_assign_source_25; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_26 = UNPACK_NEXT(tmp_unpack_8, 1, 2); - if (tmp_assign_source_26 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_2; - tmp_tuple_unpack_4__element_2 = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_4; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_iterator_name_4 = tmp_tuple_unpack_4__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_4); assert(HAS_ITERNEXT(tmp_iterator_name_4)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_4)->tp_iternext)(tmp_iterator_name_4); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooc"; - exception_lineno = 171; - goto try_except_handler_13; - } - } - goto try_end_10; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_12; - // End of try: - try_end_10:; - goto try_end_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_11; - // End of try: - try_end_11:; - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - { - PyObject *tmp_assign_source_27; - CHECK_OBJECT(tmp_tuple_unpack_4__element_1); - tmp_assign_source_27 = tmp_tuple_unpack_4__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_27; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - - { - PyObject *tmp_assign_source_28; - CHECK_OBJECT(tmp_tuple_unpack_4__element_2); - tmp_assign_source_28 = tmp_tuple_unpack_4__element_2; - { - PyObject *old = var_param; - var_param = tmp_assign_source_28; - Py_INCREF(var_param); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - { - PyObject *tmp_assattr_name_16; - PyObject *tmp_assattr_target_16; - tmp_assattr_name_16 = Py_False; - CHECK_OBJECT(var_param); - tmp_assattr_target_16 = var_param; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_16, mod_consts[82], tmp_assattr_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_11; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_11; - } - goto loop_start_4; - loop_end_4:; - goto try_end_12; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - { - PyObject *tmp_assattr_name_17; - PyObject *tmp_called_instance_11; - PyObject *tmp_expression_name_11; - PyObject *tmp_assattr_target_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_called_instance_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[80]); - if (tmp_called_instance_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 173; - tmp_assattr_name_17 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[83]); - Py_DECREF(tmp_called_instance_11); - if (tmp_assattr_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_17 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_17, mod_consts[80], tmp_assattr_name_17); - Py_DECREF(tmp_assattr_name_17); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_18; - PyObject *tmp_assattr_target_18; - PyObject *tmp_expression_name_12; - tmp_assattr_name_18 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[84]); - - if (unlikely(tmp_assattr_name_18 == NULL)) { - tmp_assattr_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[84]); - } - - if (tmp_assattr_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_assattr_target_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[80]); - if (tmp_assattr_target_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_18, mod_consts[85], tmp_assattr_name_18); - Py_DECREF(tmp_assattr_target_18); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_12; - PyObject *tmp_call_result_3; - tmp_called_instance_12 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[86]); - - if (unlikely(tmp_called_instance_12 == NULL)) { - tmp_called_instance_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[86]); - } - - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 175; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_12, - mod_consts[87], - &PyTuple_GET_ITEM(mod_consts[88], 0) - ); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_1:; - { - PyObject *tmp_called_name_5; - PyObject *tmp_call_result_4; - tmp_called_name_5 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_5 != NULL); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 176; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, mod_consts[89]); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_call_result_5; - tmp_called_name_6 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_6 != NULL); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 178; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, mod_consts[90]); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_5); - } - { - PyObject *tmp_assattr_name_19; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_19; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[70]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_llama_model); - tmp_tuple_element_1 = par_llama_model; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[92]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 179; - tmp_assattr_name_19 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_19 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_19, mod_consts[93], tmp_assattr_name_19); - Py_DECREF(tmp_assattr_name_19); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_29; - tmp_assign_source_29 = PyDict_New(); - assert(var_special_token == NULL); - var_special_token = tmp_assign_source_29; - } - tmp_dictset_value = LIST_COPY(mod_consts[94]); - CHECK_OBJECT(var_special_token); - tmp_dictset_dict = var_special_token; - tmp_dictset_key = mod_consts[95]; - tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - assert(!(tmp_res != 0)); - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_call_result_6; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_self; - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[93]); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[96]); - Py_DECREF(tmp_expression_name_14); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (var_special_token == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[97]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = var_special_token; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 182; - tmp_call_result_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_8); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_6); - } - { - PyObject *tmp_called_instance_13; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_called_instance_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[93]); - if (tmp_called_instance_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 185; - tmp_call_result_7 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_13, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[99], 0) - ); - - Py_DECREF(tmp_called_instance_13); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_7); - } - { - PyObject *tmp_called_instance_14; - PyObject *tmp_expression_name_17; - PyObject *tmp_call_result_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 186; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_called_instance_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[93]); - if (tmp_called_instance_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 186; - tmp_call_result_8 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_14, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[100], 0) - ); - - Py_DECREF(tmp_called_instance_14); - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_8); - } - { - PyObject *tmp_called_instance_15; - PyObject *tmp_expression_name_18; - PyObject *tmp_call_result_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_self; - tmp_called_instance_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[93]); - if (tmp_called_instance_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 187; - tmp_call_result_9 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_15, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - Py_DECREF(tmp_called_instance_15); - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_9); - } - { - PyObject *tmp_called_instance_16; - PyObject *tmp_expression_name_19; - PyObject *tmp_call_result_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 189; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_self; - tmp_called_instance_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[93]); - if (tmp_called_instance_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 189; - tmp_call_result_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_16, - mod_consts[98], - &PyTuple_GET_ITEM(mod_consts[102], 0) - ); - - Py_DECREF(tmp_called_instance_16); - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_10); - } - { - PyObject *tmp_assattr_name_20; - PyObject *tmp_expression_name_20; - PyObject *tmp_expression_name_21; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_name_2; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_assattr_target_20; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_self; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[93]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = mod_consts[99]; - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[103]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 190; - tmp_expression_name_21 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[104]); - Py_DECREF(tmp_expression_name_21); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assattr_name_20 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_20, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_20); - if (tmp_assattr_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_20 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_20, mod_consts[105], tmp_assattr_name_20); - Py_DECREF(tmp_assattr_name_20); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_21; - PyObject *tmp_expression_name_23; - PyObject *tmp_expression_name_24; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_25; - PyObject *tmp_args_name_3; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_subscript_name_2; - PyObject *tmp_assattr_target_21; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[93]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = mod_consts[100]; - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[103]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 191; - tmp_expression_name_24 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[104]); - Py_DECREF(tmp_expression_name_24); - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[11]; - tmp_assattr_name_21 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_23, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_23); - if (tmp_assattr_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_21); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_21 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_21, mod_consts[106], tmp_assattr_name_21); - Py_DECREF(tmp_assattr_name_21); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_22; - PyObject *tmp_expression_name_26; - PyObject *tmp_expression_name_27; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_28; - PyObject *tmp_args_name_4; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_subscript_name_3; - PyObject *tmp_assattr_target_22; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_self; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[93]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_4 = mod_consts[101]; - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[103]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 192; - tmp_expression_name_27 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[104]); - Py_DECREF(tmp_expression_name_27); - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[11]; - tmp_assattr_name_22 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_26, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_26); - if (tmp_assattr_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_22); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_22 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_22, mod_consts[107], tmp_assattr_name_22); - Py_DECREF(tmp_assattr_name_22); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_23; - PyObject *tmp_expression_name_29; - PyObject *tmp_expression_name_30; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_subscript_name_4; - PyObject *tmp_assattr_target_23; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[93]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_5 = mod_consts[102]; - tmp_kwargs_name_6 = PyDict_Copy(mod_consts[103]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 194; - tmp_expression_name_30 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_5, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[104]); - Py_DECREF(tmp_expression_name_30); - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[11]; - tmp_assattr_name_23 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_29, tmp_subscript_name_4, 0); - Py_DECREF(tmp_expression_name_29); - if (tmp_assattr_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_23 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_23, mod_consts[108], tmp_assattr_name_23); - Py_DECREF(tmp_assattr_name_23); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_24; - PyObject *tmp_assattr_target_24; - PyObject *tmp_expression_name_32; - tmp_assattr_name_24 = mod_consts[11]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 195; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = par_self; - tmp_assattr_target_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[93]); - if (tmp_assattr_target_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_24, mod_consts[109], tmp_assattr_name_24); - Py_DECREF(tmp_assattr_target_24); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_33; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_33 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[66]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 197; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_25; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_7; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_35; - PyObject *tmp_assattr_target_25; - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[70]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_llama_model == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_llama_model; - tmp_args_name_6 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[112]; - tmp_expression_name_35 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_35 == NULL)) { - tmp_expression_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[113]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_7 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[114]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[115]; - tmp_dict_value_1 = mod_consts[116]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 198; - tmp_assattr_name_25 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_6, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_assattr_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_25); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_25 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_25, mod_consts[111], tmp_assattr_name_25); - Py_DECREF(tmp_assattr_name_25); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_26; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_36; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_8; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_37; - PyObject *tmp_assattr_target_26; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[70]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_llama_model == NULL) { - Py_DECREF(tmp_called_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_llama_model; - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[112]; - tmp_expression_name_37 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_37 == NULL)) { - tmp_expression_name_37 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[113]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_8 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_8, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 205; - tmp_assattr_name_26 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_7, tmp_kwargs_name_8); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_8); - if (tmp_assattr_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_26); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_26 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_26, mod_consts[111], tmp_assattr_name_26); - Py_DECREF(tmp_assattr_name_26); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_38; - PyObject *tmp_expression_name_39; - PyObject *tmp_call_result_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_len_arg_1; - PyObject *tmp_expression_name_40; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_39 = par_self; - tmp_expression_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[111]); - if (tmp_expression_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[117]); - Py_DECREF(tmp_expression_name_38); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_40 = par_self; - tmp_len_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[93]); - if (tmp_len_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = BUILTIN_LEN(tmp_len_arg_1); - Py_DECREF(tmp_len_arg_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 210; - tmp_call_result_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_15, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_11); - } - { - PyObject *tmp_assattr_name_27; - PyObject *tmp_called_instance_17; - PyObject *tmp_expression_name_41; - PyObject *tmp_assattr_target_27; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_41 = par_self; - tmp_called_instance_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[111]); - if (tmp_called_instance_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 211; - tmp_assattr_name_27 = CALL_METHOD_NO_ARGS(tmp_called_instance_17, mod_consts[118]); - Py_DECREF(tmp_called_instance_17); - if (tmp_assattr_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_27); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_27 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_27, mod_consts[119], tmp_assattr_name_27); - Py_DECREF(tmp_assattr_name_27); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_28; - PyObject *tmp_called_instance_18; - PyObject *tmp_expression_name_42; - PyObject *tmp_assattr_target_28; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_42 = par_self; - tmp_called_instance_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[111]); - if (tmp_called_instance_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 212; - tmp_assattr_name_28 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[120]); - Py_DECREF(tmp_called_instance_18); - if (tmp_assattr_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_28); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_28 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_28, mod_consts[121], tmp_assattr_name_28); - Py_DECREF(tmp_assattr_name_28); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - // Tried code: - { - PyObject *tmp_assign_source_30; - PyObject *tmp_tuple_element_4; - PyObject *tmp_expression_name_43; - tmp_expression_name_43 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_43 == NULL)) { - tmp_expression_name_43 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_tuple_element_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[122]); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_assign_source_30 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_30, 0, tmp_tuple_element_4); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_30; - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_31 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - tmp_assign_source_32 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_3; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_44; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[123]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_condition_result_4 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_44 = tmp_class_creation_1__bases; - tmp_subscript_name_5 = mod_consts[11]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_44, tmp_subscript_name_5, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_33 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_33; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_5 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - branch_no_3:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_expression_name_45; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_45 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_45, mod_consts[124]); - tmp_condition_result_6 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_46; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_46 = tmp_class_creation_1__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[124]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_tuple_element_5 = mod_consts[125]; - tmp_args_name_8 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_5 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_1__class_decl_dict; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 214; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_8, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_47; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_47 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_47, mod_consts[126]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_condition_result_7 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_6; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[128]; - tmp_getattr_default_1 = mod_consts[129]; - tmp_tuple_element_6 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_48; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_48 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_48 == NULL)); - tmp_tuple_element_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[128]); - Py_DECREF(tmp_expression_name_48); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_6); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 214; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_14; - } - branch_no_5:; - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assign_source_35; - tmp_assign_source_35 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_35; - } - branch_end_4:; - { - PyObject *tmp_assign_source_36; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[131]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - if (isFrameUnusable(cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2)) { - Py_XDECREF(cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2 = MAKE_FUNCTION_FRAME(codeobj_ce5a7e5610b05275766f110c9eb7c5a7, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2->m_type_description == NULL); - frame_ce5a7e5610b05275766f110c9eb7c5a7_2 = cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ce5a7e5610b05275766f110c9eb7c5a7_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ce5a7e5610b05275766f110c9eb7c5a7_2) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__12___init__$$$function__1_forward(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce5a7e5610b05275766f110c9eb7c5a7_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce5a7e5610b05275766f110c9eb7c5a7_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ce5a7e5610b05275766f110c9eb7c5a7_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ce5a7e5610b05275766f110c9eb7c5a7_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ce5a7e5610b05275766f110c9eb7c5a7_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ce5a7e5610b05275766f110c9eb7c5a7_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_ce5a7e5610b05275766f110c9eb7c5a7_2 == cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2); - cache_frame_ce5a7e5610b05275766f110c9eb7c5a7_2 = NULL; - } - - assertFrameObject(frame_ce5a7e5610b05275766f110c9eb7c5a7_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_8 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_8 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - assert(tmp_condition_result_8 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_6:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - branch_no_6:; - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_17 = tmp_class_creation_1__metaclass; - tmp_tuple_element_7 = mod_consts[125]; - tmp_args_name_9 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_7 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_7); - tmp_tuple_element_7 = locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214; - PyTuple_SET_ITEM0(tmp_args_name_9, 2, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_1__class_decl_dict; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 214; - tmp_assign_source_37 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_9, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooooooooooooooc"; - goto try_except_handler_16; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_37); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_36 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_36); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_DECREF(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214); - locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214 = NULL; - goto try_return_handler_15; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214); - locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_15; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 214; - goto try_except_handler_14; - outline_result_1:; - assert(var_CastOutputToFloat == NULL); - var_CastOutputToFloat = tmp_assign_source_36; - } - goto try_end_13; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_13:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assattr_name_29; - PyObject *tmp_called_name_18; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_49; - PyObject *tmp_expression_name_50; - PyObject *tmp_assattr_target_29; - PyObject *tmp_expression_name_51; - CHECK_OBJECT(var_CastOutputToFloat); - tmp_called_name_18 = var_CastOutputToFloat; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_50 = par_self; - tmp_expression_name_49 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[111]); - if (tmp_expression_name_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[135]); - Py_DECREF(tmp_expression_name_49); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 216; - tmp_assattr_name_29 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_18, tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assattr_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_29); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_51 = par_self; - tmp_assattr_target_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_51, mod_consts[111]); - if (tmp_assattr_target_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_assattr_name_29); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_29, mod_consts[135], tmp_assattr_name_29); - Py_DECREF(tmp_assattr_name_29); - Py_DECREF(tmp_assattr_target_29); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_name_19; - PyObject *tmp_call_result_12; - tmp_called_name_19 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_19 != NULL); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 219; - tmp_call_result_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_19, mod_consts[136]); - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_12); - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_20; - PyObject *tmp_kwargs_name_11; - tmp_called_name_20 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[137]); - - if (unlikely(tmp_called_name_20 == NULL)) { - tmp_called_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[137]); - } - - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_11 = DEEP_COPY(mod_consts[138]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 220; - tmp_assign_source_38 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_20, tmp_kwargs_name_11); - Py_DECREF(tmp_kwargs_name_11); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_peft_config == NULL); - var_peft_config = tmp_assign_source_38; - } - { - PyObject *tmp_assattr_name_30; - PyObject *tmp_called_name_21; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_52; - PyObject *tmp_args_element_name_5; - PyObject *tmp_assattr_target_30; - tmp_called_name_21 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[139]); - - if (unlikely(tmp_called_name_21 == NULL)) { - tmp_called_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[139]); - } - - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_52 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[111]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_peft_config); - tmp_args_element_name_5 = var_peft_config; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 226; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_assattr_name_30 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_21, call_args); - } - - Py_DECREF(tmp_args_element_name_4); - if (tmp_assattr_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_30); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_30 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_30, mod_consts[111], tmp_assattr_name_30); - Py_DECREF(tmp_assattr_name_30); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_31; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_53; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_54; - PyObject *tmp_expression_name_55; - PyObject *tmp_expression_name_56; - PyObject *tmp_assattr_target_31; - tmp_expression_name_53 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_53 == NULL)) { - tmp_expression_name_53 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_53, mod_consts[140]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_6 = mod_consts[77]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_22); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_56 = par_self; - tmp_expression_name_55 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[111]); - if (tmp_expression_name_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_54 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[141]); - Py_DECREF(tmp_expression_name_55); - if (tmp_expression_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[142]); - Py_DECREF(tmp_expression_name_54); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 227; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assattr_name_31 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_22, call_args); - } - - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assattr_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_31 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_31, mod_consts[143], tmp_assattr_name_31); - Py_DECREF(tmp_assattr_name_31); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_32; - PyObject *tmp_called_name_23; - PyObject *tmp_expression_name_57; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_58; - PyObject *tmp_expression_name_59; - PyObject *tmp_expression_name_60; - PyObject *tmp_assattr_target_32; - tmp_expression_name_57 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_57 == NULL)) { - tmp_expression_name_57 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[140]); - if (tmp_called_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_8 = mod_consts[79]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_60 = par_self; - tmp_expression_name_59 = LOOKUP_ATTRIBUTE(tmp_expression_name_60, mod_consts[111]); - if (tmp_expression_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_58 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[141]); - Py_DECREF(tmp_expression_name_59); - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_58, mod_consts[142]); - Py_DECREF(tmp_expression_name_58); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 228; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assattr_name_32 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_23, call_args); - } - - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assattr_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_32); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_32 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_32, mod_consts[144], tmp_assattr_name_32); - Py_DECREF(tmp_assattr_name_32); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_61; - PyObject *tmp_args_element_name_10; - PyObject *tmp_called_name_25; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_62; - PyObject *tmp_expression_name_63; - PyObject *tmp_expression_name_64; - PyObject *tmp_args_element_name_12; - PyObject *tmp_called_name_26; - PyObject *tmp_expression_name_65; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_66; - PyObject *tmp_expression_name_67; - PyObject *tmp_expression_name_68; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - PyObject *tmp_called_name_27; - PyObject *tmp_expression_name_69; - PyObject *tmp_kwargs_name_12; - PyObject *tmp_args_element_name_16; - PyObject *tmp_called_name_28; - PyObject *tmp_args_element_name_17; - PyObject *tmp_called_instance_19; - tmp_expression_name_61 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_61 == NULL)) { - tmp_expression_name_61 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[122]); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_25 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_25 == NULL)) { - tmp_called_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_24); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_64 = par_self; - tmp_expression_name_63 = LOOKUP_ATTRIBUTE(tmp_expression_name_64, mod_consts[111]); - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_62 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[141]); - Py_DECREF(tmp_expression_name_63); - if (tmp_expression_name_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[142]); - Py_DECREF(tmp_expression_name_62); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 232; - tmp_args_element_name_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_25, tmp_args_element_name_11); - Py_DECREF(tmp_args_element_name_11); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_65 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_65 == NULL)) { - tmp_expression_name_65 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[140]); - if (tmp_called_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_68 = par_self; - tmp_expression_name_67 = LOOKUP_ATTRIBUTE(tmp_expression_name_68, mod_consts[111]); - if (tmp_expression_name_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_66 = LOOKUP_ATTRIBUTE(tmp_expression_name_67, mod_consts[141]); - Py_DECREF(tmp_expression_name_67); - if (tmp_expression_name_66 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_66, mod_consts[142]); - Py_DECREF(tmp_expression_name_66); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = mod_consts[79]; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 233; - { - PyObject *call_args[] = {tmp_args_element_name_13, tmp_args_element_name_14}; - tmp_args_element_name_12 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_26, call_args); - } - - Py_DECREF(tmp_called_name_26); - Py_DECREF(tmp_args_element_name_13); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - - exception_lineno = 233; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_69 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_69 == NULL)) { - tmp_expression_name_69 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 234; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_69, mod_consts[145]); - if (tmp_called_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 234; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_12 = PyDict_Copy(mod_consts[146]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 234; - tmp_args_element_name_15 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_27, tmp_kwargs_name_12); - Py_DECREF(tmp_called_name_27); - Py_DECREF(tmp_kwargs_name_12); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - - exception_lineno = 234; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_28 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_28 == NULL)) { - tmp_called_name_28 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - - exception_lineno = 235; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 235; - tmp_args_element_name_16 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_28, mod_consts[79]); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - - exception_lineno = 235; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_19 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_called_instance_19 == NULL)) { - tmp_called_instance_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_called_instance_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - Py_DECREF(tmp_args_element_name_16); - - exception_lineno = 236; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 236; - tmp_args_element_name_17 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_19, - mod_consts[140], - &PyTuple_GET_ITEM(mod_consts[147], 0) - ); - - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - Py_DECREF(tmp_args_element_name_16); - - exception_lineno = 236; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 231; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_12, tmp_args_element_name_15, tmp_args_element_name_16, tmp_args_element_name_17}; - tmp_assign_source_39 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_24, call_args); - } - - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_12); - Py_DECREF(tmp_args_element_name_15); - Py_DECREF(tmp_args_element_name_16); - Py_DECREF(tmp_args_element_name_17); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 231; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_text_det == NULL); - var_text_det = tmp_assign_source_39; - } - { - PyObject *tmp_assattr_name_33; - PyObject *tmp_assattr_target_33; - CHECK_OBJECT(var_text_det); - tmp_assattr_name_33 = var_text_det; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 238; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_33 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_33, mod_consts[148], tmp_assattr_name_33); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_34; - PyObject *tmp_called_instance_20; - PyObject *tmp_expression_name_70; - PyObject *tmp_assattr_target_34; - tmp_expression_name_70 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_70 == NULL)) { - tmp_expression_name_70 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_70, mod_consts[15]); - if (tmp_called_instance_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 239; - tmp_assattr_name_34 = CALL_METHOD_NO_ARGS(tmp_called_instance_20, mod_consts[149]); - Py_DECREF(tmp_called_instance_20); - if (tmp_assattr_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_34); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_34 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_34, mod_consts[150], tmp_assattr_name_34); - Py_DECREF(tmp_assattr_name_34); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_35; - PyObject *tmp_called_name_29; - PyObject *tmp_expression_name_71; - PyObject *tmp_kwargs_name_13; - PyObject *tmp_assattr_target_35; - tmp_expression_name_71 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_expression_name_71 == NULL)) { - tmp_expression_name_71 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - if (tmp_expression_name_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_71, mod_consts[152]); - if (tmp_called_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_13 = PyDict_Copy(mod_consts[153]); - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 253; - tmp_assattr_name_35 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_29, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_29); - Py_DECREF(tmp_kwargs_name_13); - if (tmp_assattr_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_35); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_35 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_35, mod_consts[154], tmp_assattr_name_35); - Py_DECREF(tmp_assattr_name_35); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_36; - PyObject *tmp_called_name_30; - PyObject *tmp_args_element_name_18; - PyObject *tmp_expression_name_72; - PyObject *tmp_assattr_target_36; - tmp_called_name_30 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_30 == NULL)) { - tmp_called_name_30 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_72 = par_self; - tmp_args_element_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_72, mod_consts[154]); - if (tmp_args_element_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 254; - tmp_assattr_name_36 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_30, tmp_args_element_name_18); - Py_DECREF(tmp_args_element_name_18); - if (tmp_assattr_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_36); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_36 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_36, mod_consts[154], tmp_assattr_name_36); - Py_DECREF(tmp_assattr_name_36); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_called_name_31; - PyObject *tmp_expression_name_73; - PyObject *tmp_args_element_name_19; - PyObject *tmp_called_name_32; - PyObject *tmp_args_element_name_20; - PyObject *tmp_expression_name_74; - PyObject *tmp_expression_name_75; - PyObject *tmp_expression_name_76; - PyObject *tmp_args_element_name_21; - PyObject *tmp_called_name_33; - PyObject *tmp_expression_name_77; - PyObject *tmp_args_element_name_22; - PyObject *tmp_expression_name_78; - PyObject *tmp_expression_name_79; - PyObject *tmp_expression_name_80; - PyObject *tmp_args_element_name_23; - tmp_expression_name_73 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_73 == NULL)) { - tmp_expression_name_73 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_73, mod_consts[122]); - if (tmp_called_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_32 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_32 == NULL)) { - tmp_called_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_76 = par_self; - tmp_expression_name_75 = LOOKUP_ATTRIBUTE(tmp_expression_name_76, mod_consts[111]); - if (tmp_expression_name_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_74 = LOOKUP_ATTRIBUTE(tmp_expression_name_75, mod_consts[141]); - Py_DECREF(tmp_expression_name_75); - if (tmp_expression_name_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_74, mod_consts[142]); - Py_DECREF(tmp_expression_name_74); - if (tmp_args_element_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 257; - tmp_args_element_name_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_32, tmp_args_element_name_20); - Py_DECREF(tmp_args_element_name_20); - if (tmp_args_element_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - - exception_lineno = 257; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_77 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_77 == NULL)) { - tmp_expression_name_77 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_77, mod_consts[140]); - if (tmp_called_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_80 = par_self; - tmp_expression_name_79 = LOOKUP_ATTRIBUTE(tmp_expression_name_80, mod_consts[111]); - if (tmp_expression_name_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_78 = LOOKUP_ATTRIBUTE(tmp_expression_name_79, mod_consts[141]); - Py_DECREF(tmp_expression_name_79); - if (tmp_expression_name_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_78, mod_consts[142]); - Py_DECREF(tmp_expression_name_78); - if (tmp_args_element_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_called_name_33); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_23 = mod_consts[155]; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 258; - { - PyObject *call_args[] = {tmp_args_element_name_22, tmp_args_element_name_23}; - tmp_args_element_name_21 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_33, call_args); - } - - Py_DECREF(tmp_called_name_33); - Py_DECREF(tmp_args_element_name_22); - if (tmp_args_element_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 258; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 256; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_21}; - tmp_assign_source_40 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_31, call_args); - } - - Py_DECREF(tmp_called_name_31); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_args_element_name_21); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_text2seg_2d == NULL); - var_text2seg_2d = tmp_assign_source_40; - } - { - PyObject *tmp_assattr_name_37; - PyObject *tmp_assattr_target_37; - CHECK_OBJECT(var_text2seg_2d); - tmp_assattr_name_37 = var_text2seg_2d; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 260; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_37 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_37, mod_consts[156], tmp_assattr_name_37); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_38; - PyObject *tmp_called_name_34; - PyObject *tmp_assattr_target_38; - tmp_called_name_34 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_34 == NULL)) { - tmp_called_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 261; - tmp_assattr_name_38 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_34, mod_consts[155]); - if (tmp_assattr_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_38); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_38 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_38, mod_consts[157], tmp_assattr_name_38); - Py_DECREF(tmp_assattr_name_38); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_39; - PyObject *tmp_called_name_35; - PyObject *tmp_assattr_target_39; - tmp_called_name_35 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_35 == NULL)) { - tmp_called_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 262; - tmp_assattr_name_39 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_35, &PyTuple_GET_ITEM(mod_consts[158], 0)); - - if (tmp_assattr_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_39); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_39 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_39, mod_consts[159], tmp_assattr_name_39); - Py_DECREF(tmp_assattr_name_39); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_36; - PyObject *tmp_expression_name_81; - PyObject *tmp_args_element_name_24; - PyObject *tmp_called_name_37; - PyObject *tmp_args_element_name_25; - PyObject *tmp_expression_name_82; - PyObject *tmp_expression_name_83; - PyObject *tmp_expression_name_84; - PyObject *tmp_args_element_name_26; - PyObject *tmp_called_name_38; - PyObject *tmp_expression_name_85; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_86; - PyObject *tmp_expression_name_87; - PyObject *tmp_expression_name_88; - PyObject *tmp_args_element_name_28; - tmp_expression_name_81 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_81 == NULL)) { - tmp_expression_name_81 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_36 = LOOKUP_ATTRIBUTE(tmp_expression_name_81, mod_consts[122]); - if (tmp_called_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_37 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_37 == NULL)) { - tmp_called_name_37 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_36); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_84 = par_self; - tmp_expression_name_83 = LOOKUP_ATTRIBUTE(tmp_expression_name_84, mod_consts[111]); - if (tmp_expression_name_83 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_82 = LOOKUP_ATTRIBUTE(tmp_expression_name_83, mod_consts[141]); - Py_DECREF(tmp_expression_name_83); - if (tmp_expression_name_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_82, mod_consts[142]); - Py_DECREF(tmp_expression_name_82); - if (tmp_args_element_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 264; - tmp_args_element_name_24 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_37, tmp_args_element_name_25); - Py_DECREF(tmp_args_element_name_25); - if (tmp_args_element_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - - exception_lineno = 264; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_85 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_85 == NULL)) { - tmp_expression_name_85 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_85, mod_consts[140]); - if (tmp_called_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_88 = par_self; - tmp_expression_name_87 = LOOKUP_ATTRIBUTE(tmp_expression_name_88, mod_consts[111]); - if (tmp_expression_name_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_86 = LOOKUP_ATTRIBUTE(tmp_expression_name_87, mod_consts[141]); - Py_DECREF(tmp_expression_name_87); - if (tmp_expression_name_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_86, mod_consts[142]); - Py_DECREF(tmp_expression_name_86); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_called_name_38); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_28 = mod_consts[79]; - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 265; - { - PyObject *call_args[] = {tmp_args_element_name_27, tmp_args_element_name_28}; - tmp_args_element_name_26 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_38, call_args); - } - - Py_DECREF(tmp_called_name_38); - Py_DECREF(tmp_args_element_name_27); - if (tmp_args_element_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - - exception_lineno = 265; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 263; - { - PyObject *call_args[] = {tmp_args_element_name_24, tmp_args_element_name_26}; - tmp_assign_source_41 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_36, call_args); - } - - Py_DECREF(tmp_called_name_36); - Py_DECREF(tmp_args_element_name_24); - Py_DECREF(tmp_args_element_name_26); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - assert(var_text2seg_3d == NULL); - var_text2seg_3d = tmp_assign_source_41; - } - { - PyObject *tmp_assattr_name_40; - PyObject *tmp_assattr_target_40; - CHECK_OBJECT(var_text2seg_3d); - tmp_assattr_name_40 = var_text2seg_3d; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_40 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_40, mod_consts[160], tmp_assattr_name_40); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_41; - PyObject *tmp_called_name_39; - PyObject *tmp_assattr_target_41; - tmp_called_name_39 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_name_39 == NULL)) { - tmp_called_name_39 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 268; - tmp_assattr_name_41 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_39, mod_consts[79]); - if (tmp_assattr_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_41); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_41 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_41, mod_consts[161], tmp_assattr_name_41); - Py_DECREF(tmp_assattr_name_41); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_42; - PyObject *tmp_called_name_40; - PyObject *tmp_assattr_target_42; - tmp_called_name_40 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_40 == NULL)) { - tmp_called_name_40 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 269; - tmp_assattr_name_42 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_40, &PyTuple_GET_ITEM(mod_consts[162], 0)); - - if (tmp_assattr_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_42); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_42 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_42, mod_consts[163], tmp_assattr_name_42); - Py_DECREF(tmp_assattr_name_42); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_43; - PyObject *tmp_called_name_41; - PyObject *tmp_assattr_target_43; - tmp_called_name_41 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[164]); - - if (unlikely(tmp_called_name_41 == NULL)) { - tmp_called_name_41 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[164]); - } - - if (tmp_called_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - frame_f49b4cc387c566c587dd5b706722b99c->m_frame.f_lineno = 270; - tmp_assattr_name_43 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_41, &PyTuple_GET_ITEM(mod_consts[165], 0)); - - if (tmp_assattr_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_43); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_43 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_43, mod_consts[166], tmp_assattr_name_43); - Py_DECREF(tmp_assattr_name_43); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_44; - PyObject *tmp_assattr_target_44; - if (par_max_txt_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 272; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_44 = par_max_txt_len; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 272; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_44 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_44, mod_consts[167], tmp_assattr_name_44); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_45; - PyObject *tmp_assattr_target_45; - if (par_end_sym == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[168]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_45 = par_end_sym; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_45 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_45, mod_consts[168], tmp_assattr_name_45); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_46; - PyObject *tmp_assattr_target_46; - tmp_assattr_name_46 = PyList_New(0); - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_46); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 274; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_46 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_46, mod_consts[169], tmp_assattr_name_46); - Py_DECREF(tmp_assattr_name_46); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 274; - type_description_1 = "oooooooooooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f49b4cc387c566c587dd5b706722b99c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f49b4cc387c566c587dd5b706722b99c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f49b4cc387c566c587dd5b706722b99c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f49b4cc387c566c587dd5b706722b99c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f49b4cc387c566c587dd5b706722b99c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f49b4cc387c566c587dd5b706722b99c, - type_description_1, - par_self, - par_freeze_vit, - par_num_query_token, - par_llama_model, - par_max_txt_len, - par_low_resource, - par_end_sym, - var_name, - var_param, - var_special_token, - var_CastOutputToFloat, - var_peft_config, - var_text_det, - var_text2seg_2d, - var_text2seg_3d, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_f49b4cc387c566c587dd5b706722b99c == cache_frame_f49b4cc387c566c587dd5b706722b99c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f49b4cc387c566c587dd5b706722b99c); - cache_frame_f49b4cc387c566c587dd5b706722b99c = NULL; - } - - assertFrameObject(frame_f49b4cc387c566c587dd5b706722b99c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_freeze_vit); - par_freeze_vit = NULL; - Py_XDECREF(par_num_query_token); - par_num_query_token = NULL; - Py_XDECREF(par_llama_model); - par_llama_model = NULL; - Py_XDECREF(par_max_txt_len); - par_max_txt_len = NULL; - Py_XDECREF(par_low_resource); - par_low_resource = NULL; - Py_XDECREF(par_end_sym); - par_end_sym = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_special_token); - var_special_token = NULL; - CHECK_OBJECT(var_CastOutputToFloat); - Py_DECREF(var_CastOutputToFloat); - var_CastOutputToFloat = NULL; - CHECK_OBJECT(var_peft_config); - Py_DECREF(var_peft_config); - var_peft_config = NULL; - CHECK_OBJECT(var_text_det); - Py_DECREF(var_text_det); - var_text_det = NULL; - CHECK_OBJECT(var_text2seg_2d); - Py_DECREF(var_text2seg_2d); - var_text2seg_2d = NULL; - CHECK_OBJECT(var_text2seg_3d); - Py_DECREF(var_text2seg_3d); - var_text2seg_3d = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_freeze_vit); - par_freeze_vit = NULL; - Py_XDECREF(par_num_query_token); - par_num_query_token = NULL; - Py_XDECREF(par_llama_model); - par_llama_model = NULL; - Py_XDECREF(par_max_txt_len); - par_max_txt_len = NULL; - Py_XDECREF(par_low_resource); - par_low_resource = NULL; - Py_XDECREF(par_end_sym); - par_end_sym = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_param); - var_param = NULL; - Py_XDECREF(var_special_token); - var_special_token = NULL; - Py_XDECREF(var_CastOutputToFloat); - var_CastOutputToFloat = NULL; - Py_XDECREF(var_peft_config); - var_peft_config = NULL; - Py_XDECREF(var_text_det); - var_text_det = NULL; - Py_XDECREF(var_text2seg_2d); - var_text2seg_2d = NULL; - Py_XDECREF(var_text2seg_3d); - var_text2seg_3d = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - Py_XDECREF(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214); - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - Py_XDECREF(locals_models$medomni_bp$$$function__12___init__$$$class__1_CastOutputToFloat_214); - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__12___init__$$$function__1_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_678266b6b2faeb3dc81b89982e327d91; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_678266b6b2faeb3dc81b89982e327d91 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_678266b6b2faeb3dc81b89982e327d91)) { - Py_XDECREF(cache_frame_678266b6b2faeb3dc81b89982e327d91); - -#if _DEBUG_REFCOUNTS - if (cache_frame_678266b6b2faeb3dc81b89982e327d91 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_678266b6b2faeb3dc81b89982e327d91 = MAKE_FUNCTION_FRAME(codeobj_678266b6b2faeb3dc81b89982e327d91, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_678266b6b2faeb3dc81b89982e327d91->m_type_description == NULL); - frame_678266b6b2faeb3dc81b89982e327d91 = cache_frame_678266b6b2faeb3dc81b89982e327d91; - - // Push the new frame as the currently active one. - pushFrameStack(frame_678266b6b2faeb3dc81b89982e327d91); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_678266b6b2faeb3dc81b89982e327d91) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_2; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_678266b6b2faeb3dc81b89982e327d91->m_frame.f_lineno = 215; - tmp_expression_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[2], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[170]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[113]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_678266b6b2faeb3dc81b89982e327d91->m_frame.f_lineno = 215; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_678266b6b2faeb3dc81b89982e327d91); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_678266b6b2faeb3dc81b89982e327d91); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_678266b6b2faeb3dc81b89982e327d91); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_678266b6b2faeb3dc81b89982e327d91, exception_lineno); - } else if (exception_tb->tb_frame != &frame_678266b6b2faeb3dc81b89982e327d91->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_678266b6b2faeb3dc81b89982e327d91, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_678266b6b2faeb3dc81b89982e327d91, - type_description_1, - par_self, - par_x, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_678266b6b2faeb3dc81b89982e327d91 == cache_frame_678266b6b2faeb3dc81b89982e327d91) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_678266b6b2faeb3dc81b89982e327d91); - cache_frame_678266b6b2faeb3dc81b89982e327d91 = NULL; - } - - assertFrameObject(frame_678266b6b2faeb3dc81b89982e327d91); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__13_vit_to_cpu(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_5d568379025a008913acddc22c837d7b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_5d568379025a008913acddc22c837d7b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5d568379025a008913acddc22c837d7b)) { - Py_XDECREF(cache_frame_5d568379025a008913acddc22c837d7b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5d568379025a008913acddc22c837d7b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5d568379025a008913acddc22c837d7b = MAKE_FUNCTION_FRAME(codeobj_5d568379025a008913acddc22c837d7b, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5d568379025a008913acddc22c837d7b->m_type_description == NULL); - frame_5d568379025a008913acddc22c837d7b = cache_frame_5d568379025a008913acddc22c837d7b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5d568379025a008913acddc22c837d7b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5d568379025a008913acddc22c837d7b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[171]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 277; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_5d568379025a008913acddc22c837d7b->m_frame.f_lineno = 277; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[170], - &PyTuple_GET_ITEM(mod_consts[172], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 277; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 278; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[171]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_5d568379025a008913acddc22c837d7b->m_frame.f_lineno = 278; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[173]); - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_call_result_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 279; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[174]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_5d568379025a008913acddc22c837d7b->m_frame.f_lineno = 279; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[170], - &PyTuple_GET_ITEM(mod_consts[172], 0) - ); - - Py_DECREF(tmp_called_instance_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 280; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[174]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_5d568379025a008913acddc22c837d7b->m_frame.f_lineno = 280; - tmp_call_result_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[173]); - Py_DECREF(tmp_called_instance_4); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5d568379025a008913acddc22c837d7b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5d568379025a008913acddc22c837d7b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5d568379025a008913acddc22c837d7b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5d568379025a008913acddc22c837d7b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5d568379025a008913acddc22c837d7b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5d568379025a008913acddc22c837d7b, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_5d568379025a008913acddc22c837d7b == cache_frame_5d568379025a008913acddc22c837d7b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5d568379025a008913acddc22c837d7b); - cache_frame_5d568379025a008913acddc22c837d7b = NULL; - } - - assertFrameObject(frame_5d568379025a008913acddc22c837d7b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__14_encode_img(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_image = python_pars[1]; - PyObject *par_modals = python_pars[2]; - PyObject *par_task_types = python_pars[3]; - PyObject *var_B = NULL; - PyObject *var_S = NULL; - PyObject *var__ = NULL; - PyObject *var_device = NULL; - PyObject *var_image_embeds_list = NULL; - PyObject *var_image_embeds = NULL; - PyObject *var_inputs_llama = NULL; - PyObject *var_atts_llama = NULL; - PyObject *var_image_embeds_unp = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__element_4 = NULL; - PyObject *tmp_tuple_unpack_1__element_5 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_cf7c573f3eabc09b380bf631954f6108; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - struct Nuitka_FrameObject *frame_7e1dda8ee60d26582f97bb31596ad357_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_7e1dda8ee60d26582f97bb31596ad357_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_cf7c573f3eabc09b380bf631954f6108 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_cf7c573f3eabc09b380bf631954f6108)) { - Py_XDECREF(cache_frame_cf7c573f3eabc09b380bf631954f6108); - -#if _DEBUG_REFCOUNTS - if (cache_frame_cf7c573f3eabc09b380bf631954f6108 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_cf7c573f3eabc09b380bf631954f6108 = MAKE_FUNCTION_FRAME(codeobj_cf7c573f3eabc09b380bf631954f6108, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_cf7c573f3eabc09b380bf631954f6108->m_type_description == NULL); - frame_cf7c573f3eabc09b380bf631954f6108 = cache_frame_cf7c573f3eabc09b380bf631954f6108; - - // Push the new frame as the currently active one. - pushFrameStack(frame_cf7c573f3eabc09b380bf631954f6108); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_cf7c573f3eabc09b380bf631954f6108) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_image); - tmp_expression_name_1 = par_image; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[175]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 5); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 5); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 5); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_4, 3, 5); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_4 == NULL); - tmp_tuple_unpack_1__element_4 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_5, 4, 5); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_5 == NULL); - tmp_tuple_unpack_1__element_5 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[176]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_B == NULL); - Py_INCREF(tmp_assign_source_7); - var_B = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_S == NULL); - Py_INCREF(tmp_assign_source_8); - var_S = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_9); - var__ = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_4); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_4; - { - PyObject *old = var__; - assert(old != NULL); - var__ = tmp_assign_source_10; - Py_INCREF(var__); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_5); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_5; - { - PyObject *old = var__; - assert(old != NULL); - var__ = tmp_assign_source_11; - Py_INCREF(var__); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_expression_name_2; - if (par_image == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 284; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_image; - tmp_assign_source_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[178]); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_device == NULL); - var_device = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = Py_None; - assert(var_image_embeds_list == NULL); - Py_INCREF(tmp_assign_source_13); - var_image_embeds_list = tmp_assign_source_13; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[66]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 286; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 287; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 287; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[179]); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_instance_2; - if (par_image == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_image; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 288; - tmp_assign_source_14 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[170], - &PyTuple_GET_ITEM(mod_consts[172], 0) - ); - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_image; - par_image = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_instance_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_3 = par_self; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 290; - tmp_assign_source_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[180]); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_4 = tmp_with_1__source; - tmp_called_name_1 = LOOKUP_SPECIAL(tmp_expression_name_4, mod_consts[181]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 290; - tmp_assign_source_16 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_5 = tmp_with_1__source; - tmp_assign_source_17 = LOOKUP_SPECIAL(tmp_expression_name_5, mod_consts[182]); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_17; - } - { - nuitka_bool tmp_assign_source_18; - tmp_assign_source_18 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_18; - } - // Tried code: - // Tried code: - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[183]; - CHECK_OBJECT(par_modals); - tmp_compexpr_right_1 = par_modals; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_2 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[75]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_tuple_element_1 = par_image; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[184]); - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 292; - tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds_list; - assert(old != NULL); - var_image_embeds_list = tmp_assign_source_19; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - // Tried code: - { - PyObject *tmp_assign_source_21; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_image_embeds_list); - tmp_iter_arg_2 = var_image_embeds_list; - tmp_assign_source_21 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_7; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_22; - } - if (isFrameUnusable(cache_frame_7e1dda8ee60d26582f97bb31596ad357_2)) { - Py_XDECREF(cache_frame_7e1dda8ee60d26582f97bb31596ad357_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7e1dda8ee60d26582f97bb31596ad357_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7e1dda8ee60d26582f97bb31596ad357_2 = MAKE_FUNCTION_FRAME(codeobj_7e1dda8ee60d26582f97bb31596ad357, module_models$medomni_bp, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7e1dda8ee60d26582f97bb31596ad357_2->m_type_description == NULL); - frame_7e1dda8ee60d26582f97bb31596ad357_2 = cache_frame_7e1dda8ee60d26582f97bb31596ad357_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7e1dda8ee60d26582f97bb31596ad357_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7e1dda8ee60d26582f97bb31596ad357_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_23 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_23 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 293; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_24 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_24; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - CHECK_OBJECT(outline_0_var__); - tmp_expression_name_7 = outline_0_var__; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[170]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - if (var_device == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[178]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - - tmp_args_element_name_1 = var_device; - frame_7e1dda8ee60d26582f97bb31596ad357_2->m_frame.f_lineno = 293; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 293; - type_description_2 = "oo"; - goto try_except_handler_8; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_20 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_20); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e1dda8ee60d26582f97bb31596ad357_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e1dda8ee60d26582f97bb31596ad357_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_7; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e1dda8ee60d26582f97bb31596ad357_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7e1dda8ee60d26582f97bb31596ad357_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7e1dda8ee60d26582f97bb31596ad357_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7e1dda8ee60d26582f97bb31596ad357_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7e1dda8ee60d26582f97bb31596ad357_2, - type_description_2, - outline_0_var__, - var_device - ); - - - // Release cached frame if used for exception. - if (frame_7e1dda8ee60d26582f97bb31596ad357_2 == cache_frame_7e1dda8ee60d26582f97bb31596ad357_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7e1dda8ee60d26582f97bb31596ad357_2); - cache_frame_7e1dda8ee60d26582f97bb31596ad357_2 = NULL; - } - - assertFrameObject(frame_7e1dda8ee60d26582f97bb31596ad357_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_7; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 293; - goto try_except_handler_6; - outline_result_1:; - { - PyObject *old = var_image_embeds_list; - var_image_embeds_list = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_image_embeds_list); - tmp_expression_name_8 = var_image_embeds_list; - tmp_subscript_name_1 = mod_consts[185]; - tmp_called_instance_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_1, -1); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 294; - tmp_assign_source_25 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[186]); - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_image_embeds == NULL); - var_image_embeds = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_instance_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_9; - PyObject *tmp_called_instance_6; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_6; - tmp_called_instance_6 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_called_instance_6 == NULL)) { - tmp_called_instance_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_image_embeds); - tmp_args_element_name_2 = var_image_embeds; - tmp_args_element_name_3 = mod_consts[188]; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 295; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_expression_name_9 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_6, - mod_consts[187], - call_args - ); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[24]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_B); - tmp_args_element_name_4 = var_B; - if (var_image_embeds == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[189]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_11 = var_image_embeds; - tmp_expression_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[175]); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_2 = mod_consts[60]; - tmp_args_element_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_2, 1); - Py_DECREF(tmp_expression_name_10); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_6 = mod_consts[185]; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 295; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_called_instance_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 295; - tmp_assign_source_26 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_5, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - Py_DECREF(tmp_called_instance_5); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds; - var_image_embeds = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_12 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[144]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_7 = par_self; - CHECK_OBJECT(var_image_embeds); - tmp_args_element_name_8 = var_image_embeds; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 296; - tmp_args_element_name_7 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[80], tmp_args_element_name_8); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 296; - tmp_assign_source_27 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_inputs_llama == NULL); - var_inputs_llama = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_13; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_14; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_tuple_element_2 = var_inputs_llama; - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[193]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[194]; - if (var_B == NULL) { - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_1 = var_B; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[196]; - CHECK_OBJECT(var_S); - tmp_dict_value_1 = var_S; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 297; - tmp_expression_name_13 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[170]); - Py_DECREF(tmp_expression_name_13); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[113]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 297; - tmp_assign_source_28 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_inputs_llama; - assert(old != NULL); - var_inputs_llama = tmp_assign_source_28; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_15; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_17; - PyObject *tmp_called_instance_8; - PyObject *tmp_subscript_name_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_19; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[197]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_called_instance_8 = var_inputs_llama; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 298; - tmp_expression_name_17 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[33]); - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_3 = mod_consts[198]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_3); - Py_DECREF(tmp_expression_name_17); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[0]; - tmp_expression_name_18 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_18 == NULL)) { - tmp_expression_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[199]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 298; - tmp_expression_name_15 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[170]); - Py_DECREF(tmp_expression_name_15); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_19 = par_image; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[178]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 298; - tmp_assign_source_29 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_atts_llama == NULL); - var_atts_llama = tmp_assign_source_29; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 300; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_11 = par_image; - tmp_args_element_name_12 = mod_consts[200]; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 300; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_assign_source_30 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_10, call_args); - } - - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = par_image; - par_image = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_instance_9; - PyObject *tmp_expression_name_20; - PyObject *tmp_called_instance_10; - PyObject *tmp_args_element_name_13; - PyObject *tmp_subscript_name_4; - PyObject *tmp_args_element_name_14; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_10 = par_self; - CHECK_OBJECT(par_image); - tmp_args_element_name_13 = par_image; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 301; - tmp_expression_name_20 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_10, mod_consts[72], tmp_args_element_name_13); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_4 = mod_consts[201]; - tmp_called_instance_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_20, tmp_subscript_name_4); - Py_DECREF(tmp_expression_name_20); - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_device); - tmp_args_element_name_14 = var_device; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 301; - tmp_assign_source_31 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_9, mod_consts[170], tmp_args_element_name_14); - Py_DECREF(tmp_called_instance_9); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_image_embeds == NULL); - var_image_embeds = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_21; - PyObject *tmp_called_instance_11; - PyObject *tmp_args_element_name_15; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_args_element_name_16; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - CHECK_OBJECT(var_image_embeds); - tmp_called_instance_11 = var_image_embeds; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 302; - tmp_expression_name_21 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_11, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[24]); - Py_DECREF(tmp_expression_name_21); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_B); - tmp_left_name_1 = var_B; - CHECK_OBJECT(var_S); - tmp_right_name_1 = var_S; - tmp_args_element_name_15 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_16 = mod_consts[185]; - tmp_args_element_name_17 = mod_consts[202]; - tmp_args_element_name_18 = mod_consts[202]; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 302; - { - PyObject *call_args[] = {tmp_args_element_name_15, tmp_args_element_name_16, tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_assign_source_32 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_11, call_args); - } - - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_15); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_image_embeds_unp == NULL); - var_image_embeds_unp = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_instance_12; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - tmp_called_instance_12 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_called_instance_12 == NULL)) { - tmp_called_instance_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_image_embeds_unp); - tmp_args_element_name_19 = var_image_embeds_unp; - tmp_args_element_name_20 = mod_consts[204]; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 303; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_assign_source_33 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_12, - mod_consts[203], - call_args - ); - } - - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds_unp; - var_image_embeds_unp = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_instance_13; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_element_name_21; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_args_element_name_22; - PyObject *tmp_args_element_name_23; - CHECK_OBJECT(var_image_embeds_unp); - tmp_expression_name_22 = var_image_embeds_unp; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[24]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (var_B == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_left_name_2 = var_B; - if (var_S == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_right_name_2 = var_S; - tmp_args_element_name_21 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_args_element_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_12); - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_22 = mod_consts[185]; - tmp_args_element_name_23 = mod_consts[206]; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 304; - { - PyObject *call_args[] = {tmp_args_element_name_21, tmp_args_element_name_22, tmp_args_element_name_23}; - tmp_called_instance_13 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_12, call_args); - } - - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_21); - if (tmp_called_instance_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 304; - tmp_assign_source_34 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_13, - mod_consts[190], - &PyTuple_GET_ITEM(mod_consts[191], 0) - ); - - Py_DECREF(tmp_called_instance_13); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 304; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_image_embeds; - var_image_embeds = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_element_name_24; - PyObject *tmp_called_instance_14; - PyObject *tmp_args_element_name_25; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_23 = par_self; - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[143]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_13); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_14 = par_self; - CHECK_OBJECT(var_image_embeds); - tmp_args_element_name_25 = var_image_embeds; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 305; - tmp_args_element_name_24 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_14, mod_consts[78], tmp_args_element_name_25); - if (tmp_args_element_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 305; - tmp_assign_source_35 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_13, tmp_args_element_name_24); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_element_name_24); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_inputs_llama == NULL); - var_inputs_llama = tmp_assign_source_35; - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = mod_consts[207]; - CHECK_OBJECT(par_task_types); - tmp_compexpr_right_2 = par_task_types; - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_3 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_36; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_24; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_args_element_name_26; - PyObject *tmp_expression_name_25; - tmp_called_name_15 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_15 == NULL)) { - tmp_called_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_tuple_element_4 = var_inputs_llama; - tmp_args_name_4 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[193]; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_4); - tmp_dict_key_3 = mod_consts[194]; - if (var_B == NULL) { - Py_DECREF(tmp_args_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_3 = var_B; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[196]; - if (var_S == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_3 = var_S; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - goto try_except_handler_6; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 307; - tmp_expression_name_24 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[170]); - Py_DECREF(tmp_expression_name_24); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_25 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_25 == NULL)) { - tmp_expression_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[113]); - if (tmp_args_element_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 307; - tmp_assign_source_36 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_14, tmp_args_element_name_26); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_element_name_26); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_inputs_llama; - assert(old != NULL); - var_inputs_llama = tmp_assign_source_36; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_26; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_28; - PyObject *tmp_called_instance_15; - PyObject *tmp_subscript_name_5; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_30; - tmp_expression_name_27 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_27 == NULL)) { - tmp_expression_name_27 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[197]); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_called_instance_15 = var_inputs_llama; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 308; - tmp_expression_name_28 = CALL_METHOD_NO_ARGS(tmp_called_instance_15, mod_consts[33]); - if (tmp_expression_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_5 = mod_consts[198]; - tmp_tuple_element_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_28, tmp_subscript_name_5); - Py_DECREF(tmp_expression_name_28); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_5, 0, tmp_tuple_element_5); - tmp_dict_key_4 = mod_consts[0]; - tmp_expression_name_29 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_29 == NULL)) { - tmp_expression_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_5); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[199]); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_5); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_kwargs_name_5 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 308; - tmp_expression_name_26 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_expression_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[170]); - Py_DECREF(tmp_expression_name_26); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_30 = par_image; - tmp_args_element_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[178]); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 308; - tmp_assign_source_37 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_27); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_27); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_atts_llama == NULL); - var_atts_llama = tmp_assign_source_37; - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_instance_16; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_31; - PyObject *tmp_called_name_19; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - PyObject *tmp_args_element_name_28; - PyObject *tmp_expression_name_32; - tmp_called_name_19 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_19 == NULL)) { - tmp_called_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_tuple_element_6 = var_inputs_llama; - tmp_args_name_6 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_tuple_element_6 = mod_consts[193]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_6); - tmp_dict_key_5 = mod_consts[194]; - if (var_B == NULL) { - Py_DECREF(tmp_args_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[195]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_dict_value_5 = var_B; - tmp_kwargs_name_6 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[196]; - if (var_S == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_5 = var_S; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - goto try_except_handler_6; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 310; - tmp_expression_name_31 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[170]); - Py_DECREF(tmp_expression_name_31); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_32 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_32 == NULL)) { - tmp_expression_name_32 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[113]); - if (tmp_args_element_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_18); - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 310; - tmp_called_instance_16 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_18, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_element_name_28); - if (tmp_called_instance_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 310; - tmp_assign_source_38 = CALL_METHOD_NO_ARGS(tmp_called_instance_16, mod_consts[186]); - Py_DECREF(tmp_called_instance_16); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_inputs_llama; - assert(old != NULL); - var_inputs_llama = tmp_assign_source_38; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_instance_17; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_33; - PyObject *tmp_called_name_21; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_7; - PyObject *tmp_expression_name_35; - PyObject *tmp_called_instance_18; - PyObject *tmp_subscript_name_6; - PyObject *tmp_kwargs_name_7; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - PyObject *tmp_expression_name_36; - PyObject *tmp_args_element_name_29; - PyObject *tmp_expression_name_37; - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[197]); - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_inputs_llama); - tmp_called_instance_18 = var_inputs_llama; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - tmp_expression_name_35 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[33]); - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_subscript_name_6 = mod_consts[198]; - tmp_tuple_element_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_35, tmp_subscript_name_6); - Py_DECREF(tmp_expression_name_35); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_7, 0, tmp_tuple_element_7); - tmp_dict_key_6 = mod_consts[0]; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[199]); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_7); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_kwargs_name_7 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - tmp_expression_name_33 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[170]); - Py_DECREF(tmp_expression_name_33); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - if (par_image == NULL) { - Py_DECREF(tmp_called_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_37 = par_image; - tmp_args_element_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[178]); - if (tmp_args_element_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_20); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - tmp_called_instance_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_29); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_args_element_name_29); - if (tmp_called_instance_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - tmp_assign_source_39 = CALL_METHOD_NO_ARGS(tmp_called_instance_17, mod_consts[186]); - Py_DECREF(tmp_called_instance_17); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_6; - } - assert(var_atts_llama == NULL); - var_atts_llama = tmp_assign_source_39; - } - branch_end_3:; - branch_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_5 == NULL) { - exception_keeper_tb_5 = MAKE_TRACEBACK(frame_cf7c573f3eabc09b380bf631954f6108, exception_keeper_lineno_5); - } else if (exception_keeper_lineno_5 != 0) { - exception_keeper_tb_5 = ADD_TRACEBACK(exception_keeper_tb_5, frame_cf7c573f3eabc09b380bf631954f6108, exception_keeper_lineno_5); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_5, &exception_keeper_value_5, &exception_keeper_tb_5); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_5, exception_keeper_tb_5); - PUBLISH_EXCEPTION(&exception_keeper_type_5, &exception_keeper_value_5, &exception_keeper_tb_5); - // Tried code: - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - tmp_compexpr_left_3 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_3 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_3, tmp_compexpr_right_3); - assert(!(tmp_res == -1)); - tmp_condition_result_4 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - nuitka_bool tmp_assign_source_40; - tmp_assign_source_40 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_40; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_22; - PyObject *tmp_args_element_name_30; - PyObject *tmp_args_element_name_31; - PyObject *tmp_args_element_name_32; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_22 = tmp_with_1__exit; - tmp_args_element_name_30 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_31 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_32 = EXC_TRACEBACK(PyThreadState_GET()); - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - { - PyObject *call_args[] = {tmp_args_element_name_30, tmp_args_element_name_31, tmp_args_element_name_32}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_22, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 311; - } - - if (exception_tb && exception_tb->tb_frame == &frame_cf7c573f3eabc09b380bf631954f6108->m_frame) frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - branch_no_5:; - goto branch_end_4; - branch_no_4:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 290; - } - - if (exception_tb && exception_tb->tb_frame == &frame_cf7c573f3eabc09b380bf631954f6108->m_frame) frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_9; - branch_end_4:; - goto try_end_4; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_5; - // End of try: - try_end_4:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_3; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_3:; - goto try_end_5; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_6; - nuitka_bool tmp_compexpr_left_4; - nuitka_bool tmp_compexpr_right_4; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_4 = tmp_with_1__indicator; - tmp_compexpr_right_4 = NUITKA_BOOL_TRUE; - tmp_condition_result_6 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_called_name_23; - PyObject *tmp_call_result_2; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_23 = tmp_with_1__exit; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_23, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_7); - Py_XDECREF(exception_keeper_value_7); - Py_XDECREF(exception_keeper_tb_7); - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_6:; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_4; - // End of try: - try_end_5:; - { - bool tmp_condition_result_7; - nuitka_bool tmp_compexpr_left_5; - nuitka_bool tmp_compexpr_right_5; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_5 = tmp_with_1__indicator; - tmp_compexpr_right_5 = NUITKA_BOOL_TRUE; - tmp_condition_result_7 = (tmp_compexpr_left_5 == tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_called_name_24; - PyObject *tmp_call_result_3; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_24 = tmp_with_1__exit; - frame_cf7c573f3eabc09b380bf631954f6108->m_frame.f_lineno = 311; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_24, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_7:; - goto try_end_6; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - { - PyObject *tmp_tuple_element_8; - if (var_inputs_llama == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[209]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_8 = var_inputs_llama; - tmp_return_value = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_8); - if (var_atts_llama == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[210]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_8 = var_atts_llama; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_8); - if (var_image_embeds_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[211]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 313; - type_description_1 = "ooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_8 = var_image_embeds_list; - PyTuple_SET_ITEM0(tmp_return_value, 2, tmp_tuple_element_8); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cf7c573f3eabc09b380bf631954f6108); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cf7c573f3eabc09b380bf631954f6108); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cf7c573f3eabc09b380bf631954f6108); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_cf7c573f3eabc09b380bf631954f6108, exception_lineno); - } else if (exception_tb->tb_frame != &frame_cf7c573f3eabc09b380bf631954f6108->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_cf7c573f3eabc09b380bf631954f6108, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_cf7c573f3eabc09b380bf631954f6108, - type_description_1, - par_self, - par_image, - par_modals, - par_task_types, - var_B, - var_S, - var__, - var_device, - var_image_embeds_list, - var_image_embeds, - var_inputs_llama, - var_atts_llama, - var_image_embeds_unp - ); - - - // Release cached frame if used for exception. - if (frame_cf7c573f3eabc09b380bf631954f6108 == cache_frame_cf7c573f3eabc09b380bf631954f6108) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_cf7c573f3eabc09b380bf631954f6108); - cache_frame_cf7c573f3eabc09b380bf631954f6108 = NULL; - } - - assertFrameObject(frame_cf7c573f3eabc09b380bf631954f6108); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_image); - par_image = NULL; - CHECK_OBJECT(par_modals); - Py_DECREF(par_modals); - par_modals = NULL; - CHECK_OBJECT(par_task_types); - Py_DECREF(par_task_types); - par_task_types = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_S); - var_S = NULL; - CHECK_OBJECT(var__); - Py_DECREF(var__); - var__ = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_image_embeds_list); - var_image_embeds_list = NULL; - Py_XDECREF(var_image_embeds); - var_image_embeds = NULL; - Py_XDECREF(var_inputs_llama); - var_inputs_llama = NULL; - Py_XDECREF(var_atts_llama); - var_atts_llama = NULL; - Py_XDECREF(var_image_embeds_unp); - var_image_embeds_unp = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_image); - par_image = NULL; - CHECK_OBJECT(par_modals); - Py_DECREF(par_modals); - par_modals = NULL; - CHECK_OBJECT(par_task_types); - Py_DECREF(par_task_types); - par_task_types = NULL; - Py_XDECREF(var_B); - var_B = NULL; - Py_XDECREF(var_S); - var_S = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_image_embeds_list); - var_image_embeds_list = NULL; - Py_XDECREF(var_image_embeds); - var_image_embeds = NULL; - Py_XDECREF(var_inputs_llama); - var_inputs_llama = NULL; - Py_XDECREF(var_atts_llama); - var_atts_llama = NULL; - Py_XDECREF(var_image_embeds_unp); - var_image_embeds_unp = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__15_prompt_concat(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_img_embeds = python_pars[1]; - PyObject *par_atts_img = python_pars[2]; - PyObject *par_prompt = python_pars[3]; - PyObject *var_batch_size = NULL; - PyObject *var_p_after_embeds = NULL; - PyObject *var_wrapped_img_embeds = NULL; - PyObject *var_wrapped_atts_img = NULL; - struct Nuitka_FrameObject *frame_40a21ff435291cacab2ca20091a7e59f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_40a21ff435291cacab2ca20091a7e59f = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_40a21ff435291cacab2ca20091a7e59f)) { - Py_XDECREF(cache_frame_40a21ff435291cacab2ca20091a7e59f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_40a21ff435291cacab2ca20091a7e59f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_40a21ff435291cacab2ca20091a7e59f = MAKE_FUNCTION_FRAME(codeobj_40a21ff435291cacab2ca20091a7e59f, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_40a21ff435291cacab2ca20091a7e59f->m_type_description == NULL); - frame_40a21ff435291cacab2ca20091a7e59f = cache_frame_40a21ff435291cacab2ca20091a7e59f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_40a21ff435291cacab2ca20091a7e59f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_40a21ff435291cacab2ca20091a7e59f) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_prompt); - tmp_truth_name_1 = CHECK_IF_TRUE(par_prompt); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_img_embeds); - tmp_expression_name_2 = par_img_embeds; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[175]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_batch_size == NULL); - var_batch_size = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[119]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_prompt); - tmp_expression_name_4 = par_prompt; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[104]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_40a21ff435291cacab2ca20091a7e59f->m_frame.f_lineno = 318; - tmp_called_instance_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_2 = var_batch_size; - tmp_args_element_name_3 = mod_consts[185]; - tmp_args_element_name_4 = mod_consts[185]; - frame_40a21ff435291cacab2ca20091a7e59f->m_frame.f_lineno = 318; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_1, - mod_consts[212], - call_args - ); - } - - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_p_after_embeds == NULL); - var_p_after_embeds = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_list_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[213]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_list_element_1 = par_img_embeds; - tmp_tuple_element_1 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_1, 0, tmp_list_element_1); - CHECK_OBJECT(var_p_after_embeds); - tmp_list_element_1 = var_p_after_embeds; - PyList_SET_ITEM0(tmp_tuple_element_1, 1, tmp_list_element_1); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[215]); - frame_40a21ff435291cacab2ca20091a7e59f->m_frame.f_lineno = 319; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_wrapped_img_embeds == NULL); - var_wrapped_img_embeds = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(par_atts_img); - tmp_expression_name_7 = par_atts_img; - tmp_subscript_name_2 = mod_consts[216]; - tmp_expression_name_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_2); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[212]); - Py_DECREF(tmp_expression_name_6); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_5 = mod_consts[185]; - CHECK_OBJECT(var_wrapped_img_embeds); - tmp_expression_name_9 = var_wrapped_img_embeds; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[175]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[60]; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_3, 1); - Py_DECREF(tmp_expression_name_8); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_40a21ff435291cacab2ca20091a7e59f->m_frame.f_lineno = 320; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assign_source_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_wrapped_atts_img == NULL); - var_wrapped_atts_img = tmp_assign_source_4; - } - { - PyObject *tmp_tuple_element_2; - if (var_wrapped_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[217]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 321; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_wrapped_img_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_wrapped_atts_img); - tmp_tuple_element_2 = var_wrapped_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_tuple_element_3; - CHECK_OBJECT(par_img_embeds); - tmp_tuple_element_3 = par_img_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_3); - CHECK_OBJECT(par_atts_img); - tmp_tuple_element_3 = par_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_3); - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_40a21ff435291cacab2ca20091a7e59f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_40a21ff435291cacab2ca20091a7e59f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_40a21ff435291cacab2ca20091a7e59f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_40a21ff435291cacab2ca20091a7e59f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_40a21ff435291cacab2ca20091a7e59f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_40a21ff435291cacab2ca20091a7e59f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_40a21ff435291cacab2ca20091a7e59f, - type_description_1, - par_self, - par_img_embeds, - par_atts_img, - par_prompt, - var_batch_size, - var_p_after_embeds, - var_wrapped_img_embeds, - var_wrapped_atts_img - ); - - - // Release cached frame if used for exception. - if (frame_40a21ff435291cacab2ca20091a7e59f == cache_frame_40a21ff435291cacab2ca20091a7e59f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_40a21ff435291cacab2ca20091a7e59f); - cache_frame_40a21ff435291cacab2ca20091a7e59f = NULL; - } - - assertFrameObject(frame_40a21ff435291cacab2ca20091a7e59f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt); - par_prompt = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_p_after_embeds); - var_p_after_embeds = NULL; - Py_XDECREF(var_wrapped_img_embeds); - var_wrapped_img_embeds = NULL; - Py_XDECREF(var_wrapped_atts_img); - var_wrapped_atts_img = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt); - par_prompt = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_p_after_embeds); - var_p_after_embeds = NULL; - Py_XDECREF(var_wrapped_img_embeds); - var_wrapped_img_embeds = NULL; - Py_XDECREF(var_wrapped_atts_img); - var_wrapped_atts_img = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__16_prompt_wrap(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_img_embeds = python_pars[1]; - PyObject *par_atts_img = python_pars[2]; - PyObject *par_prompt_list = python_pars[3]; - PyObject *par_num_imgs = python_pars[4]; - PyObject *par_seg = python_pars[5]; - PyObject *var_bsz = NULL; - PyObject *var_img_idx = NULL; - PyObject *var_i = NULL; - PyObject *var_j = NULL; - PyObject *var_prompt_tokens = NULL; - PyObject *var_idx = NULL; - PyObject *var_p_embeds = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - struct Nuitka_FrameObject *frame_213cbc07f24f34b89cdb18c9cf2e6690; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_213cbc07f24f34b89cdb18c9cf2e6690 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_213cbc07f24f34b89cdb18c9cf2e6690)) { - Py_XDECREF(cache_frame_213cbc07f24f34b89cdb18c9cf2e6690); - -#if _DEBUG_REFCOUNTS - if (cache_frame_213cbc07f24f34b89cdb18c9cf2e6690 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_213cbc07f24f34b89cdb18c9cf2e6690 = MAKE_FUNCTION_FRAME(codeobj_213cbc07f24f34b89cdb18c9cf2e6690, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_213cbc07f24f34b89cdb18c9cf2e6690->m_type_description == NULL); - frame_213cbc07f24f34b89cdb18c9cf2e6690 = cache_frame_213cbc07f24f34b89cdb18c9cf2e6690; - - // Push the new frame as the currently active one. - pushFrameStack(frame_213cbc07f24f34b89cdb18c9cf2e6690); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_213cbc07f24f34b89cdb18c9cf2e6690) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_img_embeds); - tmp_expression_name_2 = par_img_embeds; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[175]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bsz == NULL); - var_bsz = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_prompt_list); - tmp_truth_name_1 = CHECK_IF_TRUE(par_prompt_list); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = DEEP_COPY(mod_consts[218]); - assert(var_img_idx == NULL); - var_img_idx = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_len_arg_1; - CHECK_OBJECT(par_num_imgs); - tmp_len_arg_1 = par_num_imgs; - tmp_xrange_low_1 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooo"; - exception_lineno = 329; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_5; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_xrange_low_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (par_num_imgs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[219]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_num_imgs; - CHECK_OBJECT(var_i); - tmp_subscript_name_2 = var_i; - tmp_xrange_low_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_xrange_low_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_iter_arg_2 = BUILTIN_XRANGE1(tmp_xrange_low_2); - Py_DECREF(tmp_xrange_low_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooo"; - exception_lineno = 330; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_8 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_j; - var_j = tmp_assign_source_8; - Py_INCREF(var_j); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_3; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_5 = var_img_idx; - tmp_subscript_name_3 = mod_consts[11]; - tmp_expression_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_3, 0); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[221]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - if (var_i == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = var_i; - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 331; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 332; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_6 = var_img_idx; - tmp_subscript_name_4 = mod_consts[60]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_4, 1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_j); - tmp_args_element_name_2 = var_j; - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 332; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[221], tmp_args_element_name_2); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(par_self); - tmp_expression_name_8 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[93]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_prompt_list); - tmp_tuple_element_1 = par_prompt_list; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[223]); - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 333; - tmp_expression_name_7 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[170]); - Py_DECREF(tmp_expression_name_7); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_img_embeds; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[178]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 333; - tmp_assign_source_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prompt_tokens == NULL); - var_prompt_tokens = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(var_prompt_tokens); - tmp_expression_name_11 = var_prompt_tokens; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[104]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[224]; - tmp_expression_name_10 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[225]); - Py_DECREF(tmp_expression_name_10); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[226]); - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 334; - tmp_assign_source_10 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_idx == NULL); - var_idx = tmp_assign_source_10; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_ass_subscript_1; - tmp_ass_subvalue_1 = mod_consts[227]; - if (var_prompt_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[228]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 335; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = var_prompt_tokens; - tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[104]); - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_idx); - tmp_ass_subscript_1 = var_idx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscribed_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[119]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_prompt_tokens == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[228]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = var_prompt_tokens; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[104]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 336; - tmp_called_instance_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_4); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bsz); - tmp_args_element_name_5 = var_bsz; - tmp_args_element_name_6 = mod_consts[185]; - tmp_args_element_name_7 = mod_consts[185]; - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 336; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_11 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[212], - call_args - ); - } - - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_p_embeds == NULL); - var_p_embeds = tmp_assign_source_11; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_seg); - tmp_compexpr_left_2 = par_seg; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_15; - PyObject *tmp_called_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_5; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_17; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_img_embeds; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_subscript_name_5 = var_img_idx; - tmp_args_element_name_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_16, tmp_subscript_name_5); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = mod_consts[229]; - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 338; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_expression_name_15 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_args_element_name_8); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[170]); - Py_DECREF(tmp_expression_name_15); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_17 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_17 == NULL)) { - tmp_expression_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[113]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 338; - tmp_ass_subvalue_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_10); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_p_embeds); - tmp_ass_subscribed_2 = var_p_embeds; - CHECK_OBJECT(var_idx); - tmp_ass_subscript_2 = var_idx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_18; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_11; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_6; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_20; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[192]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_img_embeds; - if (var_img_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[220]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_subscript_name_6 = var_img_idx; - tmp_args_element_name_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_6); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_12 = mod_consts[229]; - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 340; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_expression_name_18 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_args_element_name_11); - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[170]); - Py_DECREF(tmp_expression_name_18); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[113]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 340; - tmp_called_instance_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_13); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame.f_lineno = 340; - tmp_ass_subvalue_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[186]); - Py_DECREF(tmp_called_instance_3); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_p_embeds); - tmp_ass_subscribed_3 = var_p_embeds; - CHECK_OBJECT(var_idx); - tmp_ass_subscript_3 = var_idx; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_tuple_element_2; - if (var_p_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[230]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 341; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_p_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_atts_img); - tmp_tuple_element_2 = par_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_tuple_element_3; - if (par_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 343; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_img_embeds; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_3); - CHECK_OBJECT(par_atts_img); - tmp_tuple_element_3 = par_atts_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_3); - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_213cbc07f24f34b89cdb18c9cf2e6690); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_213cbc07f24f34b89cdb18c9cf2e6690); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_213cbc07f24f34b89cdb18c9cf2e6690); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_213cbc07f24f34b89cdb18c9cf2e6690, exception_lineno); - } else if (exception_tb->tb_frame != &frame_213cbc07f24f34b89cdb18c9cf2e6690->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_213cbc07f24f34b89cdb18c9cf2e6690, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_213cbc07f24f34b89cdb18c9cf2e6690, - type_description_1, - par_self, - par_img_embeds, - par_atts_img, - par_prompt_list, - par_num_imgs, - par_seg, - var_bsz, - var_img_idx, - var_i, - var_j, - var_prompt_tokens, - var_idx, - var_p_embeds - ); - - - // Release cached frame if used for exception. - if (frame_213cbc07f24f34b89cdb18c9cf2e6690 == cache_frame_213cbc07f24f34b89cdb18c9cf2e6690) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_213cbc07f24f34b89cdb18c9cf2e6690); - cache_frame_213cbc07f24f34b89cdb18c9cf2e6690 = NULL; - } - - assertFrameObject(frame_213cbc07f24f34b89cdb18c9cf2e6690); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt_list); - par_prompt_list = NULL; - Py_XDECREF(par_num_imgs); - par_num_imgs = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_idx); - var_img_idx = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_idx); - var_idx = NULL; - Py_XDECREF(var_p_embeds); - var_p_embeds = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_img_embeds); - par_img_embeds = NULL; - CHECK_OBJECT(par_atts_img); - Py_DECREF(par_atts_img); - par_atts_img = NULL; - Py_XDECREF(par_prompt_list); - par_prompt_list = NULL; - Py_XDECREF(par_num_imgs); - par_num_imgs = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_idx); - var_img_idx = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_idx); - var_idx = NULL; - Py_XDECREF(var_p_embeds); - var_p_embeds = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$medomni_bp$$$function__17_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_samples = python_pars[1]; - PyObject *var_image = NULL; - PyObject *var_bsz = NULL; - PyObject *var_img_embeds = NULL; - PyObject *var_atts_img = NULL; - PyObject *var_img_embeds_list = NULL; - PyObject *var_prefix_list = NULL; - PyObject *var_tag_list = NULL; - PyObject *var_placeholder = NULL; - PyObject *var_j = NULL; - PyObject *var_num = NULL; - PyObject *var_prefix = NULL; - PyObject *var_i = NULL; - PyObject *var_prompt = NULL; - PyObject *var_tags = NULL; - PyObject *var_tag = NULL; - PyObject *var_sample_ans = NULL; - PyObject *var_sample_num = NULL; - PyObject *var_text = NULL; - PyObject *var_prompt_tokens = NULL; - PyObject *var_to_regress_tokens = NULL; - PyObject *var_targets = NULL; - PyObject *var_empty_targets = NULL; - PyObject *var_batch_size = NULL; - PyObject *var_bos = NULL; - PyObject *var_bos_embeds = NULL; - PyObject *var_atts_bos = NULL; - PyObject *var_to_regress_embeds = NULL; - PyObject *var_inputs_embeds = NULL; - PyObject *var_attention_mask = NULL; - PyObject *var_outputs = NULL; - PyObject *var_loss = NULL; - PyObject *var_hidden_states = NULL; - PyObject *var_token_mask = NULL; - PyObject *var_target_states = NULL; - PyObject *var_det_states = NULL; - PyObject *var_labels = NULL; - PyObject *var_det_loss = NULL; - PyObject *var_point_states = NULL; - PyObject *var_keypoint_loss = NULL; - PyObject *var_masks = NULL; - PyObject *var_seg_states = NULL; - PyObject *var_last_feats = NULL; - PyObject *var_seg_preds = NULL; - PyObject *var_feats = NULL; - PyObject *var_seg_feats = NULL; - PyObject *outline_0_var__ = NULL; - PyObject *outline_1_var_t = NULL; - PyObject *outline_2_var_ans = NULL; - PyObject *outline_3_var_ans = NULL; - PyObject *outline_4_var_t = NULL; - PyObject *outline_5_var__ = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - PyObject *tmp_for_loop_4__for_iterator = NULL; - PyObject *tmp_for_loop_4__iter_value = NULL; - PyObject *tmp_genexpr_1__$0 = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_listcomp_2__$0 = NULL; - PyObject *tmp_listcomp_2__contraction = NULL; - PyObject *tmp_listcomp_2__iter_value_0 = NULL; - PyObject *tmp_listcomp_3__$0 = NULL; - PyObject *tmp_listcomp_3__contraction = NULL; - PyObject *tmp_listcomp_3__iter_value_0 = NULL; - PyObject *tmp_listcomp_4__$0 = NULL; - PyObject *tmp_listcomp_4__contraction = NULL; - PyObject *tmp_listcomp_4__iter_value_0 = NULL; - PyObject *tmp_listcomp_5__$0 = NULL; - PyObject *tmp_listcomp_5__contraction = NULL; - PyObject *tmp_listcomp_5__iter_value_0 = NULL; - PyObject *tmp_listcomp_6__$0 = NULL; - PyObject *tmp_listcomp_6__contraction = NULL; - PyObject *tmp_listcomp_6__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - PyObject *tmp_with_2__enter = NULL; - PyObject *tmp_with_2__exit = NULL; - nuitka_bool tmp_with_2__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_2__source = NULL; - PyObject *tmp_with_3__enter = NULL; - PyObject *tmp_with_3__exit = NULL; - nuitka_bool tmp_with_3__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_3__source = NULL; - PyObject *tmp_with_4__enter = NULL; - PyObject *tmp_with_4__exit = NULL; - nuitka_bool tmp_with_4__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_4__source = NULL; - PyObject *tmp_with_5__enter = NULL; - PyObject *tmp_with_5__exit = NULL; - nuitka_bool tmp_with_5__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_5__source = NULL; - PyObject *tmp_with_6__enter = NULL; - PyObject *tmp_with_6__exit = NULL; - nuitka_bool tmp_with_6__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_6__source = NULL; - PyObject *tmp_with_7__enter = NULL; - PyObject *tmp_with_7__exit = NULL; - nuitka_bool tmp_with_7__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_7__source = NULL; - struct Nuitka_FrameObject *frame_fe557d162e569c6a186cf09bbb51e6fa; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - struct Nuitka_FrameObject *frame_a23b435d9c357edb4040285571eceffb_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_a23b435d9c357edb4040285571eceffb_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - int tmp_res; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - struct Nuitka_FrameObject *frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - static struct Nuitka_FrameObject *cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - struct Nuitka_FrameObject *frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - static struct Nuitka_FrameObject *cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4 = NULL; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - struct Nuitka_FrameObject *frame_61c6cd3e0de25dc41165ffa6ed32e42c_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - static struct Nuitka_FrameObject *cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - struct Nuitka_FrameObject *frame_df4c04242bced16e5cdef975c429cb8d_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - static struct Nuitka_FrameObject *cache_frame_df4c04242bced16e5cdef975c429cb8d_6 = NULL; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *exception_preserved_type_2; - PyObject *exception_preserved_value_2; - PyTracebackObject *exception_preserved_tb_2; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - PyObject *exception_keeper_type_29; - PyObject *exception_keeper_value_29; - PyTracebackObject *exception_keeper_tb_29; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_29; - PyObject *exception_preserved_type_3; - PyObject *exception_preserved_value_3; - PyTracebackObject *exception_preserved_tb_3; - PyObject *exception_keeper_type_30; - PyObject *exception_keeper_value_30; - PyTracebackObject *exception_keeper_tb_30; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_30; - PyObject *exception_keeper_type_31; - PyObject *exception_keeper_value_31; - PyTracebackObject *exception_keeper_tb_31; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_31; - PyObject *exception_keeper_type_32; - PyObject *exception_keeper_value_32; - PyTracebackObject *exception_keeper_tb_32; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_32; - PyObject *exception_keeper_type_33; - PyObject *exception_keeper_value_33; - PyTracebackObject *exception_keeper_tb_33; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_33; - PyObject *exception_preserved_type_4; - PyObject *exception_preserved_value_4; - PyTracebackObject *exception_preserved_tb_4; - PyObject *exception_keeper_type_34; - PyObject *exception_keeper_value_34; - PyTracebackObject *exception_keeper_tb_34; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_34; - PyObject *exception_keeper_type_35; - PyObject *exception_keeper_value_35; - PyTracebackObject *exception_keeper_tb_35; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_35; - PyObject *exception_keeper_type_36; - PyObject *exception_keeper_value_36; - PyTracebackObject *exception_keeper_tb_36; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_36; - PyObject *exception_keeper_type_37; - PyObject *exception_keeper_value_37; - PyTracebackObject *exception_keeper_tb_37; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_37; - PyObject *exception_preserved_type_5; - PyObject *exception_preserved_value_5; - PyTracebackObject *exception_preserved_tb_5; - PyObject *exception_keeper_type_38; - PyObject *exception_keeper_value_38; - PyTracebackObject *exception_keeper_tb_38; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_38; - PyObject *exception_keeper_type_39; - PyObject *exception_keeper_value_39; - PyTracebackObject *exception_keeper_tb_39; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_39; - PyObject *exception_keeper_type_40; - PyObject *exception_keeper_value_40; - PyTracebackObject *exception_keeper_tb_40; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_40; - struct Nuitka_FrameObject *frame_b2b96fbed34f62b539d2c554c20d923d_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - PyObject *exception_keeper_type_41; - PyObject *exception_keeper_value_41; - PyTracebackObject *exception_keeper_tb_41; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_41; - static struct Nuitka_FrameObject *cache_frame_b2b96fbed34f62b539d2c554c20d923d_7 = NULL; - PyObject *exception_keeper_type_42; - PyObject *exception_keeper_value_42; - PyTracebackObject *exception_keeper_tb_42; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_42; - PyObject *exception_keeper_type_43; - PyObject *exception_keeper_value_43; - PyTracebackObject *exception_keeper_tb_43; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_43; - PyObject *exception_preserved_type_6; - PyObject *exception_preserved_value_6; - PyTracebackObject *exception_preserved_tb_6; - PyObject *exception_keeper_type_44; - PyObject *exception_keeper_value_44; - PyTracebackObject *exception_keeper_tb_44; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_44; - PyObject *exception_keeper_type_45; - PyObject *exception_keeper_value_45; - PyTracebackObject *exception_keeper_tb_45; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_45; - PyObject *exception_keeper_type_46; - PyObject *exception_keeper_value_46; - PyTracebackObject *exception_keeper_tb_46; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_46; - PyObject *exception_keeper_type_47; - PyObject *exception_keeper_value_47; - PyTracebackObject *exception_keeper_tb_47; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_47; - PyObject *exception_preserved_type_7; - PyObject *exception_preserved_value_7; - PyTracebackObject *exception_preserved_tb_7; - PyObject *exception_keeper_type_48; - PyObject *exception_keeper_value_48; - PyTracebackObject *exception_keeper_tb_48; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_48; - PyObject *exception_keeper_type_49; - PyObject *exception_keeper_value_49; - PyTracebackObject *exception_keeper_tb_49; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_49; - PyObject *exception_keeper_type_50; - PyObject *exception_keeper_value_50; - PyTracebackObject *exception_keeper_tb_50; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_50; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_fe557d162e569c6a186cf09bbb51e6fa = NULL; - PyObject *exception_keeper_type_51; - PyObject *exception_keeper_value_51; - PyTracebackObject *exception_keeper_tb_51; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_51; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fe557d162e569c6a186cf09bbb51e6fa)) { - Py_XDECREF(cache_frame_fe557d162e569c6a186cf09bbb51e6fa); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fe557d162e569c6a186cf09bbb51e6fa == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fe557d162e569c6a186cf09bbb51e6fa = MAKE_FUNCTION_FRAME(codeobj_fe557d162e569c6a186cf09bbb51e6fa, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fe557d162e569c6a186cf09bbb51e6fa->m_type_description == NULL); - frame_fe557d162e569c6a186cf09bbb51e6fa = cache_frame_fe557d162e569c6a186cf09bbb51e6fa; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fe557d162e569c6a186cf09bbb51e6fa); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fe557d162e569c6a186cf09bbb51e6fa) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_samples); - tmp_expression_name_1 = par_samples; - tmp_subscript_name_1 = mod_consts[177]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 346; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_image == NULL); - var_image = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_image); - tmp_expression_name_3 = var_image; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[175]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[11]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bsz == NULL); - var_bsz = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[231]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_1 = var_image; - CHECK_OBJECT(par_samples); - tmp_expression_name_5 = par_samples; - tmp_subscript_name_3 = mod_consts[232]; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_samples); - tmp_expression_name_6 = par_samples; - tmp_subscript_name_4 = mod_consts[233]; - tmp_args_element_name_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_4); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 348; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[234]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 348; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_img_embeds == NULL); - Py_INCREF(tmp_assign_source_7); - var_img_embeds = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_atts_img == NULL); - Py_INCREF(tmp_assign_source_8); - var_atts_img = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var_img_embeds_list == NULL); - Py_INCREF(tmp_assign_source_9); - var_img_embeds_list = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_10; - tmp_assign_source_10 = PyList_New(0); - assert(var_prefix_list == NULL); - var_prefix_list = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_2; - PyObject *tmp_xrange_low_1; - CHECK_OBJECT(var_bsz); - tmp_xrange_low_1 = var_bsz; - tmp_iter_arg_2 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_12 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - tmp_assign_source_13 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_13; - } - if (isFrameUnusable(cache_frame_a23b435d9c357edb4040285571eceffb_2)) { - Py_XDECREF(cache_frame_a23b435d9c357edb4040285571eceffb_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a23b435d9c357edb4040285571eceffb_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a23b435d9c357edb4040285571eceffb_2 = MAKE_FUNCTION_FRAME(codeobj_a23b435d9c357edb4040285571eceffb, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a23b435d9c357edb4040285571eceffb_2->m_type_description == NULL); - frame_a23b435d9c357edb4040285571eceffb_2 = cache_frame_a23b435d9c357edb4040285571eceffb_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a23b435d9c357edb4040285571eceffb_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a23b435d9c357edb4040285571eceffb_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_14 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_14 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 350; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_15 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_15; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_append_value_1 = PyList_New(0); - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_2 = "o"; - goto try_except_handler_5; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_2 = "o"; - goto try_except_handler_5; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_11 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_11); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a23b435d9c357edb4040285571eceffb_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a23b435d9c357edb4040285571eceffb_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_4; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a23b435d9c357edb4040285571eceffb_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a23b435d9c357edb4040285571eceffb_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a23b435d9c357edb4040285571eceffb_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a23b435d9c357edb4040285571eceffb_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a23b435d9c357edb4040285571eceffb_2, - type_description_2, - outline_0_var__ - ); - - - // Release cached frame if used for exception. - if (frame_a23b435d9c357edb4040285571eceffb_2 == cache_frame_a23b435d9c357edb4040285571eceffb_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a23b435d9c357edb4040285571eceffb_2); - cache_frame_a23b435d9c357edb4040285571eceffb_2 = NULL; - } - - assertFrameObject(frame_a23b435d9c357edb4040285571eceffb_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_4; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 350; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_tag_list == NULL); - var_tag_list = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = LIST_COPY(mod_consts[235]); - assert(var_placeholder == NULL); - var_placeholder = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_iter_arg_3; - PyObject *tmp_xrange_low_2; - CHECK_OBJECT(var_bsz); - tmp_xrange_low_2 = var_bsz; - tmp_iter_arg_3 = BUILTIN_XRANGE1(tmp_xrange_low_2); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_17 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_17; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_2 = tmp_for_loop_1__for_iterator; - tmp_assign_source_18 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_18 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 352; - goto try_except_handler_6; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_19; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_19 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_j; - var_j = tmp_assign_source_19; - Py_INCREF(var_j); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_5; - PyObject *tmp_subscript_name_6; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 353; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_8 = par_samples; - tmp_subscript_name_5 = mod_consts[219]; - tmp_expression_name_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_8, tmp_subscript_name_5); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_j); - tmp_subscript_name_6 = var_j; - tmp_assign_source_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_6); - Py_DECREF(tmp_expression_name_7); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_num; - var_num = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = mod_consts[237]; - { - PyObject *old = var_prefix; - var_prefix = tmp_assign_source_21; - Py_INCREF(var_prefix); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_iter_arg_4; - PyObject *tmp_xrange_low_3; - CHECK_OBJECT(var_num); - tmp_xrange_low_3 = var_num; - tmp_iter_arg_4 = BUILTIN_XRANGE1(tmp_xrange_low_3); - if (tmp_iter_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_22 = MAKE_ITERATOR(tmp_iter_arg_4); - Py_DECREF(tmp_iter_arg_4); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_3 = tmp_for_loop_2__for_iterator; - tmp_assign_source_23 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_23 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 355; - goto try_except_handler_7; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_24 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_24; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_left_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_2; - PyObject *tmp_unicode_arg_1; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_4; - PyObject *tmp_right_name_5; - PyObject *tmp_right_name_6; - PyObject *tmp_unicode_arg_2; - PyObject *tmp_right_name_7; - if (var_prefix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[238]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_left_name_1 = var_prefix; - tmp_left_name_7 = mod_consts[239]; - CHECK_OBJECT(var_i); - tmp_unicode_arg_1 = var_i; - tmp_right_name_2 = PyObject_Unicode(tmp_unicode_arg_1); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_6 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_7, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_3 = mod_consts[240]; - tmp_left_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_6, tmp_right_name_3); - Py_DECREF(tmp_left_name_6); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_expression_name_9 = mod_consts[237]; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[241]); - assert(!(tmp_called_name_2 == NULL)); - { - PyObject *tmp_assign_source_26; - PyObject *tmp_iter_arg_5; - if (var_placeholder == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[242]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_iter_arg_5 = var_placeholder; - tmp_assign_source_26 = MAKE_ITERATOR(tmp_iter_arg_5); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_genexpr_1__$0; - tmp_genexpr_1__$0 = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_args_element_name_4 = MAKE_GENERATOR_models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr(tmp_closure_1); - - goto try_return_handler_8; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_2; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_2:; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 356; - tmp_right_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_4); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_4); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_5 = mod_consts[243]; - tmp_left_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_4, tmp_right_name_5); - Py_DECREF(tmp_left_name_4); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - CHECK_OBJECT(var_i); - tmp_unicode_arg_2 = var_i; - tmp_right_name_6 = PyObject_Unicode(tmp_unicode_arg_2); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_6); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_6); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_7 = mod_consts[240]; - tmp_right_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_2, tmp_right_name_7); - Py_DECREF(tmp_left_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 356; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_assign_source_25 = tmp_left_name_1; - var_prefix = tmp_assign_source_25; - - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_7; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_8; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_8; - PyObject *tmp_unicode_arg_3; - PyObject *tmp_right_name_9; - if (var_tag_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[244]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_expression_name_11 = var_tag_list; - if (var_j == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[245]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_subscript_name_7 = var_j; - tmp_expression_name_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_7); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[221]); - Py_DECREF(tmp_expression_name_10); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_9 = mod_consts[239]; - CHECK_OBJECT(var_i); - tmp_unicode_arg_3 = var_i; - tmp_right_name_8 = PyObject_Unicode(tmp_unicode_arg_3); - if (tmp_right_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_left_name_8 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_9, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_left_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_right_name_9 = mod_consts[240]; - tmp_args_element_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_8, tmp_right_name_9); - Py_DECREF(tmp_left_name_8); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 357; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_7; - } - goto loop_start_3; - loop_end_3:; - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_6; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - if (var_prefix_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[246]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_12 = var_prefix_list; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[221]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_left_name_10 = mod_consts[247]; - if (var_prefix == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[238]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_right_name_10 = var_prefix; - tmp_args_element_name_6 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_10, tmp_right_name_10); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 358; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_6; - } - goto loop_start_2; - loop_end_2:; - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Tried code: - { - PyObject *tmp_assign_source_27; - PyObject *tmp_iter_arg_6; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_13 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[248]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - CHECK_OBJECT(var_img_embeds); - tmp_tuple_element_1 = var_img_embeds; - tmp_args_name_1 = PyTuple_New(4); - { - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_8; - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_atts_img); - tmp_tuple_element_1 = var_atts_img; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - if (var_prefix_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[246]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = var_prefix_list; - PyTuple_SET_ITEM0(tmp_args_name_1, 2, tmp_tuple_element_1); - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_14 = par_samples; - tmp_subscript_name_8 = mod_consts[219]; - tmp_tuple_element_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_14, tmp_subscript_name_8); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 3, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - goto try_except_handler_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_1 = mod_consts[249]; - tmp_compexpr_left_1 = mod_consts[207]; - if (par_samples == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - - tmp_expression_name_15 = par_samples; - tmp_subscript_name_9 = mod_consts[233]; - tmp_compexpr_right_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_9); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_dict_value_1 = Py_None; - goto condexpr_end_1; - condexpr_false_1:; - tmp_dict_value_1 = mod_consts[250]; - condexpr_end_1:; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 359; - tmp_iter_arg_6 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - tmp_assign_source_27 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_6); - Py_DECREF(tmp_iter_arg_6); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_9; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_27; - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_28 = UNPACK_NEXT(tmp_unpack_4, 0, 2); - if (tmp_assign_source_28 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_28; - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_29 = UNPACK_NEXT(tmp_unpack_5, 1, 2); - if (tmp_assign_source_29 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_29; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 359; - goto try_except_handler_10; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_9; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_30; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_30 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_img_embeds; - var_img_embeds = tmp_assign_source_30; - Py_INCREF(var_img_embeds); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_31; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_31 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_atts_img; - var_atts_img = tmp_assign_source_31; - Py_INCREF(var_atts_img); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_16; - tmp_assattr_name_1 = mod_consts[251]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 360; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[93]); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[252], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_32; - // Tried code: - { - PyObject *tmp_assign_source_33; - PyObject *tmp_iter_arg_7; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_10; - if (par_samples == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 362; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - } - - tmp_expression_name_17 = par_samples; - tmp_subscript_name_10 = mod_consts[253]; - tmp_iter_arg_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_10); - if (tmp_iter_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - } - tmp_assign_source_33 = MAKE_ITERATOR(tmp_iter_arg_7); - Py_DECREF(tmp_iter_arg_7); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - } - assert(tmp_listcomp_2__$0 == NULL); - tmp_listcomp_2__$0 = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = PyList_New(0); - assert(tmp_listcomp_2__contraction == NULL); - tmp_listcomp_2__contraction = tmp_assign_source_34; - } - if (isFrameUnusable(cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3)) { - Py_XDECREF(cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3 = MAKE_FUNCTION_FRAME(codeobj_ed9b4f20c21c660dd0d8fe8c995d8bb3, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3->m_type_description == NULL); - frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3 = cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_4:; - { - PyObject *tmp_next_source_4; - PyObject *tmp_assign_source_35; - CHECK_OBJECT(tmp_listcomp_2__$0); - tmp_next_source_4 = tmp_listcomp_2__$0; - tmp_assign_source_35 = ITERATOR_NEXT(tmp_next_source_4); - if (tmp_assign_source_35 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_4; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 362; - goto try_except_handler_12; - } - } - - { - PyObject *old = tmp_listcomp_2__iter_value_0; - tmp_listcomp_2__iter_value_0 = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_36; - CHECK_OBJECT(tmp_listcomp_2__iter_value_0); - tmp_assign_source_36 = tmp_listcomp_2__iter_value_0; - { - PyObject *old = outline_1_var_t; - outline_1_var_t = tmp_assign_source_36; - Py_INCREF(outline_1_var_t); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_2; - PyObject *tmp_append_value_2; - CHECK_OBJECT(tmp_listcomp_2__contraction); - tmp_append_list_2 = tmp_listcomp_2__contraction; - CHECK_OBJECT(outline_1_var_t); - tmp_append_value_2 = outline_1_var_t; - assert(PyList_Check(tmp_append_list_2)); - tmp_result = LIST_APPEND0(tmp_append_list_2, tmp_append_value_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_2 = "o"; - goto try_except_handler_12; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_2 = "o"; - goto try_except_handler_12; - } - goto loop_start_4; - loop_end_4:; - CHECK_OBJECT(tmp_listcomp_2__contraction); - tmp_assign_source_32 = tmp_listcomp_2__contraction; - Py_INCREF(tmp_assign_source_32); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_XDECREF(tmp_listcomp_2__$0); - tmp_listcomp_2__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_2__contraction); - Py_DECREF(tmp_listcomp_2__contraction); - tmp_listcomp_2__contraction = NULL; - Py_XDECREF(tmp_listcomp_2__iter_value_0); - tmp_listcomp_2__iter_value_0 = NULL; - goto frame_return_exit_3; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_2__$0); - tmp_listcomp_2__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_2__contraction); - Py_DECREF(tmp_listcomp_2__contraction); - tmp_listcomp_2__contraction = NULL; - Py_XDECREF(tmp_listcomp_2__iter_value_0); - tmp_listcomp_2__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_3; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_3:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_11; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3, - type_description_2, - outline_1_var_t - ); - - - // Release cached frame if used for exception. - if (frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3 == cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); - cache_frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3 = NULL; - } - - assertFrameObject(frame_ed9b4f20c21c660dd0d8fe8c995d8bb3_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_11; - skip_nested_handling_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - Py_XDECREF(outline_1_var_t); - outline_1_var_t = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_1_var_t); - outline_1_var_t = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 362; - goto frame_exception_exit_1; - outline_result_3:; - assert(var_prompt == NULL); - var_prompt = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_iter_arg_8; - PyObject *tmp_xrange_low_4; - PyObject *tmp_len_arg_1; - CHECK_OBJECT(var_prompt); - tmp_len_arg_1 = var_prompt; - tmp_xrange_low_4 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_xrange_low_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_8 = BUILTIN_XRANGE1(tmp_xrange_low_4); - Py_DECREF(tmp_xrange_low_4); - if (tmp_iter_arg_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_37 = MAKE_ITERATOR(tmp_iter_arg_8); - Py_DECREF(tmp_iter_arg_8); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_37; - } - // Tried code: - loop_start_5:; - { - PyObject *tmp_next_source_5; - PyObject *tmp_assign_source_38; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_5 = tmp_for_loop_3__for_iterator; - tmp_assign_source_38 = ITERATOR_NEXT(tmp_next_source_5); - if (tmp_assign_source_38 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_5; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 363; - goto try_except_handler_13; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_38; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_39 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_39; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_40; - tmp_assign_source_40 = mod_consts[237]; - { - PyObject *old = var_tags; - var_tags = tmp_assign_source_40; - Py_INCREF(var_tags); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_iter_arg_9; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_11; - if (var_tag_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[244]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_expression_name_18 = var_tag_list; - CHECK_OBJECT(var_i); - tmp_subscript_name_11 = var_i; - tmp_iter_arg_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_18, tmp_subscript_name_11); - if (tmp_iter_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_assign_source_41 = MAKE_ITERATOR(tmp_iter_arg_9); - Py_DECREF(tmp_iter_arg_9); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - { - PyObject *old = tmp_for_loop_4__for_iterator; - tmp_for_loop_4__for_iterator = tmp_assign_source_41; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_6:; - { - PyObject *tmp_next_source_6; - PyObject *tmp_assign_source_42; - CHECK_OBJECT(tmp_for_loop_4__for_iterator); - tmp_next_source_6 = tmp_for_loop_4__for_iterator; - tmp_assign_source_42 = ITERATOR_NEXT(tmp_next_source_6); - if (tmp_assign_source_42 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_6; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 365; - goto try_except_handler_14; - } - } - - { - PyObject *old = tmp_for_loop_4__iter_value; - tmp_for_loop_4__iter_value = tmp_assign_source_42; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_43; - CHECK_OBJECT(tmp_for_loop_4__iter_value); - tmp_assign_source_43 = tmp_for_loop_4__iter_value; - { - PyObject *old = var_tag; - var_tag = tmp_assign_source_43; - Py_INCREF(var_tag); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_12; - CHECK_OBJECT(var_tag); - tmp_compexpr_left_2 = var_tag; - if (var_prompt == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_expression_name_19 = var_prompt; - if (var_i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_subscript_name_12 = var_i; - tmp_compexpr_right_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_19, tmp_subscript_name_12); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 366; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_condition_result_2 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_44; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - if (var_tags == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[255]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 367; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - - tmp_left_name_11 = var_tags; - CHECK_OBJECT(var_tag); - tmp_right_name_11 = var_tag; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_11, tmp_right_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_assign_source_44 = tmp_left_name_11; - var_tags = tmp_assign_source_44; - - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_14; - } - goto loop_start_6; - loop_end_6:; - goto try_end_7; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_13; - // End of try: - try_end_7:; - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_20; - PyObject *tmp_expression_name_21; - PyObject *tmp_subscript_name_13; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (var_prompt == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_expression_name_21 = var_prompt; - if (var_i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_subscript_name_13 = var_i; - tmp_expression_name_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_21, tmp_subscript_name_13); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[256]); - Py_DECREF(tmp_expression_name_20); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_args_element_name_7 = mod_consts[257]; - if (var_tags == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[255]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_args_element_name_8 = var_tags; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 368; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_ass_subvalue_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_called_name_6); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - if (var_prompt == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_ass_subscribed_1 = var_prompt; - if (var_i == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - - tmp_ass_subscript_1 = var_i; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_13; - } - goto loop_start_5; - loop_end_5:; - goto try_end_8; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - { - bool tmp_condition_result_3; - int tmp_or_left_truth_1; - bool tmp_or_left_value_1; - bool tmp_or_right_value_1; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_14; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_23; - PyObject *tmp_subscript_name_15; - tmp_compexpr_left_3 = mod_consts[258]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_22 = par_samples; - tmp_subscript_name_14 = mod_consts[233]; - tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_22, tmp_subscript_name_14); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res == 1) ? true : false; - tmp_or_left_truth_1 = tmp_or_left_value_1 != false ? 1 : 0; - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - tmp_compexpr_left_4 = mod_consts[259]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_23 = par_samples; - tmp_subscript_name_15 = mod_consts[233]; - tmp_compexpr_right_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_23, tmp_subscript_name_15); - if (tmp_compexpr_right_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_4, tmp_compexpr_left_4); - Py_DECREF(tmp_compexpr_right_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res == 1) ? true : false; - tmp_condition_result_3 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_3 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_3 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_45; - // Tried code: - { - PyObject *tmp_assign_source_46; - PyObject *tmp_iter_arg_10; - PyObject *tmp_expression_name_24; - PyObject *tmp_subscript_name_16; - if (par_samples == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 371; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - - tmp_expression_name_24 = par_samples; - tmp_subscript_name_16 = mod_consts[260]; - tmp_iter_arg_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_24, tmp_subscript_name_16); - if (tmp_iter_arg_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - tmp_assign_source_46 = MAKE_ITERATOR(tmp_iter_arg_10); - Py_DECREF(tmp_iter_arg_10); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - } - assert(tmp_listcomp_3__$0 == NULL); - tmp_listcomp_3__$0 = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyList_New(0); - assert(tmp_listcomp_3__contraction == NULL); - tmp_listcomp_3__contraction = tmp_assign_source_47; - } - if (isFrameUnusable(cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4)) { - Py_XDECREF(cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4 = MAKE_FUNCTION_FRAME(codeobj_f5b91561ae1c4fa3afdef10fa21f1b7d, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4->m_type_description == NULL); - frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4 = cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_7:; - { - PyObject *tmp_next_source_7; - PyObject *tmp_assign_source_48; - CHECK_OBJECT(tmp_listcomp_3__$0); - tmp_next_source_7 = tmp_listcomp_3__$0; - tmp_assign_source_48 = ITERATOR_NEXT(tmp_next_source_7); - if (tmp_assign_source_48 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_7; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 371; - goto try_except_handler_16; - } - } - - { - PyObject *old = tmp_listcomp_3__iter_value_0; - tmp_listcomp_3__iter_value_0 = tmp_assign_source_48; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_49; - CHECK_OBJECT(tmp_listcomp_3__iter_value_0); - tmp_assign_source_49 = tmp_listcomp_3__iter_value_0; - { - PyObject *old = outline_2_var_ans; - outline_2_var_ans = tmp_assign_source_49; - Py_INCREF(outline_2_var_ans); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_3; - PyObject *tmp_append_value_3; - PyObject *tmp_expression_name_25; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_17; - CHECK_OBJECT(tmp_listcomp_3__contraction); - tmp_append_list_3 = tmp_listcomp_3__contraction; - CHECK_OBJECT(outline_2_var_ans); - tmp_called_instance_1 = outline_2_var_ans; - frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4->m_frame.f_lineno = 371; - tmp_expression_name_25 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[261], 0) - ); - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - tmp_subscript_name_17 = mod_consts[11]; - tmp_append_value_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_25, tmp_subscript_name_17, 0); - Py_DECREF(tmp_expression_name_25); - if (tmp_append_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - assert(PyList_Check(tmp_append_list_3)); - tmp_result = LIST_APPEND1(tmp_append_list_3, tmp_append_value_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 371; - type_description_2 = "o"; - goto try_except_handler_16; - } - goto loop_start_7; - loop_end_7:; - CHECK_OBJECT(tmp_listcomp_3__contraction); - tmp_assign_source_45 = tmp_listcomp_3__contraction; - Py_INCREF(tmp_assign_source_45); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_XDECREF(tmp_listcomp_3__$0); - tmp_listcomp_3__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_3__contraction); - Py_DECREF(tmp_listcomp_3__contraction); - tmp_listcomp_3__contraction = NULL; - Py_XDECREF(tmp_listcomp_3__iter_value_0); - tmp_listcomp_3__iter_value_0 = NULL; - goto frame_return_exit_4; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_3__$0); - tmp_listcomp_3__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_3__contraction); - Py_DECREF(tmp_listcomp_3__contraction); - tmp_listcomp_3__contraction = NULL; - Py_XDECREF(tmp_listcomp_3__iter_value_0); - tmp_listcomp_3__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_4; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_return_exit_4:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_15; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4, - type_description_2, - outline_2_var_ans - ); - - - // Release cached frame if used for exception. - if (frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4 == cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); - cache_frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4 = NULL; - } - - assertFrameObject(frame_f5b91561ae1c4fa3afdef10fa21f1b7d_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_15; - skip_nested_handling_3:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_XDECREF(outline_2_var_ans); - outline_2_var_ans = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_2_var_ans); - outline_2_var_ans = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 371; - goto frame_exception_exit_1; - outline_result_4:; - assert(var_sample_ans == NULL); - var_sample_ans = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_50; - // Tried code: - { - PyObject *tmp_assign_source_51; - PyObject *tmp_iter_arg_11; - PyObject *tmp_expression_name_26; - PyObject *tmp_subscript_name_18; - if (par_samples == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 372; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - - tmp_expression_name_26 = par_samples; - tmp_subscript_name_18 = mod_consts[260]; - tmp_iter_arg_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_26, tmp_subscript_name_18); - if (tmp_iter_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - tmp_assign_source_51 = MAKE_ITERATOR(tmp_iter_arg_11); - Py_DECREF(tmp_iter_arg_11); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - } - assert(tmp_listcomp_4__$0 == NULL); - tmp_listcomp_4__$0 = tmp_assign_source_51; - } - { - PyObject *tmp_assign_source_52; - tmp_assign_source_52 = PyList_New(0); - assert(tmp_listcomp_4__contraction == NULL); - tmp_listcomp_4__contraction = tmp_assign_source_52; - } - if (isFrameUnusable(cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5)) { - Py_XDECREF(cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5 = MAKE_FUNCTION_FRAME(codeobj_61c6cd3e0de25dc41165ffa6ed32e42c, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5->m_type_description == NULL); - frame_61c6cd3e0de25dc41165ffa6ed32e42c_5 = cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_8:; - { - PyObject *tmp_next_source_8; - PyObject *tmp_assign_source_53; - CHECK_OBJECT(tmp_listcomp_4__$0); - tmp_next_source_8 = tmp_listcomp_4__$0; - tmp_assign_source_53 = ITERATOR_NEXT(tmp_next_source_8); - if (tmp_assign_source_53 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_8; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "o"; - exception_lineno = 372; - goto try_except_handler_18; - } - } - - { - PyObject *old = tmp_listcomp_4__iter_value_0; - tmp_listcomp_4__iter_value_0 = tmp_assign_source_53; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_54; - CHECK_OBJECT(tmp_listcomp_4__iter_value_0); - tmp_assign_source_54 = tmp_listcomp_4__iter_value_0; - { - PyObject *old = outline_3_var_ans; - outline_3_var_ans = tmp_assign_source_54; - Py_INCREF(outline_3_var_ans); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_4; - PyObject *tmp_append_value_4; - PyObject *tmp_expression_name_27; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_19; - CHECK_OBJECT(tmp_listcomp_4__contraction); - tmp_append_list_4 = tmp_listcomp_4__contraction; - CHECK_OBJECT(outline_3_var_ans); - tmp_called_instance_2 = outline_3_var_ans; - frame_61c6cd3e0de25dc41165ffa6ed32e42c_5->m_frame.f_lineno = 372; - tmp_expression_name_27 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[53], - &PyTuple_GET_ITEM(mod_consts[261], 0) - ); - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - tmp_subscript_name_19 = mod_consts[60]; - tmp_append_value_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_19, 1); - Py_DECREF(tmp_expression_name_27); - if (tmp_append_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - assert(PyList_Check(tmp_append_list_4)); - tmp_result = LIST_APPEND1(tmp_append_list_4, tmp_append_value_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_2 = "o"; - goto try_except_handler_18; - } - goto loop_start_8; - loop_end_8:; - CHECK_OBJECT(tmp_listcomp_4__contraction); - tmp_assign_source_50 = tmp_listcomp_4__contraction; - Py_INCREF(tmp_assign_source_50); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_XDECREF(tmp_listcomp_4__$0); - tmp_listcomp_4__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_4__contraction); - Py_DECREF(tmp_listcomp_4__contraction); - tmp_listcomp_4__contraction = NULL; - Py_XDECREF(tmp_listcomp_4__iter_value_0); - tmp_listcomp_4__iter_value_0 = NULL; - goto frame_return_exit_5; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_4__$0); - tmp_listcomp_4__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_4__contraction); - Py_DECREF(tmp_listcomp_4__contraction); - tmp_listcomp_4__contraction = NULL; - Py_XDECREF(tmp_listcomp_4__iter_value_0); - tmp_listcomp_4__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_5; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_return_exit_5:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_17; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_61c6cd3e0de25dc41165ffa6ed32e42c_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_61c6cd3e0de25dc41165ffa6ed32e42c_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_61c6cd3e0de25dc41165ffa6ed32e42c_5, - type_description_2, - outline_3_var_ans - ); - - - // Release cached frame if used for exception. - if (frame_61c6cd3e0de25dc41165ffa6ed32e42c_5 == cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); - cache_frame_61c6cd3e0de25dc41165ffa6ed32e42c_5 = NULL; - } - - assertFrameObject(frame_61c6cd3e0de25dc41165ffa6ed32e42c_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_17; - skip_nested_handling_4:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - Py_XDECREF(outline_3_var_ans); - outline_3_var_ans = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_3_var_ans); - outline_3_var_ans = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 372; - goto frame_exception_exit_1; - outline_result_5:; - assert(var_sample_num == NULL); - var_sample_num = tmp_assign_source_50; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_55; - PyObject *tmp_expression_name_28; - PyObject *tmp_subscript_name_20; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 374; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_samples; - tmp_subscript_name_20 = mod_consts[260]; - tmp_assign_source_55 = LOOKUP_SUBSCRIPT(tmp_expression_name_28, tmp_subscript_name_20); - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_sample_ans == NULL); - var_sample_ans = tmp_assign_source_55; - } - branch_end_2:; - { - PyObject *tmp_assign_source_56; - // Tried code: - { - PyObject *tmp_assign_source_57; - PyObject *tmp_iter_arg_12; - CHECK_OBJECT(var_sample_ans); - tmp_iter_arg_12 = var_sample_ans; - tmp_assign_source_57 = MAKE_ITERATOR(tmp_iter_arg_12); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_19; - } - assert(tmp_listcomp_5__$0 == NULL); - tmp_listcomp_5__$0 = tmp_assign_source_57; - } - { - PyObject *tmp_assign_source_58; - tmp_assign_source_58 = PyList_New(0); - assert(tmp_listcomp_5__contraction == NULL); - tmp_listcomp_5__contraction = tmp_assign_source_58; - } - if (isFrameUnusable(cache_frame_df4c04242bced16e5cdef975c429cb8d_6)) { - Py_XDECREF(cache_frame_df4c04242bced16e5cdef975c429cb8d_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df4c04242bced16e5cdef975c429cb8d_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df4c04242bced16e5cdef975c429cb8d_6 = MAKE_FUNCTION_FRAME(codeobj_df4c04242bced16e5cdef975c429cb8d, module_models$medomni_bp, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df4c04242bced16e5cdef975c429cb8d_6->m_type_description == NULL); - frame_df4c04242bced16e5cdef975c429cb8d_6 = cache_frame_df4c04242bced16e5cdef975c429cb8d_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df4c04242bced16e5cdef975c429cb8d_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df4c04242bced16e5cdef975c429cb8d_6) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_9:; - { - PyObject *tmp_next_source_9; - PyObject *tmp_assign_source_59; - CHECK_OBJECT(tmp_listcomp_5__$0); - tmp_next_source_9 = tmp_listcomp_5__$0; - tmp_assign_source_59 = ITERATOR_NEXT(tmp_next_source_9); - if (tmp_assign_source_59 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_9; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 375; - goto try_except_handler_20; - } - } - - { - PyObject *old = tmp_listcomp_5__iter_value_0; - tmp_listcomp_5__iter_value_0 = tmp_assign_source_59; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_60; - CHECK_OBJECT(tmp_listcomp_5__iter_value_0); - tmp_assign_source_60 = tmp_listcomp_5__iter_value_0; - { - PyObject *old = outline_4_var_t; - outline_4_var_t = tmp_assign_source_60; - Py_INCREF(outline_4_var_t); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_5; - PyObject *tmp_append_value_5; - PyObject *tmp_left_name_12; - PyObject *tmp_left_name_13; - PyObject *tmp_right_name_12; - PyObject *tmp_unicode_arg_4; - PyObject *tmp_right_name_13; - PyObject *tmp_expression_name_29; - CHECK_OBJECT(tmp_listcomp_5__contraction); - tmp_append_list_5 = tmp_listcomp_5__contraction; - tmp_left_name_13 = mod_consts[262]; - CHECK_OBJECT(outline_4_var_t); - tmp_unicode_arg_4 = outline_4_var_t; - tmp_right_name_12 = PyObject_Unicode(tmp_unicode_arg_4); - if (tmp_right_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - tmp_left_name_12 = BINARY_OPERATION_ADD_OBJECT_UNICODE_OBJECT(tmp_left_name_13, tmp_right_name_12); - Py_DECREF(tmp_right_name_12); - if (tmp_left_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_12); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - - tmp_expression_name_29 = par_self; - tmp_right_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[168]); - if (tmp_right_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_12); - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - tmp_append_value_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_12, tmp_right_name_13); - Py_DECREF(tmp_left_name_12); - Py_DECREF(tmp_right_name_13); - if (tmp_append_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - assert(PyList_Check(tmp_append_list_5)); - tmp_result = LIST_APPEND1(tmp_append_list_5, tmp_append_value_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_2 = "oo"; - goto try_except_handler_20; - } - goto loop_start_9; - loop_end_9:; - CHECK_OBJECT(tmp_listcomp_5__contraction); - tmp_assign_source_56 = tmp_listcomp_5__contraction; - Py_INCREF(tmp_assign_source_56); - goto try_return_handler_20; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_20:; - Py_XDECREF(tmp_listcomp_5__$0); - tmp_listcomp_5__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_5__contraction); - Py_DECREF(tmp_listcomp_5__contraction); - tmp_listcomp_5__contraction = NULL; - Py_XDECREF(tmp_listcomp_5__iter_value_0); - tmp_listcomp_5__iter_value_0 = NULL; - goto frame_return_exit_6; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_5__$0); - tmp_listcomp_5__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_5__contraction); - Py_DECREF(tmp_listcomp_5__contraction); - tmp_listcomp_5__contraction = NULL; - Py_XDECREF(tmp_listcomp_5__iter_value_0); - tmp_listcomp_5__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_6; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df4c04242bced16e5cdef975c429cb8d_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_return_exit_6:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df4c04242bced16e5cdef975c429cb8d_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_19; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df4c04242bced16e5cdef975c429cb8d_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df4c04242bced16e5cdef975c429cb8d_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df4c04242bced16e5cdef975c429cb8d_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df4c04242bced16e5cdef975c429cb8d_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df4c04242bced16e5cdef975c429cb8d_6, - type_description_2, - outline_4_var_t, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_df4c04242bced16e5cdef975c429cb8d_6 == cache_frame_df4c04242bced16e5cdef975c429cb8d_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df4c04242bced16e5cdef975c429cb8d_6); - cache_frame_df4c04242bced16e5cdef975c429cb8d_6 = NULL; - } - - assertFrameObject(frame_df4c04242bced16e5cdef975c429cb8d_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_19; - skip_nested_handling_5:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - Py_XDECREF(outline_4_var_t); - outline_4_var_t = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_4_var_t); - outline_4_var_t = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 375; - goto frame_exception_exit_1; - outline_result_6:; - assert(var_text == NULL); - var_text = tmp_assign_source_56; - } - { - PyObject *tmp_assign_source_61; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_30; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_32; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[93]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_prompt == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[254]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 378; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_prompt; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[263]); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 377; - tmp_expression_name_30 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[170]); - Py_DECREF(tmp_expression_name_30); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 384; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = var_image; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[178]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 384; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 377; - tmp_assign_source_61 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prompt_tokens == NULL); - var_prompt_tokens = tmp_assign_source_61; - } - // Tried code: - { - PyObject *tmp_assign_source_62; - PyObject *tmp_iter_arg_13; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 386; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_21; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_img_embeds); - tmp_args_element_name_10 = var_img_embeds; - CHECK_OBJECT(var_atts_img); - tmp_args_element_name_11 = var_atts_img; - CHECK_OBJECT(var_prompt_tokens); - tmp_args_element_name_12 = var_prompt_tokens; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 386; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_iter_arg_13 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[264], - call_args - ); - } - - if (tmp_iter_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_21; - } - tmp_assign_source_62 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_13); - Py_DECREF(tmp_iter_arg_13); - if (tmp_assign_source_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_21; - } - assert(tmp_tuple_unpack_3__source_iter == NULL); - tmp_tuple_unpack_3__source_iter = tmp_assign_source_62; - } - // Tried code: - { - PyObject *tmp_assign_source_63; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_63 = UNPACK_NEXT(tmp_unpack_6, 0, 2); - if (tmp_assign_source_63 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - assert(tmp_tuple_unpack_3__element_1 == NULL); - tmp_tuple_unpack_3__element_1 = tmp_assign_source_63; - } - { - PyObject *tmp_assign_source_64; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_64 = UNPACK_NEXT(tmp_unpack_7, 1, 2); - if (tmp_assign_source_64 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - assert(tmp_tuple_unpack_3__element_2 == NULL); - tmp_tuple_unpack_3__element_2 = tmp_assign_source_64; - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[9]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - exception_lineno = 386; - goto try_except_handler_22; - } - } - goto try_end_9; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto try_except_handler_21; - // End of try: - try_end_9:; - goto try_end_10; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_65; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_65 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_img_embeds; - var_img_embeds = tmp_assign_source_65; - Py_INCREF(var_img_embeds); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_66; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_66 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_atts_img; - var_atts_img = tmp_assign_source_66; - Py_INCREF(var_atts_img); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - PyObject *tmp_assign_source_67; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_33; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_36; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_34 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[93]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_text); - tmp_tuple_element_3 = var_text; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[265]; - tmp_dict_value_2 = mod_consts[266]; - tmp_kwargs_name_3 = _PyDict_NewPresized( 5 ); - { - PyObject *tmp_expression_name_35; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[267]; - tmp_dict_value_2 = mod_consts[268]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[269]; - tmp_dict_value_2 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[270]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 393; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_35 = par_self; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[167]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[96]; - tmp_dict_value_2 = Py_False; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 388; - tmp_expression_name_33 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[170]); - Py_DECREF(tmp_expression_name_33); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 395; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_36 = var_image; - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[178]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 395; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 388; - tmp_assign_source_67 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_13); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_to_regress_tokens == NULL); - var_to_regress_tokens = tmp_assign_source_67; - } - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_37; - PyObject *tmp_expression_name_38; - PyObject *tmp_args_element_name_14; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_expression_name_39; - PyObject *tmp_expression_name_40; - PyObject *tmp_expression_name_41; - PyObject *tmp_args_element_name_15; - CHECK_OBJECT(var_to_regress_tokens); - tmp_expression_name_38 = var_to_regress_tokens; - tmp_expression_name_37 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[104]); - if (tmp_expression_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[271]); - Py_DECREF(tmp_expression_name_37); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_to_regress_tokens == NULL) { - Py_DECREF(tmp_called_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_39 = var_to_regress_tokens; - tmp_compexpr_left_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[104]); - if (tmp_compexpr_left_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_compexpr_left_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_41 = par_self; - tmp_expression_name_40 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[93]); - if (tmp_expression_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_compexpr_left_5); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[273]); - Py_DECREF(tmp_expression_name_40); - if (tmp_compexpr_right_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_compexpr_left_5); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - Py_DECREF(tmp_compexpr_left_5); - Py_DECREF(tmp_compexpr_right_5); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 398; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_15 = mod_consts[274]; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 397; - { - PyObject *call_args[] = {tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_assign_source_68 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_11, call_args); - } - - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_14); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 397; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_targets == NULL); - var_targets = tmp_assign_source_68; - } - { - PyObject *tmp_assign_source_69; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_42; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_list_element_1; - PyObject *tmp_expression_name_44; - PyObject *tmp_expression_name_45; - PyObject *tmp_subscript_name_21; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_expression_name_48; - PyObject *tmp_args_element_name_16; - PyObject *tmp_expression_name_49; - tmp_expression_name_43 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_43 == NULL)) { - tmp_expression_name_43 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[197]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_atts_img); - tmp_expression_name_45 = var_atts_img; - tmp_expression_name_44 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[175]); - if (tmp_expression_name_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_21 = mod_consts[11]; - tmp_list_element_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_44, tmp_subscript_name_21, 0); - Py_DECREF(tmp_expression_name_44); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_4 = PyList_New(2); - { - PyObject *tmp_left_name_14; - PyObject *tmp_expression_name_46; - PyObject *tmp_expression_name_47; - PyObject *tmp_subscript_name_22; - PyObject *tmp_right_name_14; - PyList_SET_ITEM(tmp_tuple_element_4, 0, tmp_list_element_1); - if (var_atts_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[275]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - - tmp_expression_name_47 = var_atts_img; - tmp_expression_name_46 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[175]); - if (tmp_expression_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - tmp_subscript_name_22 = mod_consts[60]; - tmp_left_name_14 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_46, tmp_subscript_name_22, 1); - Py_DECREF(tmp_expression_name_46); - if (tmp_left_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - tmp_right_name_14 = mod_consts[60]; - tmp_list_element_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_14, tmp_right_name_14); - Py_DECREF(tmp_left_name_14); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_tuple_element_4, 1, tmp_list_element_1); - } - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_tuple_element_4); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_dict_key_3 = mod_consts[0]; - tmp_expression_name_48 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_48 == NULL)) { - tmp_expression_name_48 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_4); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[199]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_4); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 402; - tmp_expression_name_42 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[170]); - Py_DECREF(tmp_expression_name_42); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_49 = var_image; - tmp_args_element_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[178]); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_12); - - exception_lineno = 403; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 402; - tmp_called_instance_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_16); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_16); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 402; - tmp_assign_source_69 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[276], - &PyTuple_GET_ITEM(mod_consts[277], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_empty_targets == NULL); - var_empty_targets = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_50; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_5; - PyObject *tmp_list_element_2; - PyObject *tmp_kwargs_name_5; - tmp_expression_name_50 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_50 == NULL)) { - tmp_expression_name_50 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[213]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_empty_targets); - tmp_list_element_2 = var_empty_targets; - tmp_tuple_element_5 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_5, 0, tmp_list_element_2); - CHECK_OBJECT(var_targets); - tmp_list_element_2 = var_targets; - PyList_SET_ITEM0(tmp_tuple_element_5, 1, tmp_list_element_2); - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_5, 0, tmp_tuple_element_5); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[215]); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 405; - tmp_assign_source_70 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 405; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_targets; - var_targets = tmp_assign_source_70; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_71; - PyObject *tmp_expression_name_51; - PyObject *tmp_expression_name_52; - PyObject *tmp_subscript_name_23; - CHECK_OBJECT(var_img_embeds); - tmp_expression_name_52 = var_img_embeds; - tmp_expression_name_51 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[175]); - if (tmp_expression_name_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 407; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_23 = mod_consts[11]; - tmp_assign_source_71 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_51, tmp_subscript_name_23, 0); - Py_DECREF(tmp_expression_name_51); - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 407; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_batch_size == NULL); - var_batch_size = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_left_name_15; - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_53; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_list_element_3; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_expression_name_54; - PyObject *tmp_expression_name_55; - PyObject *tmp_right_name_15; - PyObject *tmp_expression_name_58; - PyObject *tmp_expression_name_59; - tmp_expression_name_53 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_53 == NULL)) { - tmp_expression_name_53 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_53, mod_consts[197]); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_batch_size); - tmp_list_element_3 = var_batch_size; - tmp_tuple_element_6 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_6, 0, tmp_list_element_3); - tmp_list_element_3 = mod_consts[60]; - PyList_SET_ITEM0(tmp_tuple_element_6, 1, tmp_list_element_3); - tmp_args_name_6 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_dict_key_4 = mod_consts[0]; - if (var_to_regress_tokens == NULL) { - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 409; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_55 = var_to_regress_tokens; - tmp_expression_name_54 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[104]); - if (tmp_expression_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 409; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[0]); - Py_DECREF(tmp_expression_name_54); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - - exception_lineno = 409; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_6 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_56; - PyObject *tmp_expression_name_57; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[178]; - if (var_to_regress_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_expression_name_57 = var_to_regress_tokens; - tmp_expression_name_56 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[104]); - if (tmp_expression_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[178]); - Py_DECREF(tmp_expression_name_56); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 408; - tmp_left_name_15 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_name_6); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_left_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_59 = par_self; - tmp_expression_name_58 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[93]); - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_15); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_58, mod_consts[278]); - Py_DECREF(tmp_expression_name_58); - if (tmp_right_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_15); - - exception_lineno = 410; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_72 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_15, tmp_right_name_15); - Py_DECREF(tmp_left_name_15); - Py_DECREF(tmp_right_name_15); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 408; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bos == NULL); - var_bos = tmp_assign_source_72; - } - { - PyObject *tmp_assign_source_73; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 412; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_self; - CHECK_OBJECT(var_bos); - tmp_args_element_name_17 = var_bos; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 412; - tmp_assign_source_73 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[119], tmp_args_element_name_17); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 412; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_bos_embeds == NULL); - var_bos_embeds = tmp_assign_source_73; - } - { - PyObject *tmp_assign_source_74; - PyObject *tmp_expression_name_60; - PyObject *tmp_subscript_name_24; - if (var_atts_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[275]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 413; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_60 = var_atts_img; - tmp_subscript_name_24 = mod_consts[216]; - tmp_assign_source_74 = LOOKUP_SUBSCRIPT(tmp_expression_name_60, tmp_subscript_name_24); - if (tmp_assign_source_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_atts_bos == NULL); - var_atts_bos = tmp_assign_source_74; - } - { - PyObject *tmp_assign_source_75; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_61; - PyObject *tmp_args_element_name_18; - PyObject *tmp_expression_name_62; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_61 = par_self; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_61, mod_consts[119]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_to_regress_tokens == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_62 = var_to_regress_tokens; - tmp_args_element_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[104]); - if (tmp_args_element_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 415; - tmp_assign_source_75 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_18); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_18); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_to_regress_embeds == NULL); - var_to_regress_embeds = tmp_assign_source_75; - } - { - PyObject *tmp_assign_source_76; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_63; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_7; - PyObject *tmp_list_element_4; - PyObject *tmp_kwargs_name_7; - tmp_expression_name_63 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_63 == NULL)) { - tmp_expression_name_63 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_63, mod_consts[213]); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bos_embeds); - tmp_list_element_4 = var_bos_embeds; - tmp_tuple_element_7 = PyList_New(3); - PyList_SET_ITEM0(tmp_tuple_element_7, 0, tmp_list_element_4); - if (var_img_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[214]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_2; - } - - tmp_list_element_4 = var_img_embeds; - PyList_SET_ITEM0(tmp_tuple_element_7, 1, tmp_list_element_4); - CHECK_OBJECT(var_to_regress_embeds); - tmp_list_element_4 = var_to_regress_embeds; - PyList_SET_ITEM0(tmp_tuple_element_7, 2, tmp_list_element_4); - goto list_build_noexception_2; - // Exception handling pass through code for list_build: - list_build_exception_2:; - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_tuple_element_7); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_2:; - tmp_args_name_7 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_7, 0, tmp_tuple_element_7); - tmp_kwargs_name_7 = PyDict_Copy(mod_consts[215]); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 416; - tmp_assign_source_76 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_7); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_inputs_embeds == NULL); - var_inputs_embeds = tmp_assign_source_76; - } - { - PyObject *tmp_assign_source_77; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_64; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_8; - PyObject *tmp_list_element_5; - PyObject *tmp_kwargs_name_8; - tmp_expression_name_64 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_64 == NULL)) { - tmp_expression_name_64 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_64, mod_consts[213]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_atts_bos); - tmp_list_element_5 = var_atts_bos; - tmp_tuple_element_8 = PyList_New(3); - { - PyObject *tmp_expression_name_65; - PyList_SET_ITEM0(tmp_tuple_element_8, 0, tmp_list_element_5); - if (var_atts_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[275]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_3; - } - - tmp_list_element_5 = var_atts_img; - PyList_SET_ITEM0(tmp_tuple_element_8, 1, tmp_list_element_5); - if (var_to_regress_tokens == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[272]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_3; - } - - tmp_expression_name_65 = var_to_regress_tokens; - tmp_list_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_65, mod_consts[279]); - if (tmp_list_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto list_build_exception_3; - } - PyList_SET_ITEM(tmp_tuple_element_8, 2, tmp_list_element_5); - } - goto list_build_noexception_3; - // Exception handling pass through code for list_build: - list_build_exception_3:; - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_tuple_element_8); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_3:; - tmp_args_name_8 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_8, 0, tmp_tuple_element_8); - tmp_kwargs_name_8 = PyDict_Copy(mod_consts[215]); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 417; - tmp_assign_source_77 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_8); - Py_DECREF(tmp_kwargs_name_8); - if (tmp_assign_source_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attention_mask == NULL); - var_attention_mask = tmp_assign_source_77; - } - // Tried code: - { - PyObject *tmp_assign_source_78; - PyObject *tmp_called_instance_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - - tmp_called_instance_6 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 418; - tmp_assign_source_78 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[180]); - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_78; - } - { - PyObject *tmp_assign_source_79; - PyObject *tmp_called_name_19; - PyObject *tmp_expression_name_66; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_66 = tmp_with_1__source; - tmp_called_name_19 = LOOKUP_SPECIAL(tmp_expression_name_66, mod_consts[181]); - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 418; - tmp_assign_source_79 = CALL_FUNCTION_NO_ARGS(tmp_called_name_19); - Py_DECREF(tmp_called_name_19); - if (tmp_assign_source_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_79; - } - { - PyObject *tmp_assign_source_80; - PyObject *tmp_expression_name_67; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_67 = tmp_with_1__source; - tmp_assign_source_80 = LOOKUP_SPECIAL(tmp_expression_name_67, mod_consts[182]); - if (tmp_assign_source_80 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_80; - } - { - nuitka_bool tmp_assign_source_81; - tmp_assign_source_81 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_81; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_82; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_68; - PyObject *tmp_kwargs_name_9; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 419; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_25; - } - - tmp_expression_name_68 = par_self; - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_68, mod_consts[111]); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 419; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_25; - } - tmp_dict_key_5 = mod_consts[280]; - CHECK_OBJECT(var_inputs_embeds); - tmp_dict_value_5 = var_inputs_embeds; - tmp_kwargs_name_9 = _PyDict_NewPresized( 5 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[279]; - CHECK_OBJECT(var_attention_mask); - tmp_dict_value_5 = var_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[281]; - tmp_dict_value_5 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[57]; - CHECK_OBJECT(var_targets); - tmp_dict_value_5 = var_targets; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[282]; - tmp_dict_value_5 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_9, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 419; - tmp_assign_source_82 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_20, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_kwargs_name_9); - if (tmp_assign_source_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 419; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_25; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_82; - } - goto try_end_11; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_21 == NULL) { - exception_keeper_tb_21 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_21); - } else if (exception_keeper_lineno_21 != 0) { - exception_keeper_tb_21 = ADD_TRACEBACK(exception_keeper_tb_21, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_21); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_21, &exception_keeper_value_21, &exception_keeper_tb_21); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_21, exception_keeper_tb_21); - PUBLISH_EXCEPTION(&exception_keeper_type_21, &exception_keeper_value_21, &exception_keeper_tb_21); - // Tried code: - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - tmp_compexpr_left_6 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_6 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_6, tmp_compexpr_right_6); - assert(!(tmp_res == -1)); - tmp_condition_result_4 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_assign_source_83; - tmp_assign_source_83 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_83; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_21; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - PyObject *tmp_args_element_name_21; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_21 = tmp_with_1__exit; - tmp_args_element_name_19 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_20 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_21 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 424; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20, tmp_args_element_name_21}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_21, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 424; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - branch_no_4:; - goto branch_end_3; - branch_no_3:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 418; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_26; - branch_end_3:; - goto try_end_12; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto try_except_handler_24; - // End of try: - try_end_12:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_11; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_11:; - goto try_end_13; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_6; - nuitka_bool tmp_compexpr_left_7; - nuitka_bool tmp_compexpr_right_7; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_7 = tmp_with_1__indicator; - tmp_compexpr_right_7 = NUITKA_BOOL_TRUE; - tmp_condition_result_6 = (tmp_compexpr_left_7 == tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_22; - PyObject *tmp_call_result_3; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_22 = tmp_with_1__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 424; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_22, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_23); - Py_XDECREF(exception_keeper_value_23); - Py_XDECREF(exception_keeper_tb_23); - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_5:; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto try_except_handler_23; - // End of try: - try_end_13:; - { - bool tmp_condition_result_7; - nuitka_bool tmp_compexpr_left_8; - nuitka_bool tmp_compexpr_right_8; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_8 = tmp_with_1__indicator; - tmp_compexpr_right_8 = NUITKA_BOOL_TRUE; - tmp_condition_result_7 = (tmp_compexpr_left_8 == tmp_compexpr_right_8) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_called_name_23; - PyObject *tmp_call_result_4; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_23 = tmp_with_1__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 424; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_23, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_23; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_6:; - goto try_end_14; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto frame_exception_exit_1; - // End of try: - try_end_14:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - { - PyObject *tmp_assign_source_84; - PyObject *tmp_expression_name_69; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 426; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_69 = var_outputs; - tmp_assign_source_84 = LOOKUP_ATTRIBUTE(tmp_expression_name_69, mod_consts[284]); - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_84; - } - { - bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - PyObject *tmp_expression_name_70; - PyObject *tmp_subscript_name_25; - tmp_compexpr_left_9 = mod_consts[258]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 428; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_70 = par_samples; - tmp_subscript_name_25 = mod_consts[233]; - tmp_compexpr_right_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_70, tmp_subscript_name_25); - if (tmp_compexpr_right_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_9, tmp_compexpr_left_9); - Py_DECREF(tmp_compexpr_right_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_8 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_8 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - // Tried code: - { - PyObject *tmp_assign_source_85; - PyObject *tmp_called_instance_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - - tmp_called_instance_7 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 429; - tmp_assign_source_85 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[180]); - if (tmp_assign_source_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - assert(tmp_with_3__source == NULL); - tmp_with_3__source = tmp_assign_source_85; - } - { - PyObject *tmp_assign_source_86; - PyObject *tmp_called_name_24; - PyObject *tmp_expression_name_71; - CHECK_OBJECT(tmp_with_3__source); - tmp_expression_name_71 = tmp_with_3__source; - tmp_called_name_24 = LOOKUP_SPECIAL(tmp_expression_name_71, mod_consts[181]); - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 429; - tmp_assign_source_86 = CALL_FUNCTION_NO_ARGS(tmp_called_name_24); - Py_DECREF(tmp_called_name_24); - if (tmp_assign_source_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - assert(tmp_with_3__enter == NULL); - tmp_with_3__enter = tmp_assign_source_86; - } - { - PyObject *tmp_assign_source_87; - PyObject *tmp_expression_name_72; - CHECK_OBJECT(tmp_with_3__source); - tmp_expression_name_72 = tmp_with_3__source; - tmp_assign_source_87 = LOOKUP_SPECIAL(tmp_expression_name_72, mod_consts[182]); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - assert(tmp_with_3__exit == NULL); - tmp_with_3__exit = tmp_assign_source_87; - } - { - nuitka_bool tmp_assign_source_88; - tmp_assign_source_88 = NUITKA_BOOL_TRUE; - tmp_with_3__indicator = tmp_assign_source_88; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_89; - PyObject *tmp_expression_name_73; - PyObject *tmp_expression_name_74; - PyObject *tmp_subscript_name_26; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 430; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_74 = var_outputs; - tmp_expression_name_73 = LOOKUP_ATTRIBUTE(tmp_expression_name_74, mod_consts[285]); - if (tmp_expression_name_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_subscript_name_26 = mod_consts[185]; - tmp_assign_source_89 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_73, tmp_subscript_name_26, -1); - Py_DECREF(tmp_expression_name_73); - if (tmp_assign_source_89 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_hidden_states == NULL); - var_hidden_states = tmp_assign_source_89; - } - { - PyObject *tmp_assign_source_90; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - PyObject *tmp_expression_name_75; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_compexpr_left_10 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_75 = par_self; - tmp_compexpr_right_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_75, mod_consts[105]); - if (tmp_compexpr_right_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_assign_source_90 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_10, tmp_compexpr_right_10); - Py_DECREF(tmp_compexpr_right_10); - if (tmp_assign_source_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 431; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_token_mask == NULL); - var_token_mask = tmp_assign_source_90; - } - { - PyObject *tmp_assign_source_91; - PyObject *tmp_expression_name_76; - PyObject *tmp_subscript_name_27; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_76 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_27 = var_token_mask; - tmp_assign_source_91 = LOOKUP_SUBSCRIPT(tmp_expression_name_76, tmp_subscript_name_27); - if (tmp_assign_source_91 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_target_states == NULL); - var_target_states = tmp_assign_source_91; - } - // Tried code: - { - PyObject *tmp_assign_source_92; - PyObject *tmp_called_instance_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - - tmp_called_instance_8 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 433; - tmp_assign_source_92 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[180]); - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - assert(tmp_with_2__source == NULL); - tmp_with_2__source = tmp_assign_source_92; - } - { - PyObject *tmp_assign_source_93; - PyObject *tmp_called_name_25; - PyObject *tmp_expression_name_77; - CHECK_OBJECT(tmp_with_2__source); - tmp_expression_name_77 = tmp_with_2__source; - tmp_called_name_25 = LOOKUP_SPECIAL(tmp_expression_name_77, mod_consts[181]); - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 433; - tmp_assign_source_93 = CALL_FUNCTION_NO_ARGS(tmp_called_name_25); - Py_DECREF(tmp_called_name_25); - if (tmp_assign_source_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - assert(tmp_with_2__enter == NULL); - tmp_with_2__enter = tmp_assign_source_93; - } - { - PyObject *tmp_assign_source_94; - PyObject *tmp_expression_name_78; - CHECK_OBJECT(tmp_with_2__source); - tmp_expression_name_78 = tmp_with_2__source; - tmp_assign_source_94 = LOOKUP_SPECIAL(tmp_expression_name_78, mod_consts[182]); - if (tmp_assign_source_94 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - assert(tmp_with_2__exit == NULL); - tmp_with_2__exit = tmp_assign_source_94; - } - { - nuitka_bool tmp_assign_source_95; - tmp_assign_source_95 = NUITKA_BOOL_TRUE; - tmp_with_2__indicator = tmp_assign_source_95; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_96; - PyObject *tmp_called_instance_9; - PyObject *tmp_args_element_name_22; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_32; - } - - tmp_called_instance_9 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_22 = var_target_states; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 434; - tmp_assign_source_96 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_9, mod_consts[148], tmp_args_element_name_22); - if (tmp_assign_source_96 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_32; - } - assert(var_det_states == NULL); - var_det_states = tmp_assign_source_96; - } - goto try_end_15; - // Exception handler code: - try_except_handler_32:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 2. - GET_CURRENT_EXCEPTION(&exception_preserved_type_2, &exception_preserved_value_2, &exception_preserved_tb_2); - - if (exception_keeper_tb_25 == NULL) { - exception_keeper_tb_25 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_25); - } else if (exception_keeper_lineno_25 != 0) { - exception_keeper_tb_25 = ADD_TRACEBACK(exception_keeper_tb_25, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_25); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_25, &exception_keeper_value_25, &exception_keeper_tb_25); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_25, exception_keeper_tb_25); - PUBLISH_EXCEPTION(&exception_keeper_type_25, &exception_keeper_value_25, &exception_keeper_tb_25); - // Tried code: - { - bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - tmp_compexpr_left_11 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_11 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_11, tmp_compexpr_right_11); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_9 != false) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - nuitka_bool tmp_assign_source_97; - tmp_assign_source_97 = NUITKA_BOOL_FALSE; - tmp_with_2__indicator = tmp_assign_source_97; - } - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_operand_name_2; - PyObject *tmp_called_name_26; - PyObject *tmp_args_element_name_23; - PyObject *tmp_args_element_name_24; - PyObject *tmp_args_element_name_25; - CHECK_OBJECT(tmp_with_2__exit); - tmp_called_name_26 = tmp_with_2__exit; - tmp_args_element_name_23 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_24 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_25 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 434; - { - PyObject *call_args[] = {tmp_args_element_name_23, tmp_args_element_name_24, tmp_args_element_name_25}; - tmp_operand_name_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_26, call_args); - } - - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - } - tmp_condition_result_10 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 434; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - branch_no_9:; - goto branch_end_8; - branch_no_8:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 433; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_33; - branch_end_8:; - goto try_end_16; - // Exception handler code: - try_except_handler_33:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 2. - SET_CURRENT_EXCEPTION(exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2); - - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto try_except_handler_31; - // End of try: - try_end_16:; - // Restore previous exception id 2. - SET_CURRENT_EXCEPTION(exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2); - - goto try_end_15; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_15:; - goto try_end_17; - // Exception handler code: - try_except_handler_31:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_11; - nuitka_bool tmp_compexpr_left_12; - nuitka_bool tmp_compexpr_right_12; - assert(tmp_with_2__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_12 = tmp_with_2__indicator; - tmp_compexpr_right_12 = NUITKA_BOOL_TRUE; - tmp_condition_result_11 = (tmp_compexpr_left_12 == tmp_compexpr_right_12) ? true : false; - if (tmp_condition_result_11 != false) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_called_name_27; - PyObject *tmp_call_result_5; - CHECK_OBJECT(tmp_with_2__exit); - tmp_called_name_27 = tmp_with_2__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 434; - tmp_call_result_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_27, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_27); - Py_XDECREF(exception_keeper_value_27); - Py_XDECREF(exception_keeper_tb_27); - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - Py_DECREF(tmp_call_result_5); - } - branch_no_10:; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto try_except_handler_30; - // End of try: - try_end_17:; - { - bool tmp_condition_result_12; - nuitka_bool tmp_compexpr_left_13; - nuitka_bool tmp_compexpr_right_13; - assert(tmp_with_2__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_13 = tmp_with_2__indicator; - tmp_compexpr_right_13 = NUITKA_BOOL_TRUE; - tmp_condition_result_12 = (tmp_compexpr_left_13 == tmp_compexpr_right_13) ? true : false; - if (tmp_condition_result_12 != false) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_called_name_28; - PyObject *tmp_call_result_6; - CHECK_OBJECT(tmp_with_2__exit); - tmp_called_name_28 = tmp_with_2__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 434; - tmp_call_result_6 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_28, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_30; - } - Py_DECREF(tmp_call_result_6); - } - branch_no_11:; - goto try_end_18; - // Exception handler code: - try_except_handler_30:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_2__source); - tmp_with_2__source = NULL; - Py_XDECREF(tmp_with_2__enter); - tmp_with_2__enter = NULL; - Py_XDECREF(tmp_with_2__exit); - tmp_with_2__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto try_except_handler_29; - // End of try: - try_end_18:; - CHECK_OBJECT(tmp_with_2__source); - Py_DECREF(tmp_with_2__source); - tmp_with_2__source = NULL; - CHECK_OBJECT(tmp_with_2__enter); - Py_DECREF(tmp_with_2__enter); - tmp_with_2__enter = NULL; - Py_XDECREF(tmp_with_2__exit); - tmp_with_2__exit = NULL; - { - PyObject *tmp_assign_source_98; - PyObject *tmp_called_name_29; - PyObject *tmp_args_element_name_26; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_79; - PyObject *tmp_expression_name_80; - PyObject *tmp_subscript_name_28; - tmp_called_name_29 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[287]); - - if (unlikely(tmp_called_name_29 == NULL)) { - tmp_called_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[287]); - } - - if (tmp_called_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - if (var_sample_num == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[288]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_args_element_name_26 = var_sample_num; - if (var_det_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[289]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_80 = var_det_states; - tmp_expression_name_79 = LOOKUP_ATTRIBUTE(tmp_expression_name_80, mod_consts[175]); - if (tmp_expression_name_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_subscript_name_28 = mod_consts[11]; - tmp_args_element_name_27 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_79, tmp_subscript_name_28, 0); - Py_DECREF(tmp_expression_name_79); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 435; - { - PyObject *call_args[] = {tmp_args_element_name_26, tmp_args_element_name_27}; - tmp_assign_source_98 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_29, call_args); - } - - Py_DECREF(tmp_args_element_name_27); - if (tmp_assign_source_98 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_labels == NULL); - var_labels = tmp_assign_source_98; - } - { - PyObject *tmp_assign_source_99; - PyObject *tmp_called_name_30; - PyObject *tmp_expression_name_81; - PyObject *tmp_args_element_name_28; - PyObject *tmp_expression_name_82; - CHECK_OBJECT(var_labels); - tmp_expression_name_81 = var_labels; - tmp_called_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_81, mod_consts[170]); - if (tmp_called_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - if (var_targets == NULL) { - Py_DECREF(tmp_called_name_30); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_82 = var_targets; - tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_82, mod_consts[178]); - if (tmp_args_element_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_30); - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 436; - tmp_assign_source_99 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_30, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_30); - Py_DECREF(tmp_args_element_name_28); - if (tmp_assign_source_99 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - { - PyObject *old = var_labels; - var_labels = tmp_assign_source_99; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_100; - PyObject *tmp_called_name_31; - PyObject *tmp_expression_name_83; - PyObject *tmp_args_element_name_29; - PyObject *tmp_args_element_name_30; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_expression_name_83 = par_self; - tmp_called_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_83, mod_consts[150]); - if (tmp_called_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - if (var_det_states == NULL) { - Py_DECREF(tmp_called_name_31); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[289]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - - tmp_args_element_name_29 = var_det_states; - CHECK_OBJECT(var_labels); - tmp_args_element_name_30 = var_labels; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 437; - { - PyObject *call_args[] = {tmp_args_element_name_29, tmp_args_element_name_30}; - tmp_assign_source_100 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_31, call_args); - } - - Py_DECREF(tmp_called_name_31); - if (tmp_assign_source_100 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - assert(var_det_loss == NULL); - var_det_loss = tmp_assign_source_100; - } - { - PyObject *tmp_assign_source_101; - PyObject *tmp_left_name_16; - PyObject *tmp_right_name_16; - PyObject *tmp_left_name_17; - PyObject *tmp_right_name_17; - CHECK_OBJECT(var_loss); - tmp_left_name_16 = var_loss; - CHECK_OBJECT(var_det_loss); - tmp_left_name_17 = var_det_loss; - tmp_right_name_17 = mod_consts[290]; - tmp_right_name_16 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_17, tmp_right_name_17); - if (tmp_right_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_16, tmp_right_name_16); - Py_DECREF(tmp_right_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_29; - } - tmp_assign_source_101 = tmp_left_name_16; - var_loss = tmp_assign_source_101; - - } - goto try_end_19; - // Exception handler code: - try_except_handler_29:; - exception_keeper_type_29 = exception_type; - exception_keeper_value_29 = exception_value; - exception_keeper_tb_29 = exception_tb; - exception_keeper_lineno_29 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 3. - GET_CURRENT_EXCEPTION(&exception_preserved_type_3, &exception_preserved_value_3, &exception_preserved_tb_3); - - if (exception_keeper_tb_29 == NULL) { - exception_keeper_tb_29 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_29); - } else if (exception_keeper_lineno_29 != 0) { - exception_keeper_tb_29 = ADD_TRACEBACK(exception_keeper_tb_29, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_29); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_29, &exception_keeper_value_29, &exception_keeper_tb_29); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_29, exception_keeper_tb_29); - PUBLISH_EXCEPTION(&exception_keeper_type_29, &exception_keeper_value_29, &exception_keeper_tb_29); - // Tried code: - { - bool tmp_condition_result_13; - PyObject *tmp_compexpr_left_14; - PyObject *tmp_compexpr_right_14; - tmp_compexpr_left_14 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_14 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_14, tmp_compexpr_right_14); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_13 != false) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - nuitka_bool tmp_assign_source_102; - tmp_assign_source_102 = NUITKA_BOOL_FALSE; - tmp_with_3__indicator = tmp_assign_source_102; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_operand_name_3; - PyObject *tmp_called_name_32; - PyObject *tmp_args_element_name_31; - PyObject *tmp_args_element_name_32; - PyObject *tmp_args_element_name_33; - CHECK_OBJECT(tmp_with_3__exit); - tmp_called_name_32 = tmp_with_3__exit; - tmp_args_element_name_31 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_32 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_33 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 438; - { - PyObject *call_args[] = {tmp_args_element_name_31, tmp_args_element_name_32, tmp_args_element_name_33}; - tmp_operand_name_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_32, call_args); - } - - if (tmp_operand_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - Py_DECREF(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - } - tmp_condition_result_14 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 438; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - branch_no_13:; - goto branch_end_12; - branch_no_12:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 429; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_34; - branch_end_12:; - goto try_end_20; - // Exception handler code: - try_except_handler_34:; - exception_keeper_type_30 = exception_type; - exception_keeper_value_30 = exception_value; - exception_keeper_tb_30 = exception_tb; - exception_keeper_lineno_30 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 3. - SET_CURRENT_EXCEPTION(exception_preserved_type_3, exception_preserved_value_3, exception_preserved_tb_3); - - // Re-raise. - exception_type = exception_keeper_type_30; - exception_value = exception_keeper_value_30; - exception_tb = exception_keeper_tb_30; - exception_lineno = exception_keeper_lineno_30; - - goto try_except_handler_28; - // End of try: - try_end_20:; - // Restore previous exception id 3. - SET_CURRENT_EXCEPTION(exception_preserved_type_3, exception_preserved_value_3, exception_preserved_tb_3); - - goto try_end_19; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_19:; - goto try_end_21; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_31 = exception_type; - exception_keeper_value_31 = exception_value; - exception_keeper_tb_31 = exception_tb; - exception_keeper_lineno_31 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_15; - nuitka_bool tmp_compexpr_left_15; - nuitka_bool tmp_compexpr_right_15; - assert(tmp_with_3__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_15 = tmp_with_3__indicator; - tmp_compexpr_right_15 = NUITKA_BOOL_TRUE; - tmp_condition_result_15 = (tmp_compexpr_left_15 == tmp_compexpr_right_15) ? true : false; - if (tmp_condition_result_15 != false) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_called_name_33; - PyObject *tmp_call_result_7; - CHECK_OBJECT(tmp_with_3__exit); - tmp_called_name_33 = tmp_with_3__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 438; - tmp_call_result_7 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_33, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_31); - Py_XDECREF(exception_keeper_value_31); - Py_XDECREF(exception_keeper_tb_31); - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - Py_DECREF(tmp_call_result_7); - } - branch_no_14:; - // Re-raise. - exception_type = exception_keeper_type_31; - exception_value = exception_keeper_value_31; - exception_tb = exception_keeper_tb_31; - exception_lineno = exception_keeper_lineno_31; - - goto try_except_handler_27; - // End of try: - try_end_21:; - { - bool tmp_condition_result_16; - nuitka_bool tmp_compexpr_left_16; - nuitka_bool tmp_compexpr_right_16; - assert(tmp_with_3__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_16 = tmp_with_3__indicator; - tmp_compexpr_right_16 = NUITKA_BOOL_TRUE; - tmp_condition_result_16 = (tmp_compexpr_left_16 == tmp_compexpr_right_16) ? true : false; - if (tmp_condition_result_16 != false) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_called_name_34; - PyObject *tmp_call_result_8; - CHECK_OBJECT(tmp_with_3__exit); - tmp_called_name_34 = tmp_with_3__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 438; - tmp_call_result_8 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_34, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_27; - } - Py_DECREF(tmp_call_result_8); - } - branch_no_15:; - goto try_end_22; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_32 = exception_type; - exception_keeper_value_32 = exception_value; - exception_keeper_tb_32 = exception_tb; - exception_keeper_lineno_32 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_3__source); - tmp_with_3__source = NULL; - Py_XDECREF(tmp_with_3__enter); - tmp_with_3__enter = NULL; - Py_XDECREF(tmp_with_3__exit); - tmp_with_3__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_32; - exception_value = exception_keeper_value_32; - exception_tb = exception_keeper_tb_32; - exception_lineno = exception_keeper_lineno_32; - - goto frame_exception_exit_1; - // End of try: - try_end_22:; - CHECK_OBJECT(tmp_with_3__source); - Py_DECREF(tmp_with_3__source); - tmp_with_3__source = NULL; - CHECK_OBJECT(tmp_with_3__enter); - Py_DECREF(tmp_with_3__enter); - tmp_with_3__enter = NULL; - Py_XDECREF(tmp_with_3__exit); - tmp_with_3__exit = NULL; - branch_no_7:; - { - bool tmp_condition_result_17; - PyObject *tmp_compexpr_left_17; - PyObject *tmp_compexpr_right_17; - PyObject *tmp_expression_name_84; - PyObject *tmp_subscript_name_29; - tmp_compexpr_left_17 = mod_consts[259]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 440; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_84 = par_samples; - tmp_subscript_name_29 = mod_consts[233]; - tmp_compexpr_right_17 = LOOKUP_SUBSCRIPT(tmp_expression_name_84, tmp_subscript_name_29); - if (tmp_compexpr_right_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_17, tmp_compexpr_left_17); - Py_DECREF(tmp_compexpr_right_17); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_17 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_17 != false) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - // Tried code: - { - PyObject *tmp_assign_source_103; - PyObject *tmp_called_instance_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - - tmp_called_instance_10 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 441; - tmp_assign_source_103 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[180]); - if (tmp_assign_source_103 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - assert(tmp_with_5__source == NULL); - tmp_with_5__source = tmp_assign_source_103; - } - { - PyObject *tmp_assign_source_104; - PyObject *tmp_called_name_35; - PyObject *tmp_expression_name_85; - CHECK_OBJECT(tmp_with_5__source); - tmp_expression_name_85 = tmp_with_5__source; - tmp_called_name_35 = LOOKUP_SPECIAL(tmp_expression_name_85, mod_consts[181]); - if (tmp_called_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 441; - tmp_assign_source_104 = CALL_FUNCTION_NO_ARGS(tmp_called_name_35); - Py_DECREF(tmp_called_name_35); - if (tmp_assign_source_104 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - assert(tmp_with_5__enter == NULL); - tmp_with_5__enter = tmp_assign_source_104; - } - { - PyObject *tmp_assign_source_105; - PyObject *tmp_expression_name_86; - CHECK_OBJECT(tmp_with_5__source); - tmp_expression_name_86 = tmp_with_5__source; - tmp_assign_source_105 = LOOKUP_SPECIAL(tmp_expression_name_86, mod_consts[182]); - if (tmp_assign_source_105 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 441; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - assert(tmp_with_5__exit == NULL); - tmp_with_5__exit = tmp_assign_source_105; - } - { - nuitka_bool tmp_assign_source_106; - tmp_assign_source_106 = NUITKA_BOOL_TRUE; - tmp_with_5__indicator = tmp_assign_source_106; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_107; - PyObject *tmp_expression_name_87; - PyObject *tmp_expression_name_88; - PyObject *tmp_subscript_name_30; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 442; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_88 = var_outputs; - tmp_expression_name_87 = LOOKUP_ATTRIBUTE(tmp_expression_name_88, mod_consts[285]); - if (tmp_expression_name_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 442; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_subscript_name_30 = mod_consts[185]; - tmp_assign_source_107 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_87, tmp_subscript_name_30, -1); - Py_DECREF(tmp_expression_name_87); - if (tmp_assign_source_107 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 442; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_107; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_108; - PyObject *tmp_compexpr_left_18; - PyObject *tmp_compexpr_right_18; - PyObject *tmp_expression_name_89; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_compexpr_left_18 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_89 = par_self; - tmp_compexpr_right_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_89, mod_consts[291]); - if (tmp_compexpr_right_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_assign_source_108 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_18, tmp_compexpr_right_18); - Py_DECREF(tmp_compexpr_right_18); - if (tmp_assign_source_108 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_token_mask; - var_token_mask = tmp_assign_source_108; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_109; - PyObject *tmp_expression_name_90; - PyObject *tmp_subscript_name_31; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_90 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_31 = var_token_mask; - tmp_assign_source_109 = LOOKUP_SUBSCRIPT(tmp_expression_name_90, tmp_subscript_name_31); - if (tmp_assign_source_109 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_target_states; - var_target_states = tmp_assign_source_109; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_110; - PyObject *tmp_called_instance_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - - tmp_called_instance_11 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 445; - tmp_assign_source_110 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[180]); - if (tmp_assign_source_110 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - assert(tmp_with_4__source == NULL); - tmp_with_4__source = tmp_assign_source_110; - } - { - PyObject *tmp_assign_source_111; - PyObject *tmp_called_name_36; - PyObject *tmp_expression_name_91; - CHECK_OBJECT(tmp_with_4__source); - tmp_expression_name_91 = tmp_with_4__source; - tmp_called_name_36 = LOOKUP_SPECIAL(tmp_expression_name_91, mod_consts[181]); - if (tmp_called_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 445; - tmp_assign_source_111 = CALL_FUNCTION_NO_ARGS(tmp_called_name_36); - Py_DECREF(tmp_called_name_36); - if (tmp_assign_source_111 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - assert(tmp_with_4__enter == NULL); - tmp_with_4__enter = tmp_assign_source_111; - } - { - PyObject *tmp_assign_source_112; - PyObject *tmp_expression_name_92; - CHECK_OBJECT(tmp_with_4__source); - tmp_expression_name_92 = tmp_with_4__source; - tmp_assign_source_112 = LOOKUP_SPECIAL(tmp_expression_name_92, mod_consts[182]); - if (tmp_assign_source_112 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - assert(tmp_with_4__exit == NULL); - tmp_with_4__exit = tmp_assign_source_112; - } - { - nuitka_bool tmp_assign_source_113; - tmp_assign_source_113 = NUITKA_BOOL_TRUE; - tmp_with_4__indicator = tmp_assign_source_113; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_114; - PyObject *tmp_called_instance_12; - PyObject *tmp_args_element_name_34; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_40; - } - - tmp_called_instance_12 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_34 = var_target_states; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 446; - tmp_assign_source_114 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_12, mod_consts[292], tmp_args_element_name_34); - if (tmp_assign_source_114 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_40; - } - assert(var_point_states == NULL); - var_point_states = tmp_assign_source_114; - } - goto try_end_23; - // Exception handler code: - try_except_handler_40:; - exception_keeper_type_33 = exception_type; - exception_keeper_value_33 = exception_value; - exception_keeper_tb_33 = exception_tb; - exception_keeper_lineno_33 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 4. - GET_CURRENT_EXCEPTION(&exception_preserved_type_4, &exception_preserved_value_4, &exception_preserved_tb_4); - - if (exception_keeper_tb_33 == NULL) { - exception_keeper_tb_33 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_33); - } else if (exception_keeper_lineno_33 != 0) { - exception_keeper_tb_33 = ADD_TRACEBACK(exception_keeper_tb_33, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_33); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_33, &exception_keeper_value_33, &exception_keeper_tb_33); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_33, exception_keeper_tb_33); - PUBLISH_EXCEPTION(&exception_keeper_type_33, &exception_keeper_value_33, &exception_keeper_tb_33); - // Tried code: - { - bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_19; - PyObject *tmp_compexpr_right_19; - tmp_compexpr_left_19 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_19 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_19, tmp_compexpr_right_19); - assert(!(tmp_res == -1)); - tmp_condition_result_18 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_18 != false) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - { - nuitka_bool tmp_assign_source_115; - tmp_assign_source_115 = NUITKA_BOOL_FALSE; - tmp_with_4__indicator = tmp_assign_source_115; - } - { - nuitka_bool tmp_condition_result_19; - PyObject *tmp_operand_name_4; - PyObject *tmp_called_name_37; - PyObject *tmp_args_element_name_35; - PyObject *tmp_args_element_name_36; - PyObject *tmp_args_element_name_37; - CHECK_OBJECT(tmp_with_4__exit); - tmp_called_name_37 = tmp_with_4__exit; - tmp_args_element_name_35 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_36 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_37 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 446; - { - PyObject *call_args[] = {tmp_args_element_name_35, tmp_args_element_name_36, tmp_args_element_name_37}; - tmp_operand_name_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_37, call_args); - } - - if (tmp_operand_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - Py_DECREF(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - } - tmp_condition_result_19 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 446; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - branch_no_18:; - goto branch_end_17; - branch_no_17:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 445; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_41; - branch_end_17:; - goto try_end_24; - // Exception handler code: - try_except_handler_41:; - exception_keeper_type_34 = exception_type; - exception_keeper_value_34 = exception_value; - exception_keeper_tb_34 = exception_tb; - exception_keeper_lineno_34 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 4. - SET_CURRENT_EXCEPTION(exception_preserved_type_4, exception_preserved_value_4, exception_preserved_tb_4); - - // Re-raise. - exception_type = exception_keeper_type_34; - exception_value = exception_keeper_value_34; - exception_tb = exception_keeper_tb_34; - exception_lineno = exception_keeper_lineno_34; - - goto try_except_handler_39; - // End of try: - try_end_24:; - // Restore previous exception id 4. - SET_CURRENT_EXCEPTION(exception_preserved_type_4, exception_preserved_value_4, exception_preserved_tb_4); - - goto try_end_23; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_23:; - goto try_end_25; - // Exception handler code: - try_except_handler_39:; - exception_keeper_type_35 = exception_type; - exception_keeper_value_35 = exception_value; - exception_keeper_tb_35 = exception_tb; - exception_keeper_lineno_35 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_20; - nuitka_bool tmp_compexpr_left_20; - nuitka_bool tmp_compexpr_right_20; - assert(tmp_with_4__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_20 = tmp_with_4__indicator; - tmp_compexpr_right_20 = NUITKA_BOOL_TRUE; - tmp_condition_result_20 = (tmp_compexpr_left_20 == tmp_compexpr_right_20) ? true : false; - if (tmp_condition_result_20 != false) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_called_name_38; - PyObject *tmp_call_result_9; - CHECK_OBJECT(tmp_with_4__exit); - tmp_called_name_38 = tmp_with_4__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 446; - tmp_call_result_9 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_38, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_35); - Py_XDECREF(exception_keeper_value_35); - Py_XDECREF(exception_keeper_tb_35); - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - Py_DECREF(tmp_call_result_9); - } - branch_no_19:; - // Re-raise. - exception_type = exception_keeper_type_35; - exception_value = exception_keeper_value_35; - exception_tb = exception_keeper_tb_35; - exception_lineno = exception_keeper_lineno_35; - - goto try_except_handler_38; - // End of try: - try_end_25:; - { - bool tmp_condition_result_21; - nuitka_bool tmp_compexpr_left_21; - nuitka_bool tmp_compexpr_right_21; - assert(tmp_with_4__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_21 = tmp_with_4__indicator; - tmp_compexpr_right_21 = NUITKA_BOOL_TRUE; - tmp_condition_result_21 = (tmp_compexpr_left_21 == tmp_compexpr_right_21) ? true : false; - if (tmp_condition_result_21 != false) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - } - branch_yes_20:; - { - PyObject *tmp_called_name_39; - PyObject *tmp_call_result_10; - CHECK_OBJECT(tmp_with_4__exit); - tmp_called_name_39 = tmp_with_4__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 446; - tmp_call_result_10 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_39, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 446; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_38; - } - Py_DECREF(tmp_call_result_10); - } - branch_no_20:; - goto try_end_26; - // Exception handler code: - try_except_handler_38:; - exception_keeper_type_36 = exception_type; - exception_keeper_value_36 = exception_value; - exception_keeper_tb_36 = exception_tb; - exception_keeper_lineno_36 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_4__source); - tmp_with_4__source = NULL; - Py_XDECREF(tmp_with_4__enter); - tmp_with_4__enter = NULL; - Py_XDECREF(tmp_with_4__exit); - tmp_with_4__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_36; - exception_value = exception_keeper_value_36; - exception_tb = exception_keeper_tb_36; - exception_lineno = exception_keeper_lineno_36; - - goto try_except_handler_37; - // End of try: - try_end_26:; - CHECK_OBJECT(tmp_with_4__source); - Py_DECREF(tmp_with_4__source); - tmp_with_4__source = NULL; - CHECK_OBJECT(tmp_with_4__enter); - Py_DECREF(tmp_with_4__enter); - tmp_with_4__enter = NULL; - Py_XDECREF(tmp_with_4__exit); - tmp_with_4__exit = NULL; - { - PyObject *tmp_assign_source_116; - PyObject *tmp_called_name_40; - PyObject *tmp_args_element_name_38; - PyObject *tmp_args_element_name_39; - PyObject *tmp_expression_name_93; - PyObject *tmp_expression_name_94; - PyObject *tmp_subscript_name_32; - tmp_called_name_40 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[293]); - - if (unlikely(tmp_called_name_40 == NULL)) { - tmp_called_name_40 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[293]); - } - - if (tmp_called_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - if (var_sample_num == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[288]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_args_element_name_38 = var_sample_num; - if (var_point_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[294]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_94 = var_point_states; - tmp_expression_name_93 = LOOKUP_ATTRIBUTE(tmp_expression_name_94, mod_consts[175]); - if (tmp_expression_name_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_subscript_name_32 = mod_consts[11]; - tmp_args_element_name_39 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_93, tmp_subscript_name_32, 0); - Py_DECREF(tmp_expression_name_93); - if (tmp_args_element_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 447; - { - PyObject *call_args[] = {tmp_args_element_name_38, tmp_args_element_name_39}; - tmp_assign_source_116 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_40, call_args); - } - - Py_DECREF(tmp_args_element_name_39); - if (tmp_assign_source_116 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_labels; - var_labels = tmp_assign_source_116; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_117; - PyObject *tmp_called_name_41; - PyObject *tmp_expression_name_95; - PyObject *tmp_args_element_name_40; - PyObject *tmp_expression_name_96; - CHECK_OBJECT(var_labels); - tmp_expression_name_95 = var_labels; - tmp_called_name_41 = LOOKUP_ATTRIBUTE(tmp_expression_name_95, mod_consts[170]); - if (tmp_called_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - if (var_targets == NULL) { - Py_DECREF(tmp_called_name_41); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_96 = var_targets; - tmp_args_element_name_40 = LOOKUP_ATTRIBUTE(tmp_expression_name_96, mod_consts[178]); - if (tmp_args_element_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_41); - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 448; - tmp_assign_source_117 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_41, tmp_args_element_name_40); - Py_DECREF(tmp_called_name_41); - Py_DECREF(tmp_args_element_name_40); - if (tmp_assign_source_117 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 448; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - { - PyObject *old = var_labels; - var_labels = tmp_assign_source_117; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_118; - PyObject *tmp_called_name_42; - PyObject *tmp_expression_name_97; - PyObject *tmp_args_element_name_41; - PyObject *tmp_args_element_name_42; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_expression_name_97 = par_self; - tmp_called_name_42 = LOOKUP_ATTRIBUTE(tmp_expression_name_97, mod_consts[295]); - if (tmp_called_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - if (var_point_states == NULL) { - Py_DECREF(tmp_called_name_42); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[294]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_args_element_name_41 = var_point_states; - CHECK_OBJECT(var_labels); - tmp_args_element_name_42 = var_labels; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 449; - { - PyObject *call_args[] = {tmp_args_element_name_41, tmp_args_element_name_42}; - tmp_assign_source_118 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_42, call_args); - } - - Py_DECREF(tmp_called_name_42); - if (tmp_assign_source_118 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 449; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - assert(var_keypoint_loss == NULL); - var_keypoint_loss = tmp_assign_source_118; - } - { - PyObject *tmp_assign_source_119; - PyObject *tmp_left_name_18; - PyObject *tmp_right_name_18; - PyObject *tmp_left_name_19; - PyObject *tmp_right_name_19; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - - tmp_left_name_18 = var_loss; - CHECK_OBJECT(var_keypoint_loss); - tmp_left_name_19 = var_keypoint_loss; - tmp_right_name_19 = mod_consts[290]; - tmp_right_name_18 = BINARY_OPERATION_MULT_OBJECT_OBJECT_FLOAT(tmp_left_name_19, tmp_right_name_19); - if (tmp_right_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_18, tmp_right_name_18); - Py_DECREF(tmp_right_name_18); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_37; - } - tmp_assign_source_119 = tmp_left_name_18; - var_loss = tmp_assign_source_119; - - } - goto try_end_27; - // Exception handler code: - try_except_handler_37:; - exception_keeper_type_37 = exception_type; - exception_keeper_value_37 = exception_value; - exception_keeper_tb_37 = exception_tb; - exception_keeper_lineno_37 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 5. - GET_CURRENT_EXCEPTION(&exception_preserved_type_5, &exception_preserved_value_5, &exception_preserved_tb_5); - - if (exception_keeper_tb_37 == NULL) { - exception_keeper_tb_37 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_37); - } else if (exception_keeper_lineno_37 != 0) { - exception_keeper_tb_37 = ADD_TRACEBACK(exception_keeper_tb_37, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_37); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_37, &exception_keeper_value_37, &exception_keeper_tb_37); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_37, exception_keeper_tb_37); - PUBLISH_EXCEPTION(&exception_keeper_type_37, &exception_keeper_value_37, &exception_keeper_tb_37); - // Tried code: - { - bool tmp_condition_result_22; - PyObject *tmp_compexpr_left_22; - PyObject *tmp_compexpr_right_22; - tmp_compexpr_left_22 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_22 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_22, tmp_compexpr_right_22); - assert(!(tmp_res == -1)); - tmp_condition_result_22 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_22 != false) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - { - nuitka_bool tmp_assign_source_120; - tmp_assign_source_120 = NUITKA_BOOL_FALSE; - tmp_with_5__indicator = tmp_assign_source_120; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_5; - PyObject *tmp_called_name_43; - PyObject *tmp_args_element_name_43; - PyObject *tmp_args_element_name_44; - PyObject *tmp_args_element_name_45; - CHECK_OBJECT(tmp_with_5__exit); - tmp_called_name_43 = tmp_with_5__exit; - tmp_args_element_name_43 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_44 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_45 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 450; - { - PyObject *call_args[] = {tmp_args_element_name_43, tmp_args_element_name_44, tmp_args_element_name_45}; - tmp_operand_name_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_43, call_args); - } - - if (tmp_operand_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - Py_DECREF(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 450; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - branch_no_22:; - goto branch_end_21; - branch_no_21:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 441; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_42; - branch_end_21:; - goto try_end_28; - // Exception handler code: - try_except_handler_42:; - exception_keeper_type_38 = exception_type; - exception_keeper_value_38 = exception_value; - exception_keeper_tb_38 = exception_tb; - exception_keeper_lineno_38 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 5. - SET_CURRENT_EXCEPTION(exception_preserved_type_5, exception_preserved_value_5, exception_preserved_tb_5); - - // Re-raise. - exception_type = exception_keeper_type_38; - exception_value = exception_keeper_value_38; - exception_tb = exception_keeper_tb_38; - exception_lineno = exception_keeper_lineno_38; - - goto try_except_handler_36; - // End of try: - try_end_28:; - // Restore previous exception id 5. - SET_CURRENT_EXCEPTION(exception_preserved_type_5, exception_preserved_value_5, exception_preserved_tb_5); - - goto try_end_27; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_27:; - goto try_end_29; - // Exception handler code: - try_except_handler_36:; - exception_keeper_type_39 = exception_type; - exception_keeper_value_39 = exception_value; - exception_keeper_tb_39 = exception_tb; - exception_keeper_lineno_39 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_24; - nuitka_bool tmp_compexpr_left_23; - nuitka_bool tmp_compexpr_right_23; - assert(tmp_with_5__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_23 = tmp_with_5__indicator; - tmp_compexpr_right_23 = NUITKA_BOOL_TRUE; - tmp_condition_result_24 = (tmp_compexpr_left_23 == tmp_compexpr_right_23) ? true : false; - if (tmp_condition_result_24 != false) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_called_name_44; - PyObject *tmp_call_result_11; - CHECK_OBJECT(tmp_with_5__exit); - tmp_called_name_44 = tmp_with_5__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 450; - tmp_call_result_11 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_44, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_39); - Py_XDECREF(exception_keeper_value_39); - Py_XDECREF(exception_keeper_tb_39); - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - Py_DECREF(tmp_call_result_11); - } - branch_no_23:; - // Re-raise. - exception_type = exception_keeper_type_39; - exception_value = exception_keeper_value_39; - exception_tb = exception_keeper_tb_39; - exception_lineno = exception_keeper_lineno_39; - - goto try_except_handler_35; - // End of try: - try_end_29:; - { - bool tmp_condition_result_25; - nuitka_bool tmp_compexpr_left_24; - nuitka_bool tmp_compexpr_right_24; - assert(tmp_with_5__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_24 = tmp_with_5__indicator; - tmp_compexpr_right_24 = NUITKA_BOOL_TRUE; - tmp_condition_result_25 = (tmp_compexpr_left_24 == tmp_compexpr_right_24) ? true : false; - if (tmp_condition_result_25 != false) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - } - branch_yes_24:; - { - PyObject *tmp_called_name_45; - PyObject *tmp_call_result_12; - CHECK_OBJECT(tmp_with_5__exit); - tmp_called_name_45 = tmp_with_5__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 450; - tmp_call_result_12 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_45, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_35; - } - Py_DECREF(tmp_call_result_12); - } - branch_no_24:; - goto try_end_30; - // Exception handler code: - try_except_handler_35:; - exception_keeper_type_40 = exception_type; - exception_keeper_value_40 = exception_value; - exception_keeper_tb_40 = exception_tb; - exception_keeper_lineno_40 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_5__source); - tmp_with_5__source = NULL; - Py_XDECREF(tmp_with_5__enter); - tmp_with_5__enter = NULL; - Py_XDECREF(tmp_with_5__exit); - tmp_with_5__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_40; - exception_value = exception_keeper_value_40; - exception_tb = exception_keeper_tb_40; - exception_lineno = exception_keeper_lineno_40; - - goto frame_exception_exit_1; - // End of try: - try_end_30:; - CHECK_OBJECT(tmp_with_5__source); - Py_DECREF(tmp_with_5__source); - tmp_with_5__source = NULL; - CHECK_OBJECT(tmp_with_5__enter); - Py_DECREF(tmp_with_5__enter); - tmp_with_5__enter = NULL; - Py_XDECREF(tmp_with_5__exit); - tmp_with_5__exit = NULL; - branch_no_16:; - { - bool tmp_condition_result_26; - PyObject *tmp_compexpr_left_25; - PyObject *tmp_compexpr_right_25; - PyObject *tmp_expression_name_98; - PyObject *tmp_subscript_name_33; - tmp_compexpr_left_25 = mod_consts[207]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 452; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_98 = par_samples; - tmp_subscript_name_33 = mod_consts[233]; - tmp_compexpr_right_25 = LOOKUP_SUBSCRIPT(tmp_expression_name_98, tmp_subscript_name_33); - if (tmp_compexpr_right_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 452; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_25, tmp_compexpr_left_25); - Py_DECREF(tmp_compexpr_right_25); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 452; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_26 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_26 != false) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - { - bool tmp_condition_result_27; - PyObject *tmp_compexpr_left_26; - PyObject *tmp_compexpr_right_26; - PyObject *tmp_expression_name_99; - PyObject *tmp_subscript_name_34; - tmp_compexpr_left_26 = mod_consts[183]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 453; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_99 = par_samples; - tmp_subscript_name_34 = mod_consts[232]; - tmp_compexpr_right_26 = LOOKUP_SUBSCRIPT(tmp_expression_name_99, tmp_subscript_name_34); - if (tmp_compexpr_right_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 453; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_26, tmp_compexpr_left_26); - Py_DECREF(tmp_compexpr_right_26); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 453; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_27 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_27 != false) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_121; - PyObject *tmp_expression_name_100; - PyObject *tmp_subscript_name_35; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 454; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_100 = par_samples; - tmp_subscript_name_35 = mod_consts[296]; - tmp_assign_source_121 = LOOKUP_SUBSCRIPT(tmp_expression_name_100, tmp_subscript_name_35); - if (tmp_assign_source_121 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 454; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_masks == NULL); - var_masks = tmp_assign_source_121; - } - // Tried code: - { - PyObject *tmp_assign_source_122; - PyObject *tmp_called_instance_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - - tmp_called_instance_13 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 455; - tmp_assign_source_122 = CALL_METHOD_NO_ARGS(tmp_called_instance_13, mod_consts[180]); - if (tmp_assign_source_122 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - assert(tmp_with_6__source == NULL); - tmp_with_6__source = tmp_assign_source_122; - } - { - PyObject *tmp_assign_source_123; - PyObject *tmp_called_name_46; - PyObject *tmp_expression_name_101; - CHECK_OBJECT(tmp_with_6__source); - tmp_expression_name_101 = tmp_with_6__source; - tmp_called_name_46 = LOOKUP_SPECIAL(tmp_expression_name_101, mod_consts[181]); - if (tmp_called_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 455; - tmp_assign_source_123 = CALL_FUNCTION_NO_ARGS(tmp_called_name_46); - Py_DECREF(tmp_called_name_46); - if (tmp_assign_source_123 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - assert(tmp_with_6__enter == NULL); - tmp_with_6__enter = tmp_assign_source_123; - } - { - PyObject *tmp_assign_source_124; - PyObject *tmp_expression_name_102; - CHECK_OBJECT(tmp_with_6__source); - tmp_expression_name_102 = tmp_with_6__source; - tmp_assign_source_124 = LOOKUP_SPECIAL(tmp_expression_name_102, mod_consts[182]); - if (tmp_assign_source_124 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 455; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - assert(tmp_with_6__exit == NULL); - tmp_with_6__exit = tmp_assign_source_124; - } - { - nuitka_bool tmp_assign_source_125; - tmp_assign_source_125 = NUITKA_BOOL_TRUE; - tmp_with_6__indicator = tmp_assign_source_125; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_126; - PyObject *tmp_called_name_47; - PyObject *tmp_expression_name_103; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_9; - PyObject *tmp_kwargs_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_103 = par_self; - tmp_called_name_47 = LOOKUP_ATTRIBUTE(tmp_expression_name_103, mod_consts[75]); - if (tmp_called_name_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_47); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_tuple_element_9 = var_image; - tmp_args_name_9 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_9); - tmp_kwargs_name_10 = PyDict_Copy(mod_consts[184]); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 456; - tmp_assign_source_126 = CALL_FUNCTION(tmp_called_name_47, tmp_args_name_9, tmp_kwargs_name_10); - Py_DECREF(tmp_called_name_47); - Py_DECREF(tmp_args_name_9); - Py_DECREF(tmp_kwargs_name_10); - if (tmp_assign_source_126 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_img_embeds_list; - assert(old != NULL); - var_img_embeds_list = tmp_assign_source_126; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_127; - // Tried code: - { - PyObject *tmp_assign_source_128; - PyObject *tmp_iter_arg_14; - CHECK_OBJECT(var_img_embeds_list); - tmp_iter_arg_14 = var_img_embeds_list; - tmp_assign_source_128 = MAKE_ITERATOR(tmp_iter_arg_14); - if (tmp_assign_source_128 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_46; - } - assert(tmp_listcomp_6__$0 == NULL); - tmp_listcomp_6__$0 = tmp_assign_source_128; - } - { - PyObject *tmp_assign_source_129; - tmp_assign_source_129 = PyList_New(0); - assert(tmp_listcomp_6__contraction == NULL); - tmp_listcomp_6__contraction = tmp_assign_source_129; - } - if (isFrameUnusable(cache_frame_b2b96fbed34f62b539d2c554c20d923d_7)) { - Py_XDECREF(cache_frame_b2b96fbed34f62b539d2c554c20d923d_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b2b96fbed34f62b539d2c554c20d923d_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b2b96fbed34f62b539d2c554c20d923d_7 = MAKE_FUNCTION_FRAME(codeobj_b2b96fbed34f62b539d2c554c20d923d, module_models$medomni_bp, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b2b96fbed34f62b539d2c554c20d923d_7->m_type_description == NULL); - frame_b2b96fbed34f62b539d2c554c20d923d_7 = cache_frame_b2b96fbed34f62b539d2c554c20d923d_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b2b96fbed34f62b539d2c554c20d923d_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b2b96fbed34f62b539d2c554c20d923d_7) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_10:; - { - PyObject *tmp_next_source_10; - PyObject *tmp_assign_source_130; - CHECK_OBJECT(tmp_listcomp_6__$0); - tmp_next_source_10 = tmp_listcomp_6__$0; - tmp_assign_source_130 = ITERATOR_NEXT(tmp_next_source_10); - if (tmp_assign_source_130 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_10; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 457; - goto try_except_handler_47; - } - } - - { - PyObject *old = tmp_listcomp_6__iter_value_0; - tmp_listcomp_6__iter_value_0 = tmp_assign_source_130; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_131; - CHECK_OBJECT(tmp_listcomp_6__iter_value_0); - tmp_assign_source_131 = tmp_listcomp_6__iter_value_0; - { - PyObject *old = outline_5_var__; - outline_5_var__ = tmp_assign_source_131; - Py_INCREF(outline_5_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_6; - PyObject *tmp_append_value_6; - PyObject *tmp_called_name_48; - PyObject *tmp_expression_name_104; - PyObject *tmp_args_element_name_46; - PyObject *tmp_expression_name_105; - CHECK_OBJECT(tmp_listcomp_6__contraction); - tmp_append_list_6 = tmp_listcomp_6__contraction; - CHECK_OBJECT(outline_5_var__); - tmp_expression_name_104 = outline_5_var__; - tmp_called_name_48 = LOOKUP_ATTRIBUTE(tmp_expression_name_104, mod_consts[170]); - if (tmp_called_name_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - if (var_targets == NULL) { - Py_DECREF(tmp_called_name_48); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - - tmp_expression_name_105 = var_targets; - tmp_args_element_name_46 = LOOKUP_ATTRIBUTE(tmp_expression_name_105, mod_consts[178]); - if (tmp_args_element_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_48); - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - frame_b2b96fbed34f62b539d2c554c20d923d_7->m_frame.f_lineno = 457; - tmp_append_value_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_48, tmp_args_element_name_46); - Py_DECREF(tmp_called_name_48); - Py_DECREF(tmp_args_element_name_46); - if (tmp_append_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - assert(PyList_Check(tmp_append_list_6)); - tmp_result = LIST_APPEND1(tmp_append_list_6, tmp_append_value_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_2 = "oo"; - goto try_except_handler_47; - } - goto loop_start_10; - loop_end_10:; - CHECK_OBJECT(tmp_listcomp_6__contraction); - tmp_assign_source_127 = tmp_listcomp_6__contraction; - Py_INCREF(tmp_assign_source_127); - goto try_return_handler_47; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_47:; - Py_XDECREF(tmp_listcomp_6__$0); - tmp_listcomp_6__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_6__contraction); - Py_DECREF(tmp_listcomp_6__contraction); - tmp_listcomp_6__contraction = NULL; - Py_XDECREF(tmp_listcomp_6__iter_value_0); - tmp_listcomp_6__iter_value_0 = NULL; - goto frame_return_exit_7; - // Exception handler code: - try_except_handler_47:; - exception_keeper_type_41 = exception_type; - exception_keeper_value_41 = exception_value; - exception_keeper_tb_41 = exception_tb; - exception_keeper_lineno_41 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_6__$0); - tmp_listcomp_6__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_6__contraction); - Py_DECREF(tmp_listcomp_6__contraction); - tmp_listcomp_6__contraction = NULL; - Py_XDECREF(tmp_listcomp_6__iter_value_0); - tmp_listcomp_6__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_41; - exception_value = exception_keeper_value_41; - exception_tb = exception_keeper_tb_41; - exception_lineno = exception_keeper_lineno_41; - - goto frame_exception_exit_7; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b2b96fbed34f62b539d2c554c20d923d_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_return_exit_7:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b2b96fbed34f62b539d2c554c20d923d_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_46; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b2b96fbed34f62b539d2c554c20d923d_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b2b96fbed34f62b539d2c554c20d923d_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b2b96fbed34f62b539d2c554c20d923d_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b2b96fbed34f62b539d2c554c20d923d_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b2b96fbed34f62b539d2c554c20d923d_7, - type_description_2, - outline_5_var__, - var_targets - ); - - - // Release cached frame if used for exception. - if (frame_b2b96fbed34f62b539d2c554c20d923d_7 == cache_frame_b2b96fbed34f62b539d2c554c20d923d_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b2b96fbed34f62b539d2c554c20d923d_7); - cache_frame_b2b96fbed34f62b539d2c554c20d923d_7 = NULL; - } - - assertFrameObject(frame_b2b96fbed34f62b539d2c554c20d923d_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_46; - skip_nested_handling_6:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_46:; - Py_XDECREF(outline_5_var__); - outline_5_var__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_46:; - exception_keeper_type_42 = exception_type; - exception_keeper_value_42 = exception_value; - exception_keeper_tb_42 = exception_tb; - exception_keeper_lineno_42 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_5_var__); - outline_5_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_42; - exception_value = exception_keeper_value_42; - exception_tb = exception_keeper_tb_42; - exception_lineno = exception_keeper_lineno_42; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 457; - goto try_except_handler_45; - outline_result_7:; - { - PyObject *old = var_img_embeds_list; - var_img_embeds_list = tmp_assign_source_127; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_132; - PyObject *tmp_expression_name_106; - PyObject *tmp_expression_name_107; - PyObject *tmp_subscript_name_36; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 458; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_107 = var_outputs; - tmp_expression_name_106 = LOOKUP_ATTRIBUTE(tmp_expression_name_107, mod_consts[285]); - if (tmp_expression_name_106 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 458; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_subscript_name_36 = mod_consts[185]; - tmp_assign_source_132 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_106, tmp_subscript_name_36, -1); - Py_DECREF(tmp_expression_name_106); - if (tmp_assign_source_132 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 458; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_132; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_133; - PyObject *tmp_compexpr_left_27; - PyObject *tmp_compexpr_right_27; - PyObject *tmp_expression_name_108; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_compexpr_left_27 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_108 = par_self; - tmp_compexpr_right_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_108, mod_consts[107]); - if (tmp_compexpr_right_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_assign_source_133 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_27, tmp_compexpr_right_27); - Py_DECREF(tmp_compexpr_right_27); - if (tmp_assign_source_133 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 459; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_token_mask; - var_token_mask = tmp_assign_source_133; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_134; - PyObject *tmp_expression_name_109; - PyObject *tmp_subscript_name_37; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_109 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_37 = var_token_mask; - tmp_assign_source_134 = LOOKUP_SUBSCRIPT(tmp_expression_name_109, tmp_subscript_name_37); - if (tmp_assign_source_134 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 460; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_target_states; - var_target_states = tmp_assign_source_134; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_135; - PyObject *tmp_called_instance_14; - PyObject *tmp_args_element_name_47; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 461; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_called_instance_14 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_47 = var_target_states; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 461; - tmp_assign_source_135 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_14, mod_consts[160], tmp_args_element_name_47); - if (tmp_assign_source_135 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - assert(var_seg_states == NULL); - var_seg_states = tmp_assign_source_135; - } - { - PyObject *tmp_assign_source_136; - PyObject *tmp_expression_name_110; - PyObject *tmp_subscript_name_38; - CHECK_OBJECT(var_img_embeds_list); - tmp_expression_name_110 = var_img_embeds_list; - tmp_subscript_name_38 = mod_consts[185]; - tmp_assign_source_136 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_110, tmp_subscript_name_38, -1); - if (tmp_assign_source_136 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 462; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - assert(var_last_feats == NULL); - var_last_feats = tmp_assign_source_136; - } - { - PyObject *tmp_assign_source_137; - PyObject *tmp_left_name_20; - PyObject *tmp_right_name_20; - PyObject *tmp_called_instance_15; - PyObject *tmp_called_instance_16; - PyObject *tmp_called_instance_17; - CHECK_OBJECT(var_last_feats); - tmp_left_name_20 = var_last_feats; - CHECK_OBJECT(var_seg_states); - tmp_called_instance_17 = var_seg_states; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 463; - tmp_called_instance_16 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_17, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_called_instance_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 463; - tmp_called_instance_15 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_16, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - Py_DECREF(tmp_called_instance_16); - if (tmp_called_instance_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 463; - tmp_right_name_20 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_15, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - Py_DECREF(tmp_called_instance_15); - if (tmp_right_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_assign_source_137 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_20, tmp_right_name_20); - Py_DECREF(tmp_right_name_20); - if (tmp_assign_source_137 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_137; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_138; - PyObject *tmp_called_instance_18; - PyObject *tmp_args_element_name_48; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 464; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_called_instance_18 = par_self; - CHECK_OBJECT(var_last_feats); - tmp_args_element_name_48 = var_last_feats; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 464; - tmp_assign_source_138 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_18, mod_consts[163], tmp_args_element_name_48); - if (tmp_assign_source_138 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 464; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_138; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - int tmp_ass_subscript_res_1; - CHECK_OBJECT(var_last_feats); - tmp_ass_subvalue_2 = var_last_feats; - CHECK_OBJECT(var_img_embeds_list); - tmp_ass_subscribed_2 = var_img_embeds_list; - tmp_ass_subscript_2 = mod_consts[185]; - tmp_ass_subscript_res_1 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_2, tmp_ass_subscript_2, -1, tmp_ass_subvalue_2); - if (tmp_ass_subscript_res_1 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 465; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - } - { - PyObject *tmp_assign_source_139; - PyObject *tmp_called_name_49; - PyObject *tmp_expression_name_111; - PyObject *tmp_kwargs_name_11; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_111 = par_self; - tmp_called_name_49 = LOOKUP_ATTRIBUTE(tmp_expression_name_111, mod_consts[75]); - if (tmp_called_name_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_dict_key_6 = mod_consts[298]; - tmp_dict_value_6 = Py_False; - tmp_kwargs_name_11 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[299]; - if (var_img_embeds_list == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[300]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_dict_value_6 = var_img_embeds_list; - tmp_res = PyDict_SetItem(tmp_kwargs_name_11, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - goto dict_build_noexception_3; - // Exception handling pass through code for dict_build: - dict_build_exception_3:; - Py_DECREF(tmp_called_name_49); - Py_DECREF(tmp_kwargs_name_11); - goto try_except_handler_45; - // Finished with no exception for dict_build: - dict_build_noexception_3:; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 466; - tmp_assign_source_139 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_49, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_49); - Py_DECREF(tmp_kwargs_name_11); - if (tmp_assign_source_139 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - assert(var_seg_preds == NULL); - var_seg_preds = tmp_assign_source_139; - } - { - PyObject *tmp_assign_source_140; - PyObject *tmp_left_name_21; - PyObject *tmp_right_name_21; - PyObject *tmp_called_name_50; - PyObject *tmp_expression_name_112; - PyObject *tmp_args_element_name_49; - PyObject *tmp_args_element_name_50; - PyObject *tmp_called_instance_19; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_left_name_21 = var_loss; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - - tmp_expression_name_112 = par_self; - tmp_called_name_50 = LOOKUP_ATTRIBUTE(tmp_expression_name_112, mod_consts[166]); - if (tmp_called_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - CHECK_OBJECT(var_seg_preds); - tmp_args_element_name_49 = var_seg_preds; - CHECK_OBJECT(var_masks); - tmp_called_instance_19 = var_masks; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 467; - tmp_args_element_name_50 = CALL_METHOD_NO_ARGS(tmp_called_instance_19, mod_consts[173]); - if (tmp_args_element_name_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_50); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 467; - { - PyObject *call_args[] = {tmp_args_element_name_49, tmp_args_element_name_50}; - tmp_right_name_21 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_50, call_args); - } - - Py_DECREF(tmp_called_name_50); - Py_DECREF(tmp_args_element_name_50); - if (tmp_right_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_21, tmp_right_name_21); - Py_DECREF(tmp_right_name_21); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_45; - } - tmp_assign_source_140 = tmp_left_name_21; - var_loss = tmp_assign_source_140; - - } - goto try_end_31; - // Exception handler code: - try_except_handler_45:; - exception_keeper_type_43 = exception_type; - exception_keeper_value_43 = exception_value; - exception_keeper_tb_43 = exception_tb; - exception_keeper_lineno_43 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 6. - GET_CURRENT_EXCEPTION(&exception_preserved_type_6, &exception_preserved_value_6, &exception_preserved_tb_6); - - if (exception_keeper_tb_43 == NULL) { - exception_keeper_tb_43 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_43); - } else if (exception_keeper_lineno_43 != 0) { - exception_keeper_tb_43 = ADD_TRACEBACK(exception_keeper_tb_43, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_43); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_43, &exception_keeper_value_43, &exception_keeper_tb_43); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_43, exception_keeper_tb_43); - PUBLISH_EXCEPTION(&exception_keeper_type_43, &exception_keeper_value_43, &exception_keeper_tb_43); - // Tried code: - { - bool tmp_condition_result_28; - PyObject *tmp_compexpr_left_28; - PyObject *tmp_compexpr_right_28; - tmp_compexpr_left_28 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_28 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_28, tmp_compexpr_right_28); - assert(!(tmp_res == -1)); - tmp_condition_result_28 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_28 != false) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - nuitka_bool tmp_assign_source_141; - tmp_assign_source_141 = NUITKA_BOOL_FALSE; - tmp_with_6__indicator = tmp_assign_source_141; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_6; - PyObject *tmp_called_name_51; - PyObject *tmp_args_element_name_51; - PyObject *tmp_args_element_name_52; - PyObject *tmp_args_element_name_53; - CHECK_OBJECT(tmp_with_6__exit); - tmp_called_name_51 = tmp_with_6__exit; - tmp_args_element_name_51 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_52 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_53 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 467; - { - PyObject *call_args[] = {tmp_args_element_name_51, tmp_args_element_name_52, tmp_args_element_name_53}; - tmp_operand_name_6 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_51, call_args); - } - - if (tmp_operand_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - Py_DECREF(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - } - branch_yes_28:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 467; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - branch_no_28:; - goto branch_end_27; - branch_no_27:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 455; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_48; - branch_end_27:; - goto try_end_32; - // Exception handler code: - try_except_handler_48:; - exception_keeper_type_44 = exception_type; - exception_keeper_value_44 = exception_value; - exception_keeper_tb_44 = exception_tb; - exception_keeper_lineno_44 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 6. - SET_CURRENT_EXCEPTION(exception_preserved_type_6, exception_preserved_value_6, exception_preserved_tb_6); - - // Re-raise. - exception_type = exception_keeper_type_44; - exception_value = exception_keeper_value_44; - exception_tb = exception_keeper_tb_44; - exception_lineno = exception_keeper_lineno_44; - - goto try_except_handler_44; - // End of try: - try_end_32:; - // Restore previous exception id 6. - SET_CURRENT_EXCEPTION(exception_preserved_type_6, exception_preserved_value_6, exception_preserved_tb_6); - - goto try_end_31; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_31:; - goto try_end_33; - // Exception handler code: - try_except_handler_44:; - exception_keeper_type_45 = exception_type; - exception_keeper_value_45 = exception_value; - exception_keeper_tb_45 = exception_tb; - exception_keeper_lineno_45 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_30; - nuitka_bool tmp_compexpr_left_29; - nuitka_bool tmp_compexpr_right_29; - assert(tmp_with_6__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_29 = tmp_with_6__indicator; - tmp_compexpr_right_29 = NUITKA_BOOL_TRUE; - tmp_condition_result_30 = (tmp_compexpr_left_29 == tmp_compexpr_right_29) ? true : false; - if (tmp_condition_result_30 != false) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - { - PyObject *tmp_called_name_52; - PyObject *tmp_call_result_13; - CHECK_OBJECT(tmp_with_6__exit); - tmp_called_name_52 = tmp_with_6__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 467; - tmp_call_result_13 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_52, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_45); - Py_XDECREF(exception_keeper_value_45); - Py_XDECREF(exception_keeper_tb_45); - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - Py_DECREF(tmp_call_result_13); - } - branch_no_29:; - // Re-raise. - exception_type = exception_keeper_type_45; - exception_value = exception_keeper_value_45; - exception_tb = exception_keeper_tb_45; - exception_lineno = exception_keeper_lineno_45; - - goto try_except_handler_43; - // End of try: - try_end_33:; - { - bool tmp_condition_result_31; - nuitka_bool tmp_compexpr_left_30; - nuitka_bool tmp_compexpr_right_30; - assert(tmp_with_6__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_30 = tmp_with_6__indicator; - tmp_compexpr_right_30 = NUITKA_BOOL_TRUE; - tmp_condition_result_31 = (tmp_compexpr_left_30 == tmp_compexpr_right_30) ? true : false; - if (tmp_condition_result_31 != false) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_called_name_53; - PyObject *tmp_call_result_14; - CHECK_OBJECT(tmp_with_6__exit); - tmp_called_name_53 = tmp_with_6__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 467; - tmp_call_result_14 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_53, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_43; - } - Py_DECREF(tmp_call_result_14); - } - branch_no_30:; - goto try_end_34; - // Exception handler code: - try_except_handler_43:; - exception_keeper_type_46 = exception_type; - exception_keeper_value_46 = exception_value; - exception_keeper_tb_46 = exception_tb; - exception_keeper_lineno_46 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_6__source); - tmp_with_6__source = NULL; - Py_XDECREF(tmp_with_6__enter); - tmp_with_6__enter = NULL; - Py_XDECREF(tmp_with_6__exit); - tmp_with_6__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_46; - exception_value = exception_keeper_value_46; - exception_tb = exception_keeper_tb_46; - exception_lineno = exception_keeper_lineno_46; - - goto frame_exception_exit_1; - // End of try: - try_end_34:; - CHECK_OBJECT(tmp_with_6__source); - Py_DECREF(tmp_with_6__source); - tmp_with_6__source = NULL; - CHECK_OBJECT(tmp_with_6__enter); - Py_DECREF(tmp_with_6__enter); - tmp_with_6__enter = NULL; - Py_XDECREF(tmp_with_6__exit); - tmp_with_6__exit = NULL; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_142; - PyObject *tmp_expression_name_113; - PyObject *tmp_subscript_name_39; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 469; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_113 = par_samples; - tmp_subscript_name_39 = mod_consts[296]; - tmp_assign_source_142 = LOOKUP_SUBSCRIPT(tmp_expression_name_113, tmp_subscript_name_39); - if (tmp_assign_source_142 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 469; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_masks == NULL); - var_masks = tmp_assign_source_142; - } - // Tried code: - { - PyObject *tmp_assign_source_143; - PyObject *tmp_called_instance_20; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - - tmp_called_instance_20 = par_self; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 470; - tmp_assign_source_143 = CALL_METHOD_NO_ARGS(tmp_called_instance_20, mod_consts[180]); - if (tmp_assign_source_143 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - assert(tmp_with_7__source == NULL); - tmp_with_7__source = tmp_assign_source_143; - } - { - PyObject *tmp_assign_source_144; - PyObject *tmp_called_name_54; - PyObject *tmp_expression_name_114; - CHECK_OBJECT(tmp_with_7__source); - tmp_expression_name_114 = tmp_with_7__source; - tmp_called_name_54 = LOOKUP_SPECIAL(tmp_expression_name_114, mod_consts[181]); - if (tmp_called_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 470; - tmp_assign_source_144 = CALL_FUNCTION_NO_ARGS(tmp_called_name_54); - Py_DECREF(tmp_called_name_54); - if (tmp_assign_source_144 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - assert(tmp_with_7__enter == NULL); - tmp_with_7__enter = tmp_assign_source_144; - } - { - PyObject *tmp_assign_source_145; - PyObject *tmp_expression_name_115; - CHECK_OBJECT(tmp_with_7__source); - tmp_expression_name_115 = tmp_with_7__source; - tmp_assign_source_145 = LOOKUP_SPECIAL(tmp_expression_name_115, mod_consts[182]); - if (tmp_assign_source_145 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - assert(tmp_with_7__exit == NULL); - tmp_with_7__exit = tmp_assign_source_145; - } - { - nuitka_bool tmp_assign_source_146; - tmp_assign_source_146 = NUITKA_BOOL_TRUE; - tmp_with_7__indicator = tmp_assign_source_146; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_147; - PyObject *tmp_called_name_55; - PyObject *tmp_expression_name_116; - PyObject *tmp_expression_name_117; - PyObject *tmp_args_element_name_54; - PyObject *tmp_expression_name_118; - PyObject *tmp_subscript_name_40; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_117 = par_self; - tmp_expression_name_116 = LOOKUP_ATTRIBUTE(tmp_expression_name_117, mod_consts[154]); - if (tmp_expression_name_116 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_called_name_55 = LOOKUP_ATTRIBUTE(tmp_expression_name_116, mod_consts[301]); - Py_DECREF(tmp_expression_name_116); - if (tmp_called_name_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - if (var_image == NULL) { - Py_DECREF(tmp_called_name_55); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_118 = var_image; - tmp_subscript_name_40 = mod_consts[302]; - tmp_args_element_name_54 = LOOKUP_SUBSCRIPT(tmp_expression_name_118, tmp_subscript_name_40); - if (tmp_args_element_name_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_55); - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 471; - tmp_assign_source_147 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_55, tmp_args_element_name_54); - Py_DECREF(tmp_called_name_55); - Py_DECREF(tmp_args_element_name_54); - if (tmp_assign_source_147 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_feats == NULL); - var_feats = tmp_assign_source_147; - } - { - PyObject *tmp_assign_source_148; - PyObject *tmp_expression_name_119; - PyObject *tmp_subscript_name_41; - CHECK_OBJECT(var_feats); - tmp_expression_name_119 = var_feats; - tmp_subscript_name_41 = mod_consts[185]; - tmp_assign_source_148 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_119, tmp_subscript_name_41, -1); - if (tmp_assign_source_148 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 472; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_last_feats == NULL); - var_last_feats = tmp_assign_source_148; - } - { - PyObject *tmp_assign_source_149; - PyObject *tmp_expression_name_120; - PyObject *tmp_expression_name_121; - PyObject *tmp_subscript_name_42; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[283]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 473; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_121 = var_outputs; - tmp_expression_name_120 = LOOKUP_ATTRIBUTE(tmp_expression_name_121, mod_consts[285]); - if (tmp_expression_name_120 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 473; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_subscript_name_42 = mod_consts[185]; - tmp_assign_source_149 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_120, tmp_subscript_name_42, -1); - Py_DECREF(tmp_expression_name_120); - if (tmp_assign_source_149 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 473; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_149; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_150; - PyObject *tmp_compexpr_left_31; - PyObject *tmp_compexpr_right_31; - PyObject *tmp_expression_name_122; - if (var_targets == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[286]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_compexpr_left_31 = var_targets; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_122 = par_self; - tmp_compexpr_right_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_122, mod_consts[106]); - if (tmp_compexpr_right_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_assign_source_150 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_31, tmp_compexpr_right_31); - Py_DECREF(tmp_compexpr_right_31); - if (tmp_assign_source_150 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 474; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_token_mask; - var_token_mask = tmp_assign_source_150; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_151; - PyObject *tmp_expression_name_123; - PyObject *tmp_subscript_name_43; - CHECK_OBJECT(var_hidden_states); - tmp_expression_name_123 = var_hidden_states; - CHECK_OBJECT(var_token_mask); - tmp_subscript_name_43 = var_token_mask; - tmp_assign_source_151 = LOOKUP_SUBSCRIPT(tmp_expression_name_123, tmp_subscript_name_43); - if (tmp_assign_source_151 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 475; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_target_states; - var_target_states = tmp_assign_source_151; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_152; - PyObject *tmp_called_instance_21; - PyObject *tmp_args_element_name_55; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 476; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_called_instance_21 = par_self; - CHECK_OBJECT(var_target_states); - tmp_args_element_name_55 = var_target_states; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 476; - tmp_assign_source_152 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_21, mod_consts[156], tmp_args_element_name_55); - if (tmp_assign_source_152 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 476; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_seg_states == NULL); - var_seg_states = tmp_assign_source_152; - } - { - PyObject *tmp_assign_source_153; - PyObject *tmp_left_name_22; - PyObject *tmp_right_name_22; - PyObject *tmp_called_instance_22; - PyObject *tmp_called_instance_23; - CHECK_OBJECT(var_last_feats); - tmp_left_name_22 = var_last_feats; - CHECK_OBJECT(var_seg_states); - tmp_called_instance_23 = var_seg_states; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 477; - tmp_called_instance_22 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_23, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_called_instance_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 477; - tmp_right_name_22 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_22, - mod_consts[297], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - Py_DECREF(tmp_called_instance_22); - if (tmp_right_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_assign_source_153 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_22, tmp_right_name_22); - Py_DECREF(tmp_right_name_22); - if (tmp_assign_source_153 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_153; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_154; - PyObject *tmp_called_instance_24; - PyObject *tmp_args_element_name_56; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 478; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_called_instance_24 = par_self; - CHECK_OBJECT(var_last_feats); - tmp_args_element_name_56 = var_last_feats; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 478; - tmp_assign_source_154 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_24, mod_consts[159], tmp_args_element_name_56); - if (tmp_assign_source_154 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 478; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - { - PyObject *old = var_last_feats; - var_last_feats = tmp_assign_source_154; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - int tmp_ass_subscript_res_2; - CHECK_OBJECT(var_last_feats); - tmp_ass_subvalue_3 = var_last_feats; - CHECK_OBJECT(var_feats); - tmp_ass_subscribed_3 = var_feats; - tmp_ass_subscript_3 = mod_consts[185]; - tmp_ass_subscript_res_2 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_3, tmp_ass_subscript_3, -1, tmp_ass_subvalue_3); - if (tmp_ass_subscript_res_2 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 479; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - } - { - PyObject *tmp_assign_source_155; - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_124; - PyObject *tmp_expression_name_125; - PyObject *tmp_dircall_arg2_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_125 = par_self; - tmp_expression_name_124 = LOOKUP_ATTRIBUTE(tmp_expression_name_125, mod_consts[154]); - if (tmp_expression_name_124 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_124, mod_consts[303]); - Py_DECREF(tmp_expression_name_124); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - if (var_feats == NULL) { - Py_DECREF(tmp_dircall_arg1_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[304]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_dircall_arg2_1 = var_feats; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_assign_source_155 = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_assign_source_155 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_seg_feats == NULL); - var_seg_feats = tmp_assign_source_155; - } - { - PyObject *tmp_assign_source_156; - PyObject *tmp_called_instance_25; - PyObject *tmp_expression_name_126; - PyObject *tmp_args_element_name_57; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 481; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_126 = par_self; - tmp_called_instance_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_126, mod_consts[154]); - if (tmp_called_instance_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 481; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - CHECK_OBJECT(var_seg_feats); - tmp_args_element_name_57 = var_seg_feats; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 481; - tmp_assign_source_156 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_25, mod_consts[305], tmp_args_element_name_57); - Py_DECREF(tmp_called_instance_25); - if (tmp_assign_source_156 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 481; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - assert(var_seg_preds == NULL); - var_seg_preds = tmp_assign_source_156; - } - { - PyObject *tmp_assign_source_157; - PyObject *tmp_left_name_23; - PyObject *tmp_right_name_23; - PyObject *tmp_called_name_56; - PyObject *tmp_expression_name_127; - PyObject *tmp_args_element_name_58; - PyObject *tmp_args_element_name_59; - PyObject *tmp_called_instance_26; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_left_name_23 = var_loss; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[49]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - - tmp_expression_name_127 = par_self; - tmp_called_name_56 = LOOKUP_ATTRIBUTE(tmp_expression_name_127, mod_consts[166]); - if (tmp_called_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - CHECK_OBJECT(var_seg_preds); - tmp_args_element_name_58 = var_seg_preds; - CHECK_OBJECT(var_masks); - tmp_called_instance_26 = var_masks; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 482; - tmp_args_element_name_59 = CALL_METHOD_NO_ARGS(tmp_called_instance_26, mod_consts[173]); - if (tmp_args_element_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_56); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 482; - { - PyObject *call_args[] = {tmp_args_element_name_58, tmp_args_element_name_59}; - tmp_right_name_23 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_56, call_args); - } - - Py_DECREF(tmp_called_name_56); - Py_DECREF(tmp_args_element_name_59); - if (tmp_right_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_23, tmp_right_name_23); - Py_DECREF(tmp_right_name_23); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_51; - } - tmp_assign_source_157 = tmp_left_name_23; - var_loss = tmp_assign_source_157; - - } - goto try_end_35; - // Exception handler code: - try_except_handler_51:; - exception_keeper_type_47 = exception_type; - exception_keeper_value_47 = exception_value; - exception_keeper_tb_47 = exception_tb; - exception_keeper_lineno_47 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 7. - GET_CURRENT_EXCEPTION(&exception_preserved_type_7, &exception_preserved_value_7, &exception_preserved_tb_7); - - if (exception_keeper_tb_47 == NULL) { - exception_keeper_tb_47 = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_47); - } else if (exception_keeper_lineno_47 != 0) { - exception_keeper_tb_47 = ADD_TRACEBACK(exception_keeper_tb_47, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_keeper_lineno_47); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_47, &exception_keeper_value_47, &exception_keeper_tb_47); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_47, exception_keeper_tb_47); - PUBLISH_EXCEPTION(&exception_keeper_type_47, &exception_keeper_value_47, &exception_keeper_tb_47); - // Tried code: - { - bool tmp_condition_result_32; - PyObject *tmp_compexpr_left_32; - PyObject *tmp_compexpr_right_32; - tmp_compexpr_left_32 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_32 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_32, tmp_compexpr_right_32); - assert(!(tmp_res == -1)); - tmp_condition_result_32 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_32 != false) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - nuitka_bool tmp_assign_source_158; - tmp_assign_source_158 = NUITKA_BOOL_FALSE; - tmp_with_7__indicator = tmp_assign_source_158; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_operand_name_7; - PyObject *tmp_called_name_57; - PyObject *tmp_args_element_name_60; - PyObject *tmp_args_element_name_61; - PyObject *tmp_args_element_name_62; - CHECK_OBJECT(tmp_with_7__exit); - tmp_called_name_57 = tmp_with_7__exit; - tmp_args_element_name_60 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_61 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_62 = EXC_TRACEBACK(PyThreadState_GET()); - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 482; - { - PyObject *call_args[] = {tmp_args_element_name_60, tmp_args_element_name_61, tmp_args_element_name_62}; - tmp_operand_name_7 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_57, call_args); - } - - if (tmp_operand_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - Py_DECREF(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - } - tmp_condition_result_33 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - } - branch_yes_32:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 482; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - branch_no_32:; - goto branch_end_31; - branch_no_31:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 470; - } - - if (exception_tb && exception_tb->tb_frame == &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_52; - branch_end_31:; - goto try_end_36; - // Exception handler code: - try_except_handler_52:; - exception_keeper_type_48 = exception_type; - exception_keeper_value_48 = exception_value; - exception_keeper_tb_48 = exception_tb; - exception_keeper_lineno_48 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 7. - SET_CURRENT_EXCEPTION(exception_preserved_type_7, exception_preserved_value_7, exception_preserved_tb_7); - - // Re-raise. - exception_type = exception_keeper_type_48; - exception_value = exception_keeper_value_48; - exception_tb = exception_keeper_tb_48; - exception_lineno = exception_keeper_lineno_48; - - goto try_except_handler_50; - // End of try: - try_end_36:; - // Restore previous exception id 7. - SET_CURRENT_EXCEPTION(exception_preserved_type_7, exception_preserved_value_7, exception_preserved_tb_7); - - goto try_end_35; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_35:; - goto try_end_37; - // Exception handler code: - try_except_handler_50:; - exception_keeper_type_49 = exception_type; - exception_keeper_value_49 = exception_value; - exception_keeper_tb_49 = exception_tb; - exception_keeper_lineno_49 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_34; - nuitka_bool tmp_compexpr_left_33; - nuitka_bool tmp_compexpr_right_33; - assert(tmp_with_7__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_33 = tmp_with_7__indicator; - tmp_compexpr_right_33 = NUITKA_BOOL_TRUE; - tmp_condition_result_34 = (tmp_compexpr_left_33 == tmp_compexpr_right_33) ? true : false; - if (tmp_condition_result_34 != false) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - { - PyObject *tmp_called_name_58; - PyObject *tmp_call_result_15; - CHECK_OBJECT(tmp_with_7__exit); - tmp_called_name_58 = tmp_with_7__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 482; - tmp_call_result_15 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_58, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_49); - Py_XDECREF(exception_keeper_value_49); - Py_XDECREF(exception_keeper_tb_49); - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - Py_DECREF(tmp_call_result_15); - } - branch_no_33:; - // Re-raise. - exception_type = exception_keeper_type_49; - exception_value = exception_keeper_value_49; - exception_tb = exception_keeper_tb_49; - exception_lineno = exception_keeper_lineno_49; - - goto try_except_handler_49; - // End of try: - try_end_37:; - { - bool tmp_condition_result_35; - nuitka_bool tmp_compexpr_left_34; - nuitka_bool tmp_compexpr_right_34; - assert(tmp_with_7__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_34 = tmp_with_7__indicator; - tmp_compexpr_right_34 = NUITKA_BOOL_TRUE; - tmp_condition_result_35 = (tmp_compexpr_left_34 == tmp_compexpr_right_34) ? true : false; - if (tmp_condition_result_35 != false) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_called_name_59; - PyObject *tmp_call_result_16; - CHECK_OBJECT(tmp_with_7__exit); - tmp_called_name_59 = tmp_with_7__exit; - frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame.f_lineno = 482; - tmp_call_result_16 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_59, &PyTuple_GET_ITEM(mod_consts[208], 0)); - - if (tmp_call_result_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto try_except_handler_49; - } - Py_DECREF(tmp_call_result_16); - } - branch_no_34:; - goto try_end_38; - // Exception handler code: - try_except_handler_49:; - exception_keeper_type_50 = exception_type; - exception_keeper_value_50 = exception_value; - exception_keeper_tb_50 = exception_tb; - exception_keeper_lineno_50 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_7__source); - tmp_with_7__source = NULL; - Py_XDECREF(tmp_with_7__enter); - tmp_with_7__enter = NULL; - Py_XDECREF(tmp_with_7__exit); - tmp_with_7__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_50; - exception_value = exception_keeper_value_50; - exception_tb = exception_keeper_tb_50; - exception_lineno = exception_keeper_lineno_50; - - goto frame_exception_exit_1; - // End of try: - try_end_38:; - CHECK_OBJECT(tmp_with_7__source); - Py_DECREF(tmp_with_7__source); - tmp_with_7__source = NULL; - CHECK_OBJECT(tmp_with_7__enter); - Py_DECREF(tmp_with_7__enter); - tmp_with_7__enter = NULL; - Py_XDECREF(tmp_with_7__exit); - tmp_with_7__exit = NULL; - branch_end_26:; - branch_no_25:; - { - PyObject *tmp_dict_key_7; - PyObject *tmp_dict_value_7; - tmp_dict_key_7 = mod_consts[284]; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[284]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_7 = var_loss; - tmp_return_value = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_128; - PyObject *tmp_expression_name_129; - PyObject *tmp_subscript_name_44; - PyObject *tmp_subscript_name_45; - PyObject *tmp_expression_name_130; - PyObject *tmp_expression_name_131; - PyObject *tmp_subscript_name_46; - PyObject *tmp_subscript_name_47; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_7, tmp_dict_value_7); - assert(!(tmp_res != 0)); - tmp_dict_key_7 = mod_consts[232]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - - tmp_expression_name_129 = par_samples; - tmp_subscript_name_44 = mod_consts[232]; - tmp_expression_name_128 = LOOKUP_SUBSCRIPT(tmp_expression_name_129, tmp_subscript_name_44); - if (tmp_expression_name_128 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_subscript_name_45 = mod_consts[11]; - tmp_dict_value_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_128, tmp_subscript_name_45, 0); - Py_DECREF(tmp_expression_name_128); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - tmp_dict_key_7 = mod_consts[233]; - if (par_samples == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[236]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - - tmp_expression_name_131 = par_samples; - tmp_subscript_name_46 = mod_consts[233]; - tmp_expression_name_130 = LOOKUP_SUBSCRIPT(tmp_expression_name_131, tmp_subscript_name_46); - if (tmp_expression_name_130 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_subscript_name_47 = mod_consts[11]; - tmp_dict_value_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_130, tmp_subscript_name_47, 0); - Py_DECREF(tmp_expression_name_130); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "ooooooooooooooooooooooooooooooooooooooooooooooo"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_4; - // Exception handling pass through code for dict_build: - dict_build_exception_4:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_4:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe557d162e569c6a186cf09bbb51e6fa); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe557d162e569c6a186cf09bbb51e6fa); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe557d162e569c6a186cf09bbb51e6fa); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fe557d162e569c6a186cf09bbb51e6fa, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fe557d162e569c6a186cf09bbb51e6fa->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fe557d162e569c6a186cf09bbb51e6fa, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fe557d162e569c6a186cf09bbb51e6fa, - type_description_1, - par_self, - par_samples, - var_image, - var_bsz, - var_img_embeds, - var_atts_img, - var_img_embeds_list, - var_prefix_list, - var_tag_list, - var_placeholder, - var_j, - var_num, - var_prefix, - var_i, - var_prompt, - var_tags, - var_tag, - var_sample_ans, - var_sample_num, - var_text, - var_prompt_tokens, - var_to_regress_tokens, - var_targets, - var_empty_targets, - var_batch_size, - var_bos, - var_bos_embeds, - var_atts_bos, - var_to_regress_embeds, - var_inputs_embeds, - var_attention_mask, - var_outputs, - var_loss, - var_hidden_states, - var_token_mask, - var_target_states, - var_det_states, - var_labels, - var_det_loss, - var_point_states, - var_keypoint_loss, - var_masks, - var_seg_states, - var_last_feats, - var_seg_preds, - var_feats, - var_seg_feats - ); - - - // Release cached frame if used for exception. - if (frame_fe557d162e569c6a186cf09bbb51e6fa == cache_frame_fe557d162e569c6a186cf09bbb51e6fa) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fe557d162e569c6a186cf09bbb51e6fa); - cache_frame_fe557d162e569c6a186cf09bbb51e6fa = NULL; - } - - assertFrameObject(frame_fe557d162e569c6a186cf09bbb51e6fa); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_7:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_samples); - par_samples = NULL; - Py_XDECREF(var_image); - var_image = NULL; - CHECK_OBJECT(var_bsz); - Py_DECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_embeds); - var_img_embeds = NULL; - Py_XDECREF(var_atts_img); - var_atts_img = NULL; - Py_XDECREF(var_img_embeds_list); - var_img_embeds_list = NULL; - Py_XDECREF(var_prefix_list); - var_prefix_list = NULL; - Py_XDECREF(var_tag_list); - var_tag_list = NULL; - Py_XDECREF(var_placeholder); - var_placeholder = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_num); - var_num = NULL; - Py_XDECREF(var_prefix); - var_prefix = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_prompt); - var_prompt = NULL; - Py_XDECREF(var_tags); - var_tags = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_sample_ans); - var_sample_ans = NULL; - Py_XDECREF(var_sample_num); - var_sample_num = NULL; - Py_XDECREF(var_text); - var_text = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_to_regress_tokens); - var_to_regress_tokens = NULL; - Py_XDECREF(var_targets); - var_targets = NULL; - Py_XDECREF(var_empty_targets); - var_empty_targets = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_bos); - var_bos = NULL; - Py_XDECREF(var_bos_embeds); - var_bos_embeds = NULL; - Py_XDECREF(var_atts_bos); - var_atts_bos = NULL; - Py_XDECREF(var_to_regress_embeds); - var_to_regress_embeds = NULL; - Py_XDECREF(var_inputs_embeds); - var_inputs_embeds = NULL; - Py_XDECREF(var_attention_mask); - var_attention_mask = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_token_mask); - var_token_mask = NULL; - Py_XDECREF(var_target_states); - var_target_states = NULL; - Py_XDECREF(var_det_states); - var_det_states = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_det_loss); - var_det_loss = NULL; - Py_XDECREF(var_point_states); - var_point_states = NULL; - Py_XDECREF(var_keypoint_loss); - var_keypoint_loss = NULL; - Py_XDECREF(var_masks); - var_masks = NULL; - Py_XDECREF(var_seg_states); - var_seg_states = NULL; - Py_XDECREF(var_last_feats); - var_last_feats = NULL; - Py_XDECREF(var_seg_preds); - var_seg_preds = NULL; - Py_XDECREF(var_feats); - var_feats = NULL; - Py_XDECREF(var_seg_feats); - var_seg_feats = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_51 = exception_type; - exception_keeper_value_51 = exception_value; - exception_keeper_tb_51 = exception_tb; - exception_keeper_lineno_51 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_samples); - par_samples = NULL; - Py_XDECREF(var_image); - var_image = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_img_embeds); - var_img_embeds = NULL; - Py_XDECREF(var_atts_img); - var_atts_img = NULL; - Py_XDECREF(var_img_embeds_list); - var_img_embeds_list = NULL; - Py_XDECREF(var_prefix_list); - var_prefix_list = NULL; - Py_XDECREF(var_tag_list); - var_tag_list = NULL; - Py_XDECREF(var_placeholder); - var_placeholder = NULL; - Py_XDECREF(var_j); - var_j = NULL; - Py_XDECREF(var_num); - var_num = NULL; - Py_XDECREF(var_prefix); - var_prefix = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_prompt); - var_prompt = NULL; - Py_XDECREF(var_tags); - var_tags = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_sample_ans); - var_sample_ans = NULL; - Py_XDECREF(var_sample_num); - var_sample_num = NULL; - Py_XDECREF(var_text); - var_text = NULL; - Py_XDECREF(var_prompt_tokens); - var_prompt_tokens = NULL; - Py_XDECREF(var_to_regress_tokens); - var_to_regress_tokens = NULL; - Py_XDECREF(var_targets); - var_targets = NULL; - Py_XDECREF(var_empty_targets); - var_empty_targets = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_bos); - var_bos = NULL; - Py_XDECREF(var_bos_embeds); - var_bos_embeds = NULL; - Py_XDECREF(var_atts_bos); - var_atts_bos = NULL; - Py_XDECREF(var_to_regress_embeds); - var_to_regress_embeds = NULL; - Py_XDECREF(var_inputs_embeds); - var_inputs_embeds = NULL; - Py_XDECREF(var_attention_mask); - var_attention_mask = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_token_mask); - var_token_mask = NULL; - Py_XDECREF(var_target_states); - var_target_states = NULL; - Py_XDECREF(var_det_states); - var_det_states = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_det_loss); - var_det_loss = NULL; - Py_XDECREF(var_point_states); - var_point_states = NULL; - Py_XDECREF(var_keypoint_loss); - var_keypoint_loss = NULL; - Py_XDECREF(var_masks); - var_masks = NULL; - Py_XDECREF(var_seg_states); - var_seg_states = NULL; - Py_XDECREF(var_last_feats); - var_last_feats = NULL; - Py_XDECREF(var_seg_preds); - var_seg_preds = NULL; - Py_XDECREF(var_feats); - var_feats = NULL; - Py_XDECREF(var_seg_feats); - var_seg_feats = NULL; - // Re-raise. - exception_type = exception_keeper_type_51; - exception_value = exception_keeper_value_51; - exception_tb = exception_keeper_tb_51; - exception_lineno = exception_keeper_lineno_51; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr_locals { - PyObject *var_x; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr_locals *generator_heap = (struct models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_x = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_9b154103e79061564ce08a43fe982301, module_models$medomni_bp, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[0])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[0]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "No"; - generator_heap->exception_lineno = 356; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_x; - generator_heap->var_x = tmp_assign_source_2; - Py_INCREF(generator_heap->var_x); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_expression_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - CHECK_OBJECT(generator_heap->var_x); - tmp_expression_name_1 = generator_heap->var_x; - Py_INCREF(tmp_expression_name_1); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 356; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 356; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_x - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_x); - generator_heap->var_x = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_x); - generator_heap->var_x = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr_context, - module_models$medomni_bp, - mod_consts[306], -#if PYTHON_VERSION >= 0x350 - mod_consts[307], -#endif - codeobj_9b154103e79061564ce08a43fe982301, - closure, - 1, - sizeof(struct models$medomni_bp$$$function__17_forward$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$medomni_bp$$$function__18_from_config(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_cls = python_pars[0]; - PyObject *par_cfg = python_pars[1]; - PyObject *par_finetune = python_pars[2]; - PyObject *var_llama_model = NULL; - PyObject *var_freeze_vit = NULL; - PyObject *var_low_resource = NULL; - PyObject *var_max_txt_len = NULL; - PyObject *var_end_sym = NULL; - PyObject *var_model = NULL; - PyObject *var_ckpt_path = NULL; - PyObject *var_ckpt = NULL; - PyObject *var_current_model_dict = NULL; - PyObject *var_weights = NULL; - PyObject *var_new_state_dict = NULL; - PyObject *var_k = NULL; - PyObject *var_msg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_3b40d46a4cb1e9e3d54dc40920fbf9d6; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6)) { - Py_XDECREF(cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6 = MAKE_FUNCTION_FRAME(codeobj_3b40d46a4cb1e9e3d54dc40920fbf9d6, module_models$medomni_bp, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_type_description == NULL); - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6 = cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_cfg); - tmp_called_instance_1 = par_cfg; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 488; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[309], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 488; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_llama_model == NULL); - var_llama_model = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 489; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_cfg; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 489; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[311], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 489; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_freeze_vit == NULL); - var_freeze_vit = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 490; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_cfg; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 490; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[312], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 490; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_low_resource == NULL); - var_low_resource = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 491; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_cfg; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 491; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[313], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 491; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_max_txt_len == NULL); - var_max_txt_len = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_5; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 492; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_cfg; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 492; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[314], 0) - ); - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_end_sym == NULL); - var_end_sym = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_cls); - tmp_called_name_1 = par_cls; - tmp_dict_key_1 = mod_consts[315]; - CHECK_OBJECT(var_freeze_vit); - tmp_dict_value_1 = var_freeze_vit; - tmp_kwargs_name_1 = _PyDict_NewPresized( 5 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[111]; - CHECK_OBJECT(var_llama_model); - tmp_dict_value_1 = var_llama_model; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[167]; - CHECK_OBJECT(var_max_txt_len); - tmp_dict_value_1 = var_max_txt_len; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[66]; - CHECK_OBJECT(var_low_resource); - tmp_dict_value_1 = var_low_resource; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[168]; - CHECK_OBJECT(var_end_sym); - tmp_dict_value_1 = var_end_sym; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 494; - tmp_assign_source_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 494; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_6; - if (par_cfg == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[310]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 503; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = par_cfg; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 503; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_6, - mod_consts[308], - &PyTuple_GET_ITEM(mod_consts[316], 0) - ); - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 503; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_ckpt_path == NULL); - var_ckpt_path = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_ckpt_path); - tmp_truth_name_1 = CHECK_IF_TRUE(var_ckpt_path); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 504; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_2 != NULL); - tmp_called_instance_7 = mod_consts[317]; - CHECK_OBJECT(var_ckpt_path); - tmp_args_element_name_2 = var_ckpt_path; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 505; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[35], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 505; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 505; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 505; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[318]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_ckpt_path == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[319]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = var_ckpt_path; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[320]); - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 506; - tmp_assign_source_8 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 506; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_ckpt == NULL); - var_ckpt = tmp_assign_source_8; - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - CHECK_OBJECT(par_finetune); - tmp_truth_name_2 = CHECK_IF_TRUE(par_finetune); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 507; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_8; - CHECK_OBJECT(var_model); - tmp_called_instance_8 = var_model; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 508; - tmp_assign_source_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[321]); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 508; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_current_model_dict == NULL); - var_current_model_dict = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_ckpt); - tmp_expression_name_2 = var_ckpt; - tmp_subscript_name_1 = mod_consts[14]; - tmp_assign_source_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 509; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_weights == NULL); - var_weights = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - tmp_assign_source_11 = PyDict_New(); - assert(var_new_state_dict == NULL); - var_new_state_dict = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_1; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_instance_9; - CHECK_OBJECT(var_current_model_dict); - tmp_called_instance_9 = var_current_model_dict; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 511; - tmp_list_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[322]); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_12 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_12; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_13 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_13 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooo"; - exception_lineno = 511; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_14 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_k; - var_k = tmp_assign_source_14; - Py_INCREF(var_k); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_list_arg_2; - PyObject *tmp_called_instance_10; - CHECK_OBJECT(var_k); - tmp_compexpr_left_1 = var_k; - if (var_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[323]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_10 = var_weights; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 512; - tmp_list_arg_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[322]); - if (tmp_list_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_1 = MAKE_LIST(tmp_list_arg_2); - Py_DECREF(tmp_list_arg_2); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_instance_11; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - PyObject *tmp_called_instance_12; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_3; - if (var_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[323]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = var_weights; - CHECK_OBJECT(var_k); - tmp_subscript_name_2 = var_k; - tmp_called_instance_11 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_called_instance_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 513; - tmp_compexpr_left_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[33]); - Py_DECREF(tmp_called_instance_11); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_current_model_dict == NULL) { - Py_DECREF(tmp_compexpr_left_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[324]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = var_current_model_dict; - CHECK_OBJECT(var_k); - tmp_subscript_name_3 = var_k; - tmp_called_instance_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_3); - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_2); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 513; - tmp_compexpr_right_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_12, mod_consts[33]); - Py_DECREF(tmp_called_instance_12); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_2); - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_4 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_condition_result_4 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_4 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_4; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (var_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[323]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = var_weights; - CHECK_OBJECT(var_k); - tmp_subscript_name_4 = var_k; - tmp_ass_subvalue_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_4); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_1 = var_new_state_dict; - CHECK_OBJECT(var_k); - tmp_ass_subscript_1 = var_k; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 514; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_5; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - if (var_current_model_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[324]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_6 = var_current_model_dict; - CHECK_OBJECT(var_k); - tmp_subscript_name_5 = var_k; - tmp_ass_subvalue_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_5); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_2 = var_new_state_dict; - CHECK_OBJECT(var_k); - tmp_ass_subscript_2 = var_k; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - } - branch_end_4:; - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - tmp_called_name_4 = LOOKUP_BUILTIN(mod_consts[67]); - assert(tmp_called_name_4 != NULL); - CHECK_OBJECT(var_k); - tmp_args_element_name_3 = var_k; - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 518; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_6; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - if (var_current_model_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[324]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_7 = var_current_model_dict; - CHECK_OBJECT(var_k); - tmp_subscript_name_6 = var_k; - tmp_ass_subvalue_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_6); - if (tmp_ass_subvalue_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_ass_subvalue_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_3 = var_new_state_dict; - CHECK_OBJECT(var_k); - tmp_ass_subscript_3 = var_k; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - Py_DECREF(tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 519; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - } - branch_end_3:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 511; - type_description_1 = "oooooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_3; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = var_model; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[326]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_new_state_dict == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[325]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_new_state_dict; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[327]); - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 520; - tmp_assign_source_15 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_2, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 520; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_15; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_7; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(var_model); - tmp_expression_name_9 = var_model; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[326]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_ckpt); - tmp_expression_name_10 = var_ckpt; - tmp_subscript_name_7 = mod_consts[14]; - tmp_tuple_element_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_7); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 522; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[327]); - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame.f_lineno = 522; - tmp_assign_source_16 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_3, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_msg == NULL); - var_msg = tmp_assign_source_16; - } - branch_end_2:; - branch_no_1:; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 524; - type_description_1 = "oooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_model; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3b40d46a4cb1e9e3d54dc40920fbf9d6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3b40d46a4cb1e9e3d54dc40920fbf9d6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3b40d46a4cb1e9e3d54dc40920fbf9d6, - type_description_1, - par_cls, - par_cfg, - par_finetune, - var_llama_model, - var_freeze_vit, - var_low_resource, - var_max_txt_len, - var_end_sym, - var_model, - var_ckpt_path, - var_ckpt, - var_current_model_dict, - var_weights, - var_new_state_dict, - var_k, - var_msg - ); - - - // Release cached frame if used for exception. - if (frame_3b40d46a4cb1e9e3d54dc40920fbf9d6 == cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); - cache_frame_3b40d46a4cb1e9e3d54dc40920fbf9d6 = NULL; - } - - assertFrameObject(frame_3b40d46a4cb1e9e3d54dc40920fbf9d6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_finetune); - Py_DECREF(par_finetune); - par_finetune = NULL; - CHECK_OBJECT(var_llama_model); - Py_DECREF(var_llama_model); - var_llama_model = NULL; - CHECK_OBJECT(var_freeze_vit); - Py_DECREF(var_freeze_vit); - var_freeze_vit = NULL; - CHECK_OBJECT(var_low_resource); - Py_DECREF(var_low_resource); - var_low_resource = NULL; - CHECK_OBJECT(var_max_txt_len); - Py_DECREF(var_max_txt_len); - var_max_txt_len = NULL; - CHECK_OBJECT(var_end_sym); - Py_DECREF(var_end_sym); - var_end_sym = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_ckpt_path); - var_ckpt_path = NULL; - Py_XDECREF(var_ckpt); - var_ckpt = NULL; - Py_XDECREF(var_current_model_dict); - var_current_model_dict = NULL; - Py_XDECREF(var_weights); - var_weights = NULL; - Py_XDECREF(var_new_state_dict); - var_new_state_dict = NULL; - Py_XDECREF(var_k); - var_k = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_cls); - Py_DECREF(par_cls); - par_cls = NULL; - Py_XDECREF(par_cfg); - par_cfg = NULL; - CHECK_OBJECT(par_finetune); - Py_DECREF(par_finetune); - par_finetune = NULL; - Py_XDECREF(var_llama_model); - var_llama_model = NULL; - Py_XDECREF(var_freeze_vit); - var_freeze_vit = NULL; - Py_XDECREF(var_low_resource); - var_low_resource = NULL; - Py_XDECREF(var_max_txt_len); - var_max_txt_len = NULL; - Py_XDECREF(var_end_sym); - var_end_sym = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_ckpt_path); - var_ckpt_path = NULL; - Py_XDECREF(var_ckpt); - var_ckpt = NULL; - Py_XDECREF(var_current_model_dict); - var_current_model_dict = NULL; - Py_XDECREF(var_weights); - var_weights = NULL; - Py_XDECREF(var_new_state_dict); - var_new_state_dict = NULL; - Py_XDECREF(var_k); - var_k = NULL; - Py_XDECREF(var_msg); - var_msg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__10_trans_det() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__10_trans_det, - mod_consts[287], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_b0b331f085277111601888195501fa13, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__11_trans_keypoint() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__11_trans_keypoint, - mod_consts[293], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_a45548cd58c2face9e36cbc89b979801, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__12___init__, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - mod_consts[389], -#endif - codeobj_f49b4cc387c566c587dd5b706722b99c, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__12___init__$$$function__1_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__12___init__$$$function__1_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[133], -#endif - codeobj_678266b6b2faeb3dc81b89982e327d91, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__13_vit_to_cpu() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__13_vit_to_cpu, - mod_consts[179], -#if PYTHON_VERSION >= 0x300 - mod_consts[390], -#endif - codeobj_5d568379025a008913acddc22c837d7b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__14_encode_img() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__14_encode_img, - mod_consts[231], -#if PYTHON_VERSION >= 0x300 - mod_consts[391], -#endif - codeobj_cf7c573f3eabc09b380bf631954f6108, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__15_prompt_concat() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__15_prompt_concat, - mod_consts[264], -#if PYTHON_VERSION >= 0x300 - mod_consts[392], -#endif - codeobj_40a21ff435291cacab2ca20091a7e59f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__16_prompt_wrap(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__16_prompt_wrap, - mod_consts[248], -#if PYTHON_VERSION >= 0x300 - mod_consts[394], -#endif - codeobj_213cbc07f24f34b89cdb18c9cf2e6690, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__17_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__17_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[395], -#endif - codeobj_fe557d162e569c6a186cf09bbb51e6fa, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__18_from_config(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__18_from_config, - mod_consts[398], -#if PYTHON_VERSION >= 0x300 - mod_consts[399], -#endif - codeobj_3b40d46a4cb1e9e3d54dc40920fbf9d6, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__1_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__1_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[375], -#endif - codeobj_e81ebbfb2ec3a1af6ddd6a3d2c75c165, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$medomni_bp, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__2_forward(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__2_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[376], -#endif - codeobj_048bbd020f35504ab633cfd37d07e770, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$medomni_bp, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__3_replace_batchnorm_2d() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__3_replace_batchnorm_2d, - mod_consts[12], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_c18430faac4f931c946f463c136a2236, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__4_dice_loss() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__4_dice_loss, - mod_consts[50], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_168b01bfd9d8202de2e66d125c81eec9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__5___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__5___init__, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - mod_consts[378], -#endif - codeobj_4db878a8d04a4dfe8c38caaa351601be, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__6_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__6_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[379], -#endif - codeobj_d2f1eea242db134fa0b488a0ed0074d2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__7___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__7___init__, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - mod_consts[380], -#endif - codeobj_59989aa3b41bd36889beee060e2da0b4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__8_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__8_forward, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - mod_consts[381], -#endif - codeobj_b1ee5fd62d6c69da575619caa1d8e0c3, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$medomni_bp$$$function__9_trans_seg() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$medomni_bp$$$function__9_trans_seg, - mod_consts[382], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_30f7346d71ee32c85eb9e23ad4f81d69, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$medomni_bp, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$medomni_bp[] = { - impl_models$medomni_bp$$$function__12___init__$$$function__1_forward, - impl_models$medomni_bp$$$function__1_forward, - impl_models$medomni_bp$$$function__2_forward, - impl_models$medomni_bp$$$function__3_replace_batchnorm_2d, - impl_models$medomni_bp$$$function__4_dice_loss, - impl_models$medomni_bp$$$function__5___init__, - impl_models$medomni_bp$$$function__6_forward, - impl_models$medomni_bp$$$function__7___init__, - impl_models$medomni_bp$$$function__8_forward, - impl_models$medomni_bp$$$function__9_trans_seg, - impl_models$medomni_bp$$$function__10_trans_det, - impl_models$medomni_bp$$$function__11_trans_keypoint, - impl_models$medomni_bp$$$function__12___init__, - impl_models$medomni_bp$$$function__13_vit_to_cpu, - impl_models$medomni_bp$$$function__14_encode_img, - impl_models$medomni_bp$$$function__15_prompt_concat, - impl_models$medomni_bp$$$function__16_prompt_wrap, - impl_models$medomni_bp$$$function__17_forward, - impl_models$medomni_bp$$$function__18_from_config, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$medomni_bp; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$medomni_bp) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$medomni_bp[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$medomni_bp, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$medomni_bp(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$medomni_bp = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.medomni_bp: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.medomni_bp: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.medomni_bp: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$medomni_bp\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$medomni_bp = MODULE_DICT(module_models$medomni_bp); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$medomni_bp, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$medomni_bp, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$medomni_bp, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$medomni_bp, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$medomni_bp, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$medomni_bp); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$medomni_bp); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - PyObject *tmp_import_from_3__module = NULL; - struct Nuitka_FrameObject *frame_63b85d45078d5c768ad6f82e6838a770; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$medomni_bp$$$class__1_GroupNorm_31 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$medomni_bp$$$class__2_LayerNorm_39 = NULL; - struct Nuitka_FrameObject *frame_6c800241dc87d02997e9d2e4b01fc079_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_6c800241dc87d02997e9d2e4b01fc079_3 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *locals_models$medomni_bp$$$class__3_FocalLoss_64 = NULL; - struct Nuitka_FrameObject *frame_25d4492c6bc24c9ba55d89fcd7c18a51_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *locals_models$medomni_bp$$$class__4_MixedLoss_80 = NULL; - struct Nuitka_FrameObject *frame_aee592ce980fa3c1d3fed78e1558148c_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_aee592ce980fa3c1d3fed78e1558148c_5 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *locals_models$medomni_bp$$$class__5_MedOmni_133 = NULL; - struct Nuitka_FrameObject *frame_9f24eb05d199684a8b5a54133678fb42_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_9f24eb05d199684a8b5a54133678fb42_6 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[328], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[329], tmp_assign_source_2); - } - // Frame without reuse. - frame_63b85d45078d5c768ad6f82e6838a770 = MAKE_MODULE_FRAME(codeobj_63b85d45078d5c768ad6f82e6838a770, module_models$medomni_bp); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_63b85d45078d5c768ad6f82e6838a770); - assert(Py_REFCNT(frame_63b85d45078d5c768ad6f82e6838a770) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[330]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[330]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[331], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[330]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[330]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[332], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[333], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[86]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[86], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[334]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 2; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[334], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[5]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 4; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[335]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[336]; - tmp_level_name_4 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 5; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[337], - mod_consts[11] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[337]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[337], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[338]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[339]; - tmp_level_name_5 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 6; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[340], - mod_consts[11] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[340]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[340], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[341]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = Py_None; - tmp_level_name_6 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 7; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[15], - mod_consts[11] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[15]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[342]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[343]; - tmp_level_name_7 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 9; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[344], - mod_consts[11] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[344]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[344], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[345]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[346]; - tmp_level_name_8 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 10; - tmp_assign_source_11 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_11; - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[347], - mod_consts[11] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[347]); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[347], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_6 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[84], - mod_consts[11] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[84]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[84], tmp_assign_source_13); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_7; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[348]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[349]; - tmp_level_name_9 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 11; - tmp_import_name_from_7 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_import_name_from_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[110], - mod_consts[11] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[110]); - } - - Py_DECREF(tmp_import_name_from_7); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[110], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_8; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[350]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = mod_consts[351]; - tmp_level_name_10 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 12; - tmp_import_name_from_8 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_import_name_from_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[91], - mod_consts[11] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[91]); - } - - Py_DECREF(tmp_import_name_from_8); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[91], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_9; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[350]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[352]; - tmp_level_name_11 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 13; - tmp_import_name_from_9 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[69], - mod_consts[11] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[69]); - } - - Py_DECREF(tmp_import_name_from_9); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[69], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_10; - PyObject *tmp_import_name_from_11; - PyObject *tmp_name_name_12; - PyObject *tmp_globals_arg_name_12; - PyObject *tmp_locals_arg_name_12; - PyObject *tmp_fromlist_name_12; - PyObject *tmp_level_name_12; - tmp_name_name_12 = mod_consts[353]; - tmp_globals_arg_name_12 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_12 = Py_None; - tmp_fromlist_name_12 = Py_None; - tmp_level_name_12 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 14; - tmp_import_name_from_11 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); - if (tmp_import_name_from_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_import_name_from_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[15], - mod_consts[11] - ); - } else { - tmp_import_name_from_10 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[15]); - } - - Py_DECREF(tmp_import_name_from_11); - if (tmp_import_name_from_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[354], - mod_consts[11] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[354]); - } - - Py_DECREF(tmp_import_name_from_10); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[43], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_name_name_13; - PyObject *tmp_globals_arg_name_13; - PyObject *tmp_locals_arg_name_13; - PyObject *tmp_fromlist_name_13; - PyObject *tmp_level_name_13; - tmp_name_name_13 = mod_consts[355]; - tmp_globals_arg_name_13 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_13 = Py_None; - tmp_fromlist_name_13 = Py_None; - tmp_level_name_13 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 15; - tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_name_13, tmp_globals_arg_name_13, tmp_locals_arg_name_13, tmp_fromlist_name_13, tmp_level_name_13); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[355], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_name_name_14; - PyObject *tmp_globals_arg_name_14; - PyObject *tmp_locals_arg_name_14; - PyObject *tmp_fromlist_name_14; - PyObject *tmp_level_name_14; - tmp_name_name_14 = mod_consts[356]; - tmp_globals_arg_name_14 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_14 = Py_None; - tmp_fromlist_name_14 = mod_consts[357]; - tmp_level_name_14 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 16; - tmp_assign_source_19 = IMPORT_MODULE5(tmp_name_name_14, tmp_globals_arg_name_14, tmp_locals_arg_name_14, tmp_fromlist_name_14, tmp_level_name_14); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_19; - } - // Tried code: - { - PyObject *tmp_assign_source_20; - PyObject *tmp_import_name_from_12; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_12 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[192], - mod_consts[11] - ); - } else { - tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[192]); - } - - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[192], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_import_name_from_13; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_13 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[358], - mod_consts[11] - ); - } else { - tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[358]); - } - - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[358], tmp_assign_source_21); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_import_name_from_14; - PyObject *tmp_name_name_15; - PyObject *tmp_globals_arg_name_15; - PyObject *tmp_locals_arg_name_15; - PyObject *tmp_fromlist_name_15; - PyObject *tmp_level_name_15; - tmp_name_name_15 = mod_consts[359]; - tmp_globals_arg_name_15 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_15 = Py_None; - tmp_fromlist_name_15 = mod_consts[360]; - tmp_level_name_15 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 17; - tmp_import_name_from_14 = IMPORT_MODULE5(tmp_name_name_15, tmp_globals_arg_name_15, tmp_locals_arg_name_15, tmp_fromlist_name_15, tmp_level_name_15); - if (tmp_import_name_from_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_14)) { - tmp_assign_source_22 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_14, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[361], - mod_consts[11] - ); - } else { - tmp_assign_source_22 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[361]); - } - - Py_DECREF(tmp_import_name_from_14); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[361], tmp_assign_source_22); - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_name_name_16; - PyObject *tmp_globals_arg_name_16; - PyObject *tmp_locals_arg_name_16; - PyObject *tmp_fromlist_name_16; - PyObject *tmp_level_name_16; - tmp_name_name_16 = mod_consts[362]; - tmp_globals_arg_name_16 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_16 = Py_None; - tmp_fromlist_name_16 = Py_None; - tmp_level_name_16 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 18; - tmp_assign_source_23 = IMPORT_MODULE5(tmp_name_name_16, tmp_globals_arg_name_16, tmp_locals_arg_name_16, tmp_fromlist_name_16, tmp_level_name_16); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[362], tmp_assign_source_23); - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_name_name_17; - PyObject *tmp_globals_arg_name_17; - PyObject *tmp_locals_arg_name_17; - PyObject *tmp_fromlist_name_17; - PyObject *tmp_level_name_17; - tmp_name_name_17 = mod_consts[363]; - tmp_globals_arg_name_17 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_17 = Py_None; - tmp_fromlist_name_17 = Py_None; - tmp_level_name_17 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 19; - tmp_assign_source_24 = IMPORT_MODULE5(tmp_name_name_17, tmp_globals_arg_name_17, tmp_locals_arg_name_17, tmp_fromlist_name_17, tmp_level_name_17); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[151], tmp_assign_source_24); - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_import_name_from_15; - PyObject *tmp_name_name_18; - PyObject *tmp_globals_arg_name_18; - PyObject *tmp_locals_arg_name_18; - PyObject *tmp_fromlist_name_18; - PyObject *tmp_level_name_18; - tmp_name_name_18 = mod_consts[364]; - tmp_globals_arg_name_18 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_18 = Py_None; - tmp_fromlist_name_18 = mod_consts[365]; - tmp_level_name_18 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 20; - tmp_import_name_from_15 = IMPORT_MODULE5(tmp_name_name_18, tmp_globals_arg_name_18, tmp_locals_arg_name_18, tmp_fromlist_name_18, tmp_level_name_18); - if (tmp_import_name_from_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_15)) { - tmp_assign_source_25 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_15, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[73], - mod_consts[11] - ); - } else { - tmp_assign_source_25 = IMPORT_NAME(tmp_import_name_from_15, mod_consts[73]); - } - - Py_DECREF(tmp_import_name_from_15); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[73], tmp_assign_source_25); - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_name_name_19; - PyObject *tmp_globals_arg_name_19; - PyObject *tmp_locals_arg_name_19; - PyObject *tmp_fromlist_name_19; - PyObject *tmp_level_name_19; - tmp_name_name_19 = mod_consts[366]; - tmp_globals_arg_name_19 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_19 = Py_None; - tmp_fromlist_name_19 = Py_None; - tmp_level_name_19 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 21; - tmp_assign_source_26 = IMPORT_MODULE5(tmp_name_name_19, tmp_globals_arg_name_19, tmp_locals_arg_name_19, tmp_fromlist_name_19, tmp_level_name_19); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[366], tmp_assign_source_26); - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_name_name_20; - PyObject *tmp_globals_arg_name_20; - PyObject *tmp_locals_arg_name_20; - PyObject *tmp_fromlist_name_20; - PyObject *tmp_level_name_20; - tmp_name_name_20 = mod_consts[367]; - tmp_globals_arg_name_20 = (PyObject *)moduledict_models$medomni_bp; - tmp_locals_arg_name_20 = Py_None; - tmp_fromlist_name_20 = mod_consts[368]; - tmp_level_name_20 = mod_consts[11]; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 22; - tmp_assign_source_27 = IMPORT_MODULE5(tmp_name_name_20, tmp_globals_arg_name_20, tmp_locals_arg_name_20, tmp_fromlist_name_20, tmp_level_name_20); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_3__module == NULL); - tmp_import_from_3__module = tmp_assign_source_27; - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_import_name_from_16; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_16 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_16)) { - tmp_assign_source_28 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_16, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[139], - mod_consts[11] - ); - } else { - tmp_assign_source_28 = IMPORT_NAME(tmp_import_name_from_16, mod_consts[139]); - } - - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[139], tmp_assign_source_28); - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_import_name_from_17; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_17 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_17)) { - tmp_assign_source_29 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_17, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[137], - mod_consts[11] - ); - } else { - tmp_assign_source_29 = IMPORT_NAME(tmp_import_name_from_17, mod_consts[137]); - } - - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[137], tmp_assign_source_29); - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_import_name_from_18; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_18 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_18)) { - tmp_assign_source_30 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_18, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[369], - mod_consts[11] - ); - } else { - tmp_assign_source_30 = IMPORT_NAME(tmp_import_name_from_18, mod_consts[369]); - } - - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[369], tmp_assign_source_30); - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_import_name_from_19; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_19 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_19)) { - tmp_assign_source_31 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_19, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[370], - mod_consts[11] - ); - } else { - tmp_assign_source_31 = IMPORT_NAME(tmp_import_name_from_19, mod_consts[370]); - } - - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[370], tmp_assign_source_31); - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_import_name_from_20; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_20 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_20)) { - tmp_assign_source_32 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_20, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[371], - mod_consts[11] - ); - } else { - tmp_assign_source_32 = IMPORT_NAME(tmp_import_name_from_20, mod_consts[371]); - } - - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[371], tmp_assign_source_32); - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_import_name_from_21; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_21 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_21)) { - tmp_assign_source_33 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_21, - (PyObject *)moduledict_models$medomni_bp, - mod_consts[372], - mod_consts[11] - ); - } else { - tmp_assign_source_33 = IMPORT_NAME(tmp_import_name_from_21, mod_consts[372]); - } - - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[372], tmp_assign_source_33); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[17]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_assign_source_34 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_34, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_34; - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_35 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_35; - } - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_36; - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[123]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[11]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_37 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_37; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[124]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[124]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_tuple_element_2 = mod_consts[17]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 31; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_38; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[126]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[128]; - tmp_getattr_default_1 = mod_consts[129]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[128]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 31; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_39; - } - branch_end_2:; - { - PyObject *tmp_assign_source_40; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$medomni_bp$$$class__1_GroupNorm_31 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__1_GroupNorm_31, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[373]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__1_GroupNorm_31, mod_consts[328], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[17]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__1_GroupNorm_31, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2)) { - Py_XDECREF(cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2 = MAKE_FUNCTION_FRAME(codeobj_8e2d9ccb6d85da198b831c3a3c5e69c6, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2->m_type_description == NULL); - frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2 = cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_7; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_dict_key_1 = mod_consts[3]; - tmp_expression_name_7 = PyObject_GetItem(locals_models$medomni_bp$$$class__1_GroupNorm_31, mod_consts[5]); - - if (tmp_expression_name_7 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - Py_INCREF(tmp_expression_name_7); - } - } - - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[374]); - Py_DECREF(tmp_expression_name_7); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - tmp_annotations_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__1_forward(tmp_annotations_1, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__1_GroupNorm_31, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2 == cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2); - cache_frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2 = NULL; - } - - assertFrameObject(frame_8e2d9ccb6d85da198b831c3a3c5e69c6_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_6; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__1_GroupNorm_31, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - branch_no_4:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[17]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$medomni_bp$$$class__1_GroupNorm_31; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 31; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - - goto try_except_handler_6; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_41); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_40 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_40); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$medomni_bp$$$class__1_GroupNorm_31); - locals_models$medomni_bp$$$class__1_GroupNorm_31 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni_bp$$$class__1_GroupNorm_31); - locals_models$medomni_bp$$$class__1_GroupNorm_31 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 31; - goto try_except_handler_4; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_40); - } - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_42; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_8; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[76]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_assign_source_42 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_42, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_42; - } - { - PyObject *tmp_assign_source_43; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_43 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_43; - } - { - PyObject *tmp_assign_source_44; - tmp_assign_source_44 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_44; - } - { - PyObject *tmp_assign_source_45; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[123]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_9 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[11]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_45 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_45; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_10, mod_consts[124]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_46; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_11 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[124]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_tuple_element_6 = mod_consts[76]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 39; - tmp_assign_source_46 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_46; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_12 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_12, mod_consts[126]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[128]; - tmp_getattr_default_2 = mod_consts[129]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_13 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_13 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[128]); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 39; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_47; - } - branch_end_6:; - { - PyObject *tmp_assign_source_48; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$medomni_bp$$$class__2_LayerNorm_39 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__2_LayerNorm_39, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[373]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__2_LayerNorm_39, mod_consts[328], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[76]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__2_LayerNorm_39, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_6c800241dc87d02997e9d2e4b01fc079_3)) { - Py_XDECREF(cache_frame_6c800241dc87d02997e9d2e4b01fc079_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6c800241dc87d02997e9d2e4b01fc079_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6c800241dc87d02997e9d2e4b01fc079_3 = MAKE_FUNCTION_FRAME(codeobj_6c800241dc87d02997e9d2e4b01fc079, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6c800241dc87d02997e9d2e4b01fc079_3->m_type_description == NULL); - frame_6c800241dc87d02997e9d2e4b01fc079_3 = cache_frame_6c800241dc87d02997e9d2e4b01fc079_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6c800241dc87d02997e9d2e4b01fc079_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6c800241dc87d02997e9d2e4b01fc079_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_14; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_dict_key_2 = mod_consts[3]; - tmp_expression_name_14 = PyObject_GetItem(locals_models$medomni_bp$$$class__2_LayerNorm_39, mod_consts[5]); - - if (tmp_expression_name_14 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[5]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[5]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - Py_INCREF(tmp_expression_name_14); - } - } - - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[374]); - Py_DECREF(tmp_expression_name_14); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - tmp_annotations_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__2_forward(tmp_annotations_2, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__2_LayerNorm_39, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6c800241dc87d02997e9d2e4b01fc079_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6c800241dc87d02997e9d2e4b01fc079_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6c800241dc87d02997e9d2e4b01fc079_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6c800241dc87d02997e9d2e4b01fc079_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6c800241dc87d02997e9d2e4b01fc079_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6c800241dc87d02997e9d2e4b01fc079_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_6c800241dc87d02997e9d2e4b01fc079_3 == cache_frame_6c800241dc87d02997e9d2e4b01fc079_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6c800241dc87d02997e9d2e4b01fc079_3); - cache_frame_6c800241dc87d02997e9d2e4b01fc079_3 = NULL; - } - - assertFrameObject(frame_6c800241dc87d02997e9d2e4b01fc079_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_9; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__2_LayerNorm_39, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - branch_no_8:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[76]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$medomni_bp$$$class__2_LayerNorm_39; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 39; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_9; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_49); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_48 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_48); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$medomni_bp$$$class__2_LayerNorm_39); - locals_models$medomni_bp$$$class__2_LayerNorm_39 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni_bp$$$class__2_LayerNorm_39); - locals_models$medomni_bp$$$class__2_LayerNorm_39 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 39; - goto try_except_handler_7; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[76], tmp_assign_source_48); - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_50; - - - tmp_assign_source_50 = MAKE_FUNCTION_models$medomni_bp$$$function__3_replace_batchnorm_2d(); - - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_50); - } - { - PyObject *tmp_assign_source_51; - - - tmp_assign_source_51 = MAKE_FUNCTION_models$medomni_bp$$$function__4_dice_loss(); - - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[50], tmp_assign_source_51); - } - // Tried code: - { - PyObject *tmp_assign_source_52; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_15; - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[377]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_assign_source_52 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_52, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_52; - } - { - PyObject *tmp_assign_source_53; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_53 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_53; - } - { - PyObject *tmp_assign_source_54; - tmp_assign_source_54 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_54; - } - { - PyObject *tmp_assign_source_55; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[123]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_16 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[11]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_55 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_55; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_17 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[124]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_56; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_18 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[124]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_tuple_element_10 = mod_consts[47]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 64; - tmp_assign_source_56 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_56; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_19 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[126]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[128]; - tmp_getattr_default_3 = mod_consts[129]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_20; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_20 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_20 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[128]); - Py_DECREF(tmp_expression_name_20); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_10; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_10; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 64; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_10; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_57; - tmp_assign_source_57 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_57; - } - branch_end_10:; - { - PyObject *tmp_assign_source_58; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$medomni_bp$$$class__3_FocalLoss_64 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__3_FocalLoss_64, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[47]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__3_FocalLoss_64, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - if (isFrameUnusable(cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4)) { - Py_XDECREF(cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4 = MAKE_FUNCTION_FRAME(codeobj_25d4492c6bc24c9ba55d89fcd7c18a51, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4->m_type_description == NULL); - frame_25d4492c6bc24c9ba55d89fcd7c18a51_4 = cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_25d4492c6bc24c9ba55d89fcd7c18a51_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_25d4492c6bc24c9ba55d89fcd7c18a51_4) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_3[1]; - - tmp_closure_3[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__5___init__(tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__3_FocalLoss_64, mod_consts[31], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__6_forward(); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__3_FocalLoss_64, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_25d4492c6bc24c9ba55d89fcd7c18a51_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_25d4492c6bc24c9ba55d89fcd7c18a51_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_25d4492c6bc24c9ba55d89fcd7c18a51_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_25d4492c6bc24c9ba55d89fcd7c18a51_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_25d4492c6bc24c9ba55d89fcd7c18a51_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_25d4492c6bc24c9ba55d89fcd7c18a51_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_25d4492c6bc24c9ba55d89fcd7c18a51_4 == cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4); - cache_frame_25d4492c6bc24c9ba55d89fcd7c18a51_4 = NULL; - } - - assertFrameObject(frame_25d4492c6bc24c9ba55d89fcd7c18a51_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_12; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__3_FocalLoss_64, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - branch_no_12:; - { - PyObject *tmp_assign_source_59; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[47]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$medomni_bp$$$class__3_FocalLoss_64; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 64; - tmp_assign_source_59 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - - goto try_except_handler_12; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_59); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_58 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_58); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_DECREF(locals_models$medomni_bp$$$class__3_FocalLoss_64); - locals_models$medomni_bp$$$class__3_FocalLoss_64 = NULL; - goto try_return_handler_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni_bp$$$class__3_FocalLoss_64); - locals_models$medomni_bp$$$class__3_FocalLoss_64 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 64; - goto try_except_handler_10; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_58); - } - goto try_end_6; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_60; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_21; - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[377]); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_assign_source_60 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_60, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_60; - } - { - PyObject *tmp_assign_source_61; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_61 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - tmp_assign_source_62 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[123]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_22 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[11]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_63 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_63; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_23; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_23 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_23, mod_consts[124]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_64; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_24 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[124]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_tuple_element_14 = mod_consts[164]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 80; - tmp_assign_source_64 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_64; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_25 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[126]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[128]; - tmp_getattr_default_4 = mod_consts[129]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_26 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_26 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[128]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_13; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_13; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 80; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_13; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_65; - tmp_assign_source_65 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_65; - } - branch_end_14:; - { - PyObject *tmp_assign_source_66; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$medomni_bp$$$class__4_MixedLoss_80 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__4_MixedLoss_80, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[164]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__4_MixedLoss_80, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - if (isFrameUnusable(cache_frame_aee592ce980fa3c1d3fed78e1558148c_5)) { - Py_XDECREF(cache_frame_aee592ce980fa3c1d3fed78e1558148c_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_aee592ce980fa3c1d3fed78e1558148c_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_aee592ce980fa3c1d3fed78e1558148c_5 = MAKE_FUNCTION_FRAME(codeobj_aee592ce980fa3c1d3fed78e1558148c, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_aee592ce980fa3c1d3fed78e1558148c_5->m_type_description == NULL); - frame_aee592ce980fa3c1d3fed78e1558148c_5 = cache_frame_aee592ce980fa3c1d3fed78e1558148c_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_aee592ce980fa3c1d3fed78e1558148c_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_aee592ce980fa3c1d3fed78e1558148c_5) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_4[1]; - - tmp_closure_4[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__7___init__(tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__4_MixedLoss_80, mod_consts[31], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__8_forward(); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__4_MixedLoss_80, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aee592ce980fa3c1d3fed78e1558148c_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aee592ce980fa3c1d3fed78e1558148c_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_aee592ce980fa3c1d3fed78e1558148c_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_aee592ce980fa3c1d3fed78e1558148c_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_aee592ce980fa3c1d3fed78e1558148c_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_aee592ce980fa3c1d3fed78e1558148c_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_aee592ce980fa3c1d3fed78e1558148c_5 == cache_frame_aee592ce980fa3c1d3fed78e1558148c_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_aee592ce980fa3c1d3fed78e1558148c_5); - cache_frame_aee592ce980fa3c1d3fed78e1558148c_5 = NULL; - } - - assertFrameObject(frame_aee592ce980fa3c1d3fed78e1558148c_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_15; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__4_MixedLoss_80, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - branch_no_16:; - { - PyObject *tmp_assign_source_67; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[164]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$medomni_bp$$$class__4_MixedLoss_80; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 80; - tmp_assign_source_67 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - - goto try_except_handler_15; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_67); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_66 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_66); - goto try_return_handler_15; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_DECREF(locals_models$medomni_bp$$$class__4_MixedLoss_80); - locals_models$medomni_bp$$$class__4_MixedLoss_80 = NULL; - goto try_return_handler_14; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni_bp$$$class__4_MixedLoss_80); - locals_models$medomni_bp$$$class__4_MixedLoss_80 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_14; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 80; - goto try_except_handler_13; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[164], tmp_assign_source_66); - } - goto try_end_7; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - { - PyObject *tmp_assign_source_68; - - - tmp_assign_source_68 = MAKE_FUNCTION_models$medomni_bp$$$function__9_trans_seg(); - - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[382], tmp_assign_source_68); - } - { - PyObject *tmp_assign_source_69; - - - tmp_assign_source_69 = MAKE_FUNCTION_models$medomni_bp$$$function__10_trans_det(); - - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[287], tmp_assign_source_69); - } - { - PyObject *tmp_assign_source_70; - - - tmp_assign_source_70 = MAKE_FUNCTION_models$medomni_bp$$$function__11_trans_keypoint(); - - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[293], tmp_assign_source_70); - } - // Tried code: - { - PyObject *tmp_assign_source_71; - PyObject *tmp_tuple_element_17; - tmp_tuple_element_17 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[347]); - - if (unlikely(tmp_tuple_element_17 == NULL)) { - tmp_tuple_element_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[347]); - } - - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_assign_source_71 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_71, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_72 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_72; - } - { - PyObject *tmp_assign_source_73; - tmp_assign_source_73 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_73; - } - { - PyObject *tmp_assign_source_74; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[123]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_27 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[11]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_74 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_74; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[123]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[123]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_28 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[124]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_75; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_29 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[124]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_tuple_element_18 = mod_consts[383]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 133; - tmp_assign_source_75 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_75; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_30 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[126]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[127]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[128]; - tmp_getattr_default_5 = mod_consts[129]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_31 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_31 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[128]); - Py_DECREF(tmp_expression_name_31); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_16; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 133; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_16; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_76; - tmp_assign_source_76 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_76; - } - branch_end_18:; - { - PyObject *tmp_assign_source_77; - PyObject *tmp_called_name_10; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[344]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[344]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - - goto try_except_handler_16; - } - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 132; - tmp_called_name_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[384], - &PyTuple_GET_ITEM(mod_consts[385], 0) - ); - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - - goto try_except_handler_16; - } - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$medomni_bp$$$class__5_MedOmni_133 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[130], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - tmp_dictset_value = mod_consts[383]; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[132], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - if (isFrameUnusable(cache_frame_9f24eb05d199684a8b5a54133678fb42_6)) { - Py_XDECREF(cache_frame_9f24eb05d199684a8b5a54133678fb42_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9f24eb05d199684a8b5a54133678fb42_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9f24eb05d199684a8b5a54133678fb42_6 = MAKE_FUNCTION_FRAME(codeobj_9f24eb05d199684a8b5a54133678fb42, module_models$medomni_bp, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9f24eb05d199684a8b5a54133678fb42_6->m_type_description == NULL); - frame_9f24eb05d199684a8b5a54133678fb42_6 = cache_frame_9f24eb05d199684a8b5a54133678fb42_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9f24eb05d199684a8b5a54133678fb42_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9f24eb05d199684a8b5a54133678fb42_6) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = PyDict_Copy(mod_consts[386]); - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[387], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - { - PyObject *tmp_defaults_1; - struct Nuitka_CellObject *tmp_closure_5[1]; - tmp_defaults_1 = mod_consts[388]; - Py_INCREF(tmp_defaults_1); - - tmp_closure_5[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__12___init__(tmp_defaults_1, tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[31], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__13_vit_to_cpu(); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[179], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__14_encode_img(); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[231], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__15_prompt_concat(); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[264], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[393]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__16_prompt_wrap(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[248], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 325; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$medomni_bp$$$function__17_forward(); - - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[2], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_called_name_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_defaults_3; - PyObject *tmp_classmethod_arg_1; - PyObject *tmp_defaults_4; - tmp_res = MAPPING_HAS_ITEM(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[396]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - tmp_condition_result_30 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - tmp_called_name_11 = PyObject_GetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[396]); - - if (unlikely(tmp_called_name_11 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[396]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - tmp_defaults_3 = mod_consts[397]; - Py_INCREF(tmp_defaults_3); - - - tmp_args_element_name_2 = MAKE_FUNCTION_models$medomni_bp$$$function__18_from_config(tmp_defaults_3); - - frame_9f24eb05d199684a8b5a54133678fb42_6->m_frame.f_lineno = 486; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_2); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - goto condexpr_end_11; - condexpr_false_11:; - tmp_defaults_4 = mod_consts[397]; - Py_INCREF(tmp_defaults_4); - - - tmp_classmethod_arg_1 = MAKE_FUNCTION_models$medomni_bp$$$function__18_from_config(tmp_defaults_4); - - tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1); - Py_DECREF(tmp_classmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_11:; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[398], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 487; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9f24eb05d199684a8b5a54133678fb42_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9f24eb05d199684a8b5a54133678fb42_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9f24eb05d199684a8b5a54133678fb42_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9f24eb05d199684a8b5a54133678fb42_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9f24eb05d199684a8b5a54133678fb42_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9f24eb05d199684a8b5a54133678fb42_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_9f24eb05d199684a8b5a54133678fb42_6 == cache_frame_9f24eb05d199684a8b5a54133678fb42_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9f24eb05d199684a8b5a54133678fb42_6); - cache_frame_9f24eb05d199684a8b5a54133678fb42_6 = NULL; - } - - assertFrameObject(frame_9f24eb05d199684a8b5a54133678fb42_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_18; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_31; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_31 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_31 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_31 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$medomni_bp$$$class__5_MedOmni_133, mod_consts[134], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - branch_no_20:; - { - PyObject *tmp_assign_source_78; - PyObject *tmp_called_name_12; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_12 = tmp_class_creation_5__metaclass; - tmp_tuple_element_20 = mod_consts[383]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$medomni_bp$$$class__5_MedOmni_133; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 133; - tmp_assign_source_78 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_18; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_78); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_args_element_name_1 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_args_element_name_1); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_DECREF(locals_models$medomni_bp$$$class__5_MedOmni_133); - locals_models$medomni_bp$$$class__5_MedOmni_133 = NULL; - goto try_return_handler_17; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$medomni_bp$$$class__5_MedOmni_133); - locals_models$medomni_bp$$$class__5_MedOmni_133 = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto try_except_handler_17; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 133; - goto try_except_handler_16; - outline_result_5:; - frame_63b85d45078d5c768ad6f82e6838a770->m_frame.f_lineno = 132; - tmp_assign_source_77 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - - goto try_except_handler_16; - } - UPDATE_STRING_DICT1(moduledict_models$medomni_bp, (Nuitka_StringObject *)mod_consts[383], tmp_assign_source_77); - } - goto try_end_8; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_63b85d45078d5c768ad6f82e6838a770); -#endif - popFrameStack(); - - assertFrameObject(frame_63b85d45078d5c768ad6f82e6838a770); - - goto frame_no_exception_6; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_63b85d45078d5c768ad6f82e6838a770); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_63b85d45078d5c768ad6f82e6838a770, exception_lineno); - } else if (exception_tb->tb_frame != &frame_63b85d45078d5c768ad6f82e6838a770->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_63b85d45078d5c768ad6f82e6838a770, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_6:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - - return module_models$medomni_bp; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.modeling_llama.const b/medomni/models.build/module.models.modeling_llama.const deleted file mode 100644 index 85dfcfd9669c79397b6c8549cf37a220074d6c84..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.modeling_llama.const and /dev/null differ diff --git a/medomni/models.build/module.models.modeling_llama.cpp b/medomni/models.build/module.models.modeling_llama.cpp deleted file mode 100644 index 948d94bd1769a986ecaa3d9cb0dd84427b201366..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.modeling_llama.cpp +++ /dev/null @@ -1,39410 +0,0 @@ -/* Generated code for Python module 'models.modeling_llama' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$modeling_llama" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$modeling_llama; -PyDictObject *moduledict_models$modeling_llama; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[388]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.modeling_llama")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$modeling_llama(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.modeling_llama"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_0bf645264150dca3bf6477b51a7f2003; -static PyCodeObject *codeobj_043489d57f895ee9a5149b547d2710e3; -static PyCodeObject *codeobj_d7f72266184bbb812a9b7a6d2b672162; -static PyCodeObject *codeobj_b47d89b49d102399398e0765f596b180; -static PyCodeObject *codeobj_aca01221fccc10a735da06b3d695c25b; -static PyCodeObject *codeobj_a5de3027f055170f0bf431b824d52d88; -static PyCodeObject *codeobj_d7f5c0252258d40dc97c13fce1ad00df; -static PyCodeObject *codeobj_d3d850b73f36ab819cbbe4b6b25a3a5e; -static PyCodeObject *codeobj_8c53a3442347f49427162dbefea4c48e; -static PyCodeObject *codeobj_9171f0378e83efc52a6d63ba30cfd90a; -static PyCodeObject *codeobj_8d9c85872767131fcb53711a96f1cb64; -static PyCodeObject *codeobj_1cc896795a78acf396f78e2df5833914; -static PyCodeObject *codeobj_0ad3c42e181292178c7936502c2f7430; -static PyCodeObject *codeobj_1ad920172ce0ce172659e0f425a48750; -static PyCodeObject *codeobj_45248b6ce1a7d57704c8c737dc971859; -static PyCodeObject *codeobj_af13abb0cc2351b5f5b393e2acc0b056; -static PyCodeObject *codeobj_78e3711e3cafeb58cf29e8b25617a9e0; -static PyCodeObject *codeobj_0bb23957f71874ab212d48ec53f578f9; -static PyCodeObject *codeobj_c812a220ca24815dfca385c9b756a3e4; -static PyCodeObject *codeobj_abb5b7acfd901868aef4d2366bcf6565; -static PyCodeObject *codeobj_09a61b81c452dbc8a34df4d6a59c7c55; -static PyCodeObject *codeobj_afac492b3bc88f3584403f9b1d4fc0ca; -static PyCodeObject *codeobj_7ec521dc71dd8971217328f7e27574e8; -static PyCodeObject *codeobj_a7c0483b9d65c83ba388d353ba9481db; -static PyCodeObject *codeobj_f437efa8710cbbb70af30b9d54241009; -static PyCodeObject *codeobj_f31112a82b6d451edce0ceec3d4f5560; -static PyCodeObject *codeobj_175cc427deba3e5032b050ced786acda; -static PyCodeObject *codeobj_2ce127e57fc75426d2a6e2805b8b374d; -static PyCodeObject *codeobj_b4f214bd3cde2ab1b0be661bbce2cf57; -static PyCodeObject *codeobj_946cee16beaa54a0e81a9daa8677f97e; -static PyCodeObject *codeobj_70854e41c56fe5eee0f0a9936eb360bf; -static PyCodeObject *codeobj_9778e8bbcc730a14db1505b1bf09e315; -static PyCodeObject *codeobj_dd2059866c881e3f95a83278e7c7e817; -static PyCodeObject *codeobj_f85cccd268d3146046e93cf36289e67a; -static PyCodeObject *codeobj_62a79f1c410f5a7722a1410b65e3d18a; -static PyCodeObject *codeobj_03daddd79d79be6b65f276d9f318ba49; -static PyCodeObject *codeobj_56724c513f939913a896f3556a51c73f; -static PyCodeObject *codeobj_6c282c8d6b8bf19a45998db55bce5931; -static PyCodeObject *codeobj_6f07a55f43d8fc2b2b6c0d3fdef34b4b; -static PyCodeObject *codeobj_e5f8594c1ee7511e7c927efb6686b6c4; -static PyCodeObject *codeobj_57bd173b2570561cb4e3a121dd7fa21d; -static PyCodeObject *codeobj_9e040397e2554ecbd4bfb2870d7f13bd; -static PyCodeObject *codeobj_5e5d312b178487ab3f5527465551d2d4; -static PyCodeObject *codeobj_665c3f1cec895ee4f51349c0fd396d92; -static PyCodeObject *codeobj_d651ab60ba265483702bf3c01175dea8; -static PyCodeObject *codeobj_4aaa4b40029a15584899573348c54723; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[352]); CHECK_OBJECT(module_filename_obj); - codeobj_0bf645264150dca3bf6477b51a7f2003 = MAKE_CODEOBJECT(module_filename_obj, 754, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[201], mod_consts[353], NULL, 1, 0, 0); - codeobj_043489d57f895ee9a5149b547d2710e3 = MAKE_CODEOBJECT(module_filename_obj, 591, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[201], mod_consts[354], NULL, 1, 0, 0); - codeobj_d7f72266184bbb812a9b7a6d2b672162 = MAKE_CODEOBJECT(module_filename_obj, 429, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[355], mod_consts[356], NULL, 1, 0, 0); - codeobj_b47d89b49d102399398e0765f596b180 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[357], NULL, NULL, 0, 0, 0); - codeobj_aca01221fccc10a735da06b3d695c25b = MAKE_CODEOBJECT(module_filename_obj, 144, CO_NOFREE, mod_consts[129], mod_consts[358], NULL, 0, 0, 0); - codeobj_a5de3027f055170f0bf431b824d52d88 = MAKE_CODEOBJECT(module_filename_obj, 235, CO_NOFREE, mod_consts[162], mod_consts[358], NULL, 0, 0, 0); - codeobj_d7f5c0252258d40dc97c13fce1ad00df = MAKE_CODEOBJECT(module_filename_obj, 600, CO_NOFREE, mod_consts[330], mod_consts[358], NULL, 0, 0, 0); - codeobj_d3d850b73f36ab819cbbe4b6b25a3a5e = MAKE_CODEOBJECT(module_filename_obj, 127, CO_NOFREE, mod_consts[131], mod_consts[358], NULL, 0, 0, 0); - codeobj_8c53a3442347f49427162dbefea4c48e = MAKE_CODEOBJECT(module_filename_obj, 415, CO_NOFREE, mod_consts[155], mod_consts[358], NULL, 0, 0, 0); - codeobj_9171f0378e83efc52a6d63ba30cfd90a = MAKE_CODEOBJECT(module_filename_obj, 324, CO_NOFREE, mod_consts[305], mod_consts[358], NULL, 0, 0, 0); - codeobj_8d9c85872767131fcb53711a96f1cb64 = MAKE_CODEOBJECT(module_filename_obj, 58, CO_NOFREE, mod_consts[134], mod_consts[358], NULL, 0, 0, 0); - codeobj_1cc896795a78acf396f78e2df5833914 = MAKE_CODEOBJECT(module_filename_obj, 78, CO_NOFREE, mod_consts[98], mod_consts[358], NULL, 0, 0, 0); - codeobj_0ad3c42e181292178c7936502c2f7430 = MAKE_CODEOBJECT(module_filename_obj, 147, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[359], mod_consts[358], 2, 0, 0); - codeobj_1ad920172ce0ce172659e0f425a48750 = MAKE_CODEOBJECT(module_filename_obj, 236, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[359], mod_consts[358], 2, 0, 0); - codeobj_45248b6ce1a7d57704c8c737dc971859 = MAKE_CODEOBJECT(module_filename_obj, 423, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[359], mod_consts[358], 2, 0, 0); - codeobj_af13abb0cc2351b5f5b393e2acc0b056 = MAKE_CODEOBJECT(module_filename_obj, 601, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[359], mod_consts[358], 2, 0, 0); - codeobj_78e3711e3cafeb58cf29e8b25617a9e0 = MAKE_CODEOBJECT(module_filename_obj, 79, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[360], mod_consts[358], 5, 0, 0); - codeobj_0bb23957f71874ab212d48ec53f578f9 = MAKE_CODEOBJECT(module_filename_obj, 59, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[361], mod_consts[358], 3, 0, 0); - codeobj_c812a220ca24815dfca385c9b756a3e4 = MAKE_CODEOBJECT(module_filename_obj, 128, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[32], mod_consts[362], mod_consts[358], 4, 0, 0); - codeobj_abb5b7acfd901868aef4d2366bcf6565 = MAKE_CODEOBJECT(module_filename_obj, 44, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[168], mod_consts[363], NULL, 3, 0, 0); - codeobj_09a61b81c452dbc8a34df4d6a59c7c55 = MAKE_CODEOBJECT(module_filename_obj, 331, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[314], mod_consts[364], NULL, 2, 0, 0); - codeobj_afac492b3bc88f3584403f9b1d4fc0ca = MAKE_CODEOBJECT(module_filename_obj, 26, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[166], mod_consts[365], NULL, 4, 0, 0); - codeobj_7ec521dc71dd8971217328f7e27574e8 = MAKE_CODEOBJECT(module_filename_obj, 443, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[181], mod_consts[366], NULL, 5, 0, 0); - codeobj_a7c0483b9d65c83ba388d353ba9481db = MAKE_CODEOBJECT(module_filename_obj, 751, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[350], mod_consts[367], NULL, 2, 0, 0); - codeobj_f437efa8710cbbb70af30b9d54241009 = MAKE_CODEOBJECT(module_filename_obj, 342, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[317], mod_consts[368], NULL, 3, 0, 0); - codeobj_f31112a82b6d451edce0ceec3d4f5560 = MAKE_CODEOBJECT(module_filename_obj, 166, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[294], mod_consts[369], NULL, 4, 0, 0); - codeobj_175cc427deba3e5032b050ced786acda = MAKE_CODEOBJECT(module_filename_obj, 117, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[108], mod_consts[370], NULL, 5, 0, 0); - codeobj_2ce127e57fc75426d2a6e2805b8b374d = MAKE_CODEOBJECT(module_filename_obj, 551, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[189], mod_consts[371], mod_consts[372], 1, 0, 0); - codeobj_b4f214bd3cde2ab1b0be661bbce2cf57 = MAKE_CODEOBJECT(module_filename_obj, 552, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS, mod_consts[198], mod_consts[373], mod_consts[374], 0, 0, 0); - codeobj_946cee16beaa54a0e81a9daa8677f97e = MAKE_CODEOBJECT(module_filename_obj, 169, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[375], NULL, 7, 0, 0); - codeobj_70854e41c56fe5eee0f0a9936eb360bf = MAKE_CODEOBJECT(module_filename_obj, 248, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[376], NULL, 7, 0, 0); - codeobj_9778e8bbcc730a14db1505b1bf09e315 = MAKE_CODEOBJECT(module_filename_obj, 67, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[377], NULL, 2, 0, 0); - codeobj_dd2059866c881e3f95a83278e7c7e817 = MAKE_CODEOBJECT(module_filename_obj, 630, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[378], NULL, 12, 0, 0); - codeobj_f85cccd268d3146046e93cf36289e67a = MAKE_CODEOBJECT(module_filename_obj, 467, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[379], NULL, 11, 0, 0); - codeobj_62a79f1c410f5a7722a1410b65e3d18a = MAKE_CODEOBJECT(module_filename_obj, 140, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[380], NULL, 2, 0, 0); - codeobj_03daddd79d79be6b65f276d9f318ba49 = MAKE_CODEOBJECT(module_filename_obj, 93, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[282], mod_consts[381], NULL, 3, 0, 0); - codeobj_56724c513f939913a896f3556a51c73f = MAKE_CODEOBJECT(module_filename_obj, 625, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[340], mod_consts[382], NULL, 1, 0, 0); - codeobj_6c282c8d6b8bf19a45998db55bce5931 = MAKE_CODEOBJECT(module_filename_obj, 436, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[323], mod_consts[382], NULL, 1, 0, 0); - codeobj_6f07a55f43d8fc2b2b6c0d3fdef34b4b = MAKE_CODEOBJECT(module_filename_obj, 610, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[323], mod_consts[382], NULL, 1, 0, 0); - codeobj_e5f8594c1ee7511e7c927efb6686b6c4 = MAKE_CODEOBJECT(module_filename_obj, 616, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[334], mod_consts[382], NULL, 1, 0, 0); - codeobj_57bd173b2570561cb4e3a121dd7fa21d = MAKE_CODEOBJECT(module_filename_obj, 718, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[347], mod_consts[383], NULL, 6, 0, 0); - codeobj_9e040397e2554ecbd4bfb2870d7f13bd = MAKE_CODEOBJECT(module_filename_obj, 110, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[73], mod_consts[384], NULL, 1, 0, 0); - codeobj_5e5d312b178487ab3f5527465551d2d4 = MAKE_CODEOBJECT(module_filename_obj, 622, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[338], mod_consts[385], NULL, 2, 0, 0); - codeobj_665c3f1cec895ee4f51349c0fd396d92 = MAKE_CODEOBJECT(module_filename_obj, 439, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[325], mod_consts[386], NULL, 2, 0, 0); - codeobj_d651ab60ba265483702bf3c01175dea8 = MAKE_CODEOBJECT(module_filename_obj, 613, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[325], mod_consts[386], NULL, 2, 0, 0); - codeobj_4aaa4b40029a15584899573348c54723 = MAKE_CODEOBJECT(module_filename_obj, 619, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[336], mod_consts[387], NULL, 2, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_GENERATOR_models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_GENERATOR_models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__2_complex_call_helper_star_list(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__4__unpack_list(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__10_forward(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__11___init__(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__12__shape(PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__13_forward(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__14___init__(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__15_forward(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__16__init_weights(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__17__set_gradient_checkpointing(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__18___init__(PyObject *annotations, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__19_get_input_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__1__make_causal_mask(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__20_set_input_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__21__prepare_decoder_attention_mask(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__22_forward(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__23___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__24_get_input_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__25_set_input_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__26_get_output_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__27_set_output_embeddings(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__28_set_decoder(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__29_get_decoder(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__2__expand_mask(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__30_forward(PyObject *defaults, PyObject *annotations); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__31_prepare_inputs_for_generation(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__32__reorder_cache(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__3___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__4_forward(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__5___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__6_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__7_rotate_half(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__8_apply_rotary_pos_emb(); - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__9___init__(PyObject *annotations, struct Nuitka_CellObject **closure); - - -// The module function definitions. -static PyObject *impl_models$modeling_llama$$$function__1__make_causal_mask(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input_ids_shape = python_pars[0]; - PyObject *par_dtype = python_pars[1]; - PyObject *par_device = python_pars[2]; - PyObject *par_past_key_values_length = python_pars[3]; - PyObject *var_bsz = NULL; - PyObject *var_tgt_len = NULL; - PyObject *var_mask = NULL; - PyObject *var_mask_cond = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_afac492b3bc88f3584403f9b1d4fc0ca; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_afac492b3bc88f3584403f9b1d4fc0ca = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_afac492b3bc88f3584403f9b1d4fc0ca)) { - Py_XDECREF(cache_frame_afac492b3bc88f3584403f9b1d4fc0ca); - -#if _DEBUG_REFCOUNTS - if (cache_frame_afac492b3bc88f3584403f9b1d4fc0ca == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_afac492b3bc88f3584403f9b1d4fc0ca = MAKE_FUNCTION_FRAME(codeobj_afac492b3bc88f3584403f9b1d4fc0ca, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_afac492b3bc88f3584403f9b1d4fc0ca->m_type_description == NULL); - frame_afac492b3bc88f3584403f9b1d4fc0ca = cache_frame_afac492b3bc88f3584403f9b1d4fc0ca; - - // Push the new frame as the currently active one. - pushFrameStack(frame_afac492b3bc88f3584403f9b1d4fc0ca); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_afac492b3bc88f3584403f9b1d4fc0ca) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input_ids_shape); - tmp_iter_arg_1 = par_input_ids_shape; - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooo"; - exception_lineno = 32; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooo"; - exception_lineno = 32; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooo"; - exception_lineno = 32; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[0]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooo"; - exception_lineno = 32; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var_bsz == NULL); - Py_INCREF(tmp_assign_source_4); - var_bsz = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_tgt_len == NULL); - Py_INCREF(tmp_assign_source_5); - var_tgt_len = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[2]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_tgt_len); - tmp_tuple_element_2 = var_tgt_len; - tmp_tuple_element_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_tgt_len); - tmp_tuple_element_2 = var_tgt_len; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 1, tmp_tuple_element_2); - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - CHECK_OBJECT(par_dtype); - tmp_args_element_name_1 = par_dtype; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 33; - tmp_expression_name_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[4], tmp_args_element_name_1); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[5]); - Py_DECREF(tmp_expression_name_3); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_3); - tmp_dict_key_1 = mod_consts[6]; - CHECK_OBJECT(par_device); - tmp_dict_value_1 = par_device; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 33; - tmp_tuple_element_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_2 = mod_consts[6]; - if (par_device == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_2 = par_device; - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 33; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_mask == NULL); - var_mask = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_called_instance_2; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[7]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_mask); - tmp_called_instance_2 = var_mask; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 34; - tmp_tuple_element_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[8], - &PyTuple_GET_ITEM(mod_consts[9], 0) - ); - - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 34; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_4); - tmp_dict_key_3 = mod_consts[6]; - if (par_device == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 34; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_3 = par_device; - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 34; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_mask_cond == NULL); - var_mask_cond = tmp_assign_source_7; - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - if (var_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = var_mask; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[11]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_mask_cond); - tmp_compexpr_left_1 = var_mask_cond; - CHECK_OBJECT(var_mask_cond); - tmp_left_name_1 = var_mask_cond; - tmp_right_name_1 = mod_consts[12]; - tmp_expression_name_6 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[13]); - Py_DECREF(tmp_expression_name_6); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (var_mask == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = var_mask; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 35; - tmp_args_element_name_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[8], - &PyTuple_GET_ITEM(mod_consts[9], 0) - ); - - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = mod_consts[12]; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 35; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_compexpr_right_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_3); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = RICH_COMPARE_LT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_5 = mod_consts[14]; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 35; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_5}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_6; - if (var_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = var_mask; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[15]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_dtype == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_6 = par_dtype; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 36; - tmp_assign_source_8 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_6); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_past_key_values_length); - tmp_compexpr_left_2 = par_past_key_values_length; - tmp_compexpr_right_2 = mod_consts[14]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 38; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_list_element_1; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_kwargs_name_5; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[17]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[18]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (var_tgt_len == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_6 = var_tgt_len; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_6); - CHECK_OBJECT(par_past_key_values_length); - tmp_tuple_element_6 = par_past_key_values_length; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_6); - tmp_dict_key_4 = mod_consts[16]; - if (par_dtype == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_4 = par_dtype; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[6]; - if (par_device == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_4 = par_device; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_4); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 39; - tmp_list_element_1 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_5, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_5 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_5, 0, tmp_list_element_1); - CHECK_OBJECT(var_mask); - tmp_list_element_1 = var_mask; - PyList_SET_ITEM0(tmp_tuple_element_5, 1, tmp_list_element_1); - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_4, 0, tmp_tuple_element_5); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[20]); - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 39; - tmp_assign_source_9 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_4, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(var_mask); - tmp_expression_name_11 = var_mask; - tmp_subscript_name_1 = mod_consts[21]; - tmp_expression_name_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_1); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[22]); - Py_DECREF(tmp_expression_name_10); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bsz); - tmp_args_element_name_7 = var_bsz; - tmp_args_element_name_8 = mod_consts[12]; - if (var_tgt_len == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_9 = var_tgt_len; - if (var_tgt_len == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_2 = var_tgt_len; - if (par_past_key_values_length == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = par_past_key_values_length; - tmp_args_element_name_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame.f_lineno = 40; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_10); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_afac492b3bc88f3584403f9b1d4fc0ca); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_afac492b3bc88f3584403f9b1d4fc0ca); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_afac492b3bc88f3584403f9b1d4fc0ca); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_afac492b3bc88f3584403f9b1d4fc0ca, exception_lineno); - } else if (exception_tb->tb_frame != &frame_afac492b3bc88f3584403f9b1d4fc0ca->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_afac492b3bc88f3584403f9b1d4fc0ca, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_afac492b3bc88f3584403f9b1d4fc0ca, - type_description_1, - par_input_ids_shape, - par_dtype, - par_device, - par_past_key_values_length, - var_bsz, - var_tgt_len, - var_mask, - var_mask_cond - ); - - - // Release cached frame if used for exception. - if (frame_afac492b3bc88f3584403f9b1d4fc0ca == cache_frame_afac492b3bc88f3584403f9b1d4fc0ca) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_afac492b3bc88f3584403f9b1d4fc0ca); - cache_frame_afac492b3bc88f3584403f9b1d4fc0ca = NULL; - } - - assertFrameObject(frame_afac492b3bc88f3584403f9b1d4fc0ca); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input_ids_shape); - par_input_ids_shape = NULL; - Py_XDECREF(par_dtype); - par_dtype = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(par_past_key_values_length); - par_past_key_values_length = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_tgt_len); - var_tgt_len = NULL; - CHECK_OBJECT(var_mask); - Py_DECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_mask_cond); - var_mask_cond = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input_ids_shape); - par_input_ids_shape = NULL; - Py_XDECREF(par_dtype); - par_dtype = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(par_past_key_values_length); - par_past_key_values_length = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_tgt_len); - var_tgt_len = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_mask_cond); - var_mask_cond = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__2__expand_mask(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_mask = python_pars[0]; - PyObject *par_dtype = python_pars[1]; - PyObject *par_tgt_len = python_pars[2]; - PyObject *var_bsz = NULL; - PyObject *var_src_len = NULL; - PyObject *var_expanded_mask = NULL; - PyObject *var_inverted_mask = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_abb5b7acfd901868aef4d2366bcf6565; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_abb5b7acfd901868aef4d2366bcf6565 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_abb5b7acfd901868aef4d2366bcf6565)) { - Py_XDECREF(cache_frame_abb5b7acfd901868aef4d2366bcf6565); - -#if _DEBUG_REFCOUNTS - if (cache_frame_abb5b7acfd901868aef4d2366bcf6565 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_abb5b7acfd901868aef4d2366bcf6565 = MAKE_FUNCTION_FRAME(codeobj_abb5b7acfd901868aef4d2366bcf6565, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_abb5b7acfd901868aef4d2366bcf6565->m_type_description == NULL); - frame_abb5b7acfd901868aef4d2366bcf6565 = cache_frame_abb5b7acfd901868aef4d2366bcf6565; - - // Push the new frame as the currently active one. - pushFrameStack(frame_abb5b7acfd901868aef4d2366bcf6565); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_abb5b7acfd901868aef4d2366bcf6565) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_mask); - tmp_called_instance_1 = par_mask; - frame_abb5b7acfd901868aef4d2366bcf6565->m_frame.f_lineno = 48; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[8]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 48; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 48; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooo"; - exception_lineno = 48; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[0]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooo"; - exception_lineno = 48; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var_bsz == NULL); - Py_INCREF(tmp_assign_source_4); - var_bsz = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_src_len == NULL); - Py_INCREF(tmp_assign_source_5); - var_src_len = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_6; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_tgt_len); - tmp_compexpr_left_1 = par_tgt_len; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_tgt_len); - tmp_assign_source_6 = par_tgt_len; - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(var_src_len); - tmp_assign_source_6 = var_src_len; - condexpr_end_1:; - { - PyObject *old = par_tgt_len; - assert(old != NULL); - par_tgt_len = tmp_assign_source_6; - Py_INCREF(par_tgt_len); - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - if (par_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 51; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_mask; - tmp_subscript_name_1 = mod_consts[25]; - tmp_called_instance_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bsz); - tmp_args_element_name_1 = var_bsz; - tmp_args_element_name_2 = mod_consts[12]; - CHECK_OBJECT(par_tgt_len); - tmp_args_element_name_3 = par_tgt_len; - CHECK_OBJECT(var_src_len); - tmp_args_element_name_4 = var_src_len; - frame_abb5b7acfd901868aef4d2366bcf6565->m_frame.f_lineno = 51; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_called_instance_2 = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_3, - mod_consts[22], - call_args - ); - } - - Py_DECREF(tmp_called_instance_3); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_dtype); - tmp_args_element_name_5 = par_dtype; - frame_abb5b7acfd901868aef4d2366bcf6565->m_frame.f_lineno = 51; - tmp_assign_source_7 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[15], tmp_args_element_name_5); - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_expanded_mask == NULL); - var_expanded_mask = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_left_name_1 = mod_consts[26]; - CHECK_OBJECT(var_expanded_mask); - tmp_right_name_1 = var_expanded_mask; - tmp_assign_source_8 = BINARY_OPERATION_SUB_OBJECT_FLOAT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_inverted_mask == NULL); - var_inverted_mask = tmp_assign_source_8; - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_9; - CHECK_OBJECT(var_inverted_mask); - tmp_expression_name_2 = var_inverted_mask; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[27]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (var_inverted_mask == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[28]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = var_inverted_mask; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[15]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[29]); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_abb5b7acfd901868aef4d2366bcf6565->m_frame.f_lineno = 55; - tmp_args_element_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_7); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[4]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_dtype == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_9 = par_dtype; - frame_abb5b7acfd901868aef4d2366bcf6565->m_frame.f_lineno = 55; - tmp_expression_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_3); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[5]); - Py_DECREF(tmp_expression_name_5); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_abb5b7acfd901868aef4d2366bcf6565->m_frame.f_lineno = 55; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_8}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_8); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_abb5b7acfd901868aef4d2366bcf6565); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_abb5b7acfd901868aef4d2366bcf6565); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_abb5b7acfd901868aef4d2366bcf6565); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_abb5b7acfd901868aef4d2366bcf6565, exception_lineno); - } else if (exception_tb->tb_frame != &frame_abb5b7acfd901868aef4d2366bcf6565->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_abb5b7acfd901868aef4d2366bcf6565, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_abb5b7acfd901868aef4d2366bcf6565, - type_description_1, - par_mask, - par_dtype, - par_tgt_len, - var_bsz, - var_src_len, - var_expanded_mask, - var_inverted_mask - ); - - - // Release cached frame if used for exception. - if (frame_abb5b7acfd901868aef4d2366bcf6565 == cache_frame_abb5b7acfd901868aef4d2366bcf6565) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_abb5b7acfd901868aef4d2366bcf6565); - cache_frame_abb5b7acfd901868aef4d2366bcf6565 = NULL; - } - - assertFrameObject(frame_abb5b7acfd901868aef4d2366bcf6565); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_mask); - par_mask = NULL; - Py_XDECREF(par_dtype); - par_dtype = NULL; - Py_XDECREF(par_tgt_len); - par_tgt_len = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_src_len); - var_src_len = NULL; - Py_XDECREF(var_expanded_mask); - var_expanded_mask = NULL; - Py_XDECREF(var_inverted_mask); - var_inverted_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_mask); - par_mask = NULL; - Py_XDECREF(par_dtype); - par_dtype = NULL; - Py_XDECREF(par_tgt_len); - par_tgt_len = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_src_len); - var_src_len = NULL; - Py_XDECREF(var_expanded_mask); - var_expanded_mask = NULL; - Py_XDECREF(var_inverted_mask); - var_inverted_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_size = python_pars[1]; - PyObject *par_eps = python_pars[2]; - struct Nuitka_FrameObject *frame_0bb23957f71874ab212d48ec53f578f9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_0bb23957f71874ab212d48ec53f578f9 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0bb23957f71874ab212d48ec53f578f9)) { - Py_XDECREF(cache_frame_0bb23957f71874ab212d48ec53f578f9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0bb23957f71874ab212d48ec53f578f9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0bb23957f71874ab212d48ec53f578f9 = MAKE_FUNCTION_FRAME(codeobj_0bb23957f71874ab212d48ec53f578f9, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0bb23957f71874ab212d48ec53f578f9->m_type_description == NULL); - frame_0bb23957f71874ab212d48ec53f578f9 = cache_frame_0bb23957f71874ab212d48ec53f578f9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0bb23957f71874ab212d48ec53f578f9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0bb23957f71874ab212d48ec53f578f9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 63; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_0bb23957f71874ab212d48ec53f578f9->m_frame.f_lineno = 63; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[34]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 64; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_size); - tmp_args_element_name_2 = par_hidden_size; - frame_0bb23957f71874ab212d48ec53f578f9->m_frame.f_lineno = 64; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[35], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 64; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - frame_0bb23957f71874ab212d48ec53f578f9->m_frame.f_lineno = 64; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[36], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_eps); - tmp_assattr_name_2 = par_eps; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[37], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0bb23957f71874ab212d48ec53f578f9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0bb23957f71874ab212d48ec53f578f9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0bb23957f71874ab212d48ec53f578f9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0bb23957f71874ab212d48ec53f578f9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0bb23957f71874ab212d48ec53f578f9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0bb23957f71874ab212d48ec53f578f9, - type_description_1, - par_self, - par_hidden_size, - par_eps, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_0bb23957f71874ab212d48ec53f578f9 == cache_frame_0bb23957f71874ab212d48ec53f578f9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0bb23957f71874ab212d48ec53f578f9); - cache_frame_0bb23957f71874ab212d48ec53f578f9 = NULL; - } - - assertFrameObject(frame_0bb23957f71874ab212d48ec53f578f9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_size); - par_hidden_size = NULL; - CHECK_OBJECT(par_eps); - Py_DECREF(par_eps); - par_eps = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_size); - par_hidden_size = NULL; - CHECK_OBJECT(par_eps); - Py_DECREF(par_eps); - par_eps = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__4_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *var_variance = NULL; - struct Nuitka_FrameObject *frame_9778e8bbcc730a14db1505b1bf09e315; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_9778e8bbcc730a14db1505b1bf09e315 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9778e8bbcc730a14db1505b1bf09e315)) { - Py_XDECREF(cache_frame_9778e8bbcc730a14db1505b1bf09e315); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9778e8bbcc730a14db1505b1bf09e315 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9778e8bbcc730a14db1505b1bf09e315 = MAKE_FUNCTION_FRAME(codeobj_9778e8bbcc730a14db1505b1bf09e315, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9778e8bbcc730a14db1505b1bf09e315->m_type_description == NULL); - frame_9778e8bbcc730a14db1505b1bf09e315 = cache_frame_9778e8bbcc730a14db1505b1bf09e315; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9778e8bbcc730a14db1505b1bf09e315); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9778e8bbcc730a14db1505b1bf09e315) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(par_hidden_states); - tmp_expression_name_2 = par_hidden_states; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[15]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[39]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_9778e8bbcc730a14db1505b1bf09e315->m_frame.f_lineno = 68; - tmp_called_instance_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_9778e8bbcc730a14db1505b1bf09e315->m_frame.f_lineno = 68; - tmp_expression_name_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[40], - &PyTuple_GET_ITEM(mod_consts[41], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[42]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = mod_consts[9]; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[43]); - frame_9778e8bbcc730a14db1505b1bf09e315->m_frame.f_lineno = 68; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_variance == NULL); - var_variance = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_5; - if (par_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_1 = par_hidden_states; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[45]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_variance); - tmp_left_name_2 = var_variance; - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_right_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[37]); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_9778e8bbcc730a14db1505b1bf09e315->m_frame.f_lineno = 69; - tmp_right_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_list_element_1; - PyObject *tmp_expression_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[36]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[16]); - Py_DECREF(tmp_expression_name_6); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 72; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_list_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[47]); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 72; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = PyList_New(2); - { - PyObject *tmp_expression_name_9; - PyList_SET_ITEM(tmp_compexpr_right_1, 0, tmp_list_element_1); - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooo"; - goto list_build_exception_1; - } - tmp_list_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[48]); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooo"; - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_compexpr_right_1, 1, tmp_list_element_1); - } - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(par_hidden_states); - tmp_expression_name_10 = par_hidden_states; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[15]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[36]); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[16]); - Py_DECREF(tmp_expression_name_11); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_9778e8bbcc730a14db1505b1bf09e315->m_frame.f_lineno = 73; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_13; - PyObject *tmp_right_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[36]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_states); - tmp_right_name_3 = par_hidden_states; - tmp_return_value = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9778e8bbcc730a14db1505b1bf09e315); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9778e8bbcc730a14db1505b1bf09e315); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9778e8bbcc730a14db1505b1bf09e315); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9778e8bbcc730a14db1505b1bf09e315, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9778e8bbcc730a14db1505b1bf09e315->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9778e8bbcc730a14db1505b1bf09e315, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9778e8bbcc730a14db1505b1bf09e315, - type_description_1, - par_self, - par_hidden_states, - var_variance - ); - - - // Release cached frame if used for exception. - if (frame_9778e8bbcc730a14db1505b1bf09e315 == cache_frame_9778e8bbcc730a14db1505b1bf09e315) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9778e8bbcc730a14db1505b1bf09e315); - cache_frame_9778e8bbcc730a14db1505b1bf09e315 = NULL; - } - - assertFrameObject(frame_9778e8bbcc730a14db1505b1bf09e315); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(var_variance); - var_variance = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(var_variance); - var_variance = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__5___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_dim = python_pars[1]; - PyObject *par_max_position_embeddings = python_pars[2]; - PyObject *par_base = python_pars[3]; - PyObject *par_device = python_pars[4]; - PyObject *var_inv_freq = NULL; - PyObject *var_t = NULL; - PyObject *var_freqs = NULL; - PyObject *var_emb = NULL; - struct Nuitka_FrameObject *frame_78e3711e3cafeb58cf29e8b25617a9e0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_78e3711e3cafeb58cf29e8b25617a9e0 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_78e3711e3cafeb58cf29e8b25617a9e0)) { - Py_XDECREF(cache_frame_78e3711e3cafeb58cf29e8b25617a9e0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_78e3711e3cafeb58cf29e8b25617a9e0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_78e3711e3cafeb58cf29e8b25617a9e0 = MAKE_FUNCTION_FRAME(codeobj_78e3711e3cafeb58cf29e8b25617a9e0, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_78e3711e3cafeb58cf29e8b25617a9e0->m_type_description == NULL); - frame_78e3711e3cafeb58cf29e8b25617a9e0 = cache_frame_78e3711e3cafeb58cf29e8b25617a9e0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_78e3711e3cafeb58cf29e8b25617a9e0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_78e3711e3cafeb58cf29e8b25617a9e0) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 80; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 80; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_right_name_3; - tmp_left_name_1 = mod_consts[26]; - CHECK_OBJECT(par_base); - tmp_left_name_2 = par_base; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[14]; - CHECK_OBJECT(par_dim); - tmp_args_element_name_2 = par_dim; - tmp_args_element_name_3 = mod_consts[49]; - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 81; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_called_instance_3 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_4, - mod_consts[7], - call_args - ); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 81; - tmp_called_instance_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[50]); - Py_DECREF(tmp_called_instance_3); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_device); - tmp_args_element_name_4 = par_device; - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 81; - tmp_left_name_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[15], tmp_args_element_name_4); - Py_DECREF(tmp_called_instance_2); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - if (par_dim == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[51]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_right_name_3 = par_dim; - tmp_right_name_2 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = BINARY_OPERATION_POW_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = BINARY_OPERATION_TRUEDIV_OBJECT_FLOAT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_inv_freq == NULL); - var_inv_freq = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_5; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - CHECK_OBJECT(par_self); - tmp_called_instance_5 = par_self; - tmp_args_element_name_5 = mod_consts[53]; - CHECK_OBJECT(var_inv_freq); - tmp_args_element_name_6 = var_inv_freq; - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 82; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[52], - call_args - ); - } - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_max_position_embeddings); - tmp_assattr_name_1 = par_max_position_embeddings; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[54], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[7]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[54]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[6]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[53]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - Py_DECREF(tmp_expression_name_3); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[16]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto dict_build_exception_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[53]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto dict_build_exception_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[16]); - Py_DECREF(tmp_expression_name_5); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 86; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_t == NULL); - var_t = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_8; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[55]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = mod_consts[56]; - CHECK_OBJECT(var_t); - tmp_args_element_name_8 = var_t; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[53]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 87; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 87; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_freqs == NULL); - var_freqs = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[17]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_freqs); - tmp_tuple_element_3 = var_freqs; - tmp_tuple_element_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_freqs); - tmp_tuple_element_3 = var_freqs; - PyTuple_SET_ITEM0(tmp_tuple_element_2, 1, tmp_tuple_element_3); - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[20]); - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 89; - tmp_assign_source_4 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - assert(var_emb == NULL); - var_emb = tmp_assign_source_4; - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_3; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 90; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[52]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_tuple_element_4 = mod_consts[57]; - tmp_args_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_11; - PyObject *tmp_called_instance_6; - PyObject *tmp_subscript_name_1; - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_emb); - tmp_called_instance_6 = var_emb; - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 90; - tmp_expression_name_11 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[58]); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooooooooc"; - goto tuple_build_exception_1; - } - tmp_subscript_name_1 = mod_consts[21]; - tmp_tuple_element_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_11); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooooooooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_3, 1, tmp_tuple_element_4); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[59]); - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 90; - tmp_call_result_3 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 91; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[52]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_tuple_element_5 = mod_consts[60]; - tmp_args_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_called_instance_7; - PyObject *tmp_subscript_name_2; - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_5); - if (var_emb == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 91; - type_description_1 = "oooooooooc"; - goto tuple_build_exception_2; - } - - tmp_called_instance_7 = var_emb; - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 91; - tmp_expression_name_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[62]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooooc"; - goto tuple_build_exception_2; - } - tmp_subscript_name_2 = mod_consts[21]; - tmp_tuple_element_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_13, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooooc"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_name_4, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_4); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[59]); - frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame.f_lineno = 91; - tmp_call_result_4 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_78e3711e3cafeb58cf29e8b25617a9e0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_78e3711e3cafeb58cf29e8b25617a9e0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_78e3711e3cafeb58cf29e8b25617a9e0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_78e3711e3cafeb58cf29e8b25617a9e0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_78e3711e3cafeb58cf29e8b25617a9e0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_78e3711e3cafeb58cf29e8b25617a9e0, - type_description_1, - par_self, - par_dim, - par_max_position_embeddings, - par_base, - par_device, - var_inv_freq, - var_t, - var_freqs, - var_emb, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_78e3711e3cafeb58cf29e8b25617a9e0 == cache_frame_78e3711e3cafeb58cf29e8b25617a9e0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_78e3711e3cafeb58cf29e8b25617a9e0); - cache_frame_78e3711e3cafeb58cf29e8b25617a9e0 = NULL; - } - - assertFrameObject(frame_78e3711e3cafeb58cf29e8b25617a9e0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - CHECK_OBJECT(par_max_position_embeddings); - Py_DECREF(par_max_position_embeddings); - par_max_position_embeddings = NULL; - Py_XDECREF(par_base); - par_base = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(var_inv_freq); - var_inv_freq = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_freqs); - var_freqs = NULL; - Py_XDECREF(var_emb); - var_emb = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_dim); - par_dim = NULL; - CHECK_OBJECT(par_max_position_embeddings); - Py_DECREF(par_max_position_embeddings); - par_max_position_embeddings = NULL; - Py_XDECREF(par_base); - par_base = NULL; - Py_XDECREF(par_device); - par_device = NULL; - Py_XDECREF(var_inv_freq); - var_inv_freq = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_freqs); - var_freqs = NULL; - Py_XDECREF(var_emb); - var_emb = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__6_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_seq_len = python_pars[2]; - PyObject *var_t = NULL; - PyObject *var_freqs = NULL; - PyObject *var_emb = NULL; - struct Nuitka_FrameObject *frame_03daddd79d79be6b65f276d9f318ba49; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_03daddd79d79be6b65f276d9f318ba49 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_03daddd79d79be6b65f276d9f318ba49)) { - Py_XDECREF(cache_frame_03daddd79d79be6b65f276d9f318ba49); - -#if _DEBUG_REFCOUNTS - if (cache_frame_03daddd79d79be6b65f276d9f318ba49 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_03daddd79d79be6b65f276d9f318ba49 = MAKE_FUNCTION_FRAME(codeobj_03daddd79d79be6b65f276d9f318ba49, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_03daddd79d79be6b65f276d9f318ba49->m_type_description == NULL); - frame_03daddd79d79be6b65f276d9f318ba49 = cache_frame_03daddd79d79be6b65f276d9f318ba49; - - // Push the new frame as the currently active one. - pushFrameStack(frame_03daddd79d79be6b65f276d9f318ba49); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_03daddd79d79be6b65f276d9f318ba49) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_seq_len); - tmp_compexpr_left_1 = par_seq_len; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[54]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = RICH_COMPARE_GT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - assert(tmp_condition_result_1 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_seq_len); - tmp_assattr_name_1 = par_seq_len; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[54], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_4; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[7]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[54]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[6]; - CHECK_OBJECT(par_x); - tmp_expression_name_4 = par_x; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[16]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[53]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto dict_build_exception_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[16]); - Py_DECREF(tmp_expression_name_5); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 98; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_t == NULL); - var_t = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_8; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[55]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[56]; - CHECK_OBJECT(var_t); - tmp_args_element_name_2 = var_t; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[53]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 99; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_freqs == NULL); - var_freqs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_11; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[17]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_freqs); - tmp_tuple_element_3 = var_freqs; - tmp_tuple_element_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_freqs); - tmp_tuple_element_3 = var_freqs; - PyTuple_SET_ITEM0(tmp_tuple_element_2, 1, tmp_tuple_element_3); - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[20]); - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 101; - tmp_expression_name_9 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[15]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_x; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[6]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 101; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_emb == NULL); - var_emb = tmp_assign_source_3; - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_1; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 102; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[52]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_4 = mod_consts[57]; - tmp_args_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_1; - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_emb); - tmp_called_instance_1 = var_emb; - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 102; - tmp_expression_name_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[58]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooo"; - goto tuple_build_exception_1; - } - tmp_subscript_name_1 = mod_consts[21]; - tmp_tuple_element_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_13, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_3, 1, tmp_tuple_element_4); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[59]); - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 102; - tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_14; - PyObject *tmp_call_result_2; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_self; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[52]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_5 = mod_consts[60]; - tmp_args_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_15; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_2; - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_5); - if (var_emb == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[61]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto tuple_build_exception_2; - } - - tmp_called_instance_2 = var_emb; - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 103; - tmp_expression_name_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[62]); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto tuple_build_exception_2; - } - tmp_subscript_name_2 = mod_consts[21]; - tmp_tuple_element_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_15); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_name_4, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_4); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[59]); - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 103; - tmp_call_result_2 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_1:; - { - PyObject *tmp_tuple_element_6; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_16; - PyObject *tmp_expression_name_17; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_3; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_19; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_self; - tmp_expression_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[57]); - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_7 = mod_consts[64]; - tmp_subscript_name_3 = PyTuple_New(4); - { - PyObject *tmp_stop_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_3, 0, tmp_tuple_element_7); - tmp_tuple_element_7 = mod_consts[64]; - PyTuple_SET_ITEM0(tmp_subscript_name_3, 1, tmp_tuple_element_7); - CHECK_OBJECT(par_seq_len); - tmp_stop_name_1 = par_seq_len; - tmp_tuple_element_7 = MAKE_SLICEOBJ1(tmp_stop_name_1); - assert(!(tmp_tuple_element_7 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_3, 2, tmp_tuple_element_7); - tmp_tuple_element_7 = Py_Ellipsis; - PyTuple_SET_ITEM0(tmp_subscript_name_3, 3, tmp_tuple_element_7); - } - tmp_expression_name_16 = LOOKUP_SUBSCRIPT(tmp_expression_name_17, tmp_subscript_name_3); - Py_DECREF(tmp_expression_name_17); - Py_DECREF(tmp_subscript_name_3); - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[15]); - Py_DECREF(tmp_expression_name_16); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[16]; - if (par_x == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_x; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[16]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_5 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 105; - tmp_tuple_element_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_7, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = PyTuple_New(2); - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_20; - PyObject *tmp_expression_name_21; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_expression_name_23; - PyTuple_SET_ITEM(tmp_return_value, 0, tmp_tuple_element_6); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - - tmp_expression_name_22 = par_self; - tmp_expression_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[60]); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - tmp_tuple_element_8 = mod_consts[64]; - tmp_subscript_name_4 = PyTuple_New(4); - { - PyObject *tmp_stop_name_2; - PyTuple_SET_ITEM0(tmp_subscript_name_4, 0, tmp_tuple_element_8); - tmp_tuple_element_8 = mod_consts[64]; - PyTuple_SET_ITEM0(tmp_subscript_name_4, 1, tmp_tuple_element_8); - CHECK_OBJECT(par_seq_len); - tmp_stop_name_2 = par_seq_len; - tmp_tuple_element_8 = MAKE_SLICEOBJ1(tmp_stop_name_2); - assert(!(tmp_tuple_element_8 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_4, 2, tmp_tuple_element_8); - tmp_tuple_element_8 = Py_Ellipsis; - PyTuple_SET_ITEM0(tmp_subscript_name_4, 3, tmp_tuple_element_8); - } - tmp_expression_name_20 = LOOKUP_SUBSCRIPT(tmp_expression_name_21, tmp_subscript_name_4); - Py_DECREF(tmp_expression_name_21); - Py_DECREF(tmp_subscript_name_4); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[15]); - Py_DECREF(tmp_expression_name_20); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - tmp_dict_key_3 = mod_consts[16]; - if (par_x == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - - tmp_expression_name_23 = par_x; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[16]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - tmp_kwargs_name_6 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_03daddd79d79be6b65f276d9f318ba49->m_frame.f_lineno = 106; - tmp_tuple_element_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_8, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_return_value, 1, tmp_tuple_element_6); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_03daddd79d79be6b65f276d9f318ba49); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_03daddd79d79be6b65f276d9f318ba49); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_03daddd79d79be6b65f276d9f318ba49); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_03daddd79d79be6b65f276d9f318ba49, exception_lineno); - } else if (exception_tb->tb_frame != &frame_03daddd79d79be6b65f276d9f318ba49->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_03daddd79d79be6b65f276d9f318ba49, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_03daddd79d79be6b65f276d9f318ba49, - type_description_1, - par_self, - par_x, - par_seq_len, - var_t, - var_freqs, - var_emb - ); - - - // Release cached frame if used for exception. - if (frame_03daddd79d79be6b65f276d9f318ba49 == cache_frame_03daddd79d79be6b65f276d9f318ba49) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_03daddd79d79be6b65f276d9f318ba49); - cache_frame_03daddd79d79be6b65f276d9f318ba49 = NULL; - } - - assertFrameObject(frame_03daddd79d79be6b65f276d9f318ba49); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_seq_len); - Py_DECREF(par_seq_len); - par_seq_len = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_freqs); - var_freqs = NULL; - Py_XDECREF(var_emb); - var_emb = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_seq_len); - Py_DECREF(par_seq_len); - par_seq_len = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_freqs); - var_freqs = NULL; - Py_XDECREF(var_emb); - var_emb = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__7_rotate_half(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_x = python_pars[0]; - PyObject *var_x1 = NULL; - PyObject *var_x2 = NULL; - struct Nuitka_FrameObject *frame_9e040397e2554ecbd4bfb2870d7f13bd; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_9e040397e2554ecbd4bfb2870d7f13bd = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9e040397e2554ecbd4bfb2870d7f13bd)) { - Py_XDECREF(cache_frame_9e040397e2554ecbd4bfb2870d7f13bd); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9e040397e2554ecbd4bfb2870d7f13bd == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9e040397e2554ecbd4bfb2870d7f13bd = MAKE_FUNCTION_FRAME(codeobj_9e040397e2554ecbd4bfb2870d7f13bd, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9e040397e2554ecbd4bfb2870d7f13bd->m_type_description == NULL); - frame_9e040397e2554ecbd4bfb2870d7f13bd = cache_frame_9e040397e2554ecbd4bfb2870d7f13bd; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9e040397e2554ecbd4bfb2870d7f13bd); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9e040397e2554ecbd4bfb2870d7f13bd) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(par_x); - tmp_expression_name_1 = par_x; - tmp_tuple_element_1 = Py_Ellipsis; - tmp_subscript_name_1 = PyTuple_New(2); - { - PyObject *tmp_stop_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - PyObject *tmp_right_name_1; - PyTuple_SET_ITEM0(tmp_subscript_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_x); - tmp_expression_name_3 = par_x; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[65]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - tmp_subscript_name_2 = mod_consts[66]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, -1); - Py_DECREF(tmp_expression_name_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - tmp_right_name_1 = mod_consts[49]; - tmp_stop_name_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ1(tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_subscript_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_x1 == NULL); - var_x1 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_3; - PyObject *tmp_tuple_element_2; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_x; - tmp_tuple_element_2 = Py_Ellipsis; - tmp_subscript_name_3 = PyTuple_New(2); - { - PyObject *tmp_start_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_4; - PyObject *tmp_right_name_2; - PyObject *tmp_stop_name_2; - PyTuple_SET_ITEM0(tmp_subscript_name_3, 0, tmp_tuple_element_2); - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 113; - type_description_1 = "ooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_6 = par_x; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[65]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooo"; - goto tuple_build_exception_2; - } - tmp_subscript_name_4 = mod_consts[66]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_4, -1); - Py_DECREF(tmp_expression_name_5); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooo"; - goto tuple_build_exception_2; - } - tmp_right_name_2 = mod_consts[49]; - tmp_start_name_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - if (tmp_start_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooo"; - goto tuple_build_exception_2; - } - tmp_stop_name_2 = Py_None; - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_2); - Py_DECREF(tmp_start_name_1); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_3, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_subscript_name_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_3); - Py_DECREF(tmp_subscript_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_x2 == NULL); - var_x2 = tmp_assign_source_2; - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[17]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_x2); - tmp_operand_name_1 = var_x2; - tmp_tuple_element_4 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_1); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 114; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_tuple_element_3, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_x1); - tmp_tuple_element_4 = var_x1; - PyTuple_SET_ITEM0(tmp_tuple_element_3, 1, tmp_tuple_element_4); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_3); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[20]); - frame_9e040397e2554ecbd4bfb2870d7f13bd->m_frame.f_lineno = 114; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9e040397e2554ecbd4bfb2870d7f13bd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9e040397e2554ecbd4bfb2870d7f13bd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9e040397e2554ecbd4bfb2870d7f13bd); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9e040397e2554ecbd4bfb2870d7f13bd, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9e040397e2554ecbd4bfb2870d7f13bd->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9e040397e2554ecbd4bfb2870d7f13bd, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9e040397e2554ecbd4bfb2870d7f13bd, - type_description_1, - par_x, - var_x1, - var_x2 - ); - - - // Release cached frame if used for exception. - if (frame_9e040397e2554ecbd4bfb2870d7f13bd == cache_frame_9e040397e2554ecbd4bfb2870d7f13bd) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9e040397e2554ecbd4bfb2870d7f13bd); - cache_frame_9e040397e2554ecbd4bfb2870d7f13bd = NULL; - } - - assertFrameObject(frame_9e040397e2554ecbd4bfb2870d7f13bd); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_x1); - var_x1 = NULL; - CHECK_OBJECT(var_x2); - Py_DECREF(var_x2); - var_x2 = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_x1); - var_x1 = NULL; - Py_XDECREF(var_x2); - var_x2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__8_apply_rotary_pos_emb(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_q = python_pars[0]; - PyObject *par_k = python_pars[1]; - PyObject *par_cos = python_pars[2]; - PyObject *par_sin = python_pars[3]; - PyObject *par_position_ids = python_pars[4]; - PyObject *var_gather_indices = NULL; - PyObject *var_q_embed = NULL; - PyObject *var_k_embed = NULL; - struct Nuitka_FrameObject *frame_175cc427deba3e5032b050ced786acda; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_175cc427deba3e5032b050ced786acda = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_175cc427deba3e5032b050ced786acda)) { - Py_XDECREF(cache_frame_175cc427deba3e5032b050ced786acda); - -#if _DEBUG_REFCOUNTS - if (cache_frame_175cc427deba3e5032b050ced786acda == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_175cc427deba3e5032b050ced786acda = MAKE_FUNCTION_FRAME(codeobj_175cc427deba3e5032b050ced786acda, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_175cc427deba3e5032b050ced786acda->m_type_description == NULL); - frame_175cc427deba3e5032b050ced786acda = cache_frame_175cc427deba3e5032b050ced786acda; - - // Push the new frame as the currently active one. - pushFrameStack(frame_175cc427deba3e5032b050ced786acda); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_175cc427deba3e5032b050ced786acda) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_position_ids); - tmp_expression_name_1 = par_position_ids; - tmp_subscript_name_1 = mod_consts[68]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_gather_indices == NULL); - var_gather_indices = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(var_gather_indices); - tmp_expression_name_2 = var_gather_indices; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[69]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[12]; - CHECK_OBJECT(par_cos); - tmp_expression_name_4 = par_cos; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[65]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[12]; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 1); - Py_DECREF(tmp_expression_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = mod_consts[12]; - if (par_cos == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_cos; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[65]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[70]; - tmp_args_element_name_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_3, 3); - Py_DECREF(tmp_expression_name_5); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 119; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_gather_indices; - var_gather_indices = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_4; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[71]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_cos == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_cos; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[69]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_gather_indices); - tmp_expression_name_10 = var_gather_indices; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[65]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_4 = mod_consts[14]; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_4, 0); - Py_DECREF(tmp_expression_name_9); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_7 = mod_consts[12]; - tmp_args_element_name_8 = mod_consts[12]; - tmp_args_element_name_9 = mod_consts[12]; - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 120; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_6); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_10 = mod_consts[49]; - if (var_gather_indices == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_11 = var_gather_indices; - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 120; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_10, tmp_args_element_name_11}; - tmp_assign_source_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_cos; - par_cos = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_5; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - PyObject *tmp_args_element_name_16; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[71]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_sin); - tmp_expression_name_12 = par_sin; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[69]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (var_gather_indices == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = var_gather_indices; - tmp_expression_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[65]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_5 = mod_consts[14]; - tmp_args_element_name_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_5, 0); - Py_DECREF(tmp_expression_name_13); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = mod_consts[12]; - tmp_args_element_name_15 = mod_consts[12]; - tmp_args_element_name_16 = mod_consts[12]; - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 121; - { - PyObject *call_args[] = {tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15, tmp_args_element_name_16}; - tmp_args_element_name_12 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_13); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_17 = mod_consts[49]; - if (var_gather_indices == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_18 = var_gather_indices; - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 121; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_assign_source_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_sin; - par_sin = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_called_name_6; - PyObject *tmp_args_element_name_19; - PyObject *tmp_right_name_3; - CHECK_OBJECT(par_q); - tmp_left_name_2 = par_q; - CHECK_OBJECT(par_cos); - tmp_right_name_1 = par_cos; - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 122; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_q == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[74]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 122; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_19 = par_q; - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 122; - tmp_left_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_19); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 122; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_sin); - tmp_right_name_3 = par_sin; - tmp_right_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 122; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_q_embed == NULL); - var_q_embed = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_4; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_4; - PyObject *tmp_right_name_5; - PyObject *tmp_left_name_6; - PyObject *tmp_called_name_7; - PyObject *tmp_args_element_name_20; - PyObject *tmp_right_name_6; - CHECK_OBJECT(par_k); - tmp_left_name_5 = par_k; - if (par_cos == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_4 = par_cos; - tmp_left_name_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_4); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_k == NULL) { - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_20 = par_k; - frame_175cc427deba3e5032b050ced786acda->m_frame.f_lineno = 123; - tmp_left_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_20); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (par_sin == NULL) { - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_6 = par_sin; - tmp_right_name_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_left_name_6); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_5); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_5); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_k_embed == NULL); - var_k_embed = tmp_assign_source_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_175cc427deba3e5032b050ced786acda); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_175cc427deba3e5032b050ced786acda); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_175cc427deba3e5032b050ced786acda, exception_lineno); - } else if (exception_tb->tb_frame != &frame_175cc427deba3e5032b050ced786acda->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_175cc427deba3e5032b050ced786acda, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_175cc427deba3e5032b050ced786acda, - type_description_1, - par_q, - par_k, - par_cos, - par_sin, - par_position_ids, - var_gather_indices, - var_q_embed, - var_k_embed - ); - - - // Release cached frame if used for exception. - if (frame_175cc427deba3e5032b050ced786acda == cache_frame_175cc427deba3e5032b050ced786acda) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_175cc427deba3e5032b050ced786acda); - cache_frame_175cc427deba3e5032b050ced786acda = NULL; - } - - assertFrameObject(frame_175cc427deba3e5032b050ced786acda); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - { - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(var_q_embed); - tmp_tuple_element_1 = var_q_embed; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_k_embed); - tmp_tuple_element_1 = var_k_embed; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); - goto try_return_handler_1; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_q); - par_q = NULL; - Py_XDECREF(par_k); - par_k = NULL; - Py_XDECREF(par_cos); - par_cos = NULL; - Py_XDECREF(par_sin); - par_sin = NULL; - CHECK_OBJECT(par_position_ids); - Py_DECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(var_gather_indices); - var_gather_indices = NULL; - CHECK_OBJECT(var_q_embed); - Py_DECREF(var_q_embed); - var_q_embed = NULL; - CHECK_OBJECT(var_k_embed); - Py_DECREF(var_k_embed); - var_k_embed = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_q); - par_q = NULL; - Py_XDECREF(par_k); - par_k = NULL; - Py_XDECREF(par_cos); - par_cos = NULL; - Py_XDECREF(par_sin); - par_sin = NULL; - CHECK_OBJECT(par_position_ids); - Py_DECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(var_gather_indices); - var_gather_indices = NULL; - Py_XDECREF(var_q_embed); - var_q_embed = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_size = python_pars[1]; - PyObject *par_intermediate_size = python_pars[2]; - PyObject *par_hidden_act = python_pars[3]; - struct Nuitka_FrameObject *frame_c812a220ca24815dfca385c9b756a3e4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_c812a220ca24815dfca385c9b756a3e4 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c812a220ca24815dfca385c9b756a3e4)) { - Py_XDECREF(cache_frame_c812a220ca24815dfca385c9b756a3e4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c812a220ca24815dfca385c9b756a3e4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c812a220ca24815dfca385c9b756a3e4 = MAKE_FUNCTION_FRAME(codeobj_c812a220ca24815dfca385c9b756a3e4, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c812a220ca24815dfca385c9b756a3e4->m_type_description == NULL); - frame_c812a220ca24815dfca385c9b756a3e4 = cache_frame_c812a220ca24815dfca385c9b756a3e4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c812a220ca24815dfca385c9b756a3e4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c812a220ca24815dfca385c9b756a3e4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 134; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - frame_c812a220ca24815dfca385c9b756a3e4->m_frame.f_lineno = 134; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_size); - tmp_tuple_element_1 = par_hidden_size; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_intermediate_size); - tmp_tuple_element_1 = par_intermediate_size; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[77]); - frame_c812a220ca24815dfca385c9b756a3e4->m_frame.f_lineno = 135; - tmp_assattr_name_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[78], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[76]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_intermediate_size == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_intermediate_size; - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - if (par_hidden_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[80]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "ooooc"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = par_hidden_size; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[77]); - frame_c812a220ca24815dfca385c9b756a3e4->m_frame.f_lineno = 136; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[81], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_assattr_target_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - if (par_hidden_size == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[80]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = par_hidden_size; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_3); - if (par_intermediate_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "ooooc"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_3 = par_intermediate_size; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_3); - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[77]); - frame_c812a220ca24815dfca385c9b756a3e4->m_frame.f_lineno = 137; - tmp_assattr_name_3 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[82], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - PyObject *tmp_assattr_target_4; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_hidden_act); - tmp_subscript_name_1 = par_hidden_act; - tmp_assattr_name_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[84], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c812a220ca24815dfca385c9b756a3e4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c812a220ca24815dfca385c9b756a3e4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c812a220ca24815dfca385c9b756a3e4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c812a220ca24815dfca385c9b756a3e4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c812a220ca24815dfca385c9b756a3e4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c812a220ca24815dfca385c9b756a3e4, - type_description_1, - par_self, - par_hidden_size, - par_intermediate_size, - par_hidden_act, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_c812a220ca24815dfca385c9b756a3e4 == cache_frame_c812a220ca24815dfca385c9b756a3e4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c812a220ca24815dfca385c9b756a3e4); - cache_frame_c812a220ca24815dfca385c9b756a3e4 = NULL; - } - - assertFrameObject(frame_c812a220ca24815dfca385c9b756a3e4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_size); - par_hidden_size = NULL; - Py_XDECREF(par_intermediate_size); - par_intermediate_size = NULL; - CHECK_OBJECT(par_hidden_act); - Py_DECREF(par_hidden_act); - par_hidden_act = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_size); - par_hidden_size = NULL; - Py_XDECREF(par_intermediate_size); - par_intermediate_size = NULL; - CHECK_OBJECT(par_hidden_act); - Py_DECREF(par_hidden_act); - par_hidden_act = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__10_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_62a79f1c410f5a7722a1410b65e3d18a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_62a79f1c410f5a7722a1410b65e3d18a = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_62a79f1c410f5a7722a1410b65e3d18a)) { - Py_XDECREF(cache_frame_62a79f1c410f5a7722a1410b65e3d18a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_62a79f1c410f5a7722a1410b65e3d18a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_62a79f1c410f5a7722a1410b65e3d18a = MAKE_FUNCTION_FRAME(codeobj_62a79f1c410f5a7722a1410b65e3d18a, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_62a79f1c410f5a7722a1410b65e3d18a->m_type_description == NULL); - frame_62a79f1c410f5a7722a1410b65e3d18a = cache_frame_62a79f1c410f5a7722a1410b65e3d18a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_62a79f1c410f5a7722a1410b65e3d18a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_62a79f1c410f5a7722a1410b65e3d18a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_right_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[81]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_3 = par_x; - frame_62a79f1c410f5a7722a1410b65e3d18a->m_frame.f_lineno = 141; - tmp_args_element_name_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[78], tmp_args_element_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_62a79f1c410f5a7722a1410b65e3d18a->m_frame.f_lineno = 141; - tmp_left_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[82]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_x; - frame_62a79f1c410f5a7722a1410b65e3d18a->m_frame.f_lineno = 141; - tmp_right_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_62a79f1c410f5a7722a1410b65e3d18a->m_frame.f_lineno = 141; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_62a79f1c410f5a7722a1410b65e3d18a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_62a79f1c410f5a7722a1410b65e3d18a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_62a79f1c410f5a7722a1410b65e3d18a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_62a79f1c410f5a7722a1410b65e3d18a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_62a79f1c410f5a7722a1410b65e3d18a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_62a79f1c410f5a7722a1410b65e3d18a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_62a79f1c410f5a7722a1410b65e3d18a, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_62a79f1c410f5a7722a1410b65e3d18a == cache_frame_62a79f1c410f5a7722a1410b65e3d18a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_62a79f1c410f5a7722a1410b65e3d18a); - cache_frame_62a79f1c410f5a7722a1410b65e3d18a = NULL; - } - - assertFrameObject(frame_62a79f1c410f5a7722a1410b65e3d18a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__11___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_0ad3c42e181292178c7936502c2f7430; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_0ad3c42e181292178c7936502c2f7430 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0ad3c42e181292178c7936502c2f7430)) { - Py_XDECREF(cache_frame_0ad3c42e181292178c7936502c2f7430); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0ad3c42e181292178c7936502c2f7430 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0ad3c42e181292178c7936502c2f7430 = MAKE_FUNCTION_FRAME(codeobj_0ad3c42e181292178c7936502c2f7430, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0ad3c42e181292178c7936502c2f7430->m_type_description == NULL); - frame_0ad3c42e181292178c7936502c2f7430 = cache_frame_0ad3c42e181292178c7936502c2f7430; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0ad3c42e181292178c7936502c2f7430); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0ad3c42e181292178c7936502c2f7430) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 148; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 148; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_config); - tmp_assattr_name_1 = par_config; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[85], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_assattr_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[80]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[80], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_expression_name_2; - PyObject *tmp_assattr_target_3; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 151; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_config; - tmp_assattr_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[86]); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[87], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[80]); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 152; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[87]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 152; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_assattr_name_4 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 152; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[88], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_assattr_target_5; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_config; - tmp_assattr_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[89]); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[89], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[88]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_right_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[87]); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_compexpr_left_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_compexpr_left_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[80]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = RICH_COMPARE_NE_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - assert(tmp_condition_result_1 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_tuple_element_1 = mod_consts[90]; - tmp_string_concat_values_1 = PyTuple_New(5); - { - PyObject *tmp_format_value_1; - PyObject *tmp_expression_name_9; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_expression_name_10; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 157; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - - tmp_expression_name_9 = par_self; - tmp_format_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[80]); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[91]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[92]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - - tmp_expression_name_10 = par_self; - tmp_format_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[87]); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - tmp_format_spec_2 = mod_consts[91]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[93]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 4, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = PyUnicode_Join(mod_consts[91], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 156; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 156; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_12; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_6; - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[76]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[80]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_13; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_14; - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_2); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "ooc"; - goto tuple_build_exception_2; - } - - tmp_expression_name_13 = par_self; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[87]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooc"; - goto tuple_build_exception_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "ooc"; - goto tuple_build_exception_2; - } - - tmp_expression_name_14 = par_self; - tmp_right_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[88]); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 160; - type_description_1 = "ooc"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooc"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[77]); - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 160; - tmp_assattr_name_6 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[94], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_16; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_7; - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[76]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_self; - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[80]); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(2); - { - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_17; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_18; - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_3); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "ooc"; - goto tuple_build_exception_3; - } - - tmp_expression_name_17 = par_self; - tmp_left_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[87]); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooc"; - goto tuple_build_exception_3; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "ooc"; - goto tuple_build_exception_3; - } - - tmp_expression_name_18 = par_self; - tmp_right_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[88]); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 161; - type_description_1 = "ooc"; - goto tuple_build_exception_3; - } - tmp_tuple_element_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooc"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_args_name_2, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[77]); - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 161; - tmp_assattr_name_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[95], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_expression_name_20; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_assattr_target_8; - tmp_expression_name_19 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_19 == NULL)) { - tmp_expression_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[76]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_20 = par_self; - tmp_tuple_element_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[80]); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = PyTuple_New(2); - { - PyObject *tmp_left_name_5; - PyObject *tmp_expression_name_21; - PyObject *tmp_right_name_5; - PyObject *tmp_expression_name_22; - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_4); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooc"; - goto tuple_build_exception_4; - } - - tmp_expression_name_21 = par_self; - tmp_left_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[87]); - if (tmp_left_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooc"; - goto tuple_build_exception_4; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooc"; - goto tuple_build_exception_4; - } - - tmp_expression_name_22 = par_self; - tmp_right_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[88]); - if (tmp_right_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_5); - - exception_lineno = 162; - type_description_1 = "ooc"; - goto tuple_build_exception_4; - } - tmp_tuple_element_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_left_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooc"; - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_args_name_3, 1, tmp_tuple_element_4); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[77]); - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 162; - tmp_assattr_name_8 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[96], tmp_assattr_name_8); - Py_DECREF(tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_left_name_6; - PyObject *tmp_expression_name_24; - PyObject *tmp_right_name_6; - PyObject *tmp_expression_name_25; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_assattr_target_9; - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[76]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_24 = par_self; - tmp_left_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[87]); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_left_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_right_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[88]); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_left_name_6); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_tuple_element_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_left_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyTuple_SET_ITEM(tmp_args_name_4, 0, tmp_tuple_element_5); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto tuple_build_exception_5; - } - - tmp_expression_name_26 = par_self; - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[80]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooc"; - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_args_name_4, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_4); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[77]); - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 163; - tmp_assattr_name_9 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assattr_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[97], tmp_assattr_name_9); - Py_DECREF(tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_6; - PyObject *tmp_expression_name_27; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_28; - PyObject *tmp_assattr_target_10; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[98]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[98]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_self; - tmp_tuple_element_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[88]); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_5, 0, tmp_tuple_element_6); - tmp_dict_key_1 = mod_consts[89]; - if (par_self == NULL) { - Py_DECREF(tmp_args_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[89]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_5); - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_5 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_0ad3c42e181292178c7936502c2f7430->m_frame.f_lineno = 164; - tmp_assattr_name_10 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_args_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assattr_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[99], tmp_assattr_name_10); - Py_DECREF(tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 164; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0ad3c42e181292178c7936502c2f7430); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0ad3c42e181292178c7936502c2f7430); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0ad3c42e181292178c7936502c2f7430, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0ad3c42e181292178c7936502c2f7430->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0ad3c42e181292178c7936502c2f7430, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0ad3c42e181292178c7936502c2f7430, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_0ad3c42e181292178c7936502c2f7430 == cache_frame_0ad3c42e181292178c7936502c2f7430) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0ad3c42e181292178c7936502c2f7430); - cache_frame_0ad3c42e181292178c7936502c2f7430 = NULL; - } - - assertFrameObject(frame_0ad3c42e181292178c7936502c2f7430); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__12__shape(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_tensor = python_pars[1]; - PyObject *par_seq_len = python_pars[2]; - PyObject *par_bsz = python_pars[3]; - struct Nuitka_FrameObject *frame_f31112a82b6d451edce0ceec3d4f5560; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_f31112a82b6d451edce0ceec3d4f5560 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f31112a82b6d451edce0ceec3d4f5560)) { - Py_XDECREF(cache_frame_f31112a82b6d451edce0ceec3d4f5560); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f31112a82b6d451edce0ceec3d4f5560 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f31112a82b6d451edce0ceec3d4f5560 = MAKE_FUNCTION_FRAME(codeobj_f31112a82b6d451edce0ceec3d4f5560, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f31112a82b6d451edce0ceec3d4f5560->m_type_description == NULL); - frame_f31112a82b6d451edce0ceec3d4f5560 = cache_frame_f31112a82b6d451edce0ceec3d4f5560; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f31112a82b6d451edce0ceec3d4f5560); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f31112a82b6d451edce0ceec3d4f5560) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_tensor); - tmp_expression_name_1 = par_tensor; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[13]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_bsz); - tmp_args_element_name_1 = par_bsz; - CHECK_OBJECT(par_seq_len); - tmp_args_element_name_2 = par_seq_len; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[87]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[88]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_f31112a82b6d451edce0ceec3d4f5560->m_frame.f_lineno = 167; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_called_instance_2 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_f31112a82b6d451edce0ceec3d4f5560->m_frame.f_lineno = 167; - tmp_called_instance_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[100], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_f31112a82b6d451edce0ceec3d4f5560->m_frame.f_lineno = 167; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[102]); - Py_DECREF(tmp_called_instance_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f31112a82b6d451edce0ceec3d4f5560); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f31112a82b6d451edce0ceec3d4f5560); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f31112a82b6d451edce0ceec3d4f5560); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f31112a82b6d451edce0ceec3d4f5560, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f31112a82b6d451edce0ceec3d4f5560->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f31112a82b6d451edce0ceec3d4f5560, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f31112a82b6d451edce0ceec3d4f5560, - type_description_1, - par_self, - par_tensor, - par_seq_len, - par_bsz - ); - - - // Release cached frame if used for exception. - if (frame_f31112a82b6d451edce0ceec3d4f5560 == cache_frame_f31112a82b6d451edce0ceec3d4f5560) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f31112a82b6d451edce0ceec3d4f5560); - cache_frame_f31112a82b6d451edce0ceec3d4f5560 = NULL; - } - - assertFrameObject(frame_f31112a82b6d451edce0ceec3d4f5560); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(par_seq_len); - par_seq_len = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(par_seq_len); - par_seq_len = NULL; - Py_XDECREF(par_bsz); - par_bsz = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__13_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_past_key_value = python_pars[4]; - PyObject *par_output_attentions = python_pars[5]; - PyObject *par_use_cache = python_pars[6]; - PyObject *var_bsz = NULL; - PyObject *var_q_len = NULL; - PyObject *var__ = NULL; - PyObject *var_query_states = NULL; - PyObject *var_key_states = NULL; - PyObject *var_value_states = NULL; - PyObject *var_kv_seq_len = NULL; - PyObject *var_cos = NULL; - PyObject *var_sin = NULL; - PyObject *var_attn_weights = NULL; - PyObject *var_attn_output = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - struct Nuitka_FrameObject *frame_946cee16beaa54a0e81a9daa8677f97e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - int tmp_res; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_946cee16beaa54a0e81a9daa8677f97e = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_946cee16beaa54a0e81a9daa8677f97e)) { - Py_XDECREF(cache_frame_946cee16beaa54a0e81a9daa8677f97e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_946cee16beaa54a0e81a9daa8677f97e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_946cee16beaa54a0e81a9daa8677f97e = MAKE_FUNCTION_FRAME(codeobj_946cee16beaa54a0e81a9daa8677f97e, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_946cee16beaa54a0e81a9daa8677f97e->m_type_description == NULL); - frame_946cee16beaa54a0e81a9daa8677f97e = cache_frame_946cee16beaa54a0e81a9daa8677f97e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_946cee16beaa54a0e81a9daa8677f97e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_946cee16beaa54a0e81a9daa8677f97e) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_hidden_states); - tmp_called_instance_1 = par_hidden_states; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 178; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[8]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[103]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 178; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var_bsz == NULL); - Py_INCREF(tmp_assign_source_5); - var_bsz = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_q_len == NULL); - Py_INCREF(tmp_assign_source_6); - var_q_len = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_7); - var__ = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_5; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[94]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_hidden_states; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 180; - tmp_expression_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[13]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_bsz); - tmp_args_element_name_2 = var_bsz; - CHECK_OBJECT(var_q_len); - tmp_args_element_name_3 = var_q_len; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[87]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_args_element_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[88]); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 180; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_called_instance_2 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 180; - tmp_assign_source_8 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[100], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_query_states == NULL); - var_query_states = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[95]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_6 = par_hidden_states; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 181; - tmp_expression_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_4); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[13]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_bsz == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_7 = var_bsz; - if (var_q_len == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_8 = var_q_len; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_args_element_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[87]); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[88]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_9); - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 181; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_called_instance_3 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_9); - Py_DECREF(tmp_args_element_name_10); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 181; - tmp_assign_source_9 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[100], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - Py_DECREF(tmp_called_instance_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_key_states == NULL); - var_key_states = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_9; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_15; - PyObject *tmp_expression_name_12; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_self; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[96]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_hidden_states == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_11 = par_hidden_states; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 182; - tmp_expression_name_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_6); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[13]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_bsz == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_12 = var_bsz; - if (var_q_len == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_13 = var_q_len; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_args_element_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[87]); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_12 = par_self; - tmp_args_element_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[88]); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_14); - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 182; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_called_instance_4 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_14); - Py_DECREF(tmp_args_element_name_15); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 182; - tmp_assign_source_10 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[100], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_value_states == NULL); - var_value_states = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_key_states); - tmp_expression_name_14 = var_key_states; - tmp_expression_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[65]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[106]; - tmp_assign_source_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_1, -2); - Py_DECREF(tmp_expression_name_13); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_kv_seq_len == NULL); - var_kv_seq_len = tmp_assign_source_11; - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_past_key_value); - tmp_compexpr_left_1 = par_past_key_value; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_2; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(var_kv_seq_len); - tmp_left_name_1 = var_kv_seq_len; - CHECK_OBJECT(par_past_key_value); - tmp_expression_name_17 = par_past_key_value; - tmp_subscript_name_2 = mod_consts[14]; - tmp_expression_name_16 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_17, tmp_subscript_name_2, 0); - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[65]); - Py_DECREF(tmp_expression_name_16); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[106]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_3, -2); - Py_DECREF(tmp_expression_name_15); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_12 = tmp_left_name_1; - var_kv_seq_len = tmp_assign_source_12; - - } - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_18 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[99]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_value_states); - tmp_tuple_element_1 = var_value_states; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[107]; - CHECK_OBJECT(var_kv_seq_len); - tmp_dict_value_1 = var_kv_seq_len; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 187; - tmp_iter_arg_2 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_13 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_13; - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_4, 0, 2); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 187; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_15 = UNPACK_NEXT(tmp_unpack_5, 1, 2); - if (tmp_assign_source_15 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 187; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_15; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 187; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[0]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 187; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_1; - assert(var_cos == NULL); - Py_INCREF(tmp_assign_source_16); - var_cos = tmp_assign_source_16; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_17 = tmp_tuple_unpack_2__element_2; - assert(var_sin == NULL); - Py_INCREF(tmp_assign_source_17); - var_sin = tmp_assign_source_17; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Tried code: - { - PyObject *tmp_assign_source_18; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_16; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[108]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[108]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - CHECK_OBJECT(var_query_states); - tmp_args_element_name_16 = var_query_states; - if (var_key_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[109]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 188; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_17 = var_key_states; - CHECK_OBJECT(var_cos); - tmp_args_element_name_18 = var_cos; - CHECK_OBJECT(var_sin); - tmp_args_element_name_19 = var_sin; - CHECK_OBJECT(par_position_ids); - tmp_args_element_name_20 = par_position_ids; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 188; - { - PyObject *call_args[] = {tmp_args_element_name_16, tmp_args_element_name_17, tmp_args_element_name_18, tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_iter_arg_3 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_8, call_args); - } - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_18 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - assert(tmp_tuple_unpack_3__source_iter == NULL); - tmp_tuple_unpack_3__source_iter = tmp_assign_source_18; - } - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_19 = UNPACK_NEXT(tmp_unpack_6, 0, 2); - if (tmp_assign_source_19 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 188; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_1 == NULL); - tmp_tuple_unpack_3__element_1 = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_20 = UNPACK_NEXT(tmp_unpack_7, 1, 2); - if (tmp_assign_source_20 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 188; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_2 == NULL); - tmp_tuple_unpack_3__element_2 = tmp_assign_source_20; - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 188; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[0]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 188; - goto try_except_handler_7; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_21 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_query_states; - assert(old != NULL); - var_query_states = tmp_assign_source_21; - Py_INCREF(var_query_states); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_22; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_22 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_key_states; - var_key_states = tmp_assign_source_22; - Py_INCREF(var_key_states); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_past_key_value); - tmp_compexpr_left_2 = par_past_key_value; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_list_element_1; - PyObject *tmp_expression_name_20; - PyObject *tmp_subscript_name_4; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_19 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_19 == NULL)) { - tmp_expression_name_19 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[17]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_past_key_value); - tmp_expression_name_20 = par_past_key_value; - tmp_subscript_name_4 = mod_consts[14]; - tmp_list_element_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_20, tmp_subscript_name_4, 0); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 193; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_2, 0, tmp_list_element_1); - CHECK_OBJECT(var_key_states); - tmp_list_element_1 = var_key_states; - PyList_SET_ITEM0(tmp_tuple_element_2, 1, tmp_list_element_1); - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[110]); - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 193; - tmp_assign_source_23 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_key_states; - var_key_states = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_list_element_2; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_5; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[17]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_past_key_value); - tmp_expression_name_22 = par_past_key_value; - tmp_subscript_name_5 = mod_consts[12]; - tmp_list_element_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_5, 1); - if (tmp_list_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - - exception_lineno = 194; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = PyList_New(2); - PyList_SET_ITEM(tmp_tuple_element_3, 0, tmp_list_element_2); - if (var_value_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_1 = "oooooooooooooooooo"; - goto list_build_exception_1; - } - - tmp_list_element_2 = var_value_states; - PyList_SET_ITEM0(tmp_tuple_element_3, 1, tmp_list_element_2); - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_tuple_element_3); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[110]); - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 194; - tmp_assign_source_24 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_value_states; - var_value_states = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_25; - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_1; - PyObject *tmp_tuple_element_4; - CHECK_OBJECT(par_use_cache); - tmp_truth_name_1 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(var_key_states); - tmp_tuple_element_4 = var_key_states; - tmp_assign_source_25 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_assign_source_25, 0, tmp_tuple_element_4); - if (var_value_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 196; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_4 = var_value_states; - PyTuple_SET_ITEM0(tmp_assign_source_25, 1, tmp_tuple_element_4); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_assign_source_25); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - goto condexpr_end_1; - condexpr_false_1:; - tmp_assign_source_25 = Py_None; - Py_INCREF(tmp_assign_source_25); - condexpr_end_1:; - { - PyObject *old = par_past_key_value; - assert(old != NULL); - par_past_key_value = tmp_assign_source_25; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_left_name_2; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_element_name_21; - PyObject *tmp_args_element_name_22; - PyObject *tmp_called_instance_5; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_element_name_23; - PyObject *tmp_expression_name_25; - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[112]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_query_states); - tmp_args_element_name_21 = var_query_states; - CHECK_OBJECT(var_key_states); - tmp_called_instance_5 = var_key_states; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 198; - tmp_args_element_name_22 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[100], - &PyTuple_GET_ITEM(mod_consts[113], 0) - ); - - if (tmp_args_element_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 198; - { - PyObject *call_args[] = {tmp_args_element_name_21, tmp_args_element_name_22}; - tmp_left_name_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_11, call_args); - } - - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_22); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[114]); - - if (unlikely(tmp_expression_name_24 == NULL)) { - tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[114]); - } - - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[115]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_25 = par_self; - tmp_args_element_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[88]); - if (tmp_args_element_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_called_name_12); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 198; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_23); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_23); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_26 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attn_weights == NULL); - var_attn_weights = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_called_instance_6; - PyObject *tmp_tuple_element_5; - CHECK_OBJECT(var_attn_weights); - tmp_called_instance_6 = var_attn_weights; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 200; - tmp_compexpr_left_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[8]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_bsz == NULL) { - Py_DECREF(tmp_compexpr_left_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_5 = var_bsz; - tmp_compexpr_right_3 = PyTuple_New(4); - { - PyObject *tmp_expression_name_26; - PyTuple_SET_ITEM0(tmp_compexpr_right_3, 0, tmp_tuple_element_5); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_26 = par_self; - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[87]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_compexpr_right_3, 1, tmp_tuple_element_5); - if (var_q_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_5 = var_q_len; - PyTuple_SET_ITEM0(tmp_compexpr_right_3, 2, tmp_tuple_element_5); - if (var_kv_seq_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_5 = var_kv_seq_len; - PyTuple_SET_ITEM0(tmp_compexpr_right_3, 3, tmp_tuple_element_5); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_condition_result_4 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_condition_result_4 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - assert(tmp_condition_result_4 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_6; - tmp_tuple_element_6 = mod_consts[117]; - tmp_string_concat_values_1 = PyTuple_New(4); - { - PyObject *tmp_format_value_1; - PyObject *tmp_tuple_element_7; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_27; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_called_instance_7; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_6); - if (var_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_left_name_3 = var_bsz; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_expression_name_27 = par_self; - tmp_right_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[87]); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_tuple_element_7 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_format_value_1 = PyTuple_New(3); - PyTuple_SET_ITEM(tmp_format_value_1, 0, tmp_tuple_element_7); - if (var_q_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_4; - } - - tmp_tuple_element_7 = var_q_len; - PyTuple_SET_ITEM0(tmp_format_value_1, 1, tmp_tuple_element_7); - if (var_kv_seq_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_4; - } - - tmp_tuple_element_7 = var_kv_seq_len; - PyTuple_SET_ITEM0(tmp_format_value_1, 2, tmp_tuple_element_7); - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_format_value_1); - goto tuple_build_exception_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_format_spec_1 = mod_consts[91]; - tmp_tuple_element_6 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_6); - tmp_tuple_element_6 = mod_consts[118]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_6); - if (var_attn_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[119]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_called_instance_7 = var_attn_weights; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 203; - tmp_format_value_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[8]); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_format_spec_2 = mod_consts[91]; - tmp_tuple_element_6 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_6); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_make_exception_arg_1 = PyUnicode_Join(mod_consts[91], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 201; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 201; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_4 = par_attention_mask; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_5 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_called_instance_8; - PyObject *tmp_tuple_element_8; - CHECK_OBJECT(par_attention_mask); - tmp_called_instance_8 = par_attention_mask; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 207; - tmp_compexpr_left_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[8]); - if (tmp_compexpr_left_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_bsz == NULL) { - Py_DECREF(tmp_compexpr_left_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_8 = var_bsz; - tmp_compexpr_right_5 = PyTuple_New(4); - PyTuple_SET_ITEM0(tmp_compexpr_right_5, 0, tmp_tuple_element_8); - tmp_tuple_element_8 = mod_consts[12]; - PyTuple_SET_ITEM0(tmp_compexpr_right_5, 1, tmp_tuple_element_8); - if (var_q_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_5; - } - - tmp_tuple_element_8 = var_q_len; - PyTuple_SET_ITEM0(tmp_compexpr_right_5, 2, tmp_tuple_element_8); - if (var_kv_seq_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_5; - } - - tmp_tuple_element_8 = var_kv_seq_len; - PyTuple_SET_ITEM0(tmp_compexpr_right_5, 3, tmp_tuple_element_8); - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_compexpr_left_5); - Py_DECREF(tmp_compexpr_right_5); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - Py_DECREF(tmp_compexpr_left_5); - Py_DECREF(tmp_compexpr_right_5); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_5:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_make_exception_arg_2; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_9; - tmp_tuple_element_9 = mod_consts[120]; - tmp_string_concat_values_2 = PyTuple_New(4); - { - PyObject *tmp_format_value_3; - PyObject *tmp_tuple_element_10; - PyObject *tmp_format_spec_3; - PyObject *tmp_format_value_4; - PyObject *tmp_called_instance_9; - PyObject *tmp_format_spec_4; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_9); - if (var_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - - tmp_tuple_element_10 = var_bsz; - tmp_format_value_3 = PyTuple_New(4); - PyTuple_SET_ITEM0(tmp_format_value_3, 0, tmp_tuple_element_10); - tmp_tuple_element_10 = mod_consts[12]; - PyTuple_SET_ITEM0(tmp_format_value_3, 1, tmp_tuple_element_10); - if (var_q_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_7; - } - - tmp_tuple_element_10 = var_q_len; - PyTuple_SET_ITEM0(tmp_format_value_3, 2, tmp_tuple_element_10); - if (var_kv_seq_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_7; - } - - tmp_tuple_element_10 = var_kv_seq_len; - PyTuple_SET_ITEM0(tmp_format_value_3, 3, tmp_tuple_element_10); - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_format_value_3); - goto tuple_build_exception_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_format_spec_3 = mod_consts[91]; - tmp_tuple_element_9 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - Py_DECREF(tmp_format_value_3); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_9); - tmp_tuple_element_9 = mod_consts[118]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_9); - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[121]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - - tmp_called_instance_9 = par_attention_mask; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 209; - tmp_format_value_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[8]); - if (tmp_format_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - tmp_format_spec_4 = mod_consts[91]; - tmp_tuple_element_9 = BUILTIN_FORMAT(tmp_format_value_4, tmp_format_spec_4); - Py_DECREF(tmp_format_value_4); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 3, tmp_tuple_element_9); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_string_concat_values_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_make_exception_arg_2 = PyUnicode_Join(mod_consts[91], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_make_exception_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 208; - tmp_raise_type_2 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_2); - Py_DECREF(tmp_make_exception_arg_2); - assert(!(tmp_raise_type_2 == NULL)); - exception_type = tmp_raise_type_2; - exception_lineno = 208; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_5:; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - if (var_attn_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[119]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = var_attn_weights; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[121]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 211; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_4 = par_attention_mask; - tmp_assign_source_27 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn_weights; - var_attn_weights = tmp_assign_source_27; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_28; - PyObject *tmp_args_element_name_24; - PyObject *tmp_args_element_name_25; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_element_name_26; - PyObject *tmp_expression_name_30; - PyObject *tmp_called_name_15; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_element_name_27; - PyObject *tmp_expression_name_32; - tmp_expression_name_28 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_28 == NULL)) { - tmp_expression_name_28 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[122]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_attn_weights); - tmp_args_element_name_24 = var_attn_weights; - tmp_expression_name_29 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_29 == NULL)) { - tmp_expression_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[3]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_31 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_31 == NULL)) { - tmp_expression_name_31 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[4]); - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_attn_weights); - tmp_expression_name_32 = var_attn_weights; - tmp_args_element_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[16]); - if (tmp_args_element_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_called_name_15); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 212; - tmp_expression_name_30 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_15, tmp_args_element_name_27); - Py_DECREF(tmp_called_name_15); - Py_DECREF(tmp_args_element_name_27); - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[5]); - Py_DECREF(tmp_expression_name_30); - if (tmp_args_element_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_called_name_14); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 212; - tmp_args_element_name_25 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_14, tmp_args_element_name_26); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_element_name_26); - if (tmp_args_element_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_13); - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 212; - { - PyObject *call_args[] = {tmp_args_element_name_24, tmp_args_element_name_25}; - tmp_assign_source_28 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_13, call_args); - } - - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_element_name_25); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn_weights; - var_attn_weights = tmp_assign_source_28; - Py_XDECREF(old); - } - - } - branch_no_4:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_33; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_34; - PyObject *tmp_expression_name_35; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_11; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_args_element_name_28; - PyObject *tmp_expression_name_37; - tmp_expression_name_35 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_35 == NULL)) { - tmp_expression_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_34 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[123]); - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[124]); - Py_DECREF(tmp_expression_name_34); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_attn_weights == NULL) { - Py_DECREF(tmp_called_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[119]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_11 = var_attn_weights; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_11); - tmp_dict_key_2 = mod_consts[51]; - tmp_dict_value_2 = mod_consts[66]; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_36; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[16]; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[39]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 215; - tmp_expression_name_33 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[15]); - Py_DECREF(tmp_expression_name_33); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_query_states == NULL) { - Py_DECREF(tmp_called_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[125]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_37 = var_query_states; - tmp_args_element_name_28 = LOOKUP_ATTRIBUTE(tmp_expression_name_37, mod_consts[16]); - if (tmp_args_element_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_16); - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 215; - tmp_assign_source_29 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_16, tmp_args_element_name_28); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_element_name_28); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn_weights; - var_attn_weights = tmp_assign_source_29; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_38; - PyObject *tmp_args_element_name_29; - PyObject *tmp_args_element_name_30; - tmp_expression_name_38 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_38 == NULL)) { - tmp_expression_name_38 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[112]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_attn_weights); - tmp_args_element_name_29 = var_attn_weights; - if (var_value_states == NULL) { - Py_DECREF(tmp_called_name_18); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_30 = var_value_states; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 216; - { - PyObject *call_args[] = {tmp_args_element_name_29, tmp_args_element_name_30}; - tmp_assign_source_30 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_18, call_args); - } - - Py_DECREF(tmp_called_name_18); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_attn_output == NULL); - var_attn_output = tmp_assign_source_30; - } - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_called_instance_10; - PyObject *tmp_tuple_element_12; - CHECK_OBJECT(var_attn_output); - tmp_called_instance_10 = var_attn_output; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 218; - tmp_compexpr_left_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[8]); - if (tmp_compexpr_left_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_bsz == NULL) { - Py_DECREF(tmp_compexpr_left_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_12 = var_bsz; - tmp_compexpr_right_6 = PyTuple_New(4); - { - PyObject *tmp_expression_name_39; - PyObject *tmp_expression_name_40; - PyTuple_SET_ITEM0(tmp_compexpr_right_6, 0, tmp_tuple_element_12); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_8; - } - - tmp_expression_name_39 = par_self; - tmp_tuple_element_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[87]); - if (tmp_tuple_element_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_compexpr_right_6, 1, tmp_tuple_element_12); - if (var_q_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_8; - } - - tmp_tuple_element_12 = var_q_len; - PyTuple_SET_ITEM0(tmp_compexpr_right_6, 2, tmp_tuple_element_12); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_8; - } - - tmp_expression_name_40 = par_self; - tmp_tuple_element_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[88]); - if (tmp_tuple_element_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_compexpr_right_6, 3, tmp_tuple_element_12); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_compexpr_left_6); - Py_DECREF(tmp_compexpr_right_6); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_condition_result_7 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - Py_DECREF(tmp_compexpr_left_6); - Py_DECREF(tmp_compexpr_right_6); - if (tmp_condition_result_7 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - assert(tmp_condition_result_7 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_6:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_make_exception_arg_3; - PyObject *tmp_string_concat_values_3; - PyObject *tmp_tuple_element_13; - tmp_tuple_element_13 = mod_consts[126]; - tmp_string_concat_values_3 = PyTuple_New(4); - { - PyObject *tmp_format_value_5; - PyObject *tmp_tuple_element_14; - PyObject *tmp_format_spec_5; - PyObject *tmp_format_value_6; - PyObject *tmp_called_instance_11; - PyObject *tmp_format_spec_6; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 0, tmp_tuple_element_13); - if (var_bsz == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_9; - } - - tmp_tuple_element_14 = var_bsz; - tmp_format_value_5 = PyTuple_New(4); - { - PyObject *tmp_expression_name_41; - PyObject *tmp_expression_name_42; - PyTuple_SET_ITEM0(tmp_format_value_5, 0, tmp_tuple_element_14); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_10; - } - - tmp_expression_name_41 = par_self; - tmp_tuple_element_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[87]); - if (tmp_tuple_element_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_format_value_5, 1, tmp_tuple_element_14); - if (var_q_len == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_10; - } - - tmp_tuple_element_14 = var_q_len; - PyTuple_SET_ITEM0(tmp_format_value_5, 2, tmp_tuple_element_14); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_10; - } - - tmp_expression_name_42 = par_self; - tmp_tuple_element_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_42, mod_consts[88]); - if (tmp_tuple_element_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_format_value_5, 3, tmp_tuple_element_14); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_format_value_5); - goto tuple_build_exception_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_format_spec_5 = mod_consts[91]; - tmp_tuple_element_13 = BUILTIN_FORMAT(tmp_format_value_5, tmp_format_spec_5); - Py_DECREF(tmp_format_value_5); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 1, tmp_tuple_element_13); - tmp_tuple_element_13 = mod_consts[118]; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 2, tmp_tuple_element_13); - if (var_attn_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 221; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_9; - } - - tmp_called_instance_11 = var_attn_output; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 221; - tmp_format_value_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[8]); - if (tmp_format_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_9; - } - tmp_format_spec_6 = mod_consts[91]; - tmp_tuple_element_13 = BUILTIN_FORMAT(tmp_format_value_6, tmp_format_spec_6); - Py_DECREF(tmp_format_value_6); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 3, tmp_tuple_element_13); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_string_concat_values_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_make_exception_arg_3 = PyUnicode_Join(mod_consts[91], tmp_string_concat_values_3); - Py_DECREF(tmp_string_concat_values_3); - if (tmp_make_exception_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 219; - tmp_raise_type_3 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_3); - Py_DECREF(tmp_make_exception_arg_3); - assert(!(tmp_raise_type_3 == NULL)); - exception_type = tmp_raise_type_3; - exception_lineno = 219; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_6:; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_instance_12; - if (var_attn_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[127]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 224; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_12 = var_attn_output; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 224; - tmp_assign_source_31 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_12, - mod_consts[100], - &PyTuple_GET_ITEM(mod_consts[101], 0) - ); - - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn_output; - var_attn_output = tmp_assign_source_31; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_19; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_element_name_31; - PyObject *tmp_args_element_name_32; - PyObject *tmp_args_element_name_33; - PyObject *tmp_expression_name_44; - CHECK_OBJECT(var_attn_output); - tmp_expression_name_43 = var_attn_output; - tmp_called_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[128]); - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_bsz == NULL) { - Py_DECREF(tmp_called_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 225; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_31 = var_bsz; - if (var_q_len == NULL) { - Py_DECREF(tmp_called_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 225; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_32 = var_q_len; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 225; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_44 = par_self; - tmp_args_element_name_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_44, mod_consts[80]); - if (tmp_args_element_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_19); - - exception_lineno = 225; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 225; - { - PyObject *call_args[] = {tmp_args_element_name_31, tmp_args_element_name_32, tmp_args_element_name_33}; - tmp_assign_source_32 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_19, call_args); - } - - Py_DECREF(tmp_called_name_19); - Py_DECREF(tmp_args_element_name_33); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn_output; - var_attn_output = tmp_assign_source_32; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_instance_13; - PyObject *tmp_args_element_name_34; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_13 = par_self; - CHECK_OBJECT(var_attn_output); - tmp_args_element_name_34 = var_attn_output; - frame_946cee16beaa54a0e81a9daa8677f97e->m_frame.f_lineno = 227; - tmp_assign_source_33 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_13, mod_consts[97], tmp_args_element_name_34); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_attn_output; - var_attn_output = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_operand_name_1; - CHECK_OBJECT(par_output_attentions); - tmp_operand_name_1 = par_output_attentions; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_8 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = Py_None; - { - PyObject *old = var_attn_weights; - var_attn_weights = tmp_assign_source_34; - Py_INCREF(var_attn_weights); - Py_XDECREF(old); - } - - } - branch_no_7:; - { - PyObject *tmp_tuple_element_15; - CHECK_OBJECT(var_attn_output); - tmp_tuple_element_15 = var_attn_output; - tmp_return_value = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_15); - if (var_attn_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[119]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 232; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_11; - } - - tmp_tuple_element_15 = var_attn_weights; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_15); - CHECK_OBJECT(par_past_key_value); - tmp_tuple_element_15 = par_past_key_value; - PyTuple_SET_ITEM0(tmp_return_value, 2, tmp_tuple_element_15); - goto tuple_build_noexception_11; - // Exception handling pass through code for tuple_build: - tuple_build_exception_11:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_11:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_946cee16beaa54a0e81a9daa8677f97e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_946cee16beaa54a0e81a9daa8677f97e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_946cee16beaa54a0e81a9daa8677f97e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_946cee16beaa54a0e81a9daa8677f97e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_946cee16beaa54a0e81a9daa8677f97e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_946cee16beaa54a0e81a9daa8677f97e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_946cee16beaa54a0e81a9daa8677f97e, - type_description_1, - par_self, - par_hidden_states, - par_attention_mask, - par_position_ids, - par_past_key_value, - par_output_attentions, - par_use_cache, - var_bsz, - var_q_len, - var__, - var_query_states, - var_key_states, - var_value_states, - var_kv_seq_len, - var_cos, - var_sin, - var_attn_weights, - var_attn_output - ); - - - // Release cached frame if used for exception. - if (frame_946cee16beaa54a0e81a9daa8677f97e == cache_frame_946cee16beaa54a0e81a9daa8677f97e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_946cee16beaa54a0e81a9daa8677f97e); - cache_frame_946cee16beaa54a0e81a9daa8677f97e = NULL; - } - - assertFrameObject(frame_946cee16beaa54a0e81a9daa8677f97e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - CHECK_OBJECT(par_position_ids); - Py_DECREF(par_position_ids); - par_position_ids = NULL; - CHECK_OBJECT(par_past_key_value); - Py_DECREF(par_past_key_value); - par_past_key_value = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(par_use_cache); - Py_DECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_q_len); - var_q_len = NULL; - CHECK_OBJECT(var__); - Py_DECREF(var__); - var__ = NULL; - Py_XDECREF(var_query_states); - var_query_states = NULL; - Py_XDECREF(var_key_states); - var_key_states = NULL; - Py_XDECREF(var_value_states); - var_value_states = NULL; - Py_XDECREF(var_kv_seq_len); - var_kv_seq_len = NULL; - CHECK_OBJECT(var_cos); - Py_DECREF(var_cos); - var_cos = NULL; - CHECK_OBJECT(var_sin); - Py_DECREF(var_sin); - var_sin = NULL; - Py_XDECREF(var_attn_weights); - var_attn_weights = NULL; - CHECK_OBJECT(var_attn_output); - Py_DECREF(var_attn_output); - var_attn_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - CHECK_OBJECT(par_position_ids); - Py_DECREF(par_position_ids); - par_position_ids = NULL; - CHECK_OBJECT(par_past_key_value); - Py_DECREF(par_past_key_value); - par_past_key_value = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - CHECK_OBJECT(par_use_cache); - Py_DECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(var_bsz); - var_bsz = NULL; - Py_XDECREF(var_q_len); - var_q_len = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_query_states); - var_query_states = NULL; - Py_XDECREF(var_key_states); - var_key_states = NULL; - Py_XDECREF(var_value_states); - var_value_states = NULL; - Py_XDECREF(var_kv_seq_len); - var_kv_seq_len = NULL; - Py_XDECREF(var_cos); - var_cos = NULL; - Py_XDECREF(var_sin); - var_sin = NULL; - Py_XDECREF(var_attn_weights); - var_attn_weights = NULL; - Py_XDECREF(var_attn_output); - var_attn_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__14___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_1ad920172ce0ce172659e0f425a48750; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_1ad920172ce0ce172659e0f425a48750 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1ad920172ce0ce172659e0f425a48750)) { - Py_XDECREF(cache_frame_1ad920172ce0ce172659e0f425a48750); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1ad920172ce0ce172659e0f425a48750 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1ad920172ce0ce172659e0f425a48750 = MAKE_FUNCTION_FRAME(codeobj_1ad920172ce0ce172659e0f425a48750, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1ad920172ce0ce172659e0f425a48750->m_type_description == NULL); - frame_1ad920172ce0ce172659e0f425a48750 = cache_frame_1ad920172ce0ce172659e0f425a48750; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1ad920172ce0ce172659e0f425a48750); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1ad920172ce0ce172659e0f425a48750) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 237; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 237; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_1ad920172ce0ce172659e0f425a48750->m_frame.f_lineno = 237; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 237; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_assattr_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[80]); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[80], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[129]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[129]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[85]; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 239; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_dict_value_1 = par_config; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_1ad920172ce0ce172659e0f425a48750->m_frame.f_lineno = 239; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[130], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_assattr_target_3; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[131]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[131]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[80]; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[80]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[79]; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 242; - type_description_1 = "ooc"; - goto dict_build_exception_1; - } - - tmp_expression_name_3 = par_config; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[79]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooc"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[132]; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 243; - type_description_1 = "ooc"; - goto dict_build_exception_1; - } - - tmp_expression_name_4 = par_config; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[132]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "ooc"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_1ad920172ce0ce172659e0f425a48750->m_frame.f_lineno = 240; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 240; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[133], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_4; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[134]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[134]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[80]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_3 = mod_consts[135]; - if (par_config == NULL) { - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_config; - tmp_dict_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[136]); - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_1ad920172ce0ce172659e0f425a48750->m_frame.f_lineno = 245; - tmp_assattr_name_4 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[137], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_assattr_target_5; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[134]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[134]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_config; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[80]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_dict_key_4 = mod_consts[135]; - if (par_config == NULL) { - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_config; - tmp_dict_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[136]); - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_1ad920172ce0ce172659e0f425a48750->m_frame.f_lineno = 246; - tmp_assattr_name_5 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[138], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1ad920172ce0ce172659e0f425a48750); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1ad920172ce0ce172659e0f425a48750); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1ad920172ce0ce172659e0f425a48750, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1ad920172ce0ce172659e0f425a48750->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1ad920172ce0ce172659e0f425a48750, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1ad920172ce0ce172659e0f425a48750, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_1ad920172ce0ce172659e0f425a48750 == cache_frame_1ad920172ce0ce172659e0f425a48750) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1ad920172ce0ce172659e0f425a48750); - cache_frame_1ad920172ce0ce172659e0f425a48750 = NULL; - } - - assertFrameObject(frame_1ad920172ce0ce172659e0f425a48750); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__15_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_hidden_states = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_past_key_value = python_pars[4]; - PyObject *par_output_attentions = python_pars[5]; - PyObject *par_use_cache = python_pars[6]; - PyObject *var_residual = NULL; - PyObject *var_self_attn_weights = NULL; - PyObject *var_present_key_value = NULL; - PyObject *var_outputs = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_70854e41c56fe5eee0f0a9936eb360bf; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_70854e41c56fe5eee0f0a9936eb360bf = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - CHECK_OBJECT(par_hidden_states); - tmp_assign_source_1 = par_hidden_states; - assert(var_residual == NULL); - Py_INCREF(tmp_assign_source_1); - var_residual = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_70854e41c56fe5eee0f0a9936eb360bf)) { - Py_XDECREF(cache_frame_70854e41c56fe5eee0f0a9936eb360bf); - -#if _DEBUG_REFCOUNTS - if (cache_frame_70854e41c56fe5eee0f0a9936eb360bf == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_70854e41c56fe5eee0f0a9936eb360bf = MAKE_FUNCTION_FRAME(codeobj_70854e41c56fe5eee0f0a9936eb360bf, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_70854e41c56fe5eee0f0a9936eb360bf->m_type_description == NULL); - frame_70854e41c56fe5eee0f0a9936eb360bf = cache_frame_70854e41c56fe5eee0f0a9936eb360bf; - - // Push the new frame as the currently active one. - pushFrameStack(frame_70854e41c56fe5eee0f0a9936eb360bf); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_70854e41c56fe5eee0f0a9936eb360bf) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_1 = par_hidden_states; - frame_70854e41c56fe5eee0f0a9936eb360bf->m_frame.f_lineno = 273; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[137], tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 276; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[130]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_dict_key_1 = mod_consts[44]; - CHECK_OBJECT(par_hidden_states); - tmp_dict_value_1 = par_hidden_states; - tmp_kwargs_name_1 = _PyDict_NewPresized( 6 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[121]; - CHECK_OBJECT(par_attention_mask); - tmp_dict_value_1 = par_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[139]; - CHECK_OBJECT(par_position_ids); - tmp_dict_value_1 = par_position_ids; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[140]; - CHECK_OBJECT(par_past_key_value); - tmp_dict_value_1 = par_past_key_value; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[141]; - CHECK_OBJECT(par_output_attentions); - tmp_dict_value_1 = par_output_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[142]; - CHECK_OBJECT(par_use_cache); - tmp_dict_value_1 = par_use_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_70854e41c56fe5eee0f0a9936eb360bf->m_frame.f_lineno = 276; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 276; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 276; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 276; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 276; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[103]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 276; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_7; - Py_INCREF(par_hidden_states); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_self_attn_weights == NULL); - Py_INCREF(tmp_assign_source_8); - var_self_attn_weights = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var_present_key_value == NULL); - Py_INCREF(tmp_assign_source_9); - var_present_key_value = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_residual); - tmp_left_name_1 = var_residual; - CHECK_OBJECT(par_hidden_states); - tmp_right_name_1 = par_hidden_states; - tmp_assign_source_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(par_hidden_states); - tmp_assign_source_11 = par_hidden_states; - { - PyObject *old = var_residual; - var_residual = tmp_assign_source_11; - Py_INCREF(var_residual); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_2 = par_hidden_states; - frame_70854e41c56fe5eee0f0a9936eb360bf->m_frame.f_lineno = 288; - tmp_assign_source_12 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[138], tmp_args_element_name_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 289; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_hidden_states); - tmp_args_element_name_3 = par_hidden_states; - frame_70854e41c56fe5eee0f0a9936eb360bf->m_frame.f_lineno = 289; - tmp_assign_source_13 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[133], tmp_args_element_name_3); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 289; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(var_residual); - tmp_left_name_2 = var_residual; - CHECK_OBJECT(par_hidden_states); - tmp_right_name_2 = par_hidden_states; - tmp_assign_source_14 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_hidden_states; - par_hidden_states = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(par_hidden_states); - tmp_tuple_element_1 = par_hidden_states; - tmp_assign_source_15 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_15, 0, tmp_tuple_element_1); - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_15; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - if (par_output_attentions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 294; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_1 = CHECK_IF_TRUE(par_output_attentions); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_outputs); - tmp_left_name_3 = var_outputs; - CHECK_OBJECT(var_self_attn_weights); - tmp_tuple_element_2 = var_self_attn_weights; - tmp_right_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_3, 0, tmp_tuple_element_2); - tmp_result = BINARY_OPERATION_ADD_TUPLE_TUPLE_INPLACE(&tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - assert(!(tmp_result == false)); - tmp_assign_source_16 = tmp_left_name_3; - var_outputs = tmp_assign_source_16; - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 297; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_2 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_3; - CHECK_OBJECT(var_outputs); - tmp_left_name_4 = var_outputs; - CHECK_OBJECT(var_present_key_value); - tmp_tuple_element_3 = var_present_key_value; - tmp_right_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_4, 0, tmp_tuple_element_3); - tmp_result = BINARY_OPERATION_ADD_TUPLE_TUPLE_INPLACE(&tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - assert(!(tmp_result == false)); - tmp_assign_source_17 = tmp_left_name_4; - var_outputs = tmp_assign_source_17; - - } - branch_no_2:; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 300; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_outputs; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_70854e41c56fe5eee0f0a9936eb360bf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_70854e41c56fe5eee0f0a9936eb360bf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_70854e41c56fe5eee0f0a9936eb360bf); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_70854e41c56fe5eee0f0a9936eb360bf, exception_lineno); - } else if (exception_tb->tb_frame != &frame_70854e41c56fe5eee0f0a9936eb360bf->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_70854e41c56fe5eee0f0a9936eb360bf, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_70854e41c56fe5eee0f0a9936eb360bf, - type_description_1, - par_self, - par_hidden_states, - par_attention_mask, - par_position_ids, - par_past_key_value, - par_output_attentions, - par_use_cache, - var_residual, - var_self_attn_weights, - var_present_key_value, - var_outputs - ); - - - // Release cached frame if used for exception. - if (frame_70854e41c56fe5eee0f0a9936eb360bf == cache_frame_70854e41c56fe5eee0f0a9936eb360bf) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_70854e41c56fe5eee0f0a9936eb360bf); - cache_frame_70854e41c56fe5eee0f0a9936eb360bf = NULL; - } - - assertFrameObject(frame_70854e41c56fe5eee0f0a9936eb360bf); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_hidden_states); - Py_DECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_past_key_value); - par_past_key_value = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(var_residual); - var_residual = NULL; - CHECK_OBJECT(var_self_attn_weights); - Py_DECREF(var_self_attn_weights); - var_self_attn_weights = NULL; - CHECK_OBJECT(var_present_key_value); - Py_DECREF(var_present_key_value); - var_present_key_value = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_hidden_states); - par_hidden_states = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_past_key_value); - par_past_key_value = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(var_residual); - var_residual = NULL; - Py_XDECREF(var_self_attn_weights); - var_self_attn_weights = NULL; - Py_XDECREF(var_present_key_value); - var_present_key_value = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__16__init_weights(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_module = python_pars[1]; - PyObject *var_std = NULL; - struct Nuitka_FrameObject *frame_09a61b81c452dbc8a34df4d6a59c7c55; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_09a61b81c452dbc8a34df4d6a59c7c55 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_09a61b81c452dbc8a34df4d6a59c7c55)) { - Py_XDECREF(cache_frame_09a61b81c452dbc8a34df4d6a59c7c55); - -#if _DEBUG_REFCOUNTS - if (cache_frame_09a61b81c452dbc8a34df4d6a59c7c55 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_09a61b81c452dbc8a34df4d6a59c7c55 = MAKE_FUNCTION_FRAME(codeobj_09a61b81c452dbc8a34df4d6a59c7c55, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_09a61b81c452dbc8a34df4d6a59c7c55->m_type_description == NULL); - frame_09a61b81c452dbc8a34df4d6a59c7c55 = cache_frame_09a61b81c452dbc8a34df4d6a59c7c55; - - // Push the new frame as the currently active one. - pushFrameStack(frame_09a61b81c452dbc8a34df4d6a59c7c55); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_09a61b81c452dbc8a34df4d6a59c7c55) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[85]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[145]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_std == NULL); - var_std = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_module); - tmp_isinstance_inst_1 = par_module; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_module); - tmp_expression_name_6 = par_module; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[36]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[146]); - Py_DECREF(tmp_expression_name_5); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[147]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[42]; - tmp_dict_value_1 = mod_consts[148]; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[149]; - CHECK_OBJECT(var_std); - tmp_dict_value_1 = var_std; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_09a61b81c452dbc8a34df4d6a59c7c55->m_frame.f_lineno = 334; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_7; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 335; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_module; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[151]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_2; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_module; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[151]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[146]); - Py_DECREF(tmp_expression_name_8); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_09a61b81c452dbc8a34df4d6a59c7c55->m_frame.f_lineno = 336; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[152]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_2:; - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(par_module); - tmp_isinstance_inst_2 = par_module; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[153]); - if (tmp_isinstance_cls_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - Py_DECREF(tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_11; - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - PyObject *tmp_call_result_3; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - CHECK_OBJECT(par_module); - tmp_expression_name_13 = par_module; - tmp_expression_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[36]); - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[146]); - Py_DECREF(tmp_expression_name_12); - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[147]); - Py_DECREF(tmp_expression_name_11); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[42]; - tmp_dict_value_2 = mod_consts[148]; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[149]; - CHECK_OBJECT(var_std); - tmp_dict_value_2 = var_std; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_09a61b81c452dbc8a34df4d6a59c7c55->m_frame.f_lineno = 338; - tmp_call_result_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_14; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 339; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_module; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[154]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - Py_DECREF(tmp_compexpr_left_2); - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_18; - PyObject *tmp_call_result_4; - if (par_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_module; - tmp_expression_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[36]); - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[146]); - Py_DECREF(tmp_expression_name_16); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_module == NULL) { - Py_DECREF(tmp_expression_name_15); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_module; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[154]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_15); - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_15, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_15); - Py_DECREF(tmp_subscript_name_1); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_09a61b81c452dbc8a34df4d6a59c7c55->m_frame.f_lineno = 340; - tmp_call_result_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[152]); - Py_DECREF(tmp_called_instance_2); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_4:; - branch_no_3:; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_09a61b81c452dbc8a34df4d6a59c7c55); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_09a61b81c452dbc8a34df4d6a59c7c55); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_09a61b81c452dbc8a34df4d6a59c7c55, exception_lineno); - } else if (exception_tb->tb_frame != &frame_09a61b81c452dbc8a34df4d6a59c7c55->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_09a61b81c452dbc8a34df4d6a59c7c55, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_09a61b81c452dbc8a34df4d6a59c7c55, - type_description_1, - par_self, - par_module, - var_std - ); - - - // Release cached frame if used for exception. - if (frame_09a61b81c452dbc8a34df4d6a59c7c55 == cache_frame_09a61b81c452dbc8a34df4d6a59c7c55) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_09a61b81c452dbc8a34df4d6a59c7c55); - cache_frame_09a61b81c452dbc8a34df4d6a59c7c55 = NULL; - } - - assertFrameObject(frame_09a61b81c452dbc8a34df4d6a59c7c55); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_module); - par_module = NULL; - Py_XDECREF(var_std); - var_std = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_module); - par_module = NULL; - Py_XDECREF(var_std); - var_std = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__17__set_gradient_checkpointing(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_module = python_pars[1]; - PyObject *par_value = python_pars[2]; - struct Nuitka_FrameObject *frame_f437efa8710cbbb70af30b9d54241009; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_f437efa8710cbbb70af30b9d54241009 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f437efa8710cbbb70af30b9d54241009)) { - Py_XDECREF(cache_frame_f437efa8710cbbb70af30b9d54241009); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f437efa8710cbbb70af30b9d54241009 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f437efa8710cbbb70af30b9d54241009 = MAKE_FUNCTION_FRAME(codeobj_f437efa8710cbbb70af30b9d54241009, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f437efa8710cbbb70af30b9d54241009->m_type_description == NULL); - frame_f437efa8710cbbb70af30b9d54241009 = cache_frame_f437efa8710cbbb70af30b9d54241009; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f437efa8710cbbb70af30b9d54241009); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f437efa8710cbbb70af30b9d54241009) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_module); - tmp_isinstance_inst_1 = par_module; - tmp_isinstance_cls_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[155]); - - if (unlikely(tmp_isinstance_cls_1 == NULL)) { - tmp_isinstance_cls_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[155]); - } - - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_value); - tmp_assattr_name_1 = par_value; - CHECK_OBJECT(par_module); - tmp_assattr_target_1 = par_module; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[156], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 344; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - branch_no_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f437efa8710cbbb70af30b9d54241009); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f437efa8710cbbb70af30b9d54241009); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f437efa8710cbbb70af30b9d54241009, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f437efa8710cbbb70af30b9d54241009->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f437efa8710cbbb70af30b9d54241009, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f437efa8710cbbb70af30b9d54241009, - type_description_1, - par_self, - par_module, - par_value - ); - - - // Release cached frame if used for exception. - if (frame_f437efa8710cbbb70af30b9d54241009 == cache_frame_f437efa8710cbbb70af30b9d54241009) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f437efa8710cbbb70af30b9d54241009); - cache_frame_f437efa8710cbbb70af30b9d54241009 = NULL; - } - - assertFrameObject(frame_f437efa8710cbbb70af30b9d54241009); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_module); - Py_DECREF(par_module); - par_module = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_module); - Py_DECREF(par_module); - par_module = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__18___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - PyObject *outline_0_var__ = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_45248b6ce1a7d57704c8c737dc971859; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - struct Nuitka_FrameObject *frame_d7f72266184bbb812a9b7a6d2b672162_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_d7f72266184bbb812a9b7a6d2b672162_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_45248b6ce1a7d57704c8c737dc971859 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_45248b6ce1a7d57704c8c737dc971859)) { - Py_XDECREF(cache_frame_45248b6ce1a7d57704c8c737dc971859); - -#if _DEBUG_REFCOUNTS - if (cache_frame_45248b6ce1a7d57704c8c737dc971859 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_45248b6ce1a7d57704c8c737dc971859 = MAKE_FUNCTION_FRAME(codeobj_45248b6ce1a7d57704c8c737dc971859, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_45248b6ce1a7d57704c8c737dc971859->m_type_description == NULL); - frame_45248b6ce1a7d57704c8c737dc971859 = cache_frame_45248b6ce1a7d57704c8c737dc971859; - - // Push the new frame as the currently active one. - pushFrameStack(frame_45248b6ce1a7d57704c8c737dc971859); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_45248b6ce1a7d57704c8c737dc971859) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 424; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_45248b6ce1a7d57704c8c737dc971859->m_frame.f_lineno = 424; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[32], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 424; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_assattr_target_1; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 425; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_config; - tmp_assattr_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[157]); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 425; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[154], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 425; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_assattr_target_2; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 426; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_config; - tmp_assattr_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[158]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[158], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_assattr_target_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[153]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_config; - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[158]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_config; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[80]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_6 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[154]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_45248b6ce1a7d57704c8c737dc971859->m_frame.f_lineno = 428; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[159], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 428; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_5; - PyObject *tmp_assattr_target_4; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[160]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_expression_name_8; - if (par_config == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 429; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - - tmp_expression_name_8 = par_config; - tmp_xrange_low_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[161]); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_d7f72266184bbb812a9b7a6d2b672162_2)) { - Py_XDECREF(cache_frame_d7f72266184bbb812a9b7a6d2b672162_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d7f72266184bbb812a9b7a6d2b672162_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d7f72266184bbb812a9b7a6d2b672162_2 = MAKE_FUNCTION_FRAME(codeobj_d7f72266184bbb812a9b7a6d2b672162, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d7f72266184bbb812a9b7a6d2b672162_2->m_type_description == NULL); - frame_d7f72266184bbb812a9b7a6d2b672162_2 = cache_frame_d7f72266184bbb812a9b7a6d2b672162_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d7f72266184bbb812a9b7a6d2b672162_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d7f72266184bbb812a9b7a6d2b672162_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 429; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_4 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var__; - outline_0_var__ = tmp_assign_source_4; - Py_INCREF(outline_0_var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_6; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[162]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[162]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_2 = "oo"; - goto try_except_handler_3; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 429; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_args_element_name_6 = par_config; - frame_d7f72266184bbb812a9b7a6d2b672162_2->m_frame.f_lineno = 429; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_6); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_args_element_name_5 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_args_element_name_5); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d7f72266184bbb812a9b7a6d2b672162_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d7f72266184bbb812a9b7a6d2b672162_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d7f72266184bbb812a9b7a6d2b672162_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d7f72266184bbb812a9b7a6d2b672162_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d7f72266184bbb812a9b7a6d2b672162_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d7f72266184bbb812a9b7a6d2b672162_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d7f72266184bbb812a9b7a6d2b672162_2, - type_description_2, - outline_0_var__, - par_config - ); - - - // Release cached frame if used for exception. - if (frame_d7f72266184bbb812a9b7a6d2b672162_2 == cache_frame_d7f72266184bbb812a9b7a6d2b672162_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d7f72266184bbb812a9b7a6d2b672162_2); - cache_frame_d7f72266184bbb812a9b7a6d2b672162_2 = NULL; - } - - assertFrameObject(frame_d7f72266184bbb812a9b7a6d2b672162_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooc"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var__); - outline_0_var__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 429; - goto frame_exception_exit_1; - outline_result_1:; - frame_45248b6ce1a7d57704c8c737dc971859->m_frame.f_lineno = 429; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 429; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[163], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 429; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_9; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_10; - PyObject *tmp_assattr_target_5; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[134]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[134]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[80]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[135]; - if (par_config == NULL) { - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_config; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[136]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_45248b6ce1a7d57704c8c737dc971859->m_frame.f_lineno = 430; - tmp_assattr_name_5 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[164], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 430; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_assattr_target_6; - tmp_assattr_name_6 = Py_False; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 432; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[156], tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 434; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - frame_45248b6ce1a7d57704c8c737dc971859->m_frame.f_lineno = 434; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[165]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 434; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_45248b6ce1a7d57704c8c737dc971859); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_45248b6ce1a7d57704c8c737dc971859); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_45248b6ce1a7d57704c8c737dc971859, exception_lineno); - } else if (exception_tb->tb_frame != &frame_45248b6ce1a7d57704c8c737dc971859->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_45248b6ce1a7d57704c8c737dc971859, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_45248b6ce1a7d57704c8c737dc971859, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_45248b6ce1a7d57704c8c737dc971859 == cache_frame_45248b6ce1a7d57704c8c737dc971859) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_45248b6ce1a7d57704c8c737dc971859); - cache_frame_45248b6ce1a7d57704c8c737dc971859 = NULL; - } - - assertFrameObject(frame_45248b6ce1a7d57704c8c737dc971859); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__19_get_input_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_6c282c8d6b8bf19a45998db55bce5931; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_6c282c8d6b8bf19a45998db55bce5931 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6c282c8d6b8bf19a45998db55bce5931)) { - Py_XDECREF(cache_frame_6c282c8d6b8bf19a45998db55bce5931); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6c282c8d6b8bf19a45998db55bce5931 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6c282c8d6b8bf19a45998db55bce5931 = MAKE_FUNCTION_FRAME(codeobj_6c282c8d6b8bf19a45998db55bce5931, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6c282c8d6b8bf19a45998db55bce5931->m_type_description == NULL); - frame_6c282c8d6b8bf19a45998db55bce5931 = cache_frame_6c282c8d6b8bf19a45998db55bce5931; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6c282c8d6b8bf19a45998db55bce5931); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6c282c8d6b8bf19a45998db55bce5931) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[159]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6c282c8d6b8bf19a45998db55bce5931); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6c282c8d6b8bf19a45998db55bce5931); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6c282c8d6b8bf19a45998db55bce5931); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6c282c8d6b8bf19a45998db55bce5931, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6c282c8d6b8bf19a45998db55bce5931->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6c282c8d6b8bf19a45998db55bce5931, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6c282c8d6b8bf19a45998db55bce5931, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_6c282c8d6b8bf19a45998db55bce5931 == cache_frame_6c282c8d6b8bf19a45998db55bce5931) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6c282c8d6b8bf19a45998db55bce5931); - cache_frame_6c282c8d6b8bf19a45998db55bce5931 = NULL; - } - - assertFrameObject(frame_6c282c8d6b8bf19a45998db55bce5931); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__20_set_input_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_value = python_pars[1]; - struct Nuitka_FrameObject *frame_665c3f1cec895ee4f51349c0fd396d92; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_665c3f1cec895ee4f51349c0fd396d92 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_665c3f1cec895ee4f51349c0fd396d92)) { - Py_XDECREF(cache_frame_665c3f1cec895ee4f51349c0fd396d92); - -#if _DEBUG_REFCOUNTS - if (cache_frame_665c3f1cec895ee4f51349c0fd396d92 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_665c3f1cec895ee4f51349c0fd396d92 = MAKE_FUNCTION_FRAME(codeobj_665c3f1cec895ee4f51349c0fd396d92, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_665c3f1cec895ee4f51349c0fd396d92->m_type_description == NULL); - frame_665c3f1cec895ee4f51349c0fd396d92 = cache_frame_665c3f1cec895ee4f51349c0fd396d92; - - // Push the new frame as the currently active one. - pushFrameStack(frame_665c3f1cec895ee4f51349c0fd396d92); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_665c3f1cec895ee4f51349c0fd396d92) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_value); - tmp_assattr_name_1 = par_value; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[159], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_665c3f1cec895ee4f51349c0fd396d92); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_665c3f1cec895ee4f51349c0fd396d92); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_665c3f1cec895ee4f51349c0fd396d92, exception_lineno); - } else if (exception_tb->tb_frame != &frame_665c3f1cec895ee4f51349c0fd396d92->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_665c3f1cec895ee4f51349c0fd396d92, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_665c3f1cec895ee4f51349c0fd396d92, - type_description_1, - par_self, - par_value - ); - - - // Release cached frame if used for exception. - if (frame_665c3f1cec895ee4f51349c0fd396d92 == cache_frame_665c3f1cec895ee4f51349c0fd396d92) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_665c3f1cec895ee4f51349c0fd396d92); - cache_frame_665c3f1cec895ee4f51349c0fd396d92 = NULL; - } - - assertFrameObject(frame_665c3f1cec895ee4f51349c0fd396d92); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__21__prepare_decoder_attention_mask(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_attention_mask = python_pars[1]; - PyObject *par_input_shape = python_pars[2]; - PyObject *par_inputs_embeds = python_pars[3]; - PyObject *par_past_key_values_length = python_pars[4]; - PyObject *var_combined_attention_mask = NULL; - PyObject *var_expanded_attn_mask = NULL; - struct Nuitka_FrameObject *frame_7ec521dc71dd8971217328f7e27574e8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_7ec521dc71dd8971217328f7e27574e8 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - assert(var_combined_attention_mask == NULL); - Py_INCREF(tmp_assign_source_1); - var_combined_attention_mask = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_7ec521dc71dd8971217328f7e27574e8)) { - Py_XDECREF(cache_frame_7ec521dc71dd8971217328f7e27574e8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7ec521dc71dd8971217328f7e27574e8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7ec521dc71dd8971217328f7e27574e8 = MAKE_FUNCTION_FRAME(codeobj_7ec521dc71dd8971217328f7e27574e8, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7ec521dc71dd8971217328f7e27574e8->m_type_description == NULL); - frame_7ec521dc71dd8971217328f7e27574e8 = cache_frame_7ec521dc71dd8971217328f7e27574e8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7ec521dc71dd8971217328f7e27574e8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7ec521dc71dd8971217328f7e27574e8) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_input_shape); - tmp_expression_name_1 = par_input_shape; - tmp_subscript_name_1 = mod_consts[66]; - tmp_compexpr_left_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, -1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[12]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 447; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 447; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_3; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[166]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[166]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 448; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input_shape); - tmp_tuple_element_1 = par_input_shape; - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_2; - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_inputs_embeds); - tmp_expression_name_2 = par_inputs_embeds; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[16]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 450; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_1 = mod_consts[6]; - if (par_inputs_embeds == NULL) { - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 451; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_inputs_embeds; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[6]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 451; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[23]; - CHECK_OBJECT(par_past_key_values_length); - tmp_dict_value_1 = par_past_key_values_length; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_7ec521dc71dd8971217328f7e27574e8->m_frame.f_lineno = 448; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 448; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_combined_attention_mask; - assert(old != NULL); - var_combined_attention_mask = tmp_assign_source_2; - Py_DECREF(old); - } - - } - branch_no_1:; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_2 = par_attention_mask; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_7; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[168]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[168]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_attention_mask); - tmp_tuple_element_2 = par_attention_mask; - tmp_args_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_5; - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - if (par_inputs_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_5 = par_inputs_embeds; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[16]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_name_2, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_dict_key_2 = mod_consts[19]; - CHECK_OBJECT(par_input_shape); - tmp_expression_name_6 = par_input_shape; - tmp_subscript_name_2 = mod_consts[66]; - tmp_dict_value_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_2, -1); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_7ec521dc71dd8971217328f7e27574e8->m_frame.f_lineno = 457; - tmp_expression_name_4 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[15]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_inputs_embeds == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 458; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_inputs_embeds; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[6]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 458; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_7ec521dc71dd8971217328f7e27574e8->m_frame.f_lineno = 457; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 457; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_expanded_attn_mask == NULL); - var_expanded_attn_mask = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_combined_attention_mask); - tmp_compexpr_left_3 = var_combined_attention_mask; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(var_expanded_attn_mask); - tmp_assign_source_4 = var_expanded_attn_mask; - Py_INCREF(tmp_assign_source_4); - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(var_expanded_attn_mask); - tmp_left_name_1 = var_expanded_attn_mask; - CHECK_OBJECT(var_combined_attention_mask); - tmp_right_name_1 = var_combined_attention_mask; - tmp_assign_source_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - { - PyObject *old = var_combined_attention_mask; - var_combined_attention_mask = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - branch_no_2:; - if (var_combined_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[169]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 464; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_combined_attention_mask; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ec521dc71dd8971217328f7e27574e8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ec521dc71dd8971217328f7e27574e8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ec521dc71dd8971217328f7e27574e8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7ec521dc71dd8971217328f7e27574e8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7ec521dc71dd8971217328f7e27574e8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7ec521dc71dd8971217328f7e27574e8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7ec521dc71dd8971217328f7e27574e8, - type_description_1, - par_self, - par_attention_mask, - par_input_shape, - par_inputs_embeds, - par_past_key_values_length, - var_combined_attention_mask, - var_expanded_attn_mask - ); - - - // Release cached frame if used for exception. - if (frame_7ec521dc71dd8971217328f7e27574e8 == cache_frame_7ec521dc71dd8971217328f7e27574e8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7ec521dc71dd8971217328f7e27574e8); - cache_frame_7ec521dc71dd8971217328f7e27574e8 = NULL; - } - - assertFrameObject(frame_7ec521dc71dd8971217328f7e27574e8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_attention_mask); - Py_DECREF(par_attention_mask); - par_attention_mask = NULL; - CHECK_OBJECT(par_input_shape); - Py_DECREF(par_input_shape); - par_input_shape = NULL; - Py_XDECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - CHECK_OBJECT(par_past_key_values_length); - Py_DECREF(par_past_key_values_length); - par_past_key_values_length = NULL; - Py_XDECREF(var_combined_attention_mask); - var_combined_attention_mask = NULL; - Py_XDECREF(var_expanded_attn_mask); - var_expanded_attn_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_attention_mask); - Py_DECREF(par_attention_mask); - par_attention_mask = NULL; - CHECK_OBJECT(par_input_shape); - Py_DECREF(par_input_shape); - par_input_shape = NULL; - Py_XDECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - CHECK_OBJECT(par_past_key_values_length); - Py_DECREF(par_past_key_values_length); - par_past_key_values_length = NULL; - Py_XDECREF(var_combined_attention_mask); - var_combined_attention_mask = NULL; - Py_XDECREF(var_expanded_attn_mask); - var_expanded_attn_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__22_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_past_key_values = python_pars[4]; - PyObject *par_inputs_embeds = python_pars[5]; - PyObject *par_query_embeds = python_pars[6]; - PyObject *par_use_cache = python_pars[7]; - struct Nuitka_CellObject *par_output_attentions = Nuitka_Cell_New1(python_pars[8]); - PyObject *par_output_hidden_states = python_pars[9]; - PyObject *par_return_dict = python_pars[10]; - PyObject *var_batch_size = NULL; - PyObject *var_seq_length = NULL; - PyObject *var__ = NULL; - PyObject *var_seq_length_with_past = NULL; - PyObject *var_past_key_values_length = NULL; - PyObject *var_device = NULL; - PyObject *var_hidden_states = NULL; - PyObject *var_all_hidden_states = NULL; - PyObject *var_all_self_attns = NULL; - PyObject *var_next_decoder_cache = NULL; - PyObject *var_idx = NULL; - PyObject *var_decoder_layer = NULL; - PyObject *var_past_key_value = NULL; - PyObject *var_create_custom_forward = NULL; - PyObject *var_layer_outputs = NULL; - PyObject *var_next_cache = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_genexpr_1__$0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__element_3 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_tuple_unpack_4__element_1 = NULL; - PyObject *tmp_tuple_unpack_4__element_2 = NULL; - PyObject *tmp_tuple_unpack_4__source_iter = NULL; - struct Nuitka_FrameObject *frame_f85cccd268d3146046e93cf36289e67a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - bool tmp_result; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_f85cccd268d3146046e93cf36289e67a = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f85cccd268d3146046e93cf36289e67a)) { - Py_XDECREF(cache_frame_f85cccd268d3146046e93cf36289e67a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f85cccd268d3146046e93cf36289e67a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f85cccd268d3146046e93cf36289e67a = MAKE_FUNCTION_FRAME(codeobj_f85cccd268d3146046e93cf36289e67a, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f85cccd268d3146046e93cf36289e67a->m_type_description == NULL); - frame_f85cccd268d3146046e93cf36289e67a = cache_frame_f85cccd268d3146046e93cf36289e67a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f85cccd268d3146046e93cf36289e67a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f85cccd268d3146046e93cf36289e67a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(Nuitka_Cell_GET(par_output_attentions)); - tmp_compexpr_left_1 = Nuitka_Cell_GET(par_output_attentions); - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 480; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assign_source_1 = Nuitka_Cell_GET(par_output_attentions); - Py_INCREF(tmp_assign_source_1); - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[85]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[141]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 480; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - { - PyObject *old = Nuitka_Cell_GET(par_output_attentions); - PyCell_SET(par_output_attentions, tmp_assign_source_1); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(par_output_hidden_states); - tmp_compexpr_left_2 = par_output_hidden_states; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(par_output_hidden_states); - tmp_assign_source_2 = par_output_hidden_states; - Py_INCREF(tmp_assign_source_2); - goto condexpr_end_2; - condexpr_false_2:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 482; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[85]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[170]); - Py_DECREF(tmp_expression_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 482; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_2:; - { - PyObject *old = par_output_hidden_states; - assert(old != NULL); - par_output_hidden_states = tmp_assign_source_2; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(par_use_cache); - tmp_compexpr_left_3 = par_use_cache; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(par_use_cache); - tmp_assign_source_3 = par_use_cache; - Py_INCREF(tmp_assign_source_3); - goto condexpr_end_3; - condexpr_false_3:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 484; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[85]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[142]); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 484; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_3:; - { - PyObject *old = par_use_cache; - assert(old != NULL); - par_use_cache = tmp_assign_source_3; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(par_return_dict); - tmp_compexpr_left_4 = par_return_dict; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_4 != false) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(par_return_dict); - tmp_assign_source_4 = par_return_dict; - Py_INCREF(tmp_assign_source_4); - goto condexpr_end_4; - condexpr_false_4:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 486; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[85]); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[171]); - Py_DECREF(tmp_expression_name_7); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 486; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_4:; - { - PyObject *old = par_return_dict; - assert(old != NULL); - par_return_dict = tmp_assign_source_4; - Py_DECREF(old); - } - - } - { - bool tmp_condition_result_5; - int tmp_and_left_truth_1; - bool tmp_and_left_value_1; - bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(par_input_ids); - tmp_compexpr_left_5 = par_input_ids; - tmp_compexpr_right_5 = Py_None; - tmp_and_left_value_1 = (tmp_compexpr_left_5 != tmp_compexpr_right_5) ? true : false; - tmp_and_left_truth_1 = tmp_and_left_value_1 != false ? 1 : 0; - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_inputs_embeds); - tmp_compexpr_left_6 = par_inputs_embeds; - tmp_compexpr_right_6 = Py_None; - tmp_and_right_value_1 = (tmp_compexpr_left_6 != tmp_compexpr_right_6) ? true : false; - tmp_condition_result_5 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_5 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_5 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - tmp_make_exception_arg_1 = mod_consts[172]; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 490; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 490; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(par_input_ids); - tmp_compexpr_left_7 = par_input_ids; - tmp_compexpr_right_7 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_7 != tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(par_input_ids); - tmp_expression_name_9 = par_input_ids; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[65]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_5 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 492; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_5; - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 492; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 492; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_7; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 492; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[0]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 492; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_8); - var_batch_size = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_2; - assert(var_seq_length == NULL); - Py_INCREF(tmp_assign_source_9); - var_seq_length = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - goto branch_end_2; - branch_no_2:; - { - bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(par_inputs_embeds); - tmp_compexpr_left_8 = par_inputs_embeds; - tmp_compexpr_right_8 = Py_None; - tmp_condition_result_7 = (tmp_compexpr_left_8 != tmp_compexpr_right_8) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(par_inputs_embeds); - tmp_expression_name_10 = par_inputs_embeds; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[65]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 494; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_10 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 494; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_10; - } - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_3, 0, 3); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 494; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_12 = UNPACK_NEXT(tmp_unpack_4, 1, 3); - if (tmp_assign_source_12 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 494; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_13 = UNPACK_NEXT(tmp_unpack_5, 2, 3); - if (tmp_assign_source_13 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 494; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_3 == NULL); - tmp_tuple_unpack_2__element_3 = tmp_assign_source_13; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 494; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[103]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 494; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_14 = tmp_tuple_unpack_2__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_14); - var_batch_size = tmp_assign_source_14; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_15 = tmp_tuple_unpack_2__element_2; - assert(var_seq_length == NULL); - Py_INCREF(tmp_assign_source_15); - var_seq_length = tmp_assign_source_15; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_3; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_16); - var__ = tmp_assign_source_16; - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_make_exception_arg_2; - tmp_make_exception_arg_2 = mod_consts[173]; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 496; - tmp_raise_type_2 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_2); - assert(!(tmp_raise_type_2 == NULL)); - exception_type = tmp_raise_type_2; - exception_lineno = 496; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_end_3:; - branch_end_2:; - branch_end_1:; - { - bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - if (par_inputs_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 498; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_9 = par_inputs_embeds; - tmp_compexpr_right_9 = Py_None; - tmp_condition_result_8 = (tmp_compexpr_left_9 == tmp_compexpr_right_9) ? true : false; - if (tmp_condition_result_8 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 499; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[159]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 499; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_input_ids == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[174]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 499; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_input_ids; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 499; - tmp_assign_source_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 499; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_inputs_embeds; - par_inputs_embeds = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - branch_no_4:; - { - bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - CHECK_OBJECT(par_query_embeds); - tmp_compexpr_left_10 = par_query_embeds; - tmp_compexpr_right_10 = Py_None; - tmp_condition_result_9 = (tmp_compexpr_left_10 != tmp_compexpr_right_10) ? true : false; - if (tmp_condition_result_9 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_list_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 501; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[17]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 501; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_query_embeds); - tmp_list_element_1 = par_query_embeds; - tmp_tuple_element_1 = PyList_New(2); - PyList_SET_ITEM0(tmp_tuple_element_1, 0, tmp_list_element_1); - if (par_inputs_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 501; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto list_build_exception_1; - } - - tmp_list_element_1 = par_inputs_embeds; - PyList_SET_ITEM0(tmp_tuple_element_1, 1, tmp_list_element_1); - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_tuple_element_1); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[175]); - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 501; - tmp_assign_source_18 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 501; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_inputs_embeds; - par_inputs_embeds = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_iter_arg_3; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(par_inputs_embeds); - tmp_expression_name_13 = par_inputs_embeds; - tmp_iter_arg_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[65]); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 502; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_19 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 502; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_6; - } - assert(tmp_tuple_unpack_3__source_iter == NULL); - tmp_tuple_unpack_3__source_iter = tmp_assign_source_19; - } - // Tried code: - { - PyObject *tmp_assign_source_20; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_20 = UNPACK_NEXT(tmp_unpack_6, 0, 3); - if (tmp_assign_source_20 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 502; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_1 == NULL); - tmp_tuple_unpack_3__element_1 = tmp_assign_source_20; - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_21 = UNPACK_NEXT(tmp_unpack_7, 1, 3); - if (tmp_assign_source_21 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 502; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_2 == NULL); - tmp_tuple_unpack_3__element_2 = tmp_assign_source_21; - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_22 = UNPACK_NEXT(tmp_unpack_8, 2, 3); - if (tmp_assign_source_22 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 502; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_3 == NULL); - tmp_tuple_unpack_3__element_3 = tmp_assign_source_22; - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 502; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[103]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 502; - goto try_except_handler_7; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_23; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_23 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_batch_size; - var_batch_size = tmp_assign_source_23; - Py_INCREF(var_batch_size); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_24 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_seq_length; - var_seq_length = tmp_assign_source_24; - Py_INCREF(var_seq_length); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - { - PyObject *tmp_assign_source_25; - CHECK_OBJECT(tmp_tuple_unpack_3__element_3); - tmp_assign_source_25 = tmp_tuple_unpack_3__element_3; - { - PyObject *old = var__; - var__ = tmp_assign_source_25; - Py_INCREF(var__); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - branch_no_5:; - { - PyObject *tmp_assign_source_26; - if (var_seq_length == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[176]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 504; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assign_source_26 = var_seq_length; - assert(var_seq_length_with_past == NULL); - Py_INCREF(tmp_assign_source_26); - var_seq_length_with_past = tmp_assign_source_26; - } - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = mod_consts[14]; - assert(var_past_key_values_length == NULL); - Py_INCREF(tmp_assign_source_27); - var_past_key_values_length = tmp_assign_source_27; - } - { - bool tmp_condition_result_10; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - CHECK_OBJECT(par_past_key_values); - tmp_compexpr_left_11 = par_past_key_values; - tmp_compexpr_right_11 = Py_None; - tmp_condition_result_10 = (tmp_compexpr_left_11 != tmp_compexpr_right_11) ? true : false; - if (tmp_condition_result_10 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_28; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_1; - PyObject *tmp_subscript_name_2; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(par_past_key_values); - tmp_expression_name_17 = par_past_key_values; - tmp_subscript_name_1 = mod_consts[14]; - tmp_expression_name_16 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_17, tmp_subscript_name_1, 0); - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 508; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[14]; - tmp_expression_name_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_2, 0); - Py_DECREF(tmp_expression_name_16); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 508; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[65]); - Py_DECREF(tmp_expression_name_15); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 508; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[49]; - tmp_assign_source_28 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_3, 2); - Py_DECREF(tmp_expression_name_14); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 508; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_past_key_values_length; - assert(old != NULL); - var_past_key_values_length = tmp_assign_source_28; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_seq_length_with_past); - tmp_left_name_1 = var_seq_length_with_past; - CHECK_OBJECT(var_past_key_values_length); - tmp_right_name_1 = var_past_key_values_length; - tmp_assign_source_29 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 509; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_seq_length_with_past; - var_seq_length_with_past = tmp_assign_source_29; - Py_XDECREF(old); - } - - } - branch_no_6:; - { - bool tmp_condition_result_11; - PyObject *tmp_compexpr_left_12; - PyObject *tmp_compexpr_right_12; - CHECK_OBJECT(par_position_ids); - tmp_compexpr_left_12 = par_position_ids; - tmp_compexpr_right_12 = Py_None; - tmp_condition_result_11 = (tmp_compexpr_left_12 == tmp_compexpr_right_12) ? true : false; - if (tmp_condition_result_11 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_assign_source_30; - bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_13; - PyObject *tmp_compexpr_right_13; - PyObject *tmp_expression_name_18; - PyObject *tmp_expression_name_19; - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[174]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 512; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_13 = par_input_ids; - tmp_compexpr_right_13 = Py_None; - tmp_condition_result_12 = (tmp_compexpr_left_13 != tmp_compexpr_right_13) ? true : false; - if (tmp_condition_result_12 != false) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - if (par_input_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[174]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 512; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_18 = par_input_ids; - tmp_assign_source_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[6]); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_5; - condexpr_false_5:; - if (par_inputs_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 512; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_19 = par_inputs_embeds; - tmp_assign_source_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[6]); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 512; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_5:; - assert(var_device == NULL); - var_device = tmp_assign_source_30; - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_21; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[7]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_past_key_values_length == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_past_key_values_length; - tmp_args_name_2 = PyTuple_New(2); - { - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - if (var_seq_length == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[176]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_left_name_2 = var_seq_length; - if (var_past_key_values_length == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 514; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_right_name_2 = var_past_key_values_length; - tmp_tuple_element_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 514; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_2, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_1 = mod_consts[16]; - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 514; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[177]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 514; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[6]; - CHECK_OBJECT(var_device); - tmp_dict_value_1 = var_device; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 513; - tmp_assign_source_31 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 513; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_position_ids; - assert(old != NULL); - par_position_ids = tmp_assign_source_31; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_22; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(par_position_ids); - tmp_called_instance_1 = par_position_ids; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 516; - tmp_expression_name_22 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[178], - &PyTuple_GET_ITEM(mod_consts[179], 0) - ); - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[13]); - Py_DECREF(tmp_expression_name_22); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[66]; - if (var_seq_length == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[176]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 516; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_seq_length; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 516; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_32 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 516; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_position_ids; - par_position_ids = tmp_assign_source_32; - Py_XDECREF(old); - } - - } - goto branch_end_7; - branch_no_7:; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(par_position_ids); - tmp_expression_name_23 = par_position_ids; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[13]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = mod_consts[66]; - if (var_seq_length == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[176]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 518; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = var_seq_length; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 518; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_called_instance_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 518; - tmp_assign_source_33 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[177]); - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 518; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_position_ids; - par_position_ids = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - branch_end_7:; - { - bool tmp_condition_result_13; - PyObject *tmp_compexpr_left_14; - PyObject *tmp_compexpr_right_14; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_14 = par_attention_mask; - tmp_compexpr_right_14 = Py_None; - tmp_condition_result_13 = (tmp_compexpr_left_14 == tmp_compexpr_right_14) ? true : false; - if (tmp_condition_result_13 != false) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_25; - tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_24 == NULL)) { - tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[35]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_batch_size == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[180]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 523; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_4 = var_batch_size; - tmp_tuple_element_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_3, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_seq_length_with_past); - tmp_tuple_element_4 = var_seq_length_with_past; - PyTuple_SET_ITEM0(tmp_tuple_element_3, 1, tmp_tuple_element_4); - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_dict_key_2 = mod_consts[16]; - tmp_expression_name_25 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_25 == NULL)) { - tmp_expression_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 523; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[29]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - - exception_lineno = 523; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_26; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[6]; - if (par_inputs_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 523; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_26 = par_inputs_embeds; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[6]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 523; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 522; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 522; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_attention_mask; - assert(old != NULL); - par_attention_mask = tmp_assign_source_34; - Py_DECREF(old); - } - - } - branch_no_8:; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_tuple_element_5; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 525; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_27 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[181]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 525; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_attention_mask); - tmp_args_element_name_6 = par_attention_mask; - if (var_batch_size == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[180]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 526; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_5 = var_batch_size; - tmp_args_element_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_7, 0, tmp_tuple_element_5); - if (var_seq_length == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[176]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 526; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_5 = var_seq_length; - PyTuple_SET_ITEM0(tmp_args_element_name_7, 1, tmp_tuple_element_5); - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_7); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - if (par_inputs_embeds == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 526; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_8 = par_inputs_embeds; - if (var_past_key_values_length == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 526; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_9 = var_past_key_values_length; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 525; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_35 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 525; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_attention_mask; - par_attention_mask = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_36; - if (par_inputs_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[167]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 529; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assign_source_36 = par_inputs_embeds; - assert(var_hidden_states == NULL); - Py_INCREF(tmp_assign_source_36); - var_hidden_states = tmp_assign_source_36; - } - { - nuitka_bool tmp_condition_result_14; - int tmp_and_left_truth_2; - nuitka_bool tmp_and_left_value_2; - nuitka_bool tmp_and_right_value_2; - PyObject *tmp_expression_name_28; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - PyObject *tmp_expression_name_29; - PyObject *tmp_attribute_value_2; - int tmp_truth_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_28 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[156]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_2 == 1) { - goto and_right_2; - } else { - goto and_left_2; - } - and_right_2:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_29 = par_self; - tmp_attribute_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[182]); - if (tmp_attribute_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_2); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_2); - - exception_lineno = 531; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_2); - tmp_condition_result_14 = tmp_and_right_value_2; - goto and_end_2; - and_left_2:; - tmp_condition_result_14 = tmp_and_left_value_2; - and_end_2:; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - nuitka_bool tmp_condition_result_15; - int tmp_truth_name_3; - CHECK_OBJECT(par_use_cache); - tmp_truth_name_3 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 532; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_15 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_called_instance_3; - PyObject *tmp_call_result_1; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[183]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[183]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 533; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 533; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[184], - &PyTuple_GET_ITEM(mod_consts[185], 0) - ); - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 533; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = Py_False; - { - PyObject *old = par_use_cache; - assert(old != NULL); - par_use_cache = tmp_assign_source_37; - Py_INCREF(par_use_cache); - Py_DECREF(old); - } - - } - branch_no_10:; - branch_no_9:; - { - PyObject *tmp_assign_source_38; - nuitka_bool tmp_condition_result_16; - int tmp_truth_name_4; - CHECK_OBJECT(par_output_hidden_states); - tmp_truth_name_4 = CHECK_IF_TRUE(par_output_hidden_states); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 539; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_16 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - tmp_assign_source_38 = mod_consts[186]; - goto condexpr_end_6; - condexpr_false_6:; - tmp_assign_source_38 = Py_None; - condexpr_end_6:; - assert(var_all_hidden_states == NULL); - Py_INCREF(tmp_assign_source_38); - var_all_hidden_states = tmp_assign_source_38; - } - { - PyObject *tmp_assign_source_39; - nuitka_bool tmp_condition_result_17; - int tmp_truth_name_5; - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 540; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_5 = CHECK_IF_TRUE(Nuitka_Cell_GET(par_output_attentions)); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 540; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_17 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - tmp_assign_source_39 = mod_consts[186]; - goto condexpr_end_7; - condexpr_false_7:; - tmp_assign_source_39 = Py_None; - condexpr_end_7:; - assert(var_all_self_attns == NULL); - Py_INCREF(tmp_assign_source_39); - var_all_self_attns = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - nuitka_bool tmp_condition_result_18; - int tmp_truth_name_6; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 541; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_6 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 541; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_18 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - tmp_assign_source_40 = mod_consts[186]; - goto condexpr_end_8; - condexpr_false_8:; - tmp_assign_source_40 = Py_None; - condexpr_end_8:; - assert(var_next_decoder_cache == NULL); - Py_INCREF(tmp_assign_source_40); - var_next_decoder_cache = tmp_assign_source_40; - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_iter_arg_4; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_10; - PyObject *tmp_expression_name_30; - tmp_called_name_8 = (PyObject *)&PyEnum_Type; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 543; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_30 = par_self; - tmp_args_element_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[163]); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 543; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 543; - tmp_iter_arg_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_10); - Py_DECREF(tmp_args_element_name_10); - if (tmp_iter_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 543; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_41 = MAKE_ITERATOR(tmp_iter_arg_4); - Py_DECREF(tmp_iter_arg_4); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 543; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_41; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_42; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_42 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_42 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 543; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_42; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_43; - PyObject *tmp_iter_arg_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_5 = tmp_for_loop_1__iter_value; - tmp_assign_source_43 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_5); - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 543; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_4__source_iter; - tmp_tuple_unpack_4__source_iter = tmp_assign_source_43; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_44; - PyObject *tmp_unpack_9; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_9 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_44 = UNPACK_NEXT(tmp_unpack_9, 0, 2); - if (tmp_assign_source_44 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 543; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_4__element_1; - tmp_tuple_unpack_4__element_1 = tmp_assign_source_44; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_45; - PyObject *tmp_unpack_10; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_10 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_45 = UNPACK_NEXT(tmp_unpack_10, 1, 2); - if (tmp_assign_source_45 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 543; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_4__element_2; - tmp_tuple_unpack_4__element_2 = tmp_assign_source_45; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_4; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_iterator_name_4 = tmp_tuple_unpack_4__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_4); assert(HAS_ITERNEXT(tmp_iterator_name_4)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_4)->tp_iternext)(tmp_iterator_name_4); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 543; - goto try_except_handler_10; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[0]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooocoooooooooooooooooo"; - exception_lineno = 543; - goto try_except_handler_10; - } - } - goto try_end_7; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_9; - // End of try: - try_end_7:; - goto try_end_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_8; - // End of try: - try_end_8:; - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - { - PyObject *tmp_assign_source_46; - CHECK_OBJECT(tmp_tuple_unpack_4__element_1); - tmp_assign_source_46 = tmp_tuple_unpack_4__element_1; - { - PyObject *old = var_idx; - var_idx = tmp_assign_source_46; - Py_INCREF(var_idx); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - - { - PyObject *tmp_assign_source_47; - CHECK_OBJECT(tmp_tuple_unpack_4__element_2); - tmp_assign_source_47 = tmp_tuple_unpack_4__element_2; - { - PyObject *old = var_decoder_layer; - var_decoder_layer = tmp_assign_source_47; - Py_INCREF(var_decoder_layer); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - { - nuitka_bool tmp_condition_result_19; - int tmp_truth_name_7; - if (par_output_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[170]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 544; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_truth_name_7 = CHECK_IF_TRUE(par_output_hidden_states); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 544; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_condition_result_19 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_assign_source_48; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_6; - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[187]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 545; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_left_name_3 = var_all_hidden_states; - if (var_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 545; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_tuple_element_6 = var_hidden_states; - tmp_right_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_3, 0, tmp_tuple_element_6); - tmp_result = BINARY_OPERATION_ADD_OBJECT_TUPLE_INPLACE(&tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 545; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_assign_source_48 = tmp_left_name_3; - var_all_hidden_states = tmp_assign_source_48; - - } - branch_no_11:; - { - PyObject *tmp_assign_source_49; - bool tmp_condition_result_20; - PyObject *tmp_compexpr_left_15; - PyObject *tmp_compexpr_right_15; - PyObject *tmp_expression_name_31; - PyObject *tmp_subscript_name_4; - if (par_past_key_values == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[188]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 547; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_compexpr_left_15 = par_past_key_values; - tmp_compexpr_right_15 = Py_None; - tmp_condition_result_20 = (tmp_compexpr_left_15 != tmp_compexpr_right_15) ? true : false; - if (tmp_condition_result_20 != false) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - if (par_past_key_values == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[188]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 547; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_expression_name_31 = par_past_key_values; - CHECK_OBJECT(var_idx); - tmp_subscript_name_4 = var_idx; - tmp_assign_source_49 = LOOKUP_SUBSCRIPT(tmp_expression_name_31, tmp_subscript_name_4); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 547; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - goto condexpr_end_9; - condexpr_false_9:; - tmp_assign_source_49 = Py_None; - Py_INCREF(tmp_assign_source_49); - condexpr_end_9:; - { - PyObject *old = var_past_key_value; - var_past_key_value = tmp_assign_source_49; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_21; - int tmp_and_left_truth_3; - nuitka_bool tmp_and_left_value_3; - nuitka_bool tmp_and_right_value_3; - PyObject *tmp_expression_name_32; - PyObject *tmp_attribute_value_3; - int tmp_truth_name_8; - PyObject *tmp_expression_name_33; - PyObject *tmp_attribute_value_4; - int tmp_truth_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_expression_name_32 = par_self; - tmp_attribute_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[156]); - if (tmp_attribute_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_attribute_value_3); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_3); - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_and_left_value_3 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_3); - tmp_and_left_truth_3 = tmp_and_left_value_3 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - if (tmp_and_left_truth_3 == 1) { - goto and_right_3; - } else { - goto and_left_3; - } - and_right_3:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_expression_name_33 = par_self; - tmp_attribute_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[182]); - if (tmp_attribute_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_truth_name_9 = CHECK_IF_TRUE(tmp_attribute_value_4); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_4); - - exception_lineno = 549; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_and_right_value_3 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_4); - tmp_condition_result_21 = tmp_and_right_value_3; - goto and_end_3; - and_left_3:; - tmp_condition_result_21 = tmp_and_left_value_3; - and_end_3:; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - PyObject *tmp_assign_source_50; - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = par_output_attentions; - Py_INCREF(tmp_closure_1[0]); - - tmp_assign_source_50 = MAKE_FUNCTION_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward(tmp_closure_1); - - { - PyObject *old = var_create_custom_forward; - var_create_custom_forward = tmp_assign_source_50; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_51; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_34; - PyObject *tmp_expression_name_35; - PyObject *tmp_expression_name_36; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_name_10; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - PyObject *tmp_args_element_name_16; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 558; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_expression_name_35 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[191]); - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 558; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_expression_name_34 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[192]); - Py_DECREF(tmp_expression_name_35); - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 558; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[192]); - Py_DECREF(tmp_expression_name_34); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 558; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - CHECK_OBJECT(var_create_custom_forward); - tmp_called_name_10 = var_create_custom_forward; - CHECK_OBJECT(var_decoder_layer); - tmp_args_element_name_12 = var_decoder_layer; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 559; - tmp_args_element_name_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_12); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 559; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - if (var_hidden_states == NULL) { - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 560; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_args_element_name_13 = var_hidden_states; - if (par_attention_mask == NULL) { - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[121]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 561; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_args_element_name_14 = par_attention_mask; - if (par_position_ids == NULL) { - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[139]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 562; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_args_element_name_15 = par_position_ids; - tmp_args_element_name_16 = Py_None; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 558; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15, tmp_args_element_name_16}; - tmp_assign_source_51 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_11); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 558; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - { - PyObject *old = var_layer_outputs; - var_layer_outputs = tmp_assign_source_51; - Py_XDECREF(old); - } - - } - goto branch_end_12; - branch_no_12:; - { - PyObject *tmp_assign_source_52; - PyObject *tmp_called_name_11; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - CHECK_OBJECT(var_decoder_layer); - tmp_called_name_11 = var_decoder_layer; - if (var_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 567; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_tuple_element_7 = var_hidden_states; - tmp_args_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_7); - tmp_dict_key_3 = mod_consts[121]; - if (par_attention_mask == NULL) { - Py_DECREF(tmp_args_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[121]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 568; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_dict_value_3 = par_attention_mask; - tmp_kwargs_name_4 = _PyDict_NewPresized( 5 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[139]; - if (par_position_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[139]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 569; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_3 = par_position_ids; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[140]; - CHECK_OBJECT(var_past_key_value); - tmp_dict_value_3 = var_past_key_value; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[141]; - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 571; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_3 = Nuitka_Cell_GET(par_output_attentions); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[142]; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 572; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_3 = par_use_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - goto try_except_handler_8; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 566; - tmp_assign_source_52 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 566; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - { - PyObject *old = var_layer_outputs; - var_layer_outputs = tmp_assign_source_52; - Py_XDECREF(old); - } - - } - branch_end_12:; - { - PyObject *tmp_assign_source_53; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_5; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_37 = var_layer_outputs; - tmp_subscript_name_5 = mod_consts[14]; - tmp_assign_source_53 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_37, tmp_subscript_name_5, 0); - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 575; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_53; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_22; - int tmp_truth_name_10; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 577; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_truth_name_10 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_10 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 577; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_condition_result_22 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - { - PyObject *tmp_assign_source_54; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_expression_name_38; - PyObject *tmp_subscript_name_6; - nuitka_bool tmp_condition_result_23; - int tmp_truth_name_11; - if (var_next_decoder_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[193]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 578; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_left_name_4 = var_next_decoder_cache; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_38 = var_layer_outputs; - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 578; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_truth_name_11 = CHECK_IF_TRUE(Nuitka_Cell_GET(par_output_attentions)); - if (tmp_truth_name_11 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 578; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_condition_result_23 = tmp_truth_name_11 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - tmp_subscript_name_6 = mod_consts[49]; - goto condexpr_end_10; - condexpr_false_10:; - tmp_subscript_name_6 = mod_consts[12]; - condexpr_end_10:; - tmp_tuple_element_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_38, tmp_subscript_name_6); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 578; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_right_name_4 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_8); - tmp_result = BINARY_OPERATION_ADD_OBJECT_TUPLE_INPLACE(&tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 578; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_assign_source_54 = tmp_left_name_4; - var_next_decoder_cache = tmp_assign_source_54; - - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_24; - int tmp_truth_name_12; - if (Nuitka_Cell_GET(par_output_attentions) == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 580; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_truth_name_12 = CHECK_IF_TRUE(Nuitka_Cell_GET(par_output_attentions)); - if (tmp_truth_name_12 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 580; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_condition_result_24 = tmp_truth_name_12 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_55; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_39; - PyObject *tmp_subscript_name_7; - if (var_all_self_attns == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[194]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 581; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - - tmp_left_name_5 = var_all_self_attns; - CHECK_OBJECT(var_layer_outputs); - tmp_expression_name_39 = var_layer_outputs; - tmp_subscript_name_7 = mod_consts[12]; - tmp_tuple_element_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_39, tmp_subscript_name_7, 1); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 581; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_right_name_5 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_9); - tmp_result = BINARY_OPERATION_ADD_OBJECT_TUPLE_INPLACE(&tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 581; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - tmp_assign_source_55 = tmp_left_name_5; - var_all_self_attns = tmp_assign_source_55; - - } - branch_no_14:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 543; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto try_except_handler_8; - } - goto loop_start_1; - loop_end_1:; - goto try_end_9; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_56; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_40; - PyObject *tmp_args_element_name_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 583; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_40 = par_self; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[164]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 583; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_hidden_states == NULL) { - Py_DECREF(tmp_called_name_12); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[44]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 583; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_17 = var_hidden_states; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 583; - tmp_assign_source_56 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_17); - Py_DECREF(tmp_called_name_12); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 583; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_hidden_states; - var_hidden_states = tmp_assign_source_56; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_25; - int tmp_truth_name_13; - if (par_output_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[170]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 586; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_13 = CHECK_IF_TRUE(par_output_hidden_states); - if (tmp_truth_name_13 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 586; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_25 = tmp_truth_name_13 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_assign_source_57; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_10; - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[187]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 587; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_6 = var_all_hidden_states; - CHECK_OBJECT(var_hidden_states); - tmp_tuple_element_10 = var_hidden_states; - tmp_right_name_6 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_right_name_6, 0, tmp_tuple_element_10); - tmp_result = BINARY_OPERATION_ADD_OBJECT_TUPLE_INPLACE(&tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 587; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_57 = tmp_left_name_6; - var_all_hidden_states = tmp_assign_source_57; - - } - branch_no_15:; - { - PyObject *tmp_assign_source_58; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_14; - if (par_use_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[142]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 589; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_truth_name_14 = CHECK_IF_TRUE(par_use_cache); - if (tmp_truth_name_14 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 589; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_26 = tmp_truth_name_14 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - if (var_next_decoder_cache == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[193]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 589; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assign_source_58 = var_next_decoder_cache; - goto condexpr_end_11; - condexpr_false_11:; - tmp_assign_source_58 = Py_None; - condexpr_end_11:; - assert(var_next_cache == NULL); - Py_INCREF(tmp_assign_source_58); - var_next_cache = tmp_assign_source_58; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_operand_name_1; - CHECK_OBJECT(par_return_dict); - tmp_operand_name_1 = par_return_dict; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 590; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_27 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - { - PyObject *tmp_tuple_arg_1; - { - PyObject *tmp_assign_source_59; - PyObject *tmp_iter_arg_6; - PyObject *tmp_tuple_element_11; - CHECK_OBJECT(var_hidden_states); - tmp_tuple_element_11 = var_hidden_states; - tmp_iter_arg_6 = PyTuple_New(4); - PyTuple_SET_ITEM0(tmp_iter_arg_6, 0, tmp_tuple_element_11); - CHECK_OBJECT(var_next_cache); - tmp_tuple_element_11 = var_next_cache; - PyTuple_SET_ITEM0(tmp_iter_arg_6, 1, tmp_tuple_element_11); - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[187]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 591; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_tuple_element_11 = var_all_hidden_states; - PyTuple_SET_ITEM0(tmp_iter_arg_6, 2, tmp_tuple_element_11); - if (var_all_self_attns == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[194]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 591; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_tuple_element_11 = var_all_self_attns; - PyTuple_SET_ITEM0(tmp_iter_arg_6, 3, tmp_tuple_element_11); - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_iter_arg_6); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_assign_source_59 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_6); - Py_DECREF(tmp_iter_arg_6); - assert(!(tmp_assign_source_59 == NULL)); - assert(tmp_genexpr_1__$0 == NULL); - tmp_genexpr_1__$0 = tmp_assign_source_59; - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_2[1]; - - tmp_closure_2[0] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_tuple_arg_1 = MAKE_GENERATOR_models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr(tmp_closure_2); - - goto try_return_handler_11; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_1; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - tmp_return_value = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 591; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_16:; - { - PyObject *tmp_called_name_13; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - tmp_called_name_13 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[195]); - - if (unlikely(tmp_called_name_13 == NULL)) { - tmp_called_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[195]); - } - - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_4 = mod_consts[196]; - CHECK_OBJECT(var_hidden_states); - tmp_dict_value_4 = var_hidden_states; - tmp_kwargs_name_5 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[188]; - CHECK_OBJECT(var_next_cache); - tmp_dict_value_4 = var_next_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[44]; - if (var_all_hidden_states == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[187]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 595; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_dict_value_4 = var_all_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[197]; - if (var_all_self_attns == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[194]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 596; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto dict_build_exception_3; - } - - tmp_dict_value_4 = var_all_self_attns; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - goto dict_build_noexception_3; - // Exception handling pass through code for dict_build: - dict_build_exception_3:; - Py_DECREF(tmp_kwargs_name_5); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_3:; - frame_f85cccd268d3146046e93cf36289e67a->m_frame.f_lineno = 592; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_13, tmp_kwargs_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 592; - type_description_1 = "oooooooocoooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f85cccd268d3146046e93cf36289e67a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f85cccd268d3146046e93cf36289e67a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f85cccd268d3146046e93cf36289e67a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f85cccd268d3146046e93cf36289e67a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f85cccd268d3146046e93cf36289e67a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f85cccd268d3146046e93cf36289e67a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f85cccd268d3146046e93cf36289e67a, - type_description_1, - par_self, - par_input_ids, - par_attention_mask, - par_position_ids, - par_past_key_values, - par_inputs_embeds, - par_query_embeds, - par_use_cache, - par_output_attentions, - par_output_hidden_states, - par_return_dict, - var_batch_size, - var_seq_length, - var__, - var_seq_length_with_past, - var_past_key_values_length, - var_device, - var_hidden_states, - var_all_hidden_states, - var_all_self_attns, - var_next_decoder_cache, - var_idx, - var_decoder_layer, - var_past_key_value, - var_create_custom_forward, - var_layer_outputs, - var_next_cache - ); - - - // Release cached frame if used for exception. - if (frame_f85cccd268d3146046e93cf36289e67a == cache_frame_f85cccd268d3146046e93cf36289e67a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f85cccd268d3146046e93cf36289e67a); - cache_frame_f85cccd268d3146046e93cf36289e67a = NULL; - } - - assertFrameObject(frame_f85cccd268d3146046e93cf36289e67a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - CHECK_OBJECT(par_return_dict); - Py_DECREF(par_return_dict); - par_return_dict = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_seq_length_with_past); - var_seq_length_with_past = NULL; - Py_XDECREF(var_past_key_values_length); - var_past_key_values_length = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_all_hidden_states); - var_all_hidden_states = NULL; - Py_XDECREF(var_all_self_attns); - var_all_self_attns = NULL; - Py_XDECREF(var_next_decoder_cache); - var_next_decoder_cache = NULL; - Py_XDECREF(var_idx); - var_idx = NULL; - Py_XDECREF(var_decoder_layer); - var_decoder_layer = NULL; - Py_XDECREF(var_past_key_value); - var_past_key_value = NULL; - Py_XDECREF(var_create_custom_forward); - var_create_custom_forward = NULL; - Py_XDECREF(var_layer_outputs); - var_layer_outputs = NULL; - Py_XDECREF(var_next_cache); - var_next_cache = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - CHECK_OBJECT(par_output_attentions); - Py_DECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - CHECK_OBJECT(par_return_dict); - Py_DECREF(par_return_dict); - par_return_dict = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_seq_length); - var_seq_length = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_seq_length_with_past); - var_seq_length_with_past = NULL; - Py_XDECREF(var_past_key_values_length); - var_past_key_values_length = NULL; - Py_XDECREF(var_device); - var_device = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_all_hidden_states); - var_all_hidden_states = NULL; - Py_XDECREF(var_all_self_attns); - var_all_self_attns = NULL; - Py_XDECREF(var_next_decoder_cache); - var_next_decoder_cache = NULL; - Py_XDECREF(var_idx); - var_idx = NULL; - Py_XDECREF(var_decoder_layer); - var_decoder_layer = NULL; - Py_XDECREF(var_past_key_value); - var_past_key_value = NULL; - Py_XDECREF(var_create_custom_forward); - var_create_custom_forward = NULL; - Py_XDECREF(var_layer_outputs); - var_layer_outputs = NULL; - Py_XDECREF(var_next_cache); - var_next_cache = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - struct Nuitka_CellObject *par_module = Nuitka_Cell_New1(python_pars[0]); - PyObject *var_custom_forward = NULL; - PyObject *tmp_return_value = NULL; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - struct Nuitka_CellObject *tmp_closure_1[2]; - - tmp_closure_1[0] = par_module; - Py_INCREF(tmp_closure_1[0]); - tmp_closure_1[1] = self->m_closure[0]; - Py_INCREF(tmp_closure_1[1]); - - tmp_assign_source_1 = MAKE_FUNCTION_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(tmp_closure_1); - - assert(var_custom_forward == NULL); - var_custom_forward = tmp_assign_source_1; - } - // Tried code: - CHECK_OBJECT(var_custom_forward); - tmp_return_value = var_custom_forward; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_module); - Py_DECREF(par_module); - par_module = NULL; - CHECK_OBJECT(var_custom_forward); - Py_DECREF(var_custom_forward); - var_custom_forward = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_inputs = python_pars[0]; - struct Nuitka_FrameObject *frame_b4f214bd3cde2ab1b0be661bbce2cf57; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57)) { - Py_XDECREF(cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57 = MAKE_FUNCTION_FRAME(codeobj_b4f214bd3cde2ab1b0be661bbce2cf57, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57->m_type_description == NULL); - frame_b4f214bd3cde2ab1b0be661bbce2cf57 = cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b4f214bd3cde2ab1b0be661bbce2cf57); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b4f214bd3cde2ab1b0be661bbce2cf57) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dircall_arg1_2; - PyObject *tmp_tuple_element_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[150]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 554; - type_description_1 = "occ"; - goto frame_exception_exit_1; - } - - tmp_dircall_arg1_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_inputs); - tmp_tuple_element_1 = par_inputs; - tmp_dircall_arg1_2 = PyTuple_New(3); - { - PyObject *tmp_tuple_element_2; - PyTuple_SET_ITEM0(tmp_dircall_arg1_2, 0, tmp_tuple_element_1); - if (Nuitka_Cell_GET(self->m_closure[1]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 554; - type_description_1 = "occ"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = Nuitka_Cell_GET(self->m_closure[1]); - tmp_tuple_element_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - PyTuple_SET_ITEM(tmp_dircall_arg1_2, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[200]; - PyTuple_SET_ITEM0(tmp_dircall_arg1_2, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_dircall_arg1_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_dircall_arg2_1 = impl_models$$$function__4__unpack_list(dir_call_args); - } - if (tmp_dircall_arg2_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 554; - type_description_1 = "occ"; - goto frame_exception_exit_1; - } - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__2_complex_call_helper_star_list(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 554; - type_description_1 = "occ"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b4f214bd3cde2ab1b0be661bbce2cf57); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b4f214bd3cde2ab1b0be661bbce2cf57); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b4f214bd3cde2ab1b0be661bbce2cf57); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b4f214bd3cde2ab1b0be661bbce2cf57, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b4f214bd3cde2ab1b0be661bbce2cf57->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b4f214bd3cde2ab1b0be661bbce2cf57, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b4f214bd3cde2ab1b0be661bbce2cf57, - type_description_1, - par_inputs, - self->m_closure[0], - self->m_closure[1] - ); - - - // Release cached frame if used for exception. - if (frame_b4f214bd3cde2ab1b0be661bbce2cf57 == cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57); - cache_frame_b4f214bd3cde2ab1b0be661bbce2cf57 = NULL; - } - - assertFrameObject(frame_b4f214bd3cde2ab1b0be661bbce2cf57); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_inputs); - Py_DECREF(par_inputs); - par_inputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_inputs); - Py_DECREF(par_inputs); - par_inputs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr_locals { - PyObject *var_v; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr_locals *generator_heap = (struct models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_v = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_043489d57f895ee9a5149b547d2710e3, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[0])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[0]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "No"; - generator_heap->exception_lineno = 591; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_v; - generator_heap->var_v = tmp_assign_source_2; - Py_INCREF(generator_heap->var_v); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(generator_heap->var_v); - tmp_compexpr_left_1 = generator_heap->var_v; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_expression_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - CHECK_OBJECT(generator_heap->var_v); - tmp_expression_name_1 = generator_heap->var_v; - Py_INCREF(tmp_expression_name_1); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 591; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 591; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_v - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_v); - generator_heap->var_v = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_v); - generator_heap->var_v = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr_context, - module_models$modeling_llama, - mod_consts[201], -#if PYTHON_VERSION >= 0x350 - mod_consts[202], -#endif - codeobj_043489d57f895ee9a5149b547d2710e3, - closure, - 1, - sizeof(struct models$modeling_llama$$$function__22_forward$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$modeling_llama$$$function__23___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_config = python_pars[1]; - struct Nuitka_FrameObject *frame_af13abb0cc2351b5f5b393e2acc0b056; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_af13abb0cc2351b5f5b393e2acc0b056 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_af13abb0cc2351b5f5b393e2acc0b056)) { - Py_XDECREF(cache_frame_af13abb0cc2351b5f5b393e2acc0b056); - -#if _DEBUG_REFCOUNTS - if (cache_frame_af13abb0cc2351b5f5b393e2acc0b056 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_af13abb0cc2351b5f5b393e2acc0b056 = MAKE_FUNCTION_FRAME(codeobj_af13abb0cc2351b5f5b393e2acc0b056, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_af13abb0cc2351b5f5b393e2acc0b056->m_type_description == NULL); - frame_af13abb0cc2351b5f5b393e2acc0b056 = cache_frame_af13abb0cc2351b5f5b393e2acc0b056; - - // Push the new frame as the currently active one. - pushFrameStack(frame_af13abb0cc2351b5f5b393e2acc0b056); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_af13abb0cc2351b5f5b393e2acc0b056) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 602; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 602; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_1 = par_config; - frame_af13abb0cc2351b5f5b393e2acc0b056->m_frame.f_lineno = 602; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[32], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 602; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[155]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[155]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 603; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 603; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_config; - frame_af13abb0cc2351b5f5b393e2acc0b056->m_frame.f_lineno = 603; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 603; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[203], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 603; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 605; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[76]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 605; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - if (par_config == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 605; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[80]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 605; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_3; - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 605; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - - tmp_expression_name_3 = par_config; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[158]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 605; - type_description_1 = "ooc"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[77]); - frame_af13abb0cc2351b5f5b393e2acc0b056->m_frame.f_lineno = 605; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 605; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[204], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 605; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - frame_af13abb0cc2351b5f5b393e2acc0b056->m_frame.f_lineno = 608; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[165]); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 608; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_af13abb0cc2351b5f5b393e2acc0b056); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_af13abb0cc2351b5f5b393e2acc0b056); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_af13abb0cc2351b5f5b393e2acc0b056, exception_lineno); - } else if (exception_tb->tb_frame != &frame_af13abb0cc2351b5f5b393e2acc0b056->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_af13abb0cc2351b5f5b393e2acc0b056, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_af13abb0cc2351b5f5b393e2acc0b056, - type_description_1, - par_self, - par_config, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_af13abb0cc2351b5f5b393e2acc0b056 == cache_frame_af13abb0cc2351b5f5b393e2acc0b056) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_af13abb0cc2351b5f5b393e2acc0b056); - cache_frame_af13abb0cc2351b5f5b393e2acc0b056 = NULL; - } - - assertFrameObject(frame_af13abb0cc2351b5f5b393e2acc0b056); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_config); - par_config = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__24_get_input_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b)) { - Py_XDECREF(cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b = MAKE_FUNCTION_FRAME(codeobj_6f07a55f43d8fc2b2b6c0d3fdef34b4b, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b->m_type_description == NULL); - frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b = cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[203]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 611; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[159]); - Py_DECREF(tmp_expression_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 611; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b == cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); - cache_frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b = NULL; - } - - assertFrameObject(frame_6f07a55f43d8fc2b2b6c0d3fdef34b4b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__25_set_input_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_value = python_pars[1]; - struct Nuitka_FrameObject *frame_d651ab60ba265483702bf3c01175dea8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_d651ab60ba265483702bf3c01175dea8 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d651ab60ba265483702bf3c01175dea8)) { - Py_XDECREF(cache_frame_d651ab60ba265483702bf3c01175dea8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d651ab60ba265483702bf3c01175dea8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d651ab60ba265483702bf3c01175dea8 = MAKE_FUNCTION_FRAME(codeobj_d651ab60ba265483702bf3c01175dea8, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d651ab60ba265483702bf3c01175dea8->m_type_description == NULL); - frame_d651ab60ba265483702bf3c01175dea8 = cache_frame_d651ab60ba265483702bf3c01175dea8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d651ab60ba265483702bf3c01175dea8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d651ab60ba265483702bf3c01175dea8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_value); - tmp_assattr_name_1 = par_value; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_assattr_target_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[203]); - if (tmp_assattr_target_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 614; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[159], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_target_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 614; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d651ab60ba265483702bf3c01175dea8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d651ab60ba265483702bf3c01175dea8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d651ab60ba265483702bf3c01175dea8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d651ab60ba265483702bf3c01175dea8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d651ab60ba265483702bf3c01175dea8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d651ab60ba265483702bf3c01175dea8, - type_description_1, - par_self, - par_value - ); - - - // Release cached frame if used for exception. - if (frame_d651ab60ba265483702bf3c01175dea8 == cache_frame_d651ab60ba265483702bf3c01175dea8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d651ab60ba265483702bf3c01175dea8); - cache_frame_d651ab60ba265483702bf3c01175dea8 = NULL; - } - - assertFrameObject(frame_d651ab60ba265483702bf3c01175dea8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_value); - Py_DECREF(par_value); - par_value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__26_get_output_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_e5f8594c1ee7511e7c927efb6686b6c4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e5f8594c1ee7511e7c927efb6686b6c4 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e5f8594c1ee7511e7c927efb6686b6c4)) { - Py_XDECREF(cache_frame_e5f8594c1ee7511e7c927efb6686b6c4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e5f8594c1ee7511e7c927efb6686b6c4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e5f8594c1ee7511e7c927efb6686b6c4 = MAKE_FUNCTION_FRAME(codeobj_e5f8594c1ee7511e7c927efb6686b6c4, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e5f8594c1ee7511e7c927efb6686b6c4->m_type_description == NULL); - frame_e5f8594c1ee7511e7c927efb6686b6c4 = cache_frame_e5f8594c1ee7511e7c927efb6686b6c4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e5f8594c1ee7511e7c927efb6686b6c4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e5f8594c1ee7511e7c927efb6686b6c4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[204]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 617; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5f8594c1ee7511e7c927efb6686b6c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5f8594c1ee7511e7c927efb6686b6c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e5f8594c1ee7511e7c927efb6686b6c4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e5f8594c1ee7511e7c927efb6686b6c4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e5f8594c1ee7511e7c927efb6686b6c4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e5f8594c1ee7511e7c927efb6686b6c4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e5f8594c1ee7511e7c927efb6686b6c4, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_e5f8594c1ee7511e7c927efb6686b6c4 == cache_frame_e5f8594c1ee7511e7c927efb6686b6c4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e5f8594c1ee7511e7c927efb6686b6c4); - cache_frame_e5f8594c1ee7511e7c927efb6686b6c4 = NULL; - } - - assertFrameObject(frame_e5f8594c1ee7511e7c927efb6686b6c4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__27_set_output_embeddings(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_new_embeddings = python_pars[1]; - struct Nuitka_FrameObject *frame_4aaa4b40029a15584899573348c54723; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_4aaa4b40029a15584899573348c54723 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4aaa4b40029a15584899573348c54723)) { - Py_XDECREF(cache_frame_4aaa4b40029a15584899573348c54723); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4aaa4b40029a15584899573348c54723 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4aaa4b40029a15584899573348c54723 = MAKE_FUNCTION_FRAME(codeobj_4aaa4b40029a15584899573348c54723, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4aaa4b40029a15584899573348c54723->m_type_description == NULL); - frame_4aaa4b40029a15584899573348c54723 = cache_frame_4aaa4b40029a15584899573348c54723; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4aaa4b40029a15584899573348c54723); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4aaa4b40029a15584899573348c54723) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_new_embeddings); - tmp_assattr_name_1 = par_new_embeddings; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[204], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 620; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4aaa4b40029a15584899573348c54723); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4aaa4b40029a15584899573348c54723); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4aaa4b40029a15584899573348c54723, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4aaa4b40029a15584899573348c54723->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4aaa4b40029a15584899573348c54723, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4aaa4b40029a15584899573348c54723, - type_description_1, - par_self, - par_new_embeddings - ); - - - // Release cached frame if used for exception. - if (frame_4aaa4b40029a15584899573348c54723 == cache_frame_4aaa4b40029a15584899573348c54723) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4aaa4b40029a15584899573348c54723); - cache_frame_4aaa4b40029a15584899573348c54723 = NULL; - } - - assertFrameObject(frame_4aaa4b40029a15584899573348c54723); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_new_embeddings); - Py_DECREF(par_new_embeddings); - par_new_embeddings = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_new_embeddings); - Py_DECREF(par_new_embeddings); - par_new_embeddings = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__28_set_decoder(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_decoder = python_pars[1]; - struct Nuitka_FrameObject *frame_5e5d312b178487ab3f5527465551d2d4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_5e5d312b178487ab3f5527465551d2d4 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5e5d312b178487ab3f5527465551d2d4)) { - Py_XDECREF(cache_frame_5e5d312b178487ab3f5527465551d2d4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5e5d312b178487ab3f5527465551d2d4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5e5d312b178487ab3f5527465551d2d4 = MAKE_FUNCTION_FRAME(codeobj_5e5d312b178487ab3f5527465551d2d4, module_models$modeling_llama, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5e5d312b178487ab3f5527465551d2d4->m_type_description == NULL); - frame_5e5d312b178487ab3f5527465551d2d4 = cache_frame_5e5d312b178487ab3f5527465551d2d4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5e5d312b178487ab3f5527465551d2d4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5e5d312b178487ab3f5527465551d2d4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_decoder); - tmp_assattr_name_1 = par_decoder; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[203], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 623; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5e5d312b178487ab3f5527465551d2d4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5e5d312b178487ab3f5527465551d2d4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5e5d312b178487ab3f5527465551d2d4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5e5d312b178487ab3f5527465551d2d4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5e5d312b178487ab3f5527465551d2d4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5e5d312b178487ab3f5527465551d2d4, - type_description_1, - par_self, - par_decoder - ); - - - // Release cached frame if used for exception. - if (frame_5e5d312b178487ab3f5527465551d2d4 == cache_frame_5e5d312b178487ab3f5527465551d2d4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5e5d312b178487ab3f5527465551d2d4); - cache_frame_5e5d312b178487ab3f5527465551d2d4 = NULL; - } - - assertFrameObject(frame_5e5d312b178487ab3f5527465551d2d4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_decoder); - Py_DECREF(par_decoder); - par_decoder = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_decoder); - Py_DECREF(par_decoder); - par_decoder = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__29_get_decoder(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_56724c513f939913a896f3556a51c73f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_56724c513f939913a896f3556a51c73f = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_56724c513f939913a896f3556a51c73f)) { - Py_XDECREF(cache_frame_56724c513f939913a896f3556a51c73f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_56724c513f939913a896f3556a51c73f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_56724c513f939913a896f3556a51c73f = MAKE_FUNCTION_FRAME(codeobj_56724c513f939913a896f3556a51c73f, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_56724c513f939913a896f3556a51c73f->m_type_description == NULL); - frame_56724c513f939913a896f3556a51c73f = cache_frame_56724c513f939913a896f3556a51c73f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_56724c513f939913a896f3556a51c73f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_56724c513f939913a896f3556a51c73f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[203]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 626; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_56724c513f939913a896f3556a51c73f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_56724c513f939913a896f3556a51c73f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_56724c513f939913a896f3556a51c73f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_56724c513f939913a896f3556a51c73f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_56724c513f939913a896f3556a51c73f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_56724c513f939913a896f3556a51c73f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_56724c513f939913a896f3556a51c73f, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_56724c513f939913a896f3556a51c73f == cache_frame_56724c513f939913a896f3556a51c73f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_56724c513f939913a896f3556a51c73f); - cache_frame_56724c513f939913a896f3556a51c73f = NULL; - } - - assertFrameObject(frame_56724c513f939913a896f3556a51c73f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__30_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_attention_mask = python_pars[2]; - PyObject *par_position_ids = python_pars[3]; - PyObject *par_past_key_values = python_pars[4]; - PyObject *par_inputs_embeds = python_pars[5]; - PyObject *par_query_embeds = python_pars[6]; - PyObject *par_labels = python_pars[7]; - PyObject *par_use_cache = python_pars[8]; - PyObject *par_output_attentions = python_pars[9]; - PyObject *par_output_hidden_states = python_pars[10]; - PyObject *par_return_dict = python_pars[11]; - PyObject *var_outputs = NULL; - PyObject *var_hidden_states = NULL; - PyObject *var_logits = NULL; - PyObject *var_loss = NULL; - PyObject *var_shift_logits = NULL; - PyObject *var_shift_labels = NULL; - PyObject *var_loss_fct = NULL; - PyObject *var_output = NULL; - struct Nuitka_FrameObject *frame_dd2059866c881e3f95a83278e7c7e817; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_dd2059866c881e3f95a83278e7c7e817 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_dd2059866c881e3f95a83278e7c7e817)) { - Py_XDECREF(cache_frame_dd2059866c881e3f95a83278e7c7e817); - -#if _DEBUG_REFCOUNTS - if (cache_frame_dd2059866c881e3f95a83278e7c7e817 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_dd2059866c881e3f95a83278e7c7e817 = MAKE_FUNCTION_FRAME(codeobj_dd2059866c881e3f95a83278e7c7e817, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_dd2059866c881e3f95a83278e7c7e817->m_type_description == NULL); - frame_dd2059866c881e3f95a83278e7c7e817 = cache_frame_dd2059866c881e3f95a83278e7c7e817; - - // Push the new frame as the currently active one. - pushFrameStack(frame_dd2059866c881e3f95a83278e7c7e817); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_dd2059866c881e3f95a83278e7c7e817) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_output_attentions); - tmp_compexpr_left_1 = par_output_attentions; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_output_attentions); - tmp_assign_source_1 = par_output_attentions; - Py_INCREF(tmp_assign_source_1); - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[85]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 670; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[141]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 670; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_1:; - { - PyObject *old = par_output_attentions; - assert(old != NULL); - par_output_attentions = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(par_output_hidden_states); - tmp_compexpr_left_2 = par_output_hidden_states; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(par_output_hidden_states); - tmp_assign_source_2 = par_output_hidden_states; - Py_INCREF(tmp_assign_source_2); - goto condexpr_end_2; - condexpr_false_2:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 672; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[85]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 672; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[170]); - Py_DECREF(tmp_expression_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 672; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_2:; - { - PyObject *old = par_output_hidden_states; - assert(old != NULL); - par_output_hidden_states = tmp_assign_source_2; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(par_return_dict); - tmp_compexpr_left_3 = par_return_dict; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(par_return_dict); - tmp_assign_source_3 = par_return_dict; - Py_INCREF(tmp_assign_source_3); - goto condexpr_end_3; - condexpr_false_3:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 674; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[85]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 674; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[171]); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 674; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - condexpr_end_3:; - { - PyObject *old = par_return_dict; - assert(old != NULL); - par_return_dict = tmp_assign_source_3; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 677; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[203]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[174]; - CHECK_OBJECT(par_input_ids); - tmp_dict_value_1 = par_input_ids; - tmp_kwargs_name_1 = _PyDict_NewPresized( 10 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[121]; - CHECK_OBJECT(par_attention_mask); - tmp_dict_value_1 = par_attention_mask; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[139]; - CHECK_OBJECT(par_position_ids); - tmp_dict_value_1 = par_position_ids; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[188]; - CHECK_OBJECT(par_past_key_values); - tmp_dict_value_1 = par_past_key_values; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[167]; - CHECK_OBJECT(par_inputs_embeds); - tmp_dict_value_1 = par_inputs_embeds; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[205]; - CHECK_OBJECT(par_query_embeds); - tmp_dict_value_1 = par_query_embeds; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[142]; - CHECK_OBJECT(par_use_cache); - tmp_dict_value_1 = par_use_cache; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[141]; - CHECK_OBJECT(par_output_attentions); - tmp_dict_value_1 = par_output_attentions; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[170]; - CHECK_OBJECT(par_output_hidden_states); - tmp_dict_value_1 = par_output_hidden_states; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[206]; - CHECK_OBJECT(par_return_dict); - tmp_dict_value_1 = par_return_dict; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 677; - tmp_assign_source_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 677; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_outputs == NULL); - var_outputs = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_outputs); - tmp_expression_name_8 = var_outputs; - tmp_subscript_name_1 = mod_consts[14]; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_1, 0); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 690; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_hidden_states == NULL); - var_hidden_states = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 691; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(var_hidden_states); - tmp_args_element_name_1 = var_hidden_states; - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 691; - tmp_assign_source_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[204], tmp_args_element_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 691; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_logits == NULL); - var_logits = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - tmp_assign_source_7 = Py_None; - assert(var_loss == NULL); - Py_INCREF(tmp_assign_source_7); - var_loss = tmp_assign_source_7; - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(par_labels); - tmp_compexpr_left_4 = par_labels; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var_logits); - tmp_expression_name_9 = var_logits; - tmp_subscript_name_2 = mod_consts[207]; - tmp_called_instance_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_2); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 696; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 696; - tmp_assign_source_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[102]); - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 696; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_shift_logits == NULL); - var_shift_logits = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(par_labels); - tmp_expression_name_10 = par_labels; - tmp_subscript_name_3 = mod_consts[208]; - tmp_called_instance_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_3); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 697; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 697; - tmp_assign_source_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[102]); - Py_DECREF(tmp_called_instance_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 697; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_shift_labels == NULL); - var_shift_labels = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[209]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[209]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 699; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 699; - tmp_assign_source_10 = CALL_FUNCTION_NO_ARGS(tmp_called_name_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 699; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss_fct == NULL); - var_loss_fct = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(var_shift_logits); - tmp_expression_name_11 = var_shift_logits; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[13]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 700; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[66]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 700; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_expression_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[85]); - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 700; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[158]); - Py_DECREF(tmp_expression_name_12); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 700; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 700; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 700; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_shift_logits; - var_shift_logits = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_4; - CHECK_OBJECT(var_shift_labels); - tmp_called_instance_4 = var_shift_labels; - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 701; - tmp_assign_source_12 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[13], - &PyTuple_GET_ITEM(mod_consts[9], 0) - ); - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 701; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_shift_labels; - var_shift_labels = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(var_shift_labels); - tmp_expression_name_14 = var_shift_labels; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[15]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 703; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_shift_logits); - tmp_expression_name_15 = var_shift_logits; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[6]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 703; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 703; - tmp_assign_source_13 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 703; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_shift_labels; - var_shift_labels = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - CHECK_OBJECT(var_loss_fct); - tmp_called_name_5 = var_loss_fct; - if (var_shift_logits == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[210]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 704; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = var_shift_logits; - CHECK_OBJECT(var_shift_labels); - tmp_args_element_name_6 = var_shift_labels; - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 704; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assign_source_14 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 704; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_loss; - assert(old != NULL); - var_loss = tmp_assign_source_14; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - if (par_return_dict == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[206]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 706; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_operand_name_1 = par_return_dict; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 706; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(var_logits); - tmp_tuple_element_1 = var_logits; - tmp_left_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_outputs); - tmp_expression_name_16 = var_outputs; - tmp_subscript_name_4 = mod_consts[211]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_16, tmp_subscript_name_4); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 707; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_15 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 707; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_15; - } - { - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_left_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(var_loss); - tmp_compexpr_left_5 = var_loss; - tmp_compexpr_right_5 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_5 != tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_6 != false) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(var_loss); - tmp_tuple_element_2 = var_loss; - tmp_left_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_output); - tmp_right_name_2 = var_output; - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 708; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_4; - condexpr_false_4:; - CHECK_OBJECT(var_output); - tmp_return_value = var_output; - Py_INCREF(tmp_return_value); - condexpr_end_4:; - goto frame_return_exit_1; - } - branch_no_2:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[212]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[212]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 710; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[213]; - CHECK_OBJECT(var_loss); - tmp_dict_value_2 = var_loss; - tmp_kwargs_name_2 = _PyDict_NewPresized( 5 ); - { - PyObject *tmp_expression_name_17; - PyObject *tmp_expression_name_18; - PyObject *tmp_expression_name_19; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[214]; - CHECK_OBJECT(var_logits); - tmp_dict_value_2 = var_logits; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[188]; - CHECK_OBJECT(var_outputs); - tmp_expression_name_17 = var_outputs; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[188]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 713; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[44]; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 714; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_18 = var_outputs; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[44]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 714; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[197]; - if (var_outputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[143]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 715; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_19 = var_outputs; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[197]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 715; - type_description_1 = "oooooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_dd2059866c881e3f95a83278e7c7e817->m_frame.f_lineno = 710; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 710; - type_description_1 = "oooooooooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dd2059866c881e3f95a83278e7c7e817); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dd2059866c881e3f95a83278e7c7e817); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dd2059866c881e3f95a83278e7c7e817); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_dd2059866c881e3f95a83278e7c7e817, exception_lineno); - } else if (exception_tb->tb_frame != &frame_dd2059866c881e3f95a83278e7c7e817->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_dd2059866c881e3f95a83278e7c7e817, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_dd2059866c881e3f95a83278e7c7e817, - type_description_1, - par_self, - par_input_ids, - par_attention_mask, - par_position_ids, - par_past_key_values, - par_inputs_embeds, - par_query_embeds, - par_labels, - par_use_cache, - par_output_attentions, - par_output_hidden_states, - par_return_dict, - var_outputs, - var_hidden_states, - var_logits, - var_loss, - var_shift_logits, - var_shift_labels, - var_loss_fct, - var_output - ); - - - // Release cached frame if used for exception. - if (frame_dd2059866c881e3f95a83278e7c7e817 == cache_frame_dd2059866c881e3f95a83278e7c7e817) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_dd2059866c881e3f95a83278e7c7e817); - cache_frame_dd2059866c881e3f95a83278e7c7e817 = NULL; - } - - assertFrameObject(frame_dd2059866c881e3f95a83278e7c7e817); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - CHECK_OBJECT(par_labels); - Py_DECREF(par_labels); - par_labels = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - CHECK_OBJECT(var_logits); - Py_DECREF(var_logits); - var_logits = NULL; - CHECK_OBJECT(var_loss); - Py_DECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_shift_logits); - var_shift_logits = NULL; - Py_XDECREF(var_shift_labels); - var_shift_labels = NULL; - Py_XDECREF(var_loss_fct); - var_loss_fct = NULL; - Py_XDECREF(var_output); - var_output = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - Py_XDECREF(par_position_ids); - par_position_ids = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - CHECK_OBJECT(par_labels); - Py_DECREF(par_labels); - par_labels = NULL; - Py_XDECREF(par_use_cache); - par_use_cache = NULL; - Py_XDECREF(par_output_attentions); - par_output_attentions = NULL; - Py_XDECREF(par_output_hidden_states); - par_output_hidden_states = NULL; - Py_XDECREF(par_return_dict); - par_return_dict = NULL; - Py_XDECREF(var_outputs); - var_outputs = NULL; - Py_XDECREF(var_hidden_states); - var_hidden_states = NULL; - Py_XDECREF(var_logits); - var_logits = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_shift_logits); - var_shift_logits = NULL; - Py_XDECREF(var_shift_labels); - var_shift_labels = NULL; - Py_XDECREF(var_loss_fct); - var_loss_fct = NULL; - Py_XDECREF(var_output); - var_output = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__31_prepare_inputs_for_generation(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_ids = python_pars[1]; - PyObject *par_query_embeds = python_pars[2]; - PyObject *par_past_key_values = python_pars[3]; - PyObject *par_attention_mask = python_pars[4]; - PyObject *par_inputs_embeds = python_pars[5]; - PyObject *par_kwargs = python_pars[6]; - PyObject *var_position_ids = NULL; - PyObject *var_model_inputs = NULL; - struct Nuitka_FrameObject *frame_57bd173b2570561cb4e3a121dd7fa21d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_57bd173b2570561cb4e3a121dd7fa21d = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_57bd173b2570561cb4e3a121dd7fa21d)) { - Py_XDECREF(cache_frame_57bd173b2570561cb4e3a121dd7fa21d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_57bd173b2570561cb4e3a121dd7fa21d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_57bd173b2570561cb4e3a121dd7fa21d = MAKE_FUNCTION_FRAME(codeobj_57bd173b2570561cb4e3a121dd7fa21d, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_57bd173b2570561cb4e3a121dd7fa21d->m_type_description == NULL); - frame_57bd173b2570561cb4e3a121dd7fa21d = cache_frame_57bd173b2570561cb4e3a121dd7fa21d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_57bd173b2570561cb4e3a121dd7fa21d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_57bd173b2570561cb4e3a121dd7fa21d) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_past_key_values); - tmp_truth_name_1 = CHECK_IF_TRUE(par_past_key_values); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 721; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_input_ids); - tmp_expression_name_1 = par_input_ids; - tmp_subscript_name_1 = mod_consts[216]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 722; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input_ids; - assert(old != NULL); - par_input_ids = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_kwargs); - tmp_called_instance_1 = par_kwargs; - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 724; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[217], - &PyTuple_GET_ITEM(mod_consts[218], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 724; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_position_ids == NULL); - var_position_ids = tmp_assign_source_2; - } - { - bool tmp_condition_result_2; - int tmp_and_left_truth_1; - bool tmp_and_left_value_1; - bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_attention_mask); - tmp_compexpr_left_1 = par_attention_mask; - tmp_compexpr_right_1 = Py_None; - tmp_and_left_value_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - tmp_and_left_truth_1 = tmp_and_left_value_1 != false ? 1 : 0; - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(var_position_ids); - tmp_compexpr_left_2 = var_position_ids; - tmp_compexpr_right_2 = Py_None; - tmp_and_right_value_1 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - tmp_condition_result_2 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_2 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_attention_mask); - tmp_called_instance_3 = par_attention_mask; - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 727; - tmp_called_instance_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[177]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 727; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 727; - tmp_left_name_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[219], - &PyTuple_GET_ITEM(mod_consts[9], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 727; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = mod_consts[12]; - tmp_assign_source_3 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 727; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_position_ids; - assert(old != NULL); - var_position_ids = tmp_assign_source_3; - Py_DECREF(old); - } - - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(var_position_ids); - tmp_expression_name_2 = var_position_ids; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 728; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (par_attention_mask == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[121]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 728; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_3 = par_attention_mask; - tmp_compexpr_right_3 = mod_consts[14]; - tmp_args_element_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 728; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[12]; - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 728; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 728; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_2; - CHECK_OBJECT(par_past_key_values); - tmp_truth_name_2 = CHECK_IF_TRUE(par_past_key_values); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 729; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (var_position_ids == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[139]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 730; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = var_position_ids; - tmp_subscript_name_2 = mod_consts[220]; - tmp_called_instance_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 730; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 730; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[178], - &PyTuple_GET_ITEM(mod_consts[9], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 730; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_position_ids; - var_position_ids = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - tmp_assign_source_5 = Py_None; - { - PyObject *old = par_query_embeds; - assert(old != NULL); - par_query_embeds = tmp_assign_source_5; - Py_INCREF(par_query_embeds); - Py_DECREF(old); - } - - } - branch_no_3:; - branch_no_2:; - { - bool tmp_condition_result_4; - int tmp_and_left_truth_2; - bool tmp_and_left_value_2; - bool tmp_and_right_value_2; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(par_inputs_embeds); - tmp_compexpr_left_4 = par_inputs_embeds; - tmp_compexpr_right_4 = Py_None; - tmp_and_left_value_2 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - tmp_and_left_truth_2 = tmp_and_left_value_2 != false ? 1 : 0; - if (tmp_and_left_truth_2 == 1) { - goto and_right_2; - } else { - goto and_left_2; - } - and_right_2:; - CHECK_OBJECT(par_past_key_values); - tmp_compexpr_left_5 = par_past_key_values; - tmp_compexpr_right_5 = Py_None; - tmp_and_right_value_2 = (tmp_compexpr_left_5 == tmp_compexpr_right_5) ? true : false; - tmp_condition_result_4 = tmp_and_right_value_2; - goto and_end_2; - and_left_2:; - tmp_condition_result_4 = tmp_and_left_value_2; - and_end_2:; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_dict_key_1 = mod_consts[167]; - CHECK_OBJECT(par_inputs_embeds); - tmp_dict_value_1 = par_inputs_embeds; - tmp_assign_source_6 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_assign_source_6, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - assert(var_model_inputs == NULL); - var_model_inputs = tmp_assign_source_6; - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_dict_key_2 = mod_consts[174]; - CHECK_OBJECT(par_input_ids); - tmp_dict_value_2 = par_input_ids; - tmp_assign_source_7 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_assign_source_7, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - assert(var_model_inputs == NULL); - var_model_inputs = tmp_assign_source_7; - } - branch_end_4:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - CHECK_OBJECT(var_model_inputs); - tmp_expression_name_4 = var_model_inputs; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[221]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 739; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[139]; - if (var_position_ids == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[139]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 741; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_3 = var_position_ids; - tmp_args_element_name_3 = _PyDict_NewPresized( 5 ); - { - PyObject *tmp_called_instance_5; - tmp_res = PyDict_SetItem(tmp_args_element_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[205]; - if (par_query_embeds == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[205]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 742; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_3 = par_query_embeds; - tmp_res = PyDict_SetItem(tmp_args_element_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[188]; - CHECK_OBJECT(par_past_key_values); - tmp_dict_value_3 = par_past_key_values; - tmp_res = PyDict_SetItem(tmp_args_element_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[142]; - if (par_kwargs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[222]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 744; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - - tmp_called_instance_5 = par_kwargs; - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 744; - tmp_dict_value_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[217], - &PyTuple_GET_ITEM(mod_consts[223], 0) - ); - - if (tmp_dict_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 744; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_args_element_name_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[121]; - if (par_attention_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[121]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 745; - type_description_1 = "ooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_3 = par_attention_mask; - tmp_res = PyDict_SetItem(tmp_args_element_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame.f_lineno = 739; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 739; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - if (var_model_inputs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[224]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 748; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_model_inputs; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_57bd173b2570561cb4e3a121dd7fa21d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_57bd173b2570561cb4e3a121dd7fa21d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_57bd173b2570561cb4e3a121dd7fa21d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_57bd173b2570561cb4e3a121dd7fa21d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_57bd173b2570561cb4e3a121dd7fa21d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_57bd173b2570561cb4e3a121dd7fa21d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_57bd173b2570561cb4e3a121dd7fa21d, - type_description_1, - par_self, - par_input_ids, - par_query_embeds, - par_past_key_values, - par_attention_mask, - par_inputs_embeds, - par_kwargs, - var_position_ids, - var_model_inputs - ); - - - // Release cached frame if used for exception. - if (frame_57bd173b2570561cb4e3a121dd7fa21d == cache_frame_57bd173b2570561cb4e3a121dd7fa21d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_57bd173b2570561cb4e3a121dd7fa21d); - cache_frame_57bd173b2570561cb4e3a121dd7fa21d = NULL; - } - - assertFrameObject(frame_57bd173b2570561cb4e3a121dd7fa21d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_ids); - Py_DECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - CHECK_OBJECT(par_inputs_embeds); - Py_DECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - Py_XDECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_position_ids); - var_position_ids = NULL; - Py_XDECREF(var_model_inputs); - var_model_inputs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_ids); - par_input_ids = NULL; - Py_XDECREF(par_query_embeds); - par_query_embeds = NULL; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - Py_XDECREF(par_attention_mask); - par_attention_mask = NULL; - CHECK_OBJECT(par_inputs_embeds); - Py_DECREF(par_inputs_embeds); - par_inputs_embeds = NULL; - Py_XDECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_position_ids); - var_position_ids = NULL; - Py_XDECREF(var_model_inputs); - var_model_inputs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$modeling_llama$$$function__32__reorder_cache(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_past_key_values = python_pars[0]; - struct Nuitka_CellObject *par_beam_idx = Nuitka_Cell_New1(python_pars[1]); - PyObject *var_reordered_past = NULL; - PyObject *var_layer_past = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_genexpr_1__$0 = NULL; - struct Nuitka_FrameObject *frame_a7c0483b9d65c83ba388d353ba9481db; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_a7c0483b9d65c83ba388d353ba9481db = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[186]; - assert(var_reordered_past == NULL); - Py_INCREF(tmp_assign_source_1); - var_reordered_past = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_a7c0483b9d65c83ba388d353ba9481db)) { - Py_XDECREF(cache_frame_a7c0483b9d65c83ba388d353ba9481db); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a7c0483b9d65c83ba388d353ba9481db == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a7c0483b9d65c83ba388d353ba9481db = MAKE_FUNCTION_FRAME(codeobj_a7c0483b9d65c83ba388d353ba9481db, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a7c0483b9d65c83ba388d353ba9481db->m_type_description == NULL); - frame_a7c0483b9d65c83ba388d353ba9481db = cache_frame_a7c0483b9d65c83ba388d353ba9481db; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a7c0483b9d65c83ba388d353ba9481db); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a7c0483b9d65c83ba388d353ba9481db) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_past_key_values); - tmp_iter_arg_1 = par_past_key_values; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 753; - type_description_1 = "ocoo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ocoo"; - exception_lineno = 753; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_layer_past; - var_layer_past = tmp_assign_source_4; - Py_INCREF(var_layer_past); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_arg_1; - if (var_reordered_past == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[225]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 754; - type_description_1 = "ocoo"; - goto try_except_handler_2; - } - - tmp_left_name_1 = var_reordered_past; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(var_layer_past); - tmp_iter_arg_2 = var_layer_past; - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 754; - type_description_1 = "ocoo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_genexpr_1__$0; - tmp_genexpr_1__$0 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_1[2]; - - tmp_closure_1[0] = par_beam_idx; - Py_INCREF(tmp_closure_1[0]); - tmp_closure_1[1] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_tuple_arg_1 = MAKE_GENERATOR_models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr(tmp_closure_1); - - goto try_return_handler_3; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_1; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - tmp_tuple_element_1 = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 754; - type_description_1 = "ocoo"; - goto try_except_handler_2; - } - tmp_right_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - tmp_result = BINARY_OPERATION_ADD_TUPLE_TUPLE_INPLACE(&tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_5 = tmp_left_name_1; - var_reordered_past = tmp_assign_source_5; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 753; - type_description_1 = "ocoo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_reordered_past == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[225]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 755; - type_description_1 = "ocoo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_reordered_past; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7c0483b9d65c83ba388d353ba9481db); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7c0483b9d65c83ba388d353ba9481db); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7c0483b9d65c83ba388d353ba9481db); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a7c0483b9d65c83ba388d353ba9481db, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a7c0483b9d65c83ba388d353ba9481db->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a7c0483b9d65c83ba388d353ba9481db, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a7c0483b9d65c83ba388d353ba9481db, - type_description_1, - par_past_key_values, - par_beam_idx, - var_reordered_past, - var_layer_past - ); - - - // Release cached frame if used for exception. - if (frame_a7c0483b9d65c83ba388d353ba9481db == cache_frame_a7c0483b9d65c83ba388d353ba9481db) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a7c0483b9d65c83ba388d353ba9481db); - cache_frame_a7c0483b9d65c83ba388d353ba9481db = NULL; - } - - assertFrameObject(frame_a7c0483b9d65c83ba388d353ba9481db); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - CHECK_OBJECT(par_beam_idx); - Py_DECREF(par_beam_idx); - par_beam_idx = NULL; - Py_XDECREF(var_reordered_past); - var_reordered_past = NULL; - Py_XDECREF(var_layer_past); - var_layer_past = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_past_key_values); - par_past_key_values = NULL; - CHECK_OBJECT(par_beam_idx); - Py_DECREF(par_beam_idx); - par_beam_idx = NULL; - Py_XDECREF(var_reordered_past); - var_reordered_past = NULL; - Py_XDECREF(var_layer_past); - var_layer_past = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr_locals { - PyObject *var_past_state; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - char yield_tmps[1024]; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr_locals *generator_heap = (struct models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_past_state = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_0bf645264150dca3bf6477b51a7f2003, module_models$modeling_llama, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[1])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[1]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "Noc"; - generator_heap->exception_lineno = 754; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_past_state; - generator_heap->var_past_state = tmp_assign_source_2; - Py_INCREF(generator_heap->var_past_state); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - CHECK_OBJECT(generator_heap->var_past_state); - tmp_expression_name_2 = generator_heap->var_past_state; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[226]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 754; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - tmp_args_element_name_1 = mod_consts[14]; - if (Nuitka_Cell_GET(generator->m_closure[0]) == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_CLOSURE_ERROR(&generator_heap->exception_type, &generator_heap->exception_value, mod_consts[227]); - generator_heap->exception_tb = NULL; - NORMALIZE_EXCEPTION(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - CHAIN_EXCEPTION(generator_heap->exception_value); - - generator_heap->exception_lineno = 754; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - - tmp_args_element_name_2 = Nuitka_Cell_GET(generator->m_closure[0]); - generator->m_frame->m_frame.f_lineno = 754; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_expression_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 754; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - Nuitka_PreserveHeap(generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_expression_name_2, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), &tmp_args_element_name_2, sizeof(PyObject *), NULL); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - Nuitka_RestoreHeap(generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_expression_name_2, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), &tmp_args_element_name_2, sizeof(PyObject *), NULL); - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 754; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 754; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_past_state, - generator->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_past_state); - generator_heap->var_past_state = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_past_state); - generator_heap->var_past_state = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr_context, - module_models$modeling_llama, - mod_consts[201], -#if PYTHON_VERSION >= 0x350 - mod_consts[228], -#endif - codeobj_0bf645264150dca3bf6477b51a7f2003, - closure, - 2, - sizeof(struct models$modeling_llama$$$function__32__reorder_cache$$$genexpr__1_genexpr_locals) - ); -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__10_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__10_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[291], -#endif - codeobj_62a79f1c410f5a7722a1410b65e3d18a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__11___init__(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__11___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[293], -#endif - codeobj_0ad3c42e181292178c7936502c2f7430, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__12__shape(PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__12__shape, - mod_consts[294], -#if PYTHON_VERSION >= 0x300 - mod_consts[295], -#endif - codeobj_f31112a82b6d451edce0ceec3d4f5560, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__13_forward(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__13_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[299], -#endif - codeobj_946cee16beaa54a0e81a9daa8677f97e, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__14___init__(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__14___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[300], -#endif - codeobj_1ad920172ce0ce172659e0f425a48750, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__15_forward(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__15_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[302], -#endif - codeobj_70854e41c56fe5eee0f0a9936eb360bf, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - mod_consts[144], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__16__init_weights() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__16__init_weights, - mod_consts[314], -#if PYTHON_VERSION >= 0x300 - mod_consts[315], -#endif - codeobj_09a61b81c452dbc8a34df4d6a59c7c55, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__17__set_gradient_checkpointing(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__17__set_gradient_checkpointing, - mod_consts[317], -#if PYTHON_VERSION >= 0x300 - mod_consts[318], -#endif - codeobj_f437efa8710cbbb70af30b9d54241009, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__18___init__(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__18___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[322], -#endif - codeobj_45248b6ce1a7d57704c8c737dc971859, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__19_get_input_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__19_get_input_embeddings, - mod_consts[323], -#if PYTHON_VERSION >= 0x300 - mod_consts[324], -#endif - codeobj_6c282c8d6b8bf19a45998db55bce5931, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__1__make_causal_mask(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__1__make_causal_mask, - mod_consts[166], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_afac492b3bc88f3584403f9b1d4fc0ca, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - mod_consts[24], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__20_set_input_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__20_set_input_embeddings, - mod_consts[325], -#if PYTHON_VERSION >= 0x300 - mod_consts[326], -#endif - codeobj_665c3f1cec895ee4f51349c0fd396d92, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__21__prepare_decoder_attention_mask() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__21__prepare_decoder_attention_mask, - mod_consts[181], -#if PYTHON_VERSION >= 0x300 - mod_consts[327], -#endif - codeobj_7ec521dc71dd8971217328f7e27574e8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__22_forward(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__22_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[329], -#endif - codeobj_f85cccd268d3146046e93cf36289e67a, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward, - mod_consts[189], -#if PYTHON_VERSION >= 0x300 - mod_consts[190], -#endif - codeobj_2ce127e57fc75426d2a6e2805b8b374d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward$$$function__1_custom_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward$$$function__1_custom_forward, - mod_consts[198], -#if PYTHON_VERSION >= 0x300 - mod_consts[199], -#endif - codeobj_b4f214bd3cde2ab1b0be661bbce2cf57, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - closure, - 2 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__23___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__23___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[331], -#endif - codeobj_af13abb0cc2351b5f5b393e2acc0b056, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__24_get_input_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__24_get_input_embeddings, - mod_consts[323], -#if PYTHON_VERSION >= 0x300 - mod_consts[332], -#endif - codeobj_6f07a55f43d8fc2b2b6c0d3fdef34b4b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__25_set_input_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__25_set_input_embeddings, - mod_consts[325], -#if PYTHON_VERSION >= 0x300 - mod_consts[333], -#endif - codeobj_d651ab60ba265483702bf3c01175dea8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__26_get_output_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__26_get_output_embeddings, - mod_consts[334], -#if PYTHON_VERSION >= 0x300 - mod_consts[335], -#endif - codeobj_e5f8594c1ee7511e7c927efb6686b6c4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__27_set_output_embeddings() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__27_set_output_embeddings, - mod_consts[336], -#if PYTHON_VERSION >= 0x300 - mod_consts[337], -#endif - codeobj_4aaa4b40029a15584899573348c54723, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__28_set_decoder() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__28_set_decoder, - mod_consts[338], -#if PYTHON_VERSION >= 0x300 - mod_consts[339], -#endif - codeobj_5e5d312b178487ab3f5527465551d2d4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__29_get_decoder() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__29_get_decoder, - mod_consts[340], -#if PYTHON_VERSION >= 0x300 - mod_consts[341], -#endif - codeobj_56724c513f939913a896f3556a51c73f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__2__expand_mask(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__2__expand_mask, - mod_consts[168], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_abb5b7acfd901868aef4d2366bcf6565, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - mod_consts[30], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__30_forward(PyObject *defaults, PyObject *annotations) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__30_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[345], -#endif - codeobj_dd2059866c881e3f95a83278e7c7e817, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - mod_consts[215], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__31_prepare_inputs_for_generation(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__31_prepare_inputs_for_generation, - mod_consts[347], -#if PYTHON_VERSION >= 0x300 - mod_consts[348], -#endif - codeobj_57bd173b2570561cb4e3a121dd7fa21d, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__32__reorder_cache() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__32__reorder_cache, - mod_consts[350], -#if PYTHON_VERSION >= 0x300 - mod_consts[351], -#endif - codeobj_a7c0483b9d65c83ba388d353ba9481db, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__3___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__3___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[281], -#endif - codeobj_0bb23957f71874ab212d48ec53f578f9, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - mod_consts[38], - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__4_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__4_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[283], -#endif - codeobj_9778e8bbcc730a14db1505b1bf09e315, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__5___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__5___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[286], -#endif - codeobj_78e3711e3cafeb58cf29e8b25617a9e0, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__6_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__6_forward, - mod_consts[282], -#if PYTHON_VERSION >= 0x300 - mod_consts[287], -#endif - codeobj_03daddd79d79be6b65f276d9f318ba49, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__7_rotate_half() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__7_rotate_half, - mod_consts[73], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_9e040397e2554ecbd4bfb2870d7f13bd, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - mod_consts[67], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__8_apply_rotary_pos_emb() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__8_apply_rotary_pos_emb, - mod_consts[108], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_175cc427deba3e5032b050ced786acda, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$modeling_llama, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$modeling_llama$$$function__9___init__(PyObject *annotations, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$modeling_llama$$$function__9___init__, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - mod_consts[290], -#endif - codeobj_c812a220ca24815dfca385c9b756a3e4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - annotations, -#endif - module_models$modeling_llama, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$modeling_llama[] = { - impl_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward, - impl_models$modeling_llama$$$function__22_forward$$$function__1_create_custom_forward$$$function__1_custom_forward, - impl_models$modeling_llama$$$function__1__make_causal_mask, - impl_models$modeling_llama$$$function__2__expand_mask, - impl_models$modeling_llama$$$function__3___init__, - impl_models$modeling_llama$$$function__4_forward, - impl_models$modeling_llama$$$function__5___init__, - impl_models$modeling_llama$$$function__6_forward, - impl_models$modeling_llama$$$function__7_rotate_half, - impl_models$modeling_llama$$$function__8_apply_rotary_pos_emb, - impl_models$modeling_llama$$$function__9___init__, - impl_models$modeling_llama$$$function__10_forward, - impl_models$modeling_llama$$$function__11___init__, - impl_models$modeling_llama$$$function__12__shape, - impl_models$modeling_llama$$$function__13_forward, - impl_models$modeling_llama$$$function__14___init__, - impl_models$modeling_llama$$$function__15_forward, - impl_models$modeling_llama$$$function__16__init_weights, - impl_models$modeling_llama$$$function__17__set_gradient_checkpointing, - impl_models$modeling_llama$$$function__18___init__, - impl_models$modeling_llama$$$function__19_get_input_embeddings, - impl_models$modeling_llama$$$function__20_set_input_embeddings, - impl_models$modeling_llama$$$function__21__prepare_decoder_attention_mask, - impl_models$modeling_llama$$$function__22_forward, - impl_models$modeling_llama$$$function__23___init__, - impl_models$modeling_llama$$$function__24_get_input_embeddings, - impl_models$modeling_llama$$$function__25_set_input_embeddings, - impl_models$modeling_llama$$$function__26_get_output_embeddings, - impl_models$modeling_llama$$$function__27_set_output_embeddings, - impl_models$modeling_llama$$$function__28_set_decoder, - impl_models$modeling_llama$$$function__29_get_decoder, - impl_models$modeling_llama$$$function__30_forward, - impl_models$modeling_llama$$$function__31_prepare_inputs_for_generation, - impl_models$modeling_llama$$$function__32__reorder_cache, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$modeling_llama; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$modeling_llama) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$modeling_llama[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$modeling_llama, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$modeling_llama(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$modeling_llama = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.modeling_llama: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.modeling_llama: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.modeling_llama: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$modeling_llama\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$modeling_llama = MODULE_DICT(module_models$modeling_llama); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$modeling_llama, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$modeling_llama, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$modeling_llama, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$modeling_llama, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$modeling_llama, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$modeling_llama); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$modeling_llama); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_CellObject *outline_0_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_5_var___class__ = NULL; - struct Nuitka_CellObject *outline_6_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_7_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__bases = NULL; - PyObject *tmp_class_creation_6__bases_orig = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_class_creation_8__bases = NULL; - PyObject *tmp_class_creation_8__bases_orig = NULL; - PyObject *tmp_class_creation_8__class_decl_dict = NULL; - PyObject *tmp_class_creation_8__metaclass = NULL; - PyObject *tmp_class_creation_8__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - PyObject *tmp_import_from_3__module = NULL; - PyObject *tmp_import_from_4__module = NULL; - struct Nuitka_FrameObject *frame_b47d89b49d102399398e0765f596b180; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_8d9c85872767131fcb53711a96f1cb64_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_8d9c85872767131fcb53711a96f1cb64_2 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78 = NULL; - struct Nuitka_FrameObject *frame_1cc896795a78acf396f78e2df5833914_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_1cc896795a78acf396f78e2df5833914_3 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *locals_models$modeling_llama$$$class__3_LlamaMLP_127 = NULL; - struct Nuitka_FrameObject *frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4 = NULL; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *locals_models$modeling_llama$$$class__4_LlamaAttention_144 = NULL; - struct Nuitka_FrameObject *frame_aca01221fccc10a735da06b3d695c25b_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_aca01221fccc10a735da06b3d695c25b_5 = NULL; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235 = NULL; - struct Nuitka_FrameObject *frame_a5de3027f055170f0bf431b824d52d88_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_a5de3027f055170f0bf431b824d52d88_6 = NULL; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324 = NULL; - struct Nuitka_FrameObject *frame_9171f0378e83efc52a6d63ba30cfd90a_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7 = NULL; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *locals_models$modeling_llama$$$class__7_LlamaModel_415 = NULL; - struct Nuitka_FrameObject *frame_8c53a3442347f49427162dbefea4c48e_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_8c53a3442347f49427162dbefea4c48e_8 = NULL; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600 = NULL; - struct Nuitka_FrameObject *frame_d7f5c0252258d40dc97c13fce1ad00df_9; - NUITKA_MAY_BE_UNUSED char const *type_description_9 = NULL; - static struct Nuitka_FrameObject *cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9 = NULL; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[229]; - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[230], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[231], tmp_assign_source_2); - } - // Frame without reuse. - frame_b47d89b49d102399398e0765f596b180 = MAKE_MODULE_FRAME(codeobj_b47d89b49d102399398e0765f596b180, module_models$modeling_llama); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_b47d89b49d102399398e0765f596b180); - assert(Py_REFCNT(frame_b47d89b49d102399398e0765f596b180) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[232]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[232]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[233], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[232]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[232]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[234], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[235], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[114]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 4; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[114], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[236]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[237]; - tmp_level_name_2 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 5; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_5; - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_1; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_1 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[238], - mod_consts[14] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[238]); - } - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[238], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[239], - mod_consts[14] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[239]); - } - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[240], - mod_consts[14] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[240]); - } - - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[241], - mod_consts[14] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[241]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[241], tmp_assign_source_9); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[1]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 7; - tmp_assign_source_10 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[242]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 8; - tmp_assign_source_11 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_5; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[1]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[243]; - tmp_level_name_5 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 9; - tmp_import_name_from_5 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[33], - mod_consts[14] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[33]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[244]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[245]; - tmp_level_name_6 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 10; - tmp_assign_source_13 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_13; - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_6 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[246], - mod_consts[14] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[246]); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[246], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_7 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[209], - mod_consts[14] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[209]); - } - - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[209], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_8 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[247], - mod_consts[14] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[247]); - } - - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[247], tmp_assign_source_16); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_9; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[248]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[249]; - tmp_level_name_7 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 12; - tmp_import_name_from_9 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[83], - mod_consts[14] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[83]); - } - - Py_DECREF(tmp_import_name_from_9); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[83], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[250]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[251]; - tmp_level_name_8 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 13; - tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_3__module == NULL); - tmp_import_from_3__module = tmp_assign_source_18; - } - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_import_name_from_10; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_10 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[195], - mod_consts[14] - ); - } else { - tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[195]); - } - - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[195], tmp_assign_source_19); - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_import_name_from_11; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_11 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[212], - mod_consts[14] - ); - } else { - tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[212]); - } - - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[212], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_import_name_from_12; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_12 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[252], - mod_consts[14] - ); - } else { - tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[252]); - } - - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[252], tmp_assign_source_21); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_import_name_from_13; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[253]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[254]; - tmp_level_name_9 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 14; - tmp_import_name_from_13 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_import_name_from_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_assign_source_22 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[255], - mod_consts[14] - ); - } else { - tmp_assign_source_22 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[255]); - } - - Py_DECREF(tmp_import_name_from_13); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[255], tmp_assign_source_22); - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[256]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = mod_consts[257]; - tmp_level_name_10 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 15; - tmp_assign_source_23 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_4__module == NULL); - tmp_import_from_4__module = tmp_assign_source_23; - } - // Tried code: - { - PyObject *tmp_assign_source_24; - PyObject *tmp_import_name_from_14; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_14 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_14)) { - tmp_assign_source_24 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_14, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[258], - mod_consts[14] - ); - } else { - tmp_assign_source_24 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[258]); - } - - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[258], tmp_assign_source_24); - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_import_name_from_15; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_15 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_15)) { - tmp_assign_source_25 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_15, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[259], - mod_consts[14] - ); - } else { - tmp_assign_source_25 = IMPORT_NAME(tmp_import_name_from_15, mod_consts[259]); - } - - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[259], tmp_assign_source_25); - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_import_name_from_16; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_16 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_16)) { - tmp_assign_source_26 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_16, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[260], - mod_consts[14] - ); - } else { - tmp_assign_source_26 = IMPORT_NAME(tmp_import_name_from_16, mod_consts[260]); - } - - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[260], tmp_assign_source_26); - } - { - PyObject *tmp_assign_source_27; - PyObject *tmp_import_name_from_17; - CHECK_OBJECT(tmp_import_from_4__module); - tmp_import_name_from_17 = tmp_import_from_4__module; - if (PyModule_Check(tmp_import_name_from_17)) { - tmp_assign_source_27 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_17, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[261], - mod_consts[14] - ); - } else { - tmp_assign_source_27 = IMPORT_NAME(tmp_import_name_from_17, mod_consts[261]); - } - - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[261], tmp_assign_source_27); - } - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_4__module); - Py_DECREF(tmp_import_from_4__module); - tmp_import_from_4__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_import_from_4__module); - Py_DECREF(tmp_import_from_4__module); - tmp_import_from_4__module = NULL; - { - PyObject *tmp_assign_source_28; - PyObject *tmp_import_name_from_18; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[262]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[263]; - tmp_level_name_11 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 16; - tmp_import_name_from_18 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_18)) { - tmp_assign_source_28 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_18, - (PyObject *)moduledict_models$modeling_llama, - mod_consts[264], - mod_consts[14] - ); - } else { - tmp_assign_source_28 = IMPORT_NAME(tmp_import_name_from_18, mod_consts[264]); - } - - Py_DECREF(tmp_import_name_from_18); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[264], tmp_assign_source_28); - } - { - PyObject *tmp_assign_source_29; - PyObject *tmp_name_name_12; - PyObject *tmp_globals_arg_name_12; - PyObject *tmp_locals_arg_name_12; - PyObject *tmp_fromlist_name_12; - PyObject *tmp_level_name_12; - tmp_name_name_12 = mod_consts[265]; - tmp_globals_arg_name_12 = (PyObject *)moduledict_models$modeling_llama; - tmp_locals_arg_name_12 = Py_None; - tmp_fromlist_name_12 = Py_None; - tmp_level_name_12 = mod_consts[14]; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 17; - tmp_assign_source_29 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[265], tmp_assign_source_29); - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[260]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[260]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[266]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_args_element_name_1 == NULL)) { - tmp_args_element_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_args_element_name_1 == NULL)); - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 20; - tmp_assign_source_30 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[183], tmp_assign_source_30); - } - { - PyObject *tmp_assign_source_31; - tmp_assign_source_31 = mod_consts[264]; - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[268], tmp_assign_source_31); - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_defaults_1; - PyObject *tmp_annotations_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_2; - tmp_defaults_1 = mod_consts[179]; - tmp_dict_key_1 = mod_consts[269]; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[270]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - - goto frame_exception_exit_1; - } - tmp_annotations_1 = _PyDict_NewPresized( 4 ); - { - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[16]; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - - goto dict_build_exception_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[16]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[6]; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - - goto dict_build_exception_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[6]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[23]; - tmp_dict_value_1 = (PyObject *)&PyLong_Type; - tmp_res = PyDict_SetItem(tmp_annotations_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_annotations_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - Py_INCREF(tmp_defaults_1); - - - tmp_assign_source_32 = MAKE_FUNCTION_models$modeling_llama$$$function__1__make_causal_mask(tmp_defaults_1, tmp_annotations_1); - - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[166], tmp_assign_source_32); - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_defaults_2; - PyObject *tmp_annotations_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_5; - tmp_defaults_2 = mod_consts[200]; - tmp_dict_key_2 = mod_consts[10]; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - - goto frame_exception_exit_1; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[271]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - - goto frame_exception_exit_1; - } - tmp_annotations_2 = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_1; - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[16]; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - - goto dict_build_exception_2; - } - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[16]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[19]; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - - goto dict_build_exception_2; - } - tmp_subscript_name_1 = (PyObject *)&PyLong_Type; - tmp_dict_value_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_1); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - - goto dict_build_exception_2; - } - tmp_res = PyDict_SetItem(tmp_annotations_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_annotations_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - Py_INCREF(tmp_defaults_2); - - - tmp_assign_source_33 = MAKE_FUNCTION_models$modeling_llama$$$function__2__expand_mask(tmp_defaults_2, tmp_annotations_2); - - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[168], tmp_assign_source_33); - } - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_8; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[272]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_assign_source_34 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_34, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_34; - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_35 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_35; - } - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_36; - } - { - PyObject *tmp_assign_source_37; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[273]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_9 = tmp_class_creation_1__bases; - tmp_subscript_name_2 = mod_consts[14]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_2, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_37 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_37; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_10 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_10, mod_consts[274]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_11 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[274]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_tuple_element_2 = mod_consts[134]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 58; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_38; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_12; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_12 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_12, mod_consts[275]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[267]; - tmp_getattr_default_1 = mod_consts[277]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_13; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_13 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_13 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[267]); - Py_DECREF(tmp_expression_name_13); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_5; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 58; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_5; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_39; - } - branch_end_2:; - { - PyObject *tmp_assign_source_40; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[134]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_7; - } - if (isFrameUnusable(cache_frame_8d9c85872767131fcb53711a96f1cb64_2)) { - Py_XDECREF(cache_frame_8d9c85872767131fcb53711a96f1cb64_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8d9c85872767131fcb53711a96f1cb64_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8d9c85872767131fcb53711a96f1cb64_2 = MAKE_FUNCTION_FRAME(codeobj_8d9c85872767131fcb53711a96f1cb64, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8d9c85872767131fcb53711a96f1cb64_2->m_type_description == NULL); - frame_8d9c85872767131fcb53711a96f1cb64_2 = cache_frame_8d9c85872767131fcb53711a96f1cb64_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8d9c85872767131fcb53711a96f1cb64_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8d9c85872767131fcb53711a96f1cb64_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_defaults_3 = mod_consts[280]; - Py_INCREF(tmp_defaults_3); - - tmp_closure_1[0] = outline_0_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__3___init__(tmp_defaults_3, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__4_forward(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_2 = "c"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8d9c85872767131fcb53711a96f1cb64_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8d9c85872767131fcb53711a96f1cb64_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8d9c85872767131fcb53711a96f1cb64_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8d9c85872767131fcb53711a96f1cb64_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8d9c85872767131fcb53711a96f1cb64_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8d9c85872767131fcb53711a96f1cb64_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_8d9c85872767131fcb53711a96f1cb64_2 == cache_frame_8d9c85872767131fcb53711a96f1cb64_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8d9c85872767131fcb53711a96f1cb64_2); - cache_frame_8d9c85872767131fcb53711a96f1cb64_2 = NULL; - } - - assertFrameObject(frame_8d9c85872767131fcb53711a96f1cb64_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_7; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_7; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_7; - } - branch_no_4:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_3 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[134]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 58; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - - goto try_except_handler_7; - } - { - PyObject *old = Nuitka_Cell_GET(outline_0_var___class__); - PyCell_SET(outline_0_var___class__, tmp_assign_source_41); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_0_var___class__)); - tmp_assign_source_40 = Nuitka_Cell_GET(outline_0_var___class__); - Py_INCREF(tmp_assign_source_40); - goto try_return_handler_7; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_DECREF(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58); - locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58 = NULL; - goto try_return_handler_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58); - locals_models$modeling_llama$$$class__1_LlamaRMSNorm_58 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 58; - goto try_except_handler_5; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[134], tmp_assign_source_40); - } - goto try_end_5; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_42; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_expression_name_15; - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_expression_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[33]); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[272]); - Py_DECREF(tmp_expression_name_14); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_assign_source_42 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_42, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_42; - } - { - PyObject *tmp_assign_source_43; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_43 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_43; - } - { - PyObject *tmp_assign_source_44; - tmp_assign_source_44 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_44; - } - { - PyObject *tmp_assign_source_45; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[273]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_16 = tmp_class_creation_2__bases; - tmp_subscript_name_3 = mod_consts[14]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_16, tmp_subscript_name_3, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_45 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_45; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_17 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[274]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_46; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_18; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_18 = tmp_class_creation_2__metaclass; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[274]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_tuple_element_6 = mod_consts[98]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 78; - tmp_assign_source_46 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_46; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_19 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[275]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[267]; - tmp_getattr_default_2 = mod_consts[277]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_20; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_20 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_20 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[267]); - Py_DECREF(tmp_expression_name_20); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_8; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_8; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 78; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_8; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_47; - } - branch_end_6:; - { - PyObject *tmp_assign_source_48; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[98]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_10; - } - if (isFrameUnusable(cache_frame_1cc896795a78acf396f78e2df5833914_3)) { - Py_XDECREF(cache_frame_1cc896795a78acf396f78e2df5833914_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1cc896795a78acf396f78e2df5833914_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1cc896795a78acf396f78e2df5833914_3 = MAKE_FUNCTION_FRAME(codeobj_1cc896795a78acf396f78e2df5833914, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1cc896795a78acf396f78e2df5833914_3->m_type_description == NULL); - frame_1cc896795a78acf396f78e2df5833914_3 = cache_frame_1cc896795a78acf396f78e2df5833914_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1cc896795a78acf396f78e2df5833914_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1cc896795a78acf396f78e2df5833914_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_4 = mod_consts[285]; - Py_INCREF(tmp_defaults_4); - - tmp_closure_2[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__5___init__(tmp_defaults_4, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - { - PyObject *tmp_defaults_5; - tmp_defaults_5 = mod_consts[200]; - Py_INCREF(tmp_defaults_5); - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__6_forward(tmp_defaults_5); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1cc896795a78acf396f78e2df5833914_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1cc896795a78acf396f78e2df5833914_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1cc896795a78acf396f78e2df5833914_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1cc896795a78acf396f78e2df5833914_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1cc896795a78acf396f78e2df5833914_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1cc896795a78acf396f78e2df5833914_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_1cc896795a78acf396f78e2df5833914_3 == cache_frame_1cc896795a78acf396f78e2df5833914_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1cc896795a78acf396f78e2df5833914_3); - cache_frame_1cc896795a78acf396f78e2df5833914_3 = NULL; - } - - assertFrameObject(frame_1cc896795a78acf396f78e2df5833914_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_10; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_10; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_10; - } - branch_no_8:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_5 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[98]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 78; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - - goto try_except_handler_10; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_49); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_48 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_48); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_DECREF(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78); - locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78 = NULL; - goto try_return_handler_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78); - locals_models$modeling_llama$$$class__2_LlamaRotaryEmbedding_78 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_9; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 78; - goto try_except_handler_8; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[98], tmp_assign_source_48); - } - goto try_end_6; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_50; - - - tmp_assign_source_50 = MAKE_FUNCTION_models$modeling_llama$$$function__7_rotate_half(); - - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[73], tmp_assign_source_50); - } - { - PyObject *tmp_assign_source_51; - - - tmp_assign_source_51 = MAKE_FUNCTION_models$modeling_llama$$$function__8_apply_rotary_pos_emb(); - - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[108], tmp_assign_source_51); - } - // Tried code: - { - PyObject *tmp_assign_source_52; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_21; - tmp_expression_name_21 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_21 == NULL)) { - tmp_expression_name_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[272]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_assign_source_52 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_52, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_52; - } - { - PyObject *tmp_assign_source_53; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_53 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_53; - } - { - PyObject *tmp_assign_source_54; - tmp_assign_source_54 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_54; - } - { - PyObject *tmp_assign_source_55; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[273]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_22 = tmp_class_creation_3__bases; - tmp_subscript_name_4 = mod_consts[14]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_4, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_55 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_55; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_23; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_23 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_23, mod_consts[274]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_56; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_24 = tmp_class_creation_3__metaclass; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[274]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_tuple_element_10 = mod_consts[131]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 127; - tmp_assign_source_56 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_56; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_25 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[275]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[267]; - tmp_getattr_default_3 = mod_consts[277]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_26 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_26 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[267]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_11; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_11; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 127; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_11; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_57; - tmp_assign_source_57 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_57; - } - branch_end_10:; - { - PyObject *tmp_assign_source_58; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$modeling_llama$$$class__3_LlamaMLP_127 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[131]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_13; - } - if (isFrameUnusable(cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4)) { - Py_XDECREF(cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4 = MAKE_FUNCTION_FRAME(codeobj_d3d850b73f36ab819cbbe4b6b25a3a5e, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4->m_type_description == NULL); - frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4 = cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_dict_key_3 = mod_consts[80]; - tmp_dict_value_3 = PyObject_GetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[288]); - - if (tmp_dict_value_3 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_3 = (PyObject *)&PyLong_Type; - Py_INCREF(tmp_dict_value_3); - } - } - - tmp_annotations_3 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_annotations_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[79]; - tmp_dict_value_3 = PyObject_GetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[288]); - - if (tmp_dict_value_3 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_3 = (PyObject *)&PyLong_Type; - Py_INCREF(tmp_dict_value_3); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[132]; - tmp_dict_value_3 = PyObject_GetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[289]); - - if (tmp_dict_value_3 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_3 = (PyObject *)&PyUnicode_Type; - Py_INCREF(tmp_dict_value_3); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_3, tmp_dict_key_3, tmp_dict_value_3); - Py_DECREF(tmp_dict_value_3); - assert(!(tmp_res != 0)); - - tmp_closure_3[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__9___init__(tmp_annotations_3, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__10_forward(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4 == cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4); - cache_frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4 = NULL; - } - - assertFrameObject(frame_d3d850b73f36ab819cbbe4b6b25a3a5e_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_13; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_13; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__3_LlamaMLP_127, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_13; - } - branch_no_12:; - { - PyObject *tmp_assign_source_59; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_7 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[131]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$modeling_llama$$$class__3_LlamaMLP_127; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 127; - tmp_assign_source_59 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - - goto try_except_handler_13; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_59); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_58 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_58); - goto try_return_handler_13; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - Py_DECREF(locals_models$modeling_llama$$$class__3_LlamaMLP_127); - locals_models$modeling_llama$$$class__3_LlamaMLP_127 = NULL; - goto try_return_handler_12; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__3_LlamaMLP_127); - locals_models$modeling_llama$$$class__3_LlamaMLP_127 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_12; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 127; - goto try_except_handler_11; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[131], tmp_assign_source_58); - } - goto try_end_7; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_60; - PyObject *tmp_tuple_element_13; - PyObject *tmp_expression_name_27; - tmp_expression_name_27 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_27 == NULL)) { - tmp_expression_name_27 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[272]); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_assign_source_60 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_60, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_60; - } - { - PyObject *tmp_assign_source_61; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_61 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - tmp_assign_source_62 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_28; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[273]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_28 = tmp_class_creation_4__bases; - tmp_subscript_name_5 = mod_consts[14]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_28, tmp_subscript_name_5, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_63 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_63; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_29; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_29 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_29, mod_consts[274]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_64; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_30; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_30 = tmp_class_creation_4__metaclass; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[274]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_tuple_element_14 = mod_consts[129]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 144; - tmp_assign_source_64 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_64; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_31; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_31 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_31, mod_consts[275]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[267]; - tmp_getattr_default_4 = mod_consts[277]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_32; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_32 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_32 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[267]); - Py_DECREF(tmp_expression_name_32); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_14; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 144; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_14; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_65; - tmp_assign_source_65 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_65; - } - branch_end_14:; - { - PyObject *tmp_assign_source_66; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$modeling_llama$$$class__4_LlamaAttention_144 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[292]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[230], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[129]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_16; - } - if (isFrameUnusable(cache_frame_aca01221fccc10a735da06b3d695c25b_5)) { - Py_XDECREF(cache_frame_aca01221fccc10a735da06b3d695c25b_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_aca01221fccc10a735da06b3d695c25b_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_aca01221fccc10a735da06b3d695c25b_5 = MAKE_FUNCTION_FRAME(codeobj_aca01221fccc10a735da06b3d695c25b, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_aca01221fccc10a735da06b3d695c25b_5->m_type_description == NULL); - frame_aca01221fccc10a735da06b3d695c25b_5 = cache_frame_aca01221fccc10a735da06b3d695c25b_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_aca01221fccc10a735da06b3d695c25b_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_aca01221fccc10a735da06b3d695c25b_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - struct Nuitka_CellObject *tmp_closure_4[1]; - tmp_dict_key_4 = mod_consts[85]; - tmp_dict_value_4 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[264]); - - if (tmp_dict_value_4 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_4 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[264]); - - if (unlikely(tmp_dict_value_4 == NULL)) { - tmp_dict_value_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[264]); - } - - if (tmp_dict_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_dict_value_4); - } - } - - tmp_annotations_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_4, tmp_dict_key_4, tmp_dict_value_4); - Py_DECREF(tmp_dict_value_4); - assert(!(tmp_res != 0)); - - tmp_closure_4[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__11___init__(tmp_annotations_4, tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - { - PyObject *tmp_annotations_5; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - PyObject *tmp_expression_name_33; - tmp_dict_key_5 = mod_consts[3]; - tmp_expression_name_33 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_33 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_33 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_33 == NULL)) { - tmp_expression_name_33 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_33); - } - } - - tmp_dict_value_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[271]); - Py_DECREF(tmp_expression_name_33); - if (tmp_dict_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - tmp_annotations_5 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_annotations_5, tmp_dict_key_5, tmp_dict_value_5); - Py_DECREF(tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[107]; - tmp_dict_value_5 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[288]); - - if (tmp_dict_value_5 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_5 = (PyObject *)&PyLong_Type; - Py_INCREF(tmp_dict_value_5); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_5, tmp_dict_key_5, tmp_dict_value_5); - Py_DECREF(tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[104]; - tmp_dict_value_5 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[288]); - - if (tmp_dict_value_5 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_5 = (PyObject *)&PyLong_Type; - Py_INCREF(tmp_dict_value_5); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_5, tmp_dict_key_5, tmp_dict_value_5); - Py_DECREF(tmp_dict_value_5); - assert(!(tmp_res != 0)); - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__12__shape(tmp_annotations_5); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[294], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - { - PyObject *tmp_defaults_6; - PyObject *tmp_annotations_6; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - PyObject *tmp_expression_name_34; - tmp_defaults_6 = mod_consts[296]; - tmp_dict_key_6 = mod_consts[44]; - tmp_expression_name_34 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_34 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_34 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_34 == NULL)) { - tmp_expression_name_34 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - Py_INCREF(tmp_expression_name_34); - } - } - - tmp_dict_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[271]); - Py_DECREF(tmp_expression_name_34); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - tmp_annotations_6 = _PyDict_NewPresized( 7 ); - { - PyObject *tmp_expression_name_35; - PyObject *tmp_subscript_name_6; - PyObject *tmp_expression_name_36; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_7; - PyObject *tmp_expression_name_38; - PyObject *tmp_expression_name_39; - PyObject *tmp_subscript_name_8; - PyObject *tmp_expression_name_40; - PyObject *tmp_subscript_name_9; - PyObject *tmp_expression_name_41; - PyObject *tmp_expression_name_42; - PyObject *tmp_subscript_name_10; - PyObject *tmp_tuple_element_16; - PyObject *tmp_expression_name_43; - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[121]; - tmp_expression_name_35 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[239]); - - if (tmp_expression_name_35 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_35 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_35 == NULL)) { - tmp_expression_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_35); - } - } - - tmp_expression_name_36 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_36 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_35); - - exception_lineno = 172; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_36); - } - } - - tmp_subscript_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[271]); - Py_DECREF(tmp_expression_name_36); - if (tmp_subscript_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_35); - - exception_lineno = 172; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_dict_value_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_35, tmp_subscript_name_6); - Py_DECREF(tmp_expression_name_35); - Py_DECREF(tmp_subscript_name_6); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[139]; - tmp_expression_name_37 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[239]); - - if (tmp_expression_name_37 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_37 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_37 == NULL)) { - tmp_expression_name_37 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_37); - } - } - - tmp_expression_name_38 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_38 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_38 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_38 == NULL)) { - tmp_expression_name_38 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_37); - - exception_lineno = 173; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_38); - } - } - - tmp_subscript_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[297]); - Py_DECREF(tmp_expression_name_38); - if (tmp_subscript_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_37); - - exception_lineno = 173; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_dict_value_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_37, tmp_subscript_name_7); - Py_DECREF(tmp_expression_name_37); - Py_DECREF(tmp_subscript_name_7); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[140]; - tmp_expression_name_39 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[239]); - - if (tmp_expression_name_39 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_39 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_39 == NULL)) { - tmp_expression_name_39 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_39); - } - } - - tmp_expression_name_40 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[240]); - - if (tmp_expression_name_40 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_40 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_expression_name_40 == NULL)) { - tmp_expression_name_40 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_expression_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_39); - - exception_lineno = 174; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_40); - } - } - - tmp_expression_name_41 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_41 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_41 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_41 == NULL)) { - tmp_expression_name_41 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_39); - Py_DECREF(tmp_expression_name_40); - - exception_lineno = 174; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_41); - } - } - - tmp_subscript_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[271]); - Py_DECREF(tmp_expression_name_41); - if (tmp_subscript_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_39); - Py_DECREF(tmp_expression_name_40); - - exception_lineno = 174; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_subscript_name_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_40, tmp_subscript_name_9); - Py_DECREF(tmp_expression_name_40); - Py_DECREF(tmp_subscript_name_9); - if (tmp_subscript_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_39); - - exception_lineno = 174; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_dict_value_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_39, tmp_subscript_name_8); - Py_DECREF(tmp_expression_name_39); - Py_DECREF(tmp_subscript_name_8); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[141]; - tmp_dict_value_6 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[29]); - - if (tmp_dict_value_6 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_6 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_dict_value_6); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[142]; - tmp_dict_value_6 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[29]); - - if (tmp_dict_value_6 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_6 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_dict_value_6); - } - } - - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[298]; - tmp_expression_name_42 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[240]); - - if (tmp_expression_name_42 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_42 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_expression_name_42 == NULL)) { - tmp_expression_name_42 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_expression_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_42); - } - } - - tmp_expression_name_43 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_43 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_43 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_43 == NULL)) { - tmp_expression_name_43 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_42); - - exception_lineno = 177; - type_description_2 = "c"; - goto dict_build_exception_3; - } - Py_INCREF(tmp_expression_name_43); - } - } - - tmp_tuple_element_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[271]); - Py_DECREF(tmp_expression_name_43); - if (tmp_tuple_element_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_42); - - exception_lineno = 177; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_subscript_name_10 = PyTuple_New(3); - { - PyObject *tmp_expression_name_44; - PyObject *tmp_subscript_name_11; - PyObject *tmp_expression_name_45; - PyObject *tmp_expression_name_46; - PyObject *tmp_subscript_name_12; - PyObject *tmp_expression_name_47; - PyObject *tmp_subscript_name_13; - PyObject *tmp_expression_name_48; - PyTuple_SET_ITEM(tmp_subscript_name_10, 0, tmp_tuple_element_16); - tmp_expression_name_44 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[239]); - - if (tmp_expression_name_44 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_44 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_44 == NULL)) { - tmp_expression_name_44 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - Py_INCREF(tmp_expression_name_44); - } - } - - tmp_expression_name_45 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_45 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_45 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_45 == NULL)) { - tmp_expression_name_45 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_44); - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - Py_INCREF(tmp_expression_name_45); - } - } - - tmp_subscript_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[271]); - Py_DECREF(tmp_expression_name_45); - if (tmp_subscript_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_44); - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - tmp_tuple_element_16 = LOOKUP_SUBSCRIPT(tmp_expression_name_44, tmp_subscript_name_11); - Py_DECREF(tmp_expression_name_44); - Py_DECREF(tmp_subscript_name_11); - if (tmp_tuple_element_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_subscript_name_10, 1, tmp_tuple_element_16); - tmp_expression_name_46 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[239]); - - if (tmp_expression_name_46 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_46 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_46 == NULL)) { - tmp_expression_name_46 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - Py_INCREF(tmp_expression_name_46); - } - } - - tmp_expression_name_47 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[240]); - - if (tmp_expression_name_47 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_47 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_expression_name_47 == NULL)) { - tmp_expression_name_47 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_expression_name_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_46); - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - Py_INCREF(tmp_expression_name_47); - } - } - - tmp_expression_name_48 = PyObject_GetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[1]); - - if (tmp_expression_name_48 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_48 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_48 == NULL)) { - tmp_expression_name_48 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_46); - Py_DECREF(tmp_expression_name_47); - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - Py_INCREF(tmp_expression_name_48); - } - } - - tmp_subscript_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_48, mod_consts[271]); - Py_DECREF(tmp_expression_name_48); - if (tmp_subscript_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_46); - Py_DECREF(tmp_expression_name_47); - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - tmp_subscript_name_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_47, tmp_subscript_name_13); - Py_DECREF(tmp_expression_name_47); - Py_DECREF(tmp_subscript_name_13); - if (tmp_subscript_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_46); - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - tmp_tuple_element_16 = LOOKUP_SUBSCRIPT(tmp_expression_name_46, tmp_subscript_name_12); - Py_DECREF(tmp_expression_name_46); - Py_DECREF(tmp_subscript_name_12); - if (tmp_tuple_element_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_2 = "c"; - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_subscript_name_10, 2, tmp_tuple_element_16); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_expression_name_42); - Py_DECREF(tmp_subscript_name_10); - goto dict_build_exception_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_dict_value_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_42, tmp_subscript_name_10); - Py_DECREF(tmp_expression_name_42); - Py_DECREF(tmp_subscript_name_10); - if (tmp_dict_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_2 = "c"; - goto dict_build_exception_3; - } - tmp_res = PyDict_SetItem(tmp_annotations_6, tmp_dict_key_6, tmp_dict_value_6); - Py_DECREF(tmp_dict_value_6); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_3; - // Exception handling pass through code for dict_build: - dict_build_exception_3:; - Py_DECREF(tmp_annotations_6); - goto frame_exception_exit_5; - // Finished with no exception for dict_build: - dict_build_noexception_3:; - Py_INCREF(tmp_defaults_6); - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__13_forward(tmp_defaults_6, tmp_annotations_6); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aca01221fccc10a735da06b3d695c25b_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aca01221fccc10a735da06b3d695c25b_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_aca01221fccc10a735da06b3d695c25b_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_aca01221fccc10a735da06b3d695c25b_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_aca01221fccc10a735da06b3d695c25b_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_aca01221fccc10a735da06b3d695c25b_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_aca01221fccc10a735da06b3d695c25b_5 == cache_frame_aca01221fccc10a735da06b3d695c25b_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_aca01221fccc10a735da06b3d695c25b_5); - cache_frame_aca01221fccc10a735da06b3d695c25b_5 = NULL; - } - - assertFrameObject(frame_aca01221fccc10a735da06b3d695c25b_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_16; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_16; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__4_LlamaAttention_144, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_16; - } - branch_no_16:; - { - PyObject *tmp_assign_source_67; - PyObject *tmp_called_name_9; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_17; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_9 = tmp_class_creation_4__metaclass; - tmp_tuple_element_17 = mod_consts[129]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_17); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_17 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_17); - tmp_tuple_element_17 = locals_models$modeling_llama$$$class__4_LlamaAttention_144; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_17); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 144; - tmp_assign_source_67 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - - goto try_except_handler_16; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_67); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_66 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_66); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_DECREF(locals_models$modeling_llama$$$class__4_LlamaAttention_144); - locals_models$modeling_llama$$$class__4_LlamaAttention_144 = NULL; - goto try_return_handler_15; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__4_LlamaAttention_144); - locals_models$modeling_llama$$$class__4_LlamaAttention_144 = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto try_except_handler_15; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 144; - goto try_except_handler_14; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[129], tmp_assign_source_66); - } - goto try_end_8; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_68; - PyObject *tmp_tuple_element_18; - PyObject *tmp_expression_name_49; - tmp_expression_name_49 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_expression_name_49 == NULL)) { - tmp_expression_name_49 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_expression_name_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_tuple_element_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[272]); - if (tmp_tuple_element_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_assign_source_68 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_68, 0, tmp_tuple_element_18); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_68; - } - { - PyObject *tmp_assign_source_69; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_69 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - tmp_assign_source_70 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_70; - } - { - PyObject *tmp_assign_source_71; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_50; - PyObject *tmp_subscript_name_14; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[273]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_50 = tmp_class_creation_5__bases; - tmp_subscript_name_14 = mod_consts[14]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_50, tmp_subscript_name_14, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_71 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_71; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_51; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_51 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_51, mod_consts[274]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_72; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_52; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_19; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_52 = tmp_class_creation_5__metaclass; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[274]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_tuple_element_19 = mod_consts[162]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_19 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 235; - tmp_assign_source_72 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_72; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_53; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_53 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_53, mod_consts[275]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_20; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[267]; - tmp_getattr_default_5 = mod_consts[277]; - tmp_tuple_element_20 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_54; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_54 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_54 == NULL)); - tmp_tuple_element_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[267]); - Py_DECREF(tmp_expression_name_54); - if (tmp_tuple_element_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_20); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_17; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_17; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 235; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_17; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_73; - tmp_assign_source_73 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_73; - } - branch_end_18:; - { - PyObject *tmp_assign_source_74; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_19; - } - tmp_dictset_value = mod_consts[162]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_19; - } - if (isFrameUnusable(cache_frame_a5de3027f055170f0bf431b824d52d88_6)) { - Py_XDECREF(cache_frame_a5de3027f055170f0bf431b824d52d88_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a5de3027f055170f0bf431b824d52d88_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a5de3027f055170f0bf431b824d52d88_6 = MAKE_FUNCTION_FRAME(codeobj_a5de3027f055170f0bf431b824d52d88, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a5de3027f055170f0bf431b824d52d88_6->m_type_description == NULL); - frame_a5de3027f055170f0bf431b824d52d88_6 = cache_frame_a5de3027f055170f0bf431b824d52d88_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a5de3027f055170f0bf431b824d52d88_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a5de3027f055170f0bf431b824d52d88_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_7; - PyObject *tmp_dict_key_7; - PyObject *tmp_dict_value_7; - struct Nuitka_CellObject *tmp_closure_5[1]; - tmp_dict_key_7 = mod_consts[85]; - tmp_dict_value_7 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[264]); - - if (tmp_dict_value_7 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_7 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[264]); - - if (unlikely(tmp_dict_value_7 == NULL)) { - tmp_dict_value_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[264]); - } - - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - Py_INCREF(tmp_dict_value_7); - } - } - - tmp_annotations_7 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_7, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - - tmp_closure_5[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__14___init__(tmp_annotations_7, tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - { - PyObject *tmp_defaults_7; - PyObject *tmp_annotations_8; - PyObject *tmp_dict_key_8; - PyObject *tmp_dict_value_8; - PyObject *tmp_expression_name_55; - tmp_defaults_7 = mod_consts[296]; - tmp_dict_key_8 = mod_consts[44]; - tmp_expression_name_55 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_55 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_55 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_55 == NULL)) { - tmp_expression_name_55 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - Py_INCREF(tmp_expression_name_55); - } - } - - tmp_dict_value_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_55, mod_consts[271]); - Py_DECREF(tmp_expression_name_55); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - tmp_annotations_8 = _PyDict_NewPresized( 7 ); - { - PyObject *tmp_expression_name_56; - PyObject *tmp_subscript_name_15; - PyObject *tmp_expression_name_57; - PyObject *tmp_expression_name_58; - PyObject *tmp_subscript_name_16; - PyObject *tmp_expression_name_59; - PyObject *tmp_expression_name_60; - PyObject *tmp_subscript_name_17; - PyObject *tmp_expression_name_61; - PyObject *tmp_subscript_name_18; - PyObject *tmp_expression_name_62; - PyObject *tmp_expression_name_63; - PyObject *tmp_subscript_name_19; - PyObject *tmp_expression_name_64; - PyObject *tmp_subscript_name_20; - PyObject *tmp_expression_name_65; - PyObject *tmp_subscript_name_21; - PyObject *tmp_tuple_element_21; - PyObject *tmp_expression_name_66; - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - tmp_dict_key_8 = mod_consts[121]; - tmp_expression_name_56 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[239]); - - if (tmp_expression_name_56 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_56 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_56 == NULL)) { - tmp_expression_name_56 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_56); - } - } - - tmp_expression_name_57 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_57 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_57 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_57 == NULL)) { - tmp_expression_name_57 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_56); - - exception_lineno = 251; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_57); - } - } - - tmp_subscript_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_57, mod_consts[271]); - Py_DECREF(tmp_expression_name_57); - if (tmp_subscript_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_56); - - exception_lineno = 251; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_dict_value_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_56, tmp_subscript_name_15); - Py_DECREF(tmp_expression_name_56); - Py_DECREF(tmp_subscript_name_15); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - tmp_dict_key_8 = mod_consts[139]; - tmp_expression_name_58 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[239]); - - if (tmp_expression_name_58 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_58 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_58 == NULL)) { - tmp_expression_name_58 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_58); - } - } - - tmp_expression_name_59 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_59 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_59 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_59 == NULL)) { - tmp_expression_name_59 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_59 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_58); - - exception_lineno = 252; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_59); - } - } - - tmp_subscript_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_59, mod_consts[297]); - Py_DECREF(tmp_expression_name_59); - if (tmp_subscript_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_58); - - exception_lineno = 252; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_dict_value_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_58, tmp_subscript_name_16); - Py_DECREF(tmp_expression_name_58); - Py_DECREF(tmp_subscript_name_16); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - tmp_dict_key_8 = mod_consts[140]; - tmp_expression_name_60 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[239]); - - if (tmp_expression_name_60 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_60 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_60 == NULL)) { - tmp_expression_name_60 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_60); - } - } - - tmp_expression_name_61 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[240]); - - if (tmp_expression_name_61 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_61 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_expression_name_61 == NULL)) { - tmp_expression_name_61 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_expression_name_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_60); - - exception_lineno = 253; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_61); - } - } - - tmp_expression_name_62 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_62 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_62 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_62 == NULL)) { - tmp_expression_name_62 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_60); - Py_DECREF(tmp_expression_name_61); - - exception_lineno = 253; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_62); - } - } - - tmp_subscript_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_62, mod_consts[271]); - Py_DECREF(tmp_expression_name_62); - if (tmp_subscript_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_60); - Py_DECREF(tmp_expression_name_61); - - exception_lineno = 253; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_subscript_name_17 = LOOKUP_SUBSCRIPT(tmp_expression_name_61, tmp_subscript_name_18); - Py_DECREF(tmp_expression_name_61); - Py_DECREF(tmp_subscript_name_18); - if (tmp_subscript_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_60); - - exception_lineno = 253; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_dict_value_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_60, tmp_subscript_name_17); - Py_DECREF(tmp_expression_name_60); - Py_DECREF(tmp_subscript_name_17); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - tmp_dict_key_8 = mod_consts[141]; - tmp_expression_name_63 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[239]); - - if (tmp_expression_name_63 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_63 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_63 == NULL)) { - tmp_expression_name_63 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_63); - } - } - - tmp_subscript_name_19 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[29]); - - if (tmp_subscript_name_19 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_19 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_19); - } - } - - tmp_dict_value_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_63, tmp_subscript_name_19); - Py_DECREF(tmp_expression_name_63); - Py_DECREF(tmp_subscript_name_19); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - tmp_dict_key_8 = mod_consts[142]; - tmp_expression_name_64 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[239]); - - if (tmp_expression_name_64 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_64 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_64 == NULL)) { - tmp_expression_name_64 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_64); - } - } - - tmp_subscript_name_20 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[29]); - - if (tmp_subscript_name_20 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_20 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_20); - } - } - - tmp_dict_value_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_64, tmp_subscript_name_20); - Py_DECREF(tmp_expression_name_64); - Py_DECREF(tmp_subscript_name_20); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - tmp_dict_key_8 = mod_consts[298]; - tmp_expression_name_65 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[240]); - - if (tmp_expression_name_65 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_65 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_expression_name_65 == NULL)) { - tmp_expression_name_65 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_expression_name_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_65); - } - } - - tmp_expression_name_66 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_66 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_66 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_66 == NULL)) { - tmp_expression_name_66 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_66 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_65); - - exception_lineno = 256; - type_description_2 = "c"; - goto dict_build_exception_4; - } - Py_INCREF(tmp_expression_name_66); - } - } - - tmp_tuple_element_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_66, mod_consts[301]); - Py_DECREF(tmp_expression_name_66); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_65); - - exception_lineno = 256; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_subscript_name_21 = PyTuple_New(2); - { - PyObject *tmp_expression_name_67; - PyObject *tmp_subscript_name_22; - PyObject *tmp_expression_name_68; - PyObject *tmp_subscript_name_23; - PyObject *tmp_tuple_element_22; - PyObject *tmp_expression_name_69; - PyTuple_SET_ITEM(tmp_subscript_name_21, 0, tmp_tuple_element_21); - tmp_expression_name_67 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[239]); - - if (tmp_expression_name_67 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_67 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_67 == NULL)) { - tmp_expression_name_67 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_7; - } - Py_INCREF(tmp_expression_name_67); - } - } - - tmp_expression_name_68 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[240]); - - if (tmp_expression_name_68 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_68 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_expression_name_68 == NULL)) { - tmp_expression_name_68 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_expression_name_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_67); - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_7; - } - Py_INCREF(tmp_expression_name_68); - } - } - - tmp_expression_name_69 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_69 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_69 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_69 == NULL)) { - tmp_expression_name_69 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_67); - Py_DECREF(tmp_expression_name_68); - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_7; - } - Py_INCREF(tmp_expression_name_69); - } - } - - tmp_tuple_element_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_69, mod_consts[301]); - Py_DECREF(tmp_expression_name_69); - if (tmp_tuple_element_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_67); - Py_DECREF(tmp_expression_name_68); - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_7; - } - tmp_subscript_name_23 = PyTuple_New(2); - { - PyObject *tmp_expression_name_70; - PyTuple_SET_ITEM(tmp_subscript_name_23, 0, tmp_tuple_element_22); - tmp_expression_name_70 = PyObject_GetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[1]); - - if (tmp_expression_name_70 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_70 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_70 == NULL)) { - tmp_expression_name_70 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_8; - } - Py_INCREF(tmp_expression_name_70); - } - } - - tmp_tuple_element_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_70, mod_consts[301]); - Py_DECREF(tmp_expression_name_70); - if (tmp_tuple_element_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_subscript_name_23, 1, tmp_tuple_element_22); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_expression_name_67); - Py_DECREF(tmp_expression_name_68); - Py_DECREF(tmp_subscript_name_23); - goto tuple_build_exception_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_subscript_name_22 = LOOKUP_SUBSCRIPT(tmp_expression_name_68, tmp_subscript_name_23); - Py_DECREF(tmp_expression_name_68); - Py_DECREF(tmp_subscript_name_23); - if (tmp_subscript_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_67); - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_7; - } - tmp_tuple_element_21 = LOOKUP_SUBSCRIPT(tmp_expression_name_67, tmp_subscript_name_22); - Py_DECREF(tmp_expression_name_67); - Py_DECREF(tmp_subscript_name_22); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_2 = "c"; - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_subscript_name_21, 1, tmp_tuple_element_21); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_expression_name_65); - Py_DECREF(tmp_subscript_name_21); - goto dict_build_exception_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_dict_value_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_65, tmp_subscript_name_21); - Py_DECREF(tmp_expression_name_65); - Py_DECREF(tmp_subscript_name_21); - if (tmp_dict_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_2 = "c"; - goto dict_build_exception_4; - } - tmp_res = PyDict_SetItem(tmp_annotations_8, tmp_dict_key_8, tmp_dict_value_8); - Py_DECREF(tmp_dict_value_8); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_4; - // Exception handling pass through code for dict_build: - dict_build_exception_4:; - Py_DECREF(tmp_annotations_8); - goto frame_exception_exit_6; - // Finished with no exception for dict_build: - dict_build_noexception_4:; - Py_INCREF(tmp_defaults_7); - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__15_forward(tmp_defaults_7, tmp_annotations_8); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a5de3027f055170f0bf431b824d52d88_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a5de3027f055170f0bf431b824d52d88_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a5de3027f055170f0bf431b824d52d88_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a5de3027f055170f0bf431b824d52d88_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a5de3027f055170f0bf431b824d52d88_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a5de3027f055170f0bf431b824d52d88_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_a5de3027f055170f0bf431b824d52d88_6 == cache_frame_a5de3027f055170f0bf431b824d52d88_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a5de3027f055170f0bf431b824d52d88_6); - cache_frame_a5de3027f055170f0bf431b824d52d88_6 = NULL; - } - - assertFrameObject(frame_a5de3027f055170f0bf431b824d52d88_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_19; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_19; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_19; - } - branch_no_20:; - { - PyObject *tmp_assign_source_75; - PyObject *tmp_called_name_11; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_23; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_11 = tmp_class_creation_5__metaclass; - tmp_tuple_element_23 = mod_consts[162]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_23 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_23); - tmp_tuple_element_23 = locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 235; - tmp_assign_source_75 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - - goto try_except_handler_19; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_75); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_74 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_74); - goto try_return_handler_19; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - Py_DECREF(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235); - locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235 = NULL; - goto try_return_handler_18; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235); - locals_models$modeling_llama$$$class__5_LlamaDecoderLayer_235 = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto try_except_handler_18; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 235; - goto try_except_handler_17; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[162], tmp_assign_source_74); - } - goto try_end_9; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - { - PyObject *tmp_assign_source_76; - tmp_assign_source_76 = mod_consts[303]; - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[304], tmp_assign_source_76); - } - // Tried code: - { - PyObject *tmp_assign_source_77; - PyObject *tmp_tuple_element_24; - tmp_tuple_element_24 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[255]); - - if (unlikely(tmp_tuple_element_24 == NULL)) { - tmp_tuple_element_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[255]); - } - - if (tmp_tuple_element_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - tmp_assign_source_77 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_77, 0, tmp_tuple_element_24); - assert(tmp_class_creation_6__bases_orig == NULL); - tmp_class_creation_6__bases_orig = tmp_assign_source_77; - } - { - PyObject *tmp_assign_source_78; - PyObject *tmp_dircall_arg1_6; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig; - Py_INCREF(tmp_dircall_arg1_6); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_6}; - tmp_assign_source_78 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - assert(tmp_class_creation_6__bases == NULL); - tmp_class_creation_6__bases = tmp_assign_source_78; - } - { - PyObject *tmp_assign_source_79; - tmp_assign_source_79 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_79; - } - { - PyObject *tmp_assign_source_80; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - nuitka_bool tmp_condition_result_32; - int tmp_truth_name_6; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_71; - PyObject *tmp_subscript_name_24; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[273]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_class_creation_6__bases); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - tmp_condition_result_32 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_expression_name_71 = tmp_class_creation_6__bases; - tmp_subscript_name_24 = mod_consts[14]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_71, tmp_subscript_name_24, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - tmp_metaclass_name_6 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_bases_name_6 = tmp_class_creation_6__bases; - tmp_assign_source_80 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_80 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_80; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_33 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_expression_name_72; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_72 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_72, mod_consts[274]); - tmp_condition_result_34 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_81; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_73; - PyObject *tmp_args_name_11; - PyObject *tmp_tuple_element_25; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_73 = tmp_class_creation_6__metaclass; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_73, mod_consts[274]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - tmp_tuple_element_25 = mod_consts[305]; - tmp_args_name_11 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_11, 0, tmp_tuple_element_25); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_25 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_11, 1, tmp_tuple_element_25); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 324; - tmp_assign_source_81 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_name_11); - if (tmp_assign_source_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_81; - } - { - nuitka_bool tmp_condition_result_35; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_74; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_74 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_74, mod_consts[275]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - tmp_condition_result_35 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_26; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[267]; - tmp_getattr_default_6 = mod_consts[277]; - tmp_tuple_element_26 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_75; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_12 = tmp_class_creation_6__prepared; - tmp_expression_name_75 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_75 == NULL)); - tmp_tuple_element_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_75, mod_consts[267]); - Py_DECREF(tmp_expression_name_75); - if (tmp_tuple_element_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_26); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_20; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_20; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 324; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_20; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_82; - tmp_assign_source_82 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_82; - } - branch_end_22:; - { - PyObject *tmp_assign_source_83; - PyObject *tmp_called_name_13; - PyObject *tmp_called_name_14; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_14 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[258]); - - if (unlikely(tmp_called_name_14 == NULL)) { - tmp_called_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[258]); - } - - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - - goto try_except_handler_20; - } - tmp_args_element_name_2 = mod_consts[306]; - tmp_args_element_name_3 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[304]); - - if (unlikely(tmp_args_element_name_3 == NULL)) { - tmp_args_element_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[304]); - } - - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - - goto try_except_handler_20; - } - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 320; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_called_name_13 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_14, call_args); - } - - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - - goto try_except_handler_20; - } - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_22; - } - tmp_dictset_value = mod_consts[305]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_22; - } - if (isFrameUnusable(cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7)) { - Py_XDECREF(cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7 = MAKE_FUNCTION_FRAME(codeobj_9171f0378e83efc52a6d63ba30cfd90a, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7->m_type_description == NULL); - frame_9171f0378e83efc52a6d63ba30cfd90a_7 = cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9171f0378e83efc52a6d63ba30cfd90a_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9171f0378e83efc52a6d63ba30cfd90a_7) == 2); // Frame stack - - // Framed code: - tmp_dictset_value = PyObject_GetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[264]); - - if (tmp_dictset_value == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[264]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[264]); - } - - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 325; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - Py_INCREF(tmp_dictset_value); - } - } - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[307], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 325; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - tmp_dictset_value = mod_consts[203]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[308], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - tmp_dictset_value = Py_True; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[309], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - tmp_dictset_value = LIST_COPY(mod_consts[310]); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[311], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - tmp_dictset_value = LIST_COPY(mod_consts[312]); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[313], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__16__init_weights(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[314], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - { - PyObject *tmp_defaults_8; - tmp_defaults_8 = mod_consts[316]; - Py_INCREF(tmp_defaults_8); - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__17__set_gradient_checkpointing(tmp_defaults_8); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[317], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9171f0378e83efc52a6d63ba30cfd90a_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9171f0378e83efc52a6d63ba30cfd90a_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9171f0378e83efc52a6d63ba30cfd90a_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9171f0378e83efc52a6d63ba30cfd90a_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9171f0378e83efc52a6d63ba30cfd90a_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9171f0378e83efc52a6d63ba30cfd90a_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_9171f0378e83efc52a6d63ba30cfd90a_7 == cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7); - cache_frame_9171f0378e83efc52a6d63ba30cfd90a_7 = NULL; - } - - assertFrameObject(frame_9171f0378e83efc52a6d63ba30cfd90a_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_22; - skip_nested_handling_6:; - { - nuitka_bool tmp_condition_result_36; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_compexpr_left_6 = tmp_class_creation_6__bases; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_compexpr_right_6 = tmp_class_creation_6__bases_orig; - tmp_condition_result_36 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_condition_result_36 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_22; - } - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_36 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dictset_value = tmp_class_creation_6__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_22; - } - branch_no_24:; - { - PyObject *tmp_assign_source_84; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_27; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_15 = tmp_class_creation_6__metaclass; - tmp_tuple_element_27 = mod_consts[305]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_27); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_27 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_27); - tmp_tuple_element_27 = locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_27); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 324; - tmp_assign_source_84 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - - goto try_except_handler_22; - } - assert(outline_5_var___class__ == NULL); - outline_5_var___class__ = tmp_assign_source_84; - } - CHECK_OBJECT(outline_5_var___class__); - tmp_args_element_name_4 = outline_5_var___class__; - Py_INCREF(tmp_args_element_name_4); - goto try_return_handler_22; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_22:; - Py_DECREF(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324); - locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324 = NULL; - goto try_return_handler_21; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324); - locals_models$modeling_llama$$$class__6_LlamaPreTrainedModel_324 = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto try_except_handler_21; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_21:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 324; - goto try_except_handler_20; - outline_result_6:; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 320; - tmp_assign_source_83 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_13, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_83 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - - goto try_except_handler_20; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[305], tmp_assign_source_83); - } - goto try_end_10; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - Py_DECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - { - PyObject *tmp_assign_source_85; - tmp_assign_source_85 = mod_consts[319]; - UPDATE_STRING_DICT0(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[320], tmp_assign_source_85); - } - // Tried code: - { - PyObject *tmp_assign_source_86; - PyObject *tmp_tuple_element_28; - tmp_tuple_element_28 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[305]); - - if (unlikely(tmp_tuple_element_28 == NULL)) { - tmp_tuple_element_28 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[305]); - } - - if (tmp_tuple_element_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - tmp_assign_source_86 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_86, 0, tmp_tuple_element_28); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_86; - } - { - PyObject *tmp_assign_source_87; - PyObject *tmp_dircall_arg1_7; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_7 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_7); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_7}; - tmp_assign_source_87 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_87; - } - { - PyObject *tmp_assign_source_88; - tmp_assign_source_88 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_88; - } - { - PyObject *tmp_assign_source_89; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_37; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_38; - int tmp_truth_name_7; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_76; - PyObject *tmp_subscript_name_25; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_37 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[273]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - goto condexpr_end_13; - condexpr_false_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - tmp_condition_result_38 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_76 = tmp_class_creation_7__bases; - tmp_subscript_name_25 = mod_consts[14]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_76, tmp_subscript_name_25, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - goto condexpr_end_14; - condexpr_false_14:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_14:; - condexpr_end_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_89 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_89 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_89; - } - { - nuitka_bool tmp_condition_result_39; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_39 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_expression_name_77; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_77 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_77, mod_consts[274]); - tmp_condition_result_40 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_90; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_78; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_29; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_78 = tmp_class_creation_7__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_78, mod_consts[274]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - tmp_tuple_element_29 = mod_consts[155]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_29); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_29 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_29); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 415; - tmp_assign_source_90 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_90; - } - { - nuitka_bool tmp_condition_result_41; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_79; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_79 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_79, mod_consts[275]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - tmp_condition_result_41 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_30; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[267]; - tmp_getattr_default_7 = mod_consts[277]; - tmp_tuple_element_30 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_80; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_14 = tmp_class_creation_7__prepared; - tmp_expression_name_80 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_80 == NULL)); - tmp_tuple_element_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_80, mod_consts[267]); - Py_DECREF(tmp_expression_name_80); - if (tmp_tuple_element_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_30); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_23; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_23; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 415; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_23; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_91; - tmp_assign_source_91 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_91; - } - branch_end_26:; - { - PyObject *tmp_assign_source_92; - PyObject *tmp_called_name_17; - PyObject *tmp_called_name_18; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - tmp_called_name_18 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[258]); - - if (unlikely(tmp_called_name_18 == NULL)) { - tmp_called_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[258]); - } - - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 411; - - goto try_except_handler_23; - } - tmp_args_element_name_5 = mod_consts[306]; - tmp_args_element_name_6 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[304]); - - if (unlikely(tmp_args_element_name_6 == NULL)) { - tmp_args_element_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[304]); - } - - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - - goto try_except_handler_23; - } - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 411; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_called_name_17 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_18, call_args); - } - - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 411; - - goto try_except_handler_23; - } - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$modeling_llama$$$class__7_LlamaModel_415 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_25; - } - tmp_dictset_value = mod_consts[321]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[230], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_25; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_25; - } - if (isFrameUnusable(cache_frame_8c53a3442347f49427162dbefea4c48e_8)) { - Py_XDECREF(cache_frame_8c53a3442347f49427162dbefea4c48e_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8c53a3442347f49427162dbefea4c48e_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8c53a3442347f49427162dbefea4c48e_8 = MAKE_FUNCTION_FRAME(codeobj_8c53a3442347f49427162dbefea4c48e, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8c53a3442347f49427162dbefea4c48e_8->m_type_description == NULL); - frame_8c53a3442347f49427162dbefea4c48e_8 = cache_frame_8c53a3442347f49427162dbefea4c48e_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8c53a3442347f49427162dbefea4c48e_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8c53a3442347f49427162dbefea4c48e_8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_annotations_9; - PyObject *tmp_dict_key_9; - PyObject *tmp_dict_value_9; - struct Nuitka_CellObject *tmp_closure_6[1]; - tmp_dict_key_9 = mod_consts[85]; - tmp_dict_value_9 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[264]); - - if (tmp_dict_value_9 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_9 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[264]); - - if (unlikely(tmp_dict_value_9 == NULL)) { - tmp_dict_value_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[264]); - } - - if (tmp_dict_value_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - Py_INCREF(tmp_dict_value_9); - } - } - - tmp_annotations_9 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_annotations_9, tmp_dict_key_9, tmp_dict_value_9); - Py_DECREF(tmp_dict_value_9); - assert(!(tmp_res != 0)); - - tmp_closure_6[0] = outline_6_var___class__; - Py_INCREF(tmp_closure_6[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__18___init__(tmp_annotations_9, tmp_closure_6); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__19_get_input_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[323], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__20_set_input_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[325], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 439; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__21__prepare_decoder_attention_mask(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[181], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - { - PyObject *tmp_called_name_19; - PyObject *tmp_called_name_20; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_defaults_9; - PyObject *tmp_annotations_10; - PyObject *tmp_dict_key_10; - PyObject *tmp_dict_value_10; - PyObject *tmp_expression_name_81; - tmp_called_name_20 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[259]); - - if (tmp_called_name_20 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_name_20 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[259]); - - if (unlikely(tmp_called_name_20 == NULL)) { - tmp_called_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[259]); - } - - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - Py_INCREF(tmp_called_name_20); - } - } - - tmp_args_element_name_8 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[320]); - - if (tmp_args_element_name_8 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_args_element_name_8 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[320]); - - if (unlikely(tmp_args_element_name_8 == NULL)) { - tmp_args_element_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[320]); - } - - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_20); - - exception_lineno = 466; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - Py_INCREF(tmp_args_element_name_8); - } - } - - frame_8c53a3442347f49427162dbefea4c48e_8->m_frame.f_lineno = 466; - tmp_called_name_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_20, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_20); - Py_DECREF(tmp_args_element_name_8); - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - tmp_defaults_9 = mod_consts[328]; - tmp_dict_key_10 = mod_consts[174]; - tmp_expression_name_81 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[1]); - - if (tmp_expression_name_81 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_81 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_81 == NULL)) { - tmp_expression_name_81 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_19); - - exception_lineno = 469; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - Py_INCREF(tmp_expression_name_81); - } - } - - tmp_dict_value_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_81, mod_consts[297]); - Py_DECREF(tmp_expression_name_81); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_19); - - exception_lineno = 469; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - tmp_annotations_10 = _PyDict_NewPresized( 11 ); - { - PyObject *tmp_expression_name_82; - PyObject *tmp_subscript_name_26; - PyObject *tmp_expression_name_83; - PyObject *tmp_expression_name_84; - PyObject *tmp_subscript_name_27; - PyObject *tmp_expression_name_85; - PyObject *tmp_expression_name_86; - PyObject *tmp_subscript_name_28; - PyObject *tmp_expression_name_87; - PyObject *tmp_subscript_name_29; - PyObject *tmp_expression_name_88; - PyObject *tmp_expression_name_89; - PyObject *tmp_subscript_name_30; - PyObject *tmp_expression_name_90; - PyObject *tmp_expression_name_91; - PyObject *tmp_subscript_name_31; - PyObject *tmp_expression_name_92; - PyObject *tmp_expression_name_93; - PyObject *tmp_subscript_name_32; - PyObject *tmp_expression_name_94; - PyObject *tmp_subscript_name_33; - PyObject *tmp_expression_name_95; - PyObject *tmp_subscript_name_34; - PyObject *tmp_expression_name_96; - PyObject *tmp_subscript_name_35; - PyObject *tmp_expression_name_97; - PyObject *tmp_subscript_name_36; - PyObject *tmp_tuple_element_31; - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[121]; - tmp_expression_name_82 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_82 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_82 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_82 == NULL)) { - tmp_expression_name_82 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_82); - } - } - - tmp_expression_name_83 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[1]); - - if (tmp_expression_name_83 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_83 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_83 == NULL)) { - tmp_expression_name_83 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_83 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_82); - - exception_lineno = 470; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_83); - } - } - - tmp_subscript_name_26 = LOOKUP_ATTRIBUTE(tmp_expression_name_83, mod_consts[271]); - Py_DECREF(tmp_expression_name_83); - if (tmp_subscript_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_82); - - exception_lineno = 470; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_82, tmp_subscript_name_26); - Py_DECREF(tmp_expression_name_82); - Py_DECREF(tmp_subscript_name_26); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 470; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[139]; - tmp_expression_name_84 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_84 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_84 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_84 == NULL)) { - tmp_expression_name_84 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_84); - } - } - - tmp_expression_name_85 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[1]); - - if (tmp_expression_name_85 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_85 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_85 == NULL)) { - tmp_expression_name_85 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_84); - - exception_lineno = 471; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_85); - } - } - - tmp_subscript_name_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_85, mod_consts[297]); - Py_DECREF(tmp_expression_name_85); - if (tmp_subscript_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_84); - - exception_lineno = 471; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_84, tmp_subscript_name_27); - Py_DECREF(tmp_expression_name_84); - Py_DECREF(tmp_subscript_name_27); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 471; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[188]; - tmp_expression_name_86 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_86 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_86 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_86 == NULL)) { - tmp_expression_name_86 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 472; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_86); - } - } - - tmp_expression_name_87 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[238]); - - if (tmp_expression_name_87 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_87 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[238]); - - if (unlikely(tmp_expression_name_87 == NULL)) { - tmp_expression_name_87 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[238]); - } - - if (tmp_expression_name_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_86); - - exception_lineno = 472; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_87); - } - } - - tmp_expression_name_88 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[1]); - - if (tmp_expression_name_88 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_88 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_88 == NULL)) { - tmp_expression_name_88 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_88 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_86); - Py_DECREF(tmp_expression_name_87); - - exception_lineno = 472; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_88); - } - } - - tmp_subscript_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_88, mod_consts[301]); - Py_DECREF(tmp_expression_name_88); - if (tmp_subscript_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_86); - Py_DECREF(tmp_expression_name_87); - - exception_lineno = 472; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_subscript_name_28 = LOOKUP_SUBSCRIPT(tmp_expression_name_87, tmp_subscript_name_29); - Py_DECREF(tmp_expression_name_87); - Py_DECREF(tmp_subscript_name_29); - if (tmp_subscript_name_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_86); - - exception_lineno = 472; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_86, tmp_subscript_name_28); - Py_DECREF(tmp_expression_name_86); - Py_DECREF(tmp_subscript_name_28); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 472; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[167]; - tmp_expression_name_89 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_89 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_89 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_89 == NULL)) { - tmp_expression_name_89 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_89 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 473; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_89); - } - } - - tmp_expression_name_90 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[1]); - - if (tmp_expression_name_90 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_90 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_90 == NULL)) { - tmp_expression_name_90 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_89); - - exception_lineno = 473; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_90); - } - } - - tmp_subscript_name_30 = LOOKUP_ATTRIBUTE(tmp_expression_name_90, mod_consts[301]); - Py_DECREF(tmp_expression_name_90); - if (tmp_subscript_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_89); - - exception_lineno = 473; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_89, tmp_subscript_name_30); - Py_DECREF(tmp_expression_name_89); - Py_DECREF(tmp_subscript_name_30); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 473; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[205]; - tmp_expression_name_91 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_91 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_91 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_91 == NULL)) { - tmp_expression_name_91 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_91 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 474; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_91); - } - } - - tmp_expression_name_92 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[1]); - - if (tmp_expression_name_92 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_92 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_92 == NULL)) { - tmp_expression_name_92 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_91); - - exception_lineno = 474; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_92); - } - } - - tmp_subscript_name_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_92, mod_consts[301]); - Py_DECREF(tmp_expression_name_92); - if (tmp_subscript_name_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_91); - - exception_lineno = 474; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_91, tmp_subscript_name_31); - Py_DECREF(tmp_expression_name_91); - Py_DECREF(tmp_subscript_name_31); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 474; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[142]; - tmp_expression_name_93 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_93 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_93 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_93 == NULL)) { - tmp_expression_name_93 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 475; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_93); - } - } - - tmp_subscript_name_32 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[29]); - - if (tmp_subscript_name_32 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_32 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_32); - } - } - - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_93, tmp_subscript_name_32); - Py_DECREF(tmp_expression_name_93); - Py_DECREF(tmp_subscript_name_32); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 475; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[141]; - tmp_expression_name_94 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_94 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_94 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_94 == NULL)) { - tmp_expression_name_94 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_94 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 476; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_94); - } - } - - tmp_subscript_name_33 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[29]); - - if (tmp_subscript_name_33 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_33 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_33); - } - } - - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_94, tmp_subscript_name_33); - Py_DECREF(tmp_expression_name_94); - Py_DECREF(tmp_subscript_name_33); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 476; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[170]; - tmp_expression_name_95 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_95 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_95 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_95 == NULL)) { - tmp_expression_name_95 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_95 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_95); - } - } - - tmp_subscript_name_34 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[29]); - - if (tmp_subscript_name_34 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_34 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_34); - } - } - - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_95, tmp_subscript_name_34); - Py_DECREF(tmp_expression_name_95); - Py_DECREF(tmp_subscript_name_34); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 477; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[206]; - tmp_expression_name_96 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[239]); - - if (tmp_expression_name_96 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_96 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_96 == NULL)) { - tmp_expression_name_96 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_96 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 478; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_96); - } - } - - tmp_subscript_name_35 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[29]); - - if (tmp_subscript_name_35 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_35 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_35); - } - } - - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_96, tmp_subscript_name_35); - Py_DECREF(tmp_expression_name_96); - Py_DECREF(tmp_subscript_name_35); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 478; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - tmp_dict_key_10 = mod_consts[298]; - tmp_expression_name_97 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[241]); - - if (tmp_expression_name_97 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_97 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[241]); - - if (unlikely(tmp_expression_name_97 == NULL)) { - tmp_expression_name_97 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[241]); - } - - if (tmp_expression_name_97 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 479; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_expression_name_97); - } - } - - tmp_tuple_element_31 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[240]); - - if (tmp_tuple_element_31 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_tuple_element_31 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_tuple_element_31 == NULL)) { - tmp_tuple_element_31 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_97); - - exception_lineno = 479; - type_description_2 = "c"; - goto dict_build_exception_5; - } - Py_INCREF(tmp_tuple_element_31); - } - } - - tmp_subscript_name_36 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_subscript_name_36, 0, tmp_tuple_element_31); - tmp_tuple_element_31 = PyObject_GetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[195]); - - if (tmp_tuple_element_31 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_tuple_element_31 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[195]); - - if (unlikely(tmp_tuple_element_31 == NULL)) { - tmp_tuple_element_31 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[195]); - } - - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 479; - type_description_2 = "c"; - goto tuple_build_exception_11; - } - Py_INCREF(tmp_tuple_element_31); - } - } - - PyTuple_SET_ITEM(tmp_subscript_name_36, 1, tmp_tuple_element_31); - goto tuple_build_noexception_11; - // Exception handling pass through code for tuple_build: - tuple_build_exception_11:; - Py_DECREF(tmp_expression_name_97); - Py_DECREF(tmp_subscript_name_36); - goto dict_build_exception_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_11:; - tmp_dict_value_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_97, tmp_subscript_name_36); - Py_DECREF(tmp_expression_name_97); - Py_DECREF(tmp_subscript_name_36); - if (tmp_dict_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 479; - type_description_2 = "c"; - goto dict_build_exception_5; - } - tmp_res = PyDict_SetItem(tmp_annotations_10, tmp_dict_key_10, tmp_dict_value_10); - Py_DECREF(tmp_dict_value_10); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_5; - // Exception handling pass through code for dict_build: - dict_build_exception_5:; - Py_DECREF(tmp_called_name_19); - Py_DECREF(tmp_annotations_10); - goto frame_exception_exit_8; - // Finished with no exception for dict_build: - dict_build_noexception_5:; - Py_INCREF(tmp_defaults_9); - - - tmp_args_element_name_9 = MAKE_FUNCTION_models$modeling_llama$$$function__22_forward(tmp_defaults_9, tmp_annotations_10); - - frame_8c53a3442347f49427162dbefea4c48e_8->m_frame.f_lineno = 466; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_19, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_19); - Py_DECREF(tmp_args_element_name_9); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 467; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8c53a3442347f49427162dbefea4c48e_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8c53a3442347f49427162dbefea4c48e_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8c53a3442347f49427162dbefea4c48e_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8c53a3442347f49427162dbefea4c48e_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8c53a3442347f49427162dbefea4c48e_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8c53a3442347f49427162dbefea4c48e_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_8c53a3442347f49427162dbefea4c48e_8 == cache_frame_8c53a3442347f49427162dbefea4c48e_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8c53a3442347f49427162dbefea4c48e_8); - cache_frame_8c53a3442347f49427162dbefea4c48e_8 = NULL; - } - - assertFrameObject(frame_8c53a3442347f49427162dbefea4c48e_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_25; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_42; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_7 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_7 = tmp_class_creation_7__bases_orig; - tmp_condition_result_42 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_7, tmp_compexpr_right_7); - if (tmp_condition_result_42 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_25; - } - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_42 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__7_LlamaModel_415, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_25; - } - branch_no_28:; - { - PyObject *tmp_assign_source_93; - PyObject *tmp_called_name_21; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_32; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_21 = tmp_class_creation_7__metaclass; - tmp_tuple_element_32 = mod_consts[155]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_32 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_32); - tmp_tuple_element_32 = locals_models$modeling_llama$$$class__7_LlamaModel_415; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 415; - tmp_assign_source_93 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 415; - - goto try_except_handler_25; - } - { - PyObject *old = Nuitka_Cell_GET(outline_6_var___class__); - PyCell_SET(outline_6_var___class__, tmp_assign_source_93); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_6_var___class__)); - tmp_args_element_name_7 = Nuitka_Cell_GET(outline_6_var___class__); - Py_INCREF(tmp_args_element_name_7); - goto try_return_handler_25; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_25:; - Py_DECREF(locals_models$modeling_llama$$$class__7_LlamaModel_415); - locals_models$modeling_llama$$$class__7_LlamaModel_415 = NULL; - goto try_return_handler_24; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__7_LlamaModel_415); - locals_models$modeling_llama$$$class__7_LlamaModel_415 = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto try_except_handler_24; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_24:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 415; - goto try_except_handler_23; - outline_result_7:; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 411; - tmp_assign_source_92 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_17, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_element_name_7); - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 411; - - goto try_except_handler_23; - } - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[155], tmp_assign_source_92); - } - goto try_end_11; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_25; - exception_value = exception_keeper_value_25; - exception_tb = exception_keeper_tb_25; - exception_lineno = exception_keeper_lineno_25; - - goto frame_exception_exit_1; - // End of try: - try_end_11:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_94; - PyObject *tmp_tuple_element_33; - tmp_tuple_element_33 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[305]); - - if (unlikely(tmp_tuple_element_33 == NULL)) { - tmp_tuple_element_33 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[305]); - } - - if (tmp_tuple_element_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - tmp_assign_source_94 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_94, 0, tmp_tuple_element_33); - assert(tmp_class_creation_8__bases_orig == NULL); - tmp_class_creation_8__bases_orig = tmp_assign_source_94; - } - { - PyObject *tmp_assign_source_95; - PyObject *tmp_dircall_arg1_8; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dircall_arg1_8 = tmp_class_creation_8__bases_orig; - Py_INCREF(tmp_dircall_arg1_8); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_8}; - tmp_assign_source_95 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_95 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - assert(tmp_class_creation_8__bases == NULL); - tmp_class_creation_8__bases = tmp_assign_source_95; - } - { - PyObject *tmp_assign_source_96; - tmp_assign_source_96 = PyDict_New(); - assert(tmp_class_creation_8__class_decl_dict == NULL); - tmp_class_creation_8__class_decl_dict = tmp_assign_source_96; - } - { - PyObject *tmp_assign_source_97; - PyObject *tmp_metaclass_name_8; - nuitka_bool tmp_condition_result_43; - PyObject *tmp_key_name_22; - PyObject *tmp_dict_arg_name_22; - PyObject *tmp_dict_arg_name_23; - PyObject *tmp_key_name_23; - nuitka_bool tmp_condition_result_44; - int tmp_truth_name_8; - PyObject *tmp_type_arg_15; - PyObject *tmp_expression_name_98; - PyObject *tmp_subscript_name_37; - PyObject *tmp_bases_name_8; - tmp_key_name_22 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_22 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_22, tmp_key_name_22); - assert(!(tmp_res == -1)); - tmp_condition_result_43 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_43 == NUITKA_BOOL_TRUE) { - goto condexpr_true_15; - } else { - goto condexpr_false_15; - } - condexpr_true_15:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_23 = tmp_class_creation_8__class_decl_dict; - tmp_key_name_23 = mod_consts[273]; - tmp_metaclass_name_8 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_23, tmp_key_name_23); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - goto condexpr_end_15; - condexpr_false_15:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_class_creation_8__bases); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - tmp_condition_result_44 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_44 == NUITKA_BOOL_TRUE) { - goto condexpr_true_16; - } else { - goto condexpr_false_16; - } - condexpr_true_16:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_expression_name_98 = tmp_class_creation_8__bases; - tmp_subscript_name_37 = mod_consts[14]; - tmp_type_arg_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_98, tmp_subscript_name_37, 0); - if (tmp_type_arg_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - tmp_metaclass_name_8 = BUILTIN_TYPE1(tmp_type_arg_15); - Py_DECREF(tmp_type_arg_15); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - goto condexpr_end_16; - condexpr_false_16:; - tmp_metaclass_name_8 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_8); - condexpr_end_16:; - condexpr_end_15:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_bases_name_8 = tmp_class_creation_8__bases; - tmp_assign_source_97 = SELECT_METACLASS(tmp_metaclass_name_8, tmp_bases_name_8); - Py_DECREF(tmp_metaclass_name_8); - if (tmp_assign_source_97 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - assert(tmp_class_creation_8__metaclass == NULL); - tmp_class_creation_8__metaclass = tmp_assign_source_97; - } - { - nuitka_bool tmp_condition_result_45; - PyObject *tmp_key_name_24; - PyObject *tmp_dict_arg_name_24; - tmp_key_name_24 = mod_consts[273]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_24 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_24, tmp_key_name_24); - assert(!(tmp_res == -1)); - tmp_condition_result_45 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_45 == NUITKA_BOOL_TRUE) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_8__class_decl_dict; - tmp_dictdel_key = mod_consts[273]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - branch_no_29:; - { - nuitka_bool tmp_condition_result_46; - PyObject *tmp_expression_name_99; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_99 = tmp_class_creation_8__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_99, mod_consts[274]); - tmp_condition_result_46 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_46 == NUITKA_BOOL_TRUE) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_assign_source_98; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_100; - PyObject *tmp_args_name_15; - PyObject *tmp_tuple_element_34; - PyObject *tmp_kwargs_name_15; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_100 = tmp_class_creation_8__metaclass; - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_100, mod_consts[274]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - tmp_tuple_element_34 = mod_consts[330]; - tmp_args_name_15 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_15, 0, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_34 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_15, 1, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_15 = tmp_class_creation_8__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 600; - tmp_assign_source_98 = CALL_FUNCTION(tmp_called_name_22, tmp_args_name_15, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_name_15); - if (tmp_assign_source_98 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_98; - } - { - nuitka_bool tmp_condition_result_47; - PyObject *tmp_operand_name_8; - PyObject *tmp_expression_name_101; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_expression_name_101 = tmp_class_creation_8__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_101, mod_consts[275]); - tmp_operand_name_8 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - tmp_condition_result_47 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_47 == NUITKA_BOOL_TRUE) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - PyObject *tmp_raise_type_8; - PyObject *tmp_raise_value_8; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_tuple_element_35; - PyObject *tmp_getattr_target_8; - PyObject *tmp_getattr_attr_8; - PyObject *tmp_getattr_default_8; - tmp_raise_type_8 = PyExc_TypeError; - tmp_left_name_8 = mod_consts[276]; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_getattr_target_8 = tmp_class_creation_8__metaclass; - tmp_getattr_attr_8 = mod_consts[267]; - tmp_getattr_default_8 = mod_consts[277]; - tmp_tuple_element_35 = BUILTIN_GETATTR(tmp_getattr_target_8, tmp_getattr_attr_8, tmp_getattr_default_8); - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - tmp_right_name_8 = PyTuple_New(2); - { - PyObject *tmp_expression_name_102; - PyObject *tmp_type_arg_16; - PyTuple_SET_ITEM(tmp_right_name_8, 0, tmp_tuple_element_35); - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_type_arg_16 = tmp_class_creation_8__prepared; - tmp_expression_name_102 = BUILTIN_TYPE1(tmp_type_arg_16); - assert(!(tmp_expression_name_102 == NULL)); - tmp_tuple_element_35 = LOOKUP_ATTRIBUTE(tmp_expression_name_102, mod_consts[267]); - Py_DECREF(tmp_expression_name_102); - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto tuple_build_exception_12; - } - PyTuple_SET_ITEM(tmp_right_name_8, 1, tmp_tuple_element_35); - } - goto tuple_build_noexception_12; - // Exception handling pass through code for tuple_build: - tuple_build_exception_12:; - Py_DECREF(tmp_right_name_8); - goto try_except_handler_26; - // Finished with no exception for tuple_build: - tuple_build_noexception_12:; - tmp_raise_value_8 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_raise_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_26; - } - exception_type = tmp_raise_type_8; - Py_INCREF(tmp_raise_type_8); - exception_value = tmp_raise_value_8; - exception_lineno = 600; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_26; - } - branch_no_31:; - goto branch_end_30; - branch_no_30:; - { - PyObject *tmp_assign_source_99; - tmp_assign_source_99 = PyDict_New(); - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_99; - } - branch_end_30:; - { - PyObject *tmp_assign_source_100; - { - PyObject *tmp_set_locals_8; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_set_locals_8 = tmp_class_creation_8__prepared; - locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600 = tmp_set_locals_8; - Py_INCREF(tmp_set_locals_8); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[267]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[267]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[278], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_28; - } - tmp_dictset_value = mod_consts[330]; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[279], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_28; - } - if (isFrameUnusable(cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9)) { - Py_XDECREF(cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9 = MAKE_FUNCTION_FRAME(codeobj_d7f5c0252258d40dc97c13fce1ad00df, module_models$modeling_llama, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_type_description == NULL); - frame_d7f5c0252258d40dc97c13fce1ad00df_9 = cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d7f5c0252258d40dc97c13fce1ad00df_9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d7f5c0252258d40dc97c13fce1ad00df_9) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_7[1]; - - tmp_closure_7[0] = outline_7_var___class__; - Py_INCREF(tmp_closure_7[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__23___init__(tmp_closure_7); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[32], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 601; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__24_get_input_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[323], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 610; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__25_set_input_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[325], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 613; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__26_get_output_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[334], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 616; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__27_set_output_embeddings(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[336], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 619; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__28_set_decoder(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[338], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 622; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__29_get_decoder(); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[340], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 625; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - { - PyObject *tmp_called_name_23; - PyObject *tmp_called_name_24; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_name_25; - PyObject *tmp_called_name_26; - PyObject *tmp_kwargs_name_16; - PyObject *tmp_dict_key_11; - PyObject *tmp_dict_value_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_defaults_10; - PyObject *tmp_annotations_11; - PyObject *tmp_dict_key_12; - PyObject *tmp_dict_value_12; - PyObject *tmp_expression_name_103; - tmp_called_name_24 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[259]); - - if (tmp_called_name_24 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_name_24 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[259]); - - if (unlikely(tmp_called_name_24 == NULL)) { - tmp_called_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[259]); - } - - if (tmp_called_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 628; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - Py_INCREF(tmp_called_name_24); - } - } - - tmp_args_element_name_10 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[320]); - - if (tmp_args_element_name_10 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_args_element_name_10 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[320]); - - if (unlikely(tmp_args_element_name_10 == NULL)) { - tmp_args_element_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[320]); - } - - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_24); - - exception_lineno = 628; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - Py_INCREF(tmp_args_element_name_10); - } - } - - frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_frame.f_lineno = 628; - tmp_called_name_23 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_24, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_24); - Py_DECREF(tmp_args_element_name_10); - if (tmp_called_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 628; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - tmp_called_name_26 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[261]); - - if (tmp_called_name_26 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_called_name_26 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[261]); - - if (unlikely(tmp_called_name_26 == NULL)) { - tmp_called_name_26 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[261]); - } - - if (tmp_called_name_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 629; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - Py_INCREF(tmp_called_name_26); - } - } - - tmp_dict_key_11 = mod_consts[342]; - tmp_dict_value_11 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[212]); - - if (tmp_dict_value_11 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_11 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[212]); - - if (unlikely(tmp_dict_value_11 == NULL)) { - tmp_dict_value_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[212]); - } - - if (tmp_dict_value_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_called_name_26); - - exception_lineno = 629; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - Py_INCREF(tmp_dict_value_11); - } - } - - tmp_kwargs_name_16 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_16, tmp_dict_key_11, tmp_dict_value_11); - Py_DECREF(tmp_dict_value_11); - assert(!(tmp_res != 0)); - tmp_dict_key_11 = mod_consts[307]; - tmp_dict_value_11 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[268]); - - if (tmp_dict_value_11 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_dict_value_11 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[268]); - - if (unlikely(tmp_dict_value_11 == NULL)) { - tmp_dict_value_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[268]); - } - - if (tmp_dict_value_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 629; - type_description_2 = "c"; - goto dict_build_exception_6; - } - Py_INCREF(tmp_dict_value_11); - } - } - - tmp_res = PyDict_SetItem(tmp_kwargs_name_16, tmp_dict_key_11, tmp_dict_value_11); - Py_DECREF(tmp_dict_value_11); - assert(!(tmp_res != 0)); - goto dict_build_noexception_6; - // Exception handling pass through code for dict_build: - dict_build_exception_6:; - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_called_name_26); - Py_DECREF(tmp_kwargs_name_16); - goto frame_exception_exit_9; - // Finished with no exception for dict_build: - dict_build_noexception_6:; - frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_frame.f_lineno = 629; - tmp_called_name_25 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_26, tmp_kwargs_name_16); - Py_DECREF(tmp_called_name_26); - Py_DECREF(tmp_kwargs_name_16); - if (tmp_called_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 629; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - tmp_defaults_10 = mod_consts[343]; - tmp_dict_key_12 = mod_consts[174]; - tmp_expression_name_103 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_103 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_103 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_103 == NULL)) { - tmp_expression_name_103 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_103 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_called_name_25); - - exception_lineno = 632; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - Py_INCREF(tmp_expression_name_103); - } - } - - tmp_dict_value_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_103, mod_consts[297]); - Py_DECREF(tmp_expression_name_103); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_called_name_25); - - exception_lineno = 632; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - tmp_annotations_11 = _PyDict_NewPresized( 12 ); - { - PyObject *tmp_expression_name_104; - PyObject *tmp_subscript_name_38; - PyObject *tmp_expression_name_105; - PyObject *tmp_expression_name_106; - PyObject *tmp_subscript_name_39; - PyObject *tmp_expression_name_107; - PyObject *tmp_expression_name_108; - PyObject *tmp_subscript_name_40; - PyObject *tmp_expression_name_109; - PyObject *tmp_subscript_name_41; - PyObject *tmp_expression_name_110; - PyObject *tmp_expression_name_111; - PyObject *tmp_subscript_name_42; - PyObject *tmp_expression_name_112; - PyObject *tmp_expression_name_113; - PyObject *tmp_subscript_name_43; - PyObject *tmp_expression_name_114; - PyObject *tmp_expression_name_115; - PyObject *tmp_subscript_name_44; - PyObject *tmp_expression_name_116; - PyObject *tmp_expression_name_117; - PyObject *tmp_subscript_name_45; - PyObject *tmp_expression_name_118; - PyObject *tmp_subscript_name_46; - PyObject *tmp_expression_name_119; - PyObject *tmp_subscript_name_47; - PyObject *tmp_expression_name_120; - PyObject *tmp_subscript_name_48; - PyObject *tmp_expression_name_121; - PyObject *tmp_subscript_name_49; - PyObject *tmp_tuple_element_36; - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[121]; - tmp_expression_name_104 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_104 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_104 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_104 == NULL)) { - tmp_expression_name_104 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_104 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 633; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_104); - } - } - - tmp_expression_name_105 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_105 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_105 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_105 == NULL)) { - tmp_expression_name_105 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_105 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_104); - - exception_lineno = 633; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_105); - } - } - - tmp_subscript_name_38 = LOOKUP_ATTRIBUTE(tmp_expression_name_105, mod_consts[271]); - Py_DECREF(tmp_expression_name_105); - if (tmp_subscript_name_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_104); - - exception_lineno = 633; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_104, tmp_subscript_name_38); - Py_DECREF(tmp_expression_name_104); - Py_DECREF(tmp_subscript_name_38); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 633; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[139]; - tmp_expression_name_106 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_106 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_106 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_106 == NULL)) { - tmp_expression_name_106 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_106 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 634; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_106); - } - } - - tmp_expression_name_107 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_107 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_107 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_107 == NULL)) { - tmp_expression_name_107 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_107 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_106); - - exception_lineno = 634; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_107); - } - } - - tmp_subscript_name_39 = LOOKUP_ATTRIBUTE(tmp_expression_name_107, mod_consts[297]); - Py_DECREF(tmp_expression_name_107); - if (tmp_subscript_name_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_106); - - exception_lineno = 634; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_106, tmp_subscript_name_39); - Py_DECREF(tmp_expression_name_106); - Py_DECREF(tmp_subscript_name_39); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 634; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[188]; - tmp_expression_name_108 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_108 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_108 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_108 == NULL)) { - tmp_expression_name_108 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_108 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 635; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_108); - } - } - - tmp_expression_name_109 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[238]); - - if (tmp_expression_name_109 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_109 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[238]); - - if (unlikely(tmp_expression_name_109 == NULL)) { - tmp_expression_name_109 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[238]); - } - - if (tmp_expression_name_109 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_108); - - exception_lineno = 635; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_109); - } - } - - tmp_expression_name_110 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_110 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_110 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_110 == NULL)) { - tmp_expression_name_110 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_110 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_108); - Py_DECREF(tmp_expression_name_109); - - exception_lineno = 635; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_110); - } - } - - tmp_subscript_name_41 = LOOKUP_ATTRIBUTE(tmp_expression_name_110, mod_consts[301]); - Py_DECREF(tmp_expression_name_110); - if (tmp_subscript_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_108); - Py_DECREF(tmp_expression_name_109); - - exception_lineno = 635; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_subscript_name_40 = LOOKUP_SUBSCRIPT(tmp_expression_name_109, tmp_subscript_name_41); - Py_DECREF(tmp_expression_name_109); - Py_DECREF(tmp_subscript_name_41); - if (tmp_subscript_name_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_108); - - exception_lineno = 635; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_108, tmp_subscript_name_40); - Py_DECREF(tmp_expression_name_108); - Py_DECREF(tmp_subscript_name_40); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 635; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[167]; - tmp_expression_name_111 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_111 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_111 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_111 == NULL)) { - tmp_expression_name_111 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_111 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 636; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_111); - } - } - - tmp_expression_name_112 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_112 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_112 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_112 == NULL)) { - tmp_expression_name_112 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_112 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_111); - - exception_lineno = 636; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_112); - } - } - - tmp_subscript_name_42 = LOOKUP_ATTRIBUTE(tmp_expression_name_112, mod_consts[301]); - Py_DECREF(tmp_expression_name_112); - if (tmp_subscript_name_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_111); - - exception_lineno = 636; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_111, tmp_subscript_name_42); - Py_DECREF(tmp_expression_name_111); - Py_DECREF(tmp_subscript_name_42); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 636; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[205]; - tmp_expression_name_113 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_113 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_113 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_113 == NULL)) { - tmp_expression_name_113 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_113 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 637; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_113); - } - } - - tmp_expression_name_114 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_114 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_114 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_114 == NULL)) { - tmp_expression_name_114 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_114 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_113); - - exception_lineno = 637; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_114); - } - } - - tmp_subscript_name_43 = LOOKUP_ATTRIBUTE(tmp_expression_name_114, mod_consts[301]); - Py_DECREF(tmp_expression_name_114); - if (tmp_subscript_name_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_113); - - exception_lineno = 637; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_113, tmp_subscript_name_43); - Py_DECREF(tmp_expression_name_113); - Py_DECREF(tmp_subscript_name_43); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 637; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[344]; - tmp_expression_name_115 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_115 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_115 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_115 == NULL)) { - tmp_expression_name_115 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_115 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 638; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_115); - } - } - - tmp_expression_name_116 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[1]); - - if (tmp_expression_name_116 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_116 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_116 == NULL)) { - tmp_expression_name_116 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_116 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_115); - - exception_lineno = 638; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_116); - } - } - - tmp_subscript_name_44 = LOOKUP_ATTRIBUTE(tmp_expression_name_116, mod_consts[297]); - Py_DECREF(tmp_expression_name_116); - if (tmp_subscript_name_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_115); - - exception_lineno = 638; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_115, tmp_subscript_name_44); - Py_DECREF(tmp_expression_name_115); - Py_DECREF(tmp_subscript_name_44); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 638; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[142]; - tmp_expression_name_117 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_117 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_117 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_117 == NULL)) { - tmp_expression_name_117 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_117 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 639; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_117); - } - } - - tmp_subscript_name_45 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[29]); - - if (tmp_subscript_name_45 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_45 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_45); - } - } - - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_117, tmp_subscript_name_45); - Py_DECREF(tmp_expression_name_117); - Py_DECREF(tmp_subscript_name_45); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 639; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[141]; - tmp_expression_name_118 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_118 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_118 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_118 == NULL)) { - tmp_expression_name_118 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_118 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 640; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_118); - } - } - - tmp_subscript_name_46 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[29]); - - if (tmp_subscript_name_46 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_46 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_46); - } - } - - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_118, tmp_subscript_name_46); - Py_DECREF(tmp_expression_name_118); - Py_DECREF(tmp_subscript_name_46); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 640; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[170]; - tmp_expression_name_119 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_119 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_119 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_119 == NULL)) { - tmp_expression_name_119 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_119 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 641; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_119); - } - } - - tmp_subscript_name_47 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[29]); - - if (tmp_subscript_name_47 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_47 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_47); - } - } - - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_119, tmp_subscript_name_47); - Py_DECREF(tmp_expression_name_119); - Py_DECREF(tmp_subscript_name_47); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 641; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[206]; - tmp_expression_name_120 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[239]); - - if (tmp_expression_name_120 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_120 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[239]); - - if (unlikely(tmp_expression_name_120 == NULL)) { - tmp_expression_name_120 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[239]); - } - - if (tmp_expression_name_120 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 642; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_120); - } - } - - tmp_subscript_name_48 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[29]); - - if (tmp_subscript_name_48 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_subscript_name_48 = (PyObject *)&PyBool_Type; - Py_INCREF(tmp_subscript_name_48); - } - } - - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_120, tmp_subscript_name_48); - Py_DECREF(tmp_expression_name_120); - Py_DECREF(tmp_subscript_name_48); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 642; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - tmp_dict_key_12 = mod_consts[298]; - tmp_expression_name_121 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[241]); - - if (tmp_expression_name_121 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_expression_name_121 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[241]); - - if (unlikely(tmp_expression_name_121 == NULL)) { - tmp_expression_name_121 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[241]); - } - - if (tmp_expression_name_121 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 643; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_expression_name_121); - } - } - - tmp_tuple_element_36 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[240]); - - if (tmp_tuple_element_36 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_tuple_element_36 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[240]); - - if (unlikely(tmp_tuple_element_36 == NULL)) { - tmp_tuple_element_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[240]); - } - - if (tmp_tuple_element_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_expression_name_121); - - exception_lineno = 643; - type_description_2 = "c"; - goto dict_build_exception_7; - } - Py_INCREF(tmp_tuple_element_36); - } - } - - tmp_subscript_name_49 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_subscript_name_49, 0, tmp_tuple_element_36); - tmp_tuple_element_36 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[212]); - - if (tmp_tuple_element_36 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_tuple_element_36 = GET_STRING_DICT_VALUE(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[212]); - - if (unlikely(tmp_tuple_element_36 == NULL)) { - tmp_tuple_element_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[212]); - } - - if (tmp_tuple_element_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 643; - type_description_2 = "c"; - goto tuple_build_exception_13; - } - Py_INCREF(tmp_tuple_element_36); - } - } - - PyTuple_SET_ITEM(tmp_subscript_name_49, 1, tmp_tuple_element_36); - goto tuple_build_noexception_13; - // Exception handling pass through code for tuple_build: - tuple_build_exception_13:; - Py_DECREF(tmp_expression_name_121); - Py_DECREF(tmp_subscript_name_49); - goto dict_build_exception_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_13:; - tmp_dict_value_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_121, tmp_subscript_name_49); - Py_DECREF(tmp_expression_name_121); - Py_DECREF(tmp_subscript_name_49); - if (tmp_dict_value_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 643; - type_description_2 = "c"; - goto dict_build_exception_7; - } - tmp_res = PyDict_SetItem(tmp_annotations_11, tmp_dict_key_12, tmp_dict_value_12); - Py_DECREF(tmp_dict_value_12); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_7; - // Exception handling pass through code for dict_build: - dict_build_exception_7:; - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_called_name_25); - Py_DECREF(tmp_annotations_11); - goto frame_exception_exit_9; - // Finished with no exception for dict_build: - dict_build_noexception_7:; - Py_INCREF(tmp_defaults_10); - - - tmp_args_element_name_12 = MAKE_FUNCTION_models$modeling_llama$$$function__30_forward(tmp_defaults_10, tmp_annotations_11); - - frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_frame.f_lineno = 629; - tmp_args_element_name_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_25, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_25); - Py_DECREF(tmp_args_element_name_12); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 629; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_frame.f_lineno = 628; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_23, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_args_element_name_11); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 628; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[282], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 630; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - { - PyObject *tmp_defaults_11; - tmp_defaults_11 = mod_consts[346]; - Py_INCREF(tmp_defaults_11); - - - tmp_dictset_value = MAKE_FUNCTION_models$modeling_llama$$$function__31_prepare_inputs_for_generation(tmp_defaults_11); - - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[347], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 718; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - { - nuitka_bool tmp_condition_result_48; - PyObject *tmp_called_name_27; - PyObject *tmp_args_element_name_13; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[349]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 750; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - tmp_condition_result_48 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_48 == NUITKA_BOOL_TRUE) { - goto condexpr_true_17; - } else { - goto condexpr_false_17; - } - condexpr_true_17:; - tmp_called_name_27 = PyObject_GetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[349]); - - if (unlikely(tmp_called_name_27 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[349]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 750; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - if (tmp_called_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 750; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_args_element_name_13 = MAKE_FUNCTION_models$modeling_llama$$$function__32__reorder_cache(); - - frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_frame.f_lineno = 750; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_27, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_27); - Py_DECREF(tmp_args_element_name_13); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 750; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - goto condexpr_end_17; - condexpr_false_17:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$modeling_llama$$$function__32__reorder_cache(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_17:; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[350], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 751; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d7f5c0252258d40dc97c13fce1ad00df_9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_8; - - frame_exception_exit_9:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d7f5c0252258d40dc97c13fce1ad00df_9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d7f5c0252258d40dc97c13fce1ad00df_9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d7f5c0252258d40dc97c13fce1ad00df_9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d7f5c0252258d40dc97c13fce1ad00df_9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d7f5c0252258d40dc97c13fce1ad00df_9, - type_description_2, - outline_7_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d7f5c0252258d40dc97c13fce1ad00df_9 == cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9); - cache_frame_d7f5c0252258d40dc97c13fce1ad00df_9 = NULL; - } - - assertFrameObject(frame_d7f5c0252258d40dc97c13fce1ad00df_9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_8; - - frame_no_exception_8:; - goto skip_nested_handling_8; - nested_frame_exit_8:; - - goto try_except_handler_28; - skip_nested_handling_8:; - { - nuitka_bool tmp_condition_result_49; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_compexpr_left_8 = tmp_class_creation_8__bases; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_compexpr_right_8 = tmp_class_creation_8__bases_orig; - tmp_condition_result_49 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_8, tmp_compexpr_right_8); - if (tmp_condition_result_49 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_28; - } - if (tmp_condition_result_49 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - assert(tmp_condition_result_49 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_32:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dictset_value = tmp_class_creation_8__bases_orig; - tmp_res = PyObject_SetItem(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600, mod_consts[284], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_28; - } - branch_no_32:; - { - PyObject *tmp_assign_source_101; - PyObject *tmp_called_name_28; - PyObject *tmp_args_name_16; - PyObject *tmp_tuple_element_37; - PyObject *tmp_kwargs_name_17; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_called_name_28 = tmp_class_creation_8__metaclass; - tmp_tuple_element_37 = mod_consts[330]; - tmp_args_name_16 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_16, 0, tmp_tuple_element_37); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_37 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_16, 1, tmp_tuple_element_37); - tmp_tuple_element_37 = locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600; - PyTuple_SET_ITEM0(tmp_args_name_16, 2, tmp_tuple_element_37); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_17 = tmp_class_creation_8__class_decl_dict; - frame_b47d89b49d102399398e0765f596b180->m_frame.f_lineno = 600; - tmp_assign_source_101 = CALL_FUNCTION(tmp_called_name_28, tmp_args_name_16, tmp_kwargs_name_17); - Py_DECREF(tmp_args_name_16); - if (tmp_assign_source_101 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 600; - - goto try_except_handler_28; - } - { - PyObject *old = Nuitka_Cell_GET(outline_7_var___class__); - PyCell_SET(outline_7_var___class__, tmp_assign_source_101); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_7_var___class__)); - tmp_assign_source_100 = Nuitka_Cell_GET(outline_7_var___class__); - Py_INCREF(tmp_assign_source_100); - goto try_return_handler_28; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_28:; - Py_DECREF(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600); - locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600 = NULL; - goto try_return_handler_27; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600); - locals_models$modeling_llama$$$class__8_LlamaForCausalLM_600 = NULL; - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto try_except_handler_27; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_27:; - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - goto outline_result_8; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto outline_exception_8; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_8:; - exception_lineno = 600; - goto try_except_handler_26; - outline_result_8:; - UPDATE_STRING_DICT1(moduledict_models$modeling_llama, (Nuitka_StringObject *)mod_consts[330], tmp_assign_source_100); - } - goto try_end_12; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - Py_XDECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b47d89b49d102399398e0765f596b180); -#endif - popFrameStack(); - - assertFrameObject(frame_b47d89b49d102399398e0765f596b180); - - goto frame_no_exception_9; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b47d89b49d102399398e0765f596b180); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b47d89b49d102399398e0765f596b180, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b47d89b49d102399398e0765f596b180->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b47d89b49d102399398e0765f596b180, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_9:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - Py_DECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_8__prepared); - Py_DECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - - return module_models$modeling_llama; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.buildingblocks.const b/medomni/models.build/module.models.unet3d.buildingblocks.const deleted file mode 100644 index 30395f3192d79a4f4f622da3b4ca4e1e35bf868d..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.buildingblocks.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.buildingblocks.cpp b/medomni/models.build/module.models.unet3d.buildingblocks.cpp deleted file mode 100644 index ae87f1afb596806ad51f66c32dab48b05a8e772f..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.buildingblocks.cpp +++ /dev/null @@ -1,22510 +0,0 @@ -/* Generated code for Python module 'models.unet3d.buildingblocks' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$buildingblocks" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$buildingblocks; -PyDictObject *moduledict_models$unet3d$buildingblocks; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[216]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.buildingblocks")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$buildingblocks(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.buildingblocks"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_567c7b6e51ef3c98488cf17063fba15d; -static PyCodeObject *codeobj_da6a7aef66c9944f8503b64f04dafd31; -static PyCodeObject *codeobj_8b831a3244dcc6e71d1488869d80f985; -static PyCodeObject *codeobj_1a41d134c2cae2248c1dc0df22026998; -static PyCodeObject *codeobj_bb7ea78ef71a7a2e019769fecc828da7; -static PyCodeObject *codeobj_e4cff597bcd07a9d3d895b230f9c680f; -static PyCodeObject *codeobj_eef52d932d8de5c391eead11e09e81a1; -static PyCodeObject *codeobj_cf784f99f35065729dea5cf87dd87713; -static PyCodeObject *codeobj_98995caab116dc3e5142fcd24e1e2afa; -static PyCodeObject *codeobj_afa22cd191b8ebcec6cea50387665bbf; -static PyCodeObject *codeobj_2f6aa7281c2a2586597beb4633f5a199; -static PyCodeObject *codeobj_50b25f232efa5c6540072f74dc4480f3; -static PyCodeObject *codeobj_4e4e6b6f0efee3d666bd260254d2a427; -static PyCodeObject *codeobj_bf12b6f7ab651bbc0152c80d875fd7ca; -static PyCodeObject *codeobj_3626c4a5710c94a8edcf9a807e3a0c23; -static PyCodeObject *codeobj_c7f4c34772b07e30ff47849ac9ca174c; -static PyCodeObject *codeobj_47508e0f44d015eb4356045bbc424d80; -static PyCodeObject *codeobj_3d894708a6edf411a4d5374c8d85c7f0; -static PyCodeObject *codeobj_7a31a12e9cfabb467ef1510b22738ec3; -static PyCodeObject *codeobj_d6afecd1c71214c75f005fa1dd74a449; -static PyCodeObject *codeobj_680cc562b8a232576f41f8a22b372a3d; -static PyCodeObject *codeobj_124586f9365ffeb871ad69a20ff385ec; -static PyCodeObject *codeobj_3eaabde9ebeeda43deff0bfcc538af9b; -static PyCodeObject *codeobj_01bc3090fd70ac894aee47a9381e7d06; -static PyCodeObject *codeobj_4706e2357cb54ddc3f420ed26efc961e; -static PyCodeObject *codeobj_f9cfc327d09906207e89cf8037f9b11d; -static PyCodeObject *codeobj_08f24baaaf591da8452cea6e93d04f1d; -static PyCodeObject *codeobj_3f19e4a0be5fe578cb6ccc7f7293c9b8; -static PyCodeObject *codeobj_062a06af48c8c26a6cba883ee79b3d97; -static PyCodeObject *codeobj_e8e7a096df62266405373f8a4840d42c; -static PyCodeObject *codeobj_a7467ec8e28ccda7bf7c6ed35fcfc0bc; -static PyCodeObject *codeobj_a50904ccd5e1755d283981e60263e600; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[192]); CHECK_OBJECT(module_filename_obj); - codeobj_567c7b6e51ef3c98488cf17063fba15d = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[193], NULL, NULL, 0, 0, 0); - codeobj_da6a7aef66c9944f8503b64f04dafd31 = MAKE_CODEOBJECT(module_filename_obj, 406, CO_NOFREE, mod_consts[118], mod_consts[194], NULL, 0, 0, 0); - codeobj_8b831a3244dcc6e71d1488869d80f985 = MAKE_CODEOBJECT(module_filename_obj, 285, CO_NOFREE, mod_consts[87], mod_consts[194], NULL, 0, 0, 0); - codeobj_1a41d134c2cae2248c1dc0df22026998 = MAKE_CODEOBJECT(module_filename_obj, 108, CO_NOFREE, mod_consts[49], mod_consts[194], NULL, 0, 0, 0); - codeobj_bb7ea78ef71a7a2e019769fecc828da7 = MAKE_CODEOBJECT(module_filename_obj, 228, CO_NOFREE, mod_consts[77], mod_consts[194], NULL, 0, 0, 0); - codeobj_e4cff597bcd07a9d3d895b230f9c680f = MAKE_CODEOBJECT(module_filename_obj, 423, CO_NOFREE, mod_consts[88], mod_consts[194], NULL, 0, 0, 0); - codeobj_eef52d932d8de5c391eead11e09e81a1 = MAKE_CODEOBJECT(module_filename_obj, 461, CO_NOFREE, mod_consts[98], mod_consts[194], NULL, 0, 0, 0); - codeobj_cf784f99f35065729dea5cf87dd87713 = MAKE_CODEOBJECT(module_filename_obj, 157, CO_NOFREE, mod_consts[54], mod_consts[194], NULL, 0, 0, 0); - codeobj_98995caab116dc3e5142fcd24e1e2afa = MAKE_CODEOBJECT(module_filename_obj, 209, CO_NOFREE, mod_consts[65], mod_consts[194], NULL, 0, 0, 0); - codeobj_afa22cd191b8ebcec6cea50387665bbf = MAKE_CODEOBJECT(module_filename_obj, 82, CO_NOFREE, mod_consts[44], mod_consts[194], NULL, 0, 0, 0); - codeobj_2f6aa7281c2a2586597beb4633f5a199 = MAKE_CODEOBJECT(module_filename_obj, 440, CO_NOFREE, mod_consts[95], mod_consts[194], NULL, 0, 0, 0); - codeobj_50b25f232efa5c6540072f74dc4480f3 = MAKE_CODEOBJECT(module_filename_obj, 462, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[45], mod_consts[195], mod_consts[194], 1, 0, 0); - codeobj_4e4e6b6f0efee3d666bd260254d2a427 = MAKE_CODEOBJECT(module_filename_obj, 251, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[45], mod_consts[196], NULL, 12, 0, 0); - codeobj_bf12b6f7ab651bbc0152c80d875fd7ca = MAKE_CODEOBJECT(module_filename_obj, 306, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[45], mod_consts[197], NULL, 12, 0, 0); - codeobj_3626c4a5710c94a8edcf9a807e3a0c23 = MAKE_CODEOBJECT(module_filename_obj, 132, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[45], mod_consts[198], NULL, 9, 0, 0); - codeobj_c7f4c34772b07e30ff47849ac9ca174c = MAKE_CODEOBJECT(module_filename_obj, 165, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[45], mod_consts[199], NULL, 7, 0, 0); - codeobj_47508e0f44d015eb4356045bbc424d80 = MAKE_CODEOBJECT(module_filename_obj, 101, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[45], mod_consts[200], NULL, 8, 0, 0); - codeobj_3d894708a6edf411a4d5374c8d85c7f0 = MAKE_CODEOBJECT(module_filename_obj, 210, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[45], mod_consts[201], NULL, 7, 0, 0); - codeobj_7a31a12e9cfabb467ef1510b22738ec3 = MAKE_CODEOBJECT(module_filename_obj, 454, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[45], mod_consts[202], mod_consts[194], 5, 0, 0); - codeobj_d6afecd1c71214c75f005fa1dd74a449 = MAKE_CODEOBJECT(module_filename_obj, 431, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[45], mod_consts[203], mod_consts[194], 2, 0, 0); - codeobj_680cc562b8a232576f41f8a22b372a3d = MAKE_CODEOBJECT(module_filename_obj, 412, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[45], mod_consts[204], NULL, 2, 0, 0); - codeobj_124586f9365ffeb871ad69a20ff385ec = MAKE_CODEOBJECT(module_filename_obj, 436, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[122], mod_consts[205], NULL, 3, 0, 0); - codeobj_3eaabde9ebeeda43deff0bfcc538af9b = MAKE_CODEOBJECT(module_filename_obj, 346, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[92], mod_consts[206], NULL, 3, 0, 0); - codeobj_01bc3090fd70ac894aee47a9381e7d06 = MAKE_CODEOBJECT(module_filename_obj, 466, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[127], mod_consts[207], NULL, 2, 0, 0); - codeobj_4706e2357cb54ddc3f420ed26efc961e = MAKE_CODEOBJECT(module_filename_obj, 11, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[46], mod_consts[208], NULL, 7, 0, 0); - codeobj_f9cfc327d09906207e89cf8037f9b11d = MAKE_CODEOBJECT(module_filename_obj, 383, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[179], mod_consts[209], NULL, 7, 0, 0); - codeobj_08f24baaaf591da8452cea6e93d04f1d = MAKE_CODEOBJECT(module_filename_obj, 353, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[178], mod_consts[210], NULL, 9, 0, 0); - codeobj_3f19e4a0be5fe578cb6ccc7f7293c9b8 = MAKE_CODEOBJECT(module_filename_obj, 338, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[76], mod_consts[211], NULL, 3, 0, 0); - codeobj_062a06af48c8c26a6cba883ee79b3d97 = MAKE_CODEOBJECT(module_filename_obj, 416, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[76], mod_consts[212], NULL, 3, 0, 0); - codeobj_e8e7a096df62266405373f8a4840d42c = MAKE_CODEOBJECT(module_filename_obj, 278, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[76], mod_consts[213], NULL, 2, 0, 0); - codeobj_a7467ec8e28ccda7bf7c6ed35fcfc0bc = MAKE_CODEOBJECT(module_filename_obj, 222, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[76], mod_consts[214], mod_consts[194], 2, 0, 0); - codeobj_a50904ccd5e1755d283981e60263e600 = MAKE_CODEOBJECT(module_filename_obj, 195, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[76], mod_consts[215], NULL, 2, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__7_complex_call_helper_pos_keywords_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__10___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__11_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__12__joining(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__13_create_encoders(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__14_create_decoders(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__15___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__16_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__17___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__18__interpolate(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__19___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__1_create_conv(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__20___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__21__no_upsampling(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__2___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__3___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__4___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__5_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__6___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__7_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__8___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__9_forward(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$buildingblocks$$$function__1_create_conv(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_in_channels = python_pars[0]; - PyObject *par_out_channels = python_pars[1]; - PyObject *par_kernel_size = python_pars[2]; - PyObject *par_order = python_pars[3]; - PyObject *par_num_groups = python_pars[4]; - PyObject *par_padding = python_pars[5]; - PyObject *par_is3d = python_pars[6]; - PyObject *var_modules = NULL; - PyObject *var_i = NULL; - PyObject *var_char = NULL; - PyObject *var_bias = NULL; - PyObject *var_conv = NULL; - PyObject *var_is_before_conv = NULL; - PyObject *var_num_channels = NULL; - PyObject *var_bn = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_4706e2357cb54ddc3f420ed26efc961e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_4706e2357cb54ddc3f420ed26efc961e = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4706e2357cb54ddc3f420ed26efc961e)) { - Py_XDECREF(cache_frame_4706e2357cb54ddc3f420ed26efc961e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4706e2357cb54ddc3f420ed26efc961e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4706e2357cb54ddc3f420ed26efc961e = MAKE_FUNCTION_FRAME(codeobj_4706e2357cb54ddc3f420ed26efc961e, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4706e2357cb54ddc3f420ed26efc961e->m_type_description == NULL); - frame_4706e2357cb54ddc3f420ed26efc961e = cache_frame_4706e2357cb54ddc3f420ed26efc961e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4706e2357cb54ddc3f420ed26efc961e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4706e2357cb54ddc3f420ed26efc961e) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[0]; - CHECK_OBJECT(par_order); - tmp_compexpr_right_1 = par_order; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[1]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 32; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_order); - tmp_expression_name_1 = par_order; - tmp_subscript_name_1 = mod_consts[2]; - tmp_compexpr_left_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[3]; - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - tmp_raise_type_2 = PyExc_AssertionError; - tmp_raise_value_2 = mod_consts[4]; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - Py_INCREF(tmp_raise_value_2); - exception_lineno = 33; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_modules == NULL); - var_modules = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = (PyObject *)&PyEnum_Type; - CHECK_OBJECT(par_order); - tmp_args_element_name_1 = par_order; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 36; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooo"; - exception_lineno = 36; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooo"; - exception_lineno = 36; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooooo"; - exception_lineno = 36; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooooo"; - exception_lineno = 36; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[5]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooooo"; - exception_lineno = 36; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_i; - var_i = tmp_assign_source_7; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_char; - var_char = tmp_assign_source_8; - Py_INCREF(var_char); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_char); - tmp_compexpr_left_3 = var_char; - tmp_compexpr_right_3 = mod_consts[6]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 37; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_3 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_tuple_element_1; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 38; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = var_modules; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[8]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_1 = mod_consts[9]; - tmp_args_element_name_2 = PyTuple_New(2); - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_1; - PyTuple_SET_ITEM0(tmp_args_element_name_2, 0, tmp_tuple_element_1); - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[9]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[11]); - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 38; - tmp_tuple_element_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_args_element_name_2, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 38; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - goto branch_end_3; - branch_no_3:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_tmp_condition_result_4_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(var_char); - tmp_compexpr_left_4 = var_char; - tmp_compexpr_right_4 = mod_consts[12]; - tmp_tmp_condition_result_4_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_tmp_condition_result_4_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_4_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_4_object_1); - - exception_lineno = 39; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_4 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_4_object_1); - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_tuple_element_2; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = var_modules; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[8]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_2 = mod_consts[13]; - tmp_args_element_name_3 = PyTuple_New(2); - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_kwargs_name_2; - PyTuple_SET_ITEM0(tmp_args_element_name_3, 0, tmp_tuple_element_2); - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_2; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[13]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_2; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[11]); - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 40; - tmp_tuple_element_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_element_name_3, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 40; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - goto branch_end_4; - branch_no_4:; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_tmp_condition_result_5_object_1; - int tmp_truth_name_3; - CHECK_OBJECT(var_char); - tmp_compexpr_left_5 = var_char; - tmp_compexpr_right_5 = mod_consts[14]; - tmp_tmp_condition_result_5_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_tmp_condition_result_5_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_tmp_condition_result_5_object_1); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_5_object_1); - - exception_lineno = 41; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_5 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_5_object_1); - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_tuple_element_3; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 42; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_6 = var_modules; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[8]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_3 = mod_consts[15]; - tmp_args_element_name_4 = PyTuple_New(2); - { - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_7; - PyObject *tmp_kwargs_name_3; - PyTuple_SET_ITEM0(tmp_args_element_name_4, 0, tmp_tuple_element_3); - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[15]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[11]); - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 42; - tmp_tuple_element_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_7, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_args_element_name_4, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_4); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 42; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_4); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_3); - } - goto branch_end_5; - branch_no_5:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_tmp_condition_result_6_object_1; - int tmp_truth_name_4; - CHECK_OBJECT(var_char); - tmp_compexpr_left_6 = var_char; - tmp_compexpr_right_6 = mod_consts[0]; - tmp_tmp_condition_result_6_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_tmp_condition_result_6_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_tmp_condition_result_6_object_1); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_6_object_1); - - exception_lineno = 43; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_6 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_6_object_1); - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_operand_name_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - tmp_compexpr_left_7 = mod_consts[16]; - if (par_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 45; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_right_7 = par_order; - tmp_res = PySequence_Contains(tmp_compexpr_right_7, tmp_compexpr_left_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_or_left_value_1 = (tmp_res == 1) ? Py_True : Py_False; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - tmp_compexpr_left_8 = mod_consts[18]; - if (par_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 45; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_right_8 = par_order; - tmp_res = PySequence_Contains(tmp_compexpr_right_8, tmp_compexpr_left_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_or_right_value_1 = (tmp_res == 1) ? Py_True : Py_False; - tmp_operand_name_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_operand_name_1 = tmp_or_left_value_1; - or_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - assert(!(tmp_res == -1)); - tmp_assign_source_9 = (tmp_res == 0) ? Py_True : Py_False; - { - PyObject *old = var_bias; - var_bias = tmp_assign_source_9; - Py_INCREF(var_bias); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_7; - int tmp_truth_name_5; - if (par_is3d == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 46; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_truth_name_5 = CHECK_IF_TRUE(par_is3d); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_7 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[20]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - if (par_in_channels == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_tuple_element_4 = par_in_channels; - tmp_args_name_1 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_4); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_4; - } - - tmp_tuple_element_4 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_4); - if (par_kernel_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_4; - } - - tmp_tuple_element_4 = par_kernel_size; - PyTuple_SET_ITEM0(tmp_args_name_1, 2, tmp_tuple_element_4); - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_dict_key_1 = mod_consts[24]; - if (par_padding == NULL) { - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_dict_value_1 = par_padding; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[25]; - CHECK_OBJECT(var_bias); - tmp_dict_value_1 = var_bias; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 47; - tmp_assign_source_10 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_1, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_conv; - var_conv = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - goto branch_end_7; - branch_no_7:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[26]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - if (par_in_channels == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_tuple_element_5 = par_in_channels; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_5); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_5; - } - - tmp_tuple_element_5 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_5); - if (par_kernel_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_5; - } - - tmp_tuple_element_5 = par_kernel_size; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_5); - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_2); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_dict_key_2 = mod_consts[24]; - if (par_padding == NULL) { - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_dict_value_2 = par_padding; - tmp_kwargs_name_5 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[25]; - CHECK_OBJECT(var_bias); - tmp_dict_value_2 = var_bias; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 49; - tmp_assign_source_11 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_2, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_conv; - var_conv = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - branch_end_7:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_tuple_element_6; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 51; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_modules; - tmp_tuple_element_6 = mod_consts[27]; - tmp_args_element_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_element_name_5, 0, tmp_tuple_element_6); - CHECK_OBJECT(var_conv); - tmp_tuple_element_6 = var_conv; - PyTuple_SET_ITEM0(tmp_args_element_name_5, 1, tmp_tuple_element_6); - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 51; - tmp_call_result_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[8], tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_4); - } - goto branch_end_6; - branch_no_6:; - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - PyObject *tmp_tmp_condition_result_8_object_1; - int tmp_truth_name_6; - CHECK_OBJECT(var_char); - tmp_compexpr_left_9 = var_char; - tmp_compexpr_right_9 = mod_consts[16]; - tmp_tmp_condition_result_8_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_9, tmp_compexpr_right_9); - if (tmp_tmp_condition_result_8_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_tmp_condition_result_8_object_1); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_8_object_1); - - exception_lineno = 52; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_8 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_8_object_1); - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_i); - tmp_compexpr_left_10 = var_i; - if (par_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_2 = par_order; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 53; - tmp_compexpr_right_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[28], - &PyTuple_GET_ITEM(mod_consts[29], 0) - ); - - if (tmp_compexpr_right_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_12 = RICH_COMPARE_LT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_10, tmp_compexpr_right_10); - Py_DECREF(tmp_compexpr_right_10); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_is_before_conv; - var_is_before_conv = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_9; - int tmp_truth_name_7; - CHECK_OBJECT(var_is_before_conv); - tmp_truth_name_7 = CHECK_IF_TRUE(var_is_before_conv); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_9 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_assign_source_13; - if (par_in_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 55; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_assign_source_13 = par_in_channels; - { - PyObject *old = var_num_channels; - var_num_channels = tmp_assign_source_13; - Py_INCREF(var_num_channels); - Py_XDECREF(old); - } - - } - goto branch_end_9; - branch_no_9:; - { - PyObject *tmp_assign_source_14; - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_assign_source_14 = par_out_channels; - { - PyObject *old = var_num_channels; - var_num_channels = tmp_assign_source_14; - Py_INCREF(var_num_channels); - Py_XDECREF(old); - } - - } - branch_end_9:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - CHECK_OBJECT(var_num_channels); - tmp_compexpr_left_11 = var_num_channels; - if (par_num_groups == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 60; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_right_11 = par_num_groups; - tmp_condition_result_10 = RICH_COMPARE_LT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_11, tmp_compexpr_right_11); - if (tmp_condition_result_10 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - assert(tmp_condition_result_10 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_10:; - { - PyObject *tmp_assign_source_15; - tmp_assign_source_15 = mod_consts[31]; - { - PyObject *old = par_num_groups; - par_num_groups = tmp_assign_source_15; - Py_INCREF(par_num_groups); - Py_XDECREF(old); - } - - } - branch_no_10:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_compexpr_left_12; - PyObject *tmp_compexpr_right_12; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_num_channels); - tmp_left_name_1 = var_num_channels; - if (par_num_groups == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_right_name_1 = par_num_groups; - tmp_compexpr_left_12 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_compexpr_left_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_12 = mod_consts[2]; - tmp_operand_name_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_12, tmp_compexpr_right_12); - Py_DECREF(tmp_compexpr_left_12); - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_tuple_element_7; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_8; - tmp_raise_type_3 = PyExc_AssertionError; - tmp_tuple_element_8 = mod_consts[32]; - tmp_string_concat_values_1 = PyTuple_New(4); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_8); - if (var_num_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[33]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_6; - } - - tmp_format_value_1 = var_num_channels; - tmp_format_spec_1 = mod_consts[34]; - tmp_tuple_element_8 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = mod_consts[35]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_8); - if (par_num_groups == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_6; - } - - tmp_format_value_2 = par_num_groups; - tmp_format_spec_2 = mod_consts[34]; - tmp_tuple_element_8 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_8); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_tuple_element_7 = PyUnicode_Join(mod_consts[34], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_raise_value_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_raise_value_3, 0, tmp_tuple_element_7); - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 63; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - branch_no_11:; - { - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_tuple_element_9; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_10 = var_modules; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[8]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_9 = mod_consts[36]; - tmp_args_element_name_6 = PyTuple_New(2); - { - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_11; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyTuple_SET_ITEM0(tmp_args_element_name_6, 0, tmp_tuple_element_9); - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_7; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[37]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_7; - } - tmp_dict_key_3 = mod_consts[30]; - if (par_num_groups == NULL) { - Py_DECREF(tmp_called_name_11); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_7; - } - - tmp_dict_value_3 = par_num_groups; - tmp_kwargs_name_6 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[33]; - if (var_num_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[33]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_3 = var_num_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_kwargs_name_6); - goto tuple_build_exception_7; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 64; - tmp_tuple_element_9 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_11, tmp_kwargs_name_6); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_args_element_name_6, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_6); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 64; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_5); - } - goto branch_end_8; - branch_no_8:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_13; - PyObject *tmp_compexpr_right_13; - PyObject *tmp_tmp_condition_result_12_object_1; - int tmp_truth_name_8; - CHECK_OBJECT(var_char); - tmp_compexpr_left_13 = var_char; - tmp_compexpr_right_13 = mod_consts[18]; - tmp_tmp_condition_result_12_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_13, tmp_compexpr_right_13); - if (tmp_tmp_condition_result_12_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_tmp_condition_result_12_object_1); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_12_object_1); - - exception_lineno = 65; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_12 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_12_object_1); - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_compexpr_left_14; - PyObject *tmp_compexpr_right_14; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(var_i); - tmp_compexpr_left_14 = var_i; - if (par_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_3 = par_order; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 66; - tmp_compexpr_right_14 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[28], - &PyTuple_GET_ITEM(mod_consts[29], 0) - ); - - if (tmp_compexpr_right_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_16 = RICH_COMPARE_LT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_14, tmp_compexpr_right_14); - Py_DECREF(tmp_compexpr_right_14); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_is_before_conv; - var_is_before_conv = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_13; - int tmp_truth_name_9; - if (par_is3d == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 67; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_truth_name_9 = CHECK_IF_TRUE(par_is3d); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_13 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_expression_name_12; - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[38]); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_bn; - var_bn = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - goto branch_end_13; - branch_no_13:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_expression_name_13; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[39]); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_bn; - var_bn = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - branch_end_13:; - { - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_10; - CHECK_OBJECT(var_is_before_conv); - tmp_truth_name_10 = CHECK_IF_TRUE(var_is_before_conv); - if (tmp_truth_name_10 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_14 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_14; - PyObject *tmp_call_result_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_tuple_element_10; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_14 = var_modules; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[8]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_10 = mod_consts[40]; - tmp_args_element_name_7 = PyTuple_New(2); - { - PyObject *tmp_called_name_13; - PyObject *tmp_args_element_name_8; - PyTuple_SET_ITEM0(tmp_args_element_name_7, 0, tmp_tuple_element_10); - CHECK_OBJECT(var_bn); - tmp_called_name_13 = var_bn; - if (par_in_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_8; - } - - tmp_args_element_name_8 = par_in_channels; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 73; - tmp_tuple_element_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_13, tmp_args_element_name_8); - if (tmp_tuple_element_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_args_element_name_7, 1, tmp_tuple_element_10); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_7); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 73; - tmp_call_result_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_7); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_6); - } - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_15; - PyObject *tmp_call_result_7; - PyObject *tmp_args_element_name_9; - PyObject *tmp_tuple_element_11; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_15 = var_modules; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[8]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_11 = mod_consts[40]; - tmp_args_element_name_9 = PyTuple_New(2); - { - PyObject *tmp_called_name_15; - PyObject *tmp_args_element_name_10; - PyTuple_SET_ITEM0(tmp_args_element_name_9, 0, tmp_tuple_element_11); - CHECK_OBJECT(var_bn); - tmp_called_name_15 = var_bn; - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_9; - } - - tmp_args_element_name_10 = par_out_channels; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 75; - tmp_tuple_element_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_15, tmp_args_element_name_10); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_args_element_name_9, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_element_name_9); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 75; - tmp_call_result_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_14, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_element_name_9); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_7); - } - branch_end_14:; - goto branch_end_12; - branch_no_12:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_12; - tmp_tuple_element_12 = mod_consts[41]; - tmp_string_concat_values_2 = PyTuple_New(3); - { - PyObject *tmp_format_value_3; - PyObject *tmp_format_spec_3; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_12); - CHECK_OBJECT(var_char); - tmp_format_value_3 = var_char; - tmp_format_spec_3 = mod_consts[34]; - tmp_tuple_element_12 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - if (tmp_tuple_element_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "ooooooooooooooo"; - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = mod_consts[42]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_12); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_string_concat_values_2); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_make_exception_arg_1 = PyUnicode_Join(mod_consts[34], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - frame_4706e2357cb54ddc3f420ed26efc961e->m_frame.f_lineno = 77; - tmp_raise_type_4 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_ValueError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_4 == NULL)); - exception_type = tmp_raise_type_4; - exception_lineno = 77; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - branch_end_12:; - branch_end_8:; - branch_end_6:; - branch_end_5:; - branch_end_4:; - branch_end_3:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - if (var_modules == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[7]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "ooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_modules; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4706e2357cb54ddc3f420ed26efc961e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4706e2357cb54ddc3f420ed26efc961e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4706e2357cb54ddc3f420ed26efc961e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4706e2357cb54ddc3f420ed26efc961e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4706e2357cb54ddc3f420ed26efc961e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4706e2357cb54ddc3f420ed26efc961e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4706e2357cb54ddc3f420ed26efc961e, - type_description_1, - par_in_channels, - par_out_channels, - par_kernel_size, - par_order, - par_num_groups, - par_padding, - par_is3d, - var_modules, - var_i, - var_char, - var_bias, - var_conv, - var_is_before_conv, - var_num_channels, - var_bn - ); - - - // Release cached frame if used for exception. - if (frame_4706e2357cb54ddc3f420ed26efc961e == cache_frame_4706e2357cb54ddc3f420ed26efc961e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4706e2357cb54ddc3f420ed26efc961e); - cache_frame_4706e2357cb54ddc3f420ed26efc961e = NULL; - } - - assertFrameObject(frame_4706e2357cb54ddc3f420ed26efc961e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_kernel_size); - par_kernel_size = NULL; - Py_XDECREF(par_order); - par_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_padding); - par_padding = NULL; - Py_XDECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_modules); - var_modules = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_char); - var_char = NULL; - Py_XDECREF(var_bias); - var_bias = NULL; - Py_XDECREF(var_conv); - var_conv = NULL; - Py_XDECREF(var_is_before_conv); - var_is_before_conv = NULL; - Py_XDECREF(var_num_channels); - var_num_channels = NULL; - Py_XDECREF(var_bn); - var_bn = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_kernel_size); - par_kernel_size = NULL; - Py_XDECREF(par_order); - par_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_padding); - par_padding = NULL; - Py_XDECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_modules); - var_modules = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_char); - var_char = NULL; - Py_XDECREF(var_bias); - var_bias = NULL; - Py_XDECREF(var_conv); - var_conv = NULL; - Py_XDECREF(var_is_before_conv); - var_is_before_conv = NULL; - Py_XDECREF(var_num_channels); - var_num_channels = NULL; - Py_XDECREF(var_bn); - var_bn = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__2___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_kernel_size = python_pars[3]; - PyObject *par_order = python_pars[4]; - PyObject *par_num_groups = python_pars[5]; - PyObject *par_padding = python_pars[6]; - PyObject *par_is3d = python_pars[7]; - PyObject *var_name = NULL; - PyObject *var_module = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_47508e0f44d015eb4356045bbc424d80; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_47508e0f44d015eb4356045bbc424d80 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_47508e0f44d015eb4356045bbc424d80)) { - Py_XDECREF(cache_frame_47508e0f44d015eb4356045bbc424d80); - -#if _DEBUG_REFCOUNTS - if (cache_frame_47508e0f44d015eb4356045bbc424d80 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_47508e0f44d015eb4356045bbc424d80 = MAKE_FUNCTION_FRAME(codeobj_47508e0f44d015eb4356045bbc424d80, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_47508e0f44d015eb4356045bbc424d80->m_type_description == NULL); - frame_47508e0f44d015eb4356045bbc424d80 = cache_frame_47508e0f44d015eb4356045bbc424d80; - - // Push the new frame as the currently active one. - pushFrameStack(frame_47508e0f44d015eb4356045bbc424d80); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_47508e0f44d015eb4356045bbc424d80) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[44]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[44]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - frame_47508e0f44d015eb4356045bbc424d80->m_frame.f_lineno = 102; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[45]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[46]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[46]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_args_element_name_1 = par_in_channels; - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_2 = par_out_channels; - CHECK_OBJECT(par_kernel_size); - tmp_args_element_name_3 = par_kernel_size; - CHECK_OBJECT(par_order); - tmp_args_element_name_4 = par_order; - CHECK_OBJECT(par_num_groups); - tmp_args_element_name_5 = par_num_groups; - CHECK_OBJECT(par_padding); - tmp_args_element_name_6 = par_padding; - CHECK_OBJECT(par_is3d); - tmp_args_element_name_7 = par_is3d; - frame_47508e0f44d015eb4356045bbc424d80->m_frame.f_lineno = 104; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS7(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooN"; - exception_lineno = 104; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooooooooN"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooN"; - exception_lineno = 104; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooN"; - exception_lineno = 104; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooN"; - exception_lineno = 104; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[5]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooN"; - exception_lineno = 104; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_6; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_module; - var_module = tmp_assign_source_7; - Py_INCREF(var_module); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "ooooooooooN"; - goto try_except_handler_2; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_name); - tmp_args_element_name_8 = var_name; - CHECK_OBJECT(var_module); - tmp_args_element_name_9 = var_module; - frame_47508e0f44d015eb4356045bbc424d80->m_frame.f_lineno = 105; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[48], - call_args - ); - } - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooooooooooN"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooooooooooN"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_47508e0f44d015eb4356045bbc424d80); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_47508e0f44d015eb4356045bbc424d80); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_47508e0f44d015eb4356045bbc424d80, exception_lineno); - } else if (exception_tb->tb_frame != &frame_47508e0f44d015eb4356045bbc424d80->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_47508e0f44d015eb4356045bbc424d80, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_47508e0f44d015eb4356045bbc424d80, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_kernel_size, - par_order, - par_num_groups, - par_padding, - par_is3d, - var_name, - var_module, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_47508e0f44d015eb4356045bbc424d80 == cache_frame_47508e0f44d015eb4356045bbc424d80) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_47508e0f44d015eb4356045bbc424d80); - cache_frame_47508e0f44d015eb4356045bbc424d80 = NULL; - } - - assertFrameObject(frame_47508e0f44d015eb4356045bbc424d80); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_module); - var_module = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_module); - var_module = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_encoder = python_pars[3]; - PyObject *par_kernel_size = python_pars[4]; - PyObject *par_order = python_pars[5]; - PyObject *par_num_groups = python_pars[6]; - PyObject *par_padding = python_pars[7]; - PyObject *par_is3d = python_pars[8]; - PyObject *var_conv1_in_channels = NULL; - PyObject *var_conv1_out_channels = NULL; - PyObject *var_conv2_in_channels = NULL; - PyObject *var_conv2_out_channels = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - struct Nuitka_FrameObject *frame_3626c4a5710c94a8edcf9a807e3a0c23; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_3626c4a5710c94a8edcf9a807e3a0c23 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3626c4a5710c94a8edcf9a807e3a0c23)) { - Py_XDECREF(cache_frame_3626c4a5710c94a8edcf9a807e3a0c23); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3626c4a5710c94a8edcf9a807e3a0c23 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3626c4a5710c94a8edcf9a807e3a0c23 = MAKE_FUNCTION_FRAME(codeobj_3626c4a5710c94a8edcf9a807e3a0c23, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3626c4a5710c94a8edcf9a807e3a0c23->m_type_description == NULL); - frame_3626c4a5710c94a8edcf9a807e3a0c23 = cache_frame_3626c4a5710c94a8edcf9a807e3a0c23; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3626c4a5710c94a8edcf9a807e3a0c23); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3626c4a5710c94a8edcf9a807e3a0c23) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[49]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[49]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - frame_3626c4a5710c94a8edcf9a807e3a0c23->m_frame.f_lineno = 134; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[45]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_encoder); - tmp_truth_name_1 = CHECK_IF_TRUE(par_encoder); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - CHECK_OBJECT(par_in_channels); - tmp_assign_source_1 = par_in_channels; - assert(var_conv1_in_channels == NULL); - Py_INCREF(tmp_assign_source_1); - var_conv1_in_channels = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_out_channels); - tmp_left_name_1 = par_out_channels; - tmp_right_name_1 = mod_consts[50]; - tmp_assign_source_2 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - assert(var_conv1_out_channels == NULL); - var_conv1_out_channels = tmp_assign_source_2; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_conv1_out_channels); - tmp_compexpr_left_1 = var_conv1_out_channels; - CHECK_OBJECT(par_in_channels); - tmp_compexpr_right_1 = par_in_channels; - tmp_condition_result_2 = RICH_COMPARE_LT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(par_in_channels); - tmp_assign_source_3 = par_in_channels; - { - PyObject *old = var_conv1_out_channels; - assert(old != NULL); - var_conv1_out_channels = tmp_assign_source_3; - Py_INCREF(var_conv1_out_channels); - Py_DECREF(old); - } - - } - branch_no_2:; - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_1; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(var_conv1_out_channels); - tmp_tuple_element_1 = var_conv1_out_channels; - tmp_iter_arg_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_iter_arg_1, 0, tmp_tuple_element_1); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oooooooooooooN"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_iter_arg_1, 1, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_iter_arg_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_4 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - assert(!(tmp_assign_source_4 == NULL)); - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT_INFALLIBLE(tmp_unpack_1); - assert(!(tmp_assign_source_5 == NULL)); - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooN"; - exception_lineno = 141; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooN"; - exception_lineno = 141; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[5]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooN"; - exception_lineno = 141; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_conv2_in_channels == NULL); - Py_INCREF(tmp_assign_source_7); - var_conv2_in_channels = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_conv2_out_channels == NULL); - Py_INCREF(tmp_assign_source_8); - var_conv2_out_channels = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_2; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(par_in_channels); - tmp_tuple_element_2 = par_in_channels; - tmp_iter_arg_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_iter_arg_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_2 = par_out_channels; - PyTuple_SET_ITEM0(tmp_iter_arg_2, 1, tmp_tuple_element_2); - tmp_assign_source_9 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - assert(!(tmp_assign_source_9 == NULL)); - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_10 = UNPACK_NEXT_INFALLIBLE(tmp_unpack_3); - assert(!(tmp_assign_source_10 == NULL)); - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_10; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooN"; - exception_lineno = 144; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_11; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooN"; - exception_lineno = 144; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[5]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooN"; - exception_lineno = 144; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - Py_DECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_12 = tmp_tuple_unpack_2__element_1; - assert(var_conv1_in_channels == NULL); - Py_INCREF(tmp_assign_source_12); - var_conv1_in_channels = tmp_assign_source_12; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_13 = tmp_tuple_unpack_2__element_2; - assert(var_conv1_out_channels == NULL); - Py_INCREF(tmp_assign_source_13); - var_conv1_out_channels = tmp_assign_source_13; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_iter_arg_3; - PyObject *tmp_tuple_element_3; - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "oooooooooooooN"; - goto try_except_handler_6; - } - - tmp_tuple_element_3 = par_out_channels; - tmp_iter_arg_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_iter_arg_3, 0, tmp_tuple_element_3); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "oooooooooooooN"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_3 = par_out_channels; - PyTuple_SET_ITEM0(tmp_iter_arg_3, 1, tmp_tuple_element_3); - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_iter_arg_3); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_assign_source_14 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - assert(!(tmp_assign_source_14 == NULL)); - assert(tmp_tuple_unpack_3__source_iter == NULL); - tmp_tuple_unpack_3__source_iter = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_15 = UNPACK_NEXT_INFALLIBLE(tmp_unpack_5); - assert(!(tmp_assign_source_15 == NULL)); - assert(tmp_tuple_unpack_3__element_1 == NULL); - tmp_tuple_unpack_3__element_1 = tmp_assign_source_15; - } - // Tried code: - { - PyObject *tmp_assign_source_16; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_16 = UNPACK_NEXT(tmp_unpack_6, 1, 2); - if (tmp_assign_source_16 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooN"; - exception_lineno = 145; - goto try_except_handler_7; - } - assert(tmp_tuple_unpack_3__element_2 == NULL); - tmp_tuple_unpack_3__element_2 = tmp_assign_source_16; - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooN"; - exception_lineno = 145; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[5]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooN"; - exception_lineno = 145; - goto try_except_handler_7; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_17 = tmp_tuple_unpack_3__element_1; - assert(var_conv2_in_channels == NULL); - Py_INCREF(tmp_assign_source_17); - var_conv2_in_channels = tmp_assign_source_17; - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_18 = tmp_tuple_unpack_3__element_2; - assert(var_conv2_out_channels == NULL); - Py_INCREF(tmp_assign_source_18); - var_conv2_out_channels = tmp_assign_source_18; - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - branch_end_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[48]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[51]; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[44]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[44]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 149; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_conv1_in_channels); - tmp_tuple_element_4 = var_conv1_in_channels; - tmp_args_name_1 = PyTuple_New(5); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_4); - if (var_conv1_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 149; - type_description_1 = "oooooooooooooN"; - goto tuple_build_exception_3; - } - - tmp_tuple_element_4 = var_conv1_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_4); - CHECK_OBJECT(par_kernel_size); - tmp_tuple_element_4 = par_kernel_size; - PyTuple_SET_ITEM0(tmp_args_name_1, 2, tmp_tuple_element_4); - CHECK_OBJECT(par_order); - tmp_tuple_element_4 = par_order; - PyTuple_SET_ITEM0(tmp_args_name_1, 3, tmp_tuple_element_4); - CHECK_OBJECT(par_num_groups); - tmp_tuple_element_4 = par_num_groups; - PyTuple_SET_ITEM0(tmp_args_name_1, 4, tmp_tuple_element_4); - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_dict_key_1 = mod_consts[24]; - CHECK_OBJECT(par_padding); - tmp_dict_value_1 = par_padding; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - CHECK_OBJECT(par_is3d); - tmp_dict_value_1 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_3626c4a5710c94a8edcf9a807e3a0c23->m_frame.f_lineno = 149; - tmp_args_element_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 149; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - frame_3626c4a5710c94a8edcf9a807e3a0c23->m_frame.f_lineno = 148; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 152; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[48]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = mod_consts[53]; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[44]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[44]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 153; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_conv2_in_channels); - tmp_tuple_element_5 = var_conv2_in_channels; - tmp_args_name_2 = PyTuple_New(5); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_5); - CHECK_OBJECT(var_conv2_out_channels); - tmp_tuple_element_5 = var_conv2_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_5); - CHECK_OBJECT(par_kernel_size); - tmp_tuple_element_5 = par_kernel_size; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_5); - CHECK_OBJECT(par_order); - tmp_tuple_element_5 = par_order; - PyTuple_SET_ITEM0(tmp_args_name_2, 3, tmp_tuple_element_5); - CHECK_OBJECT(par_num_groups); - tmp_tuple_element_5 = par_num_groups; - PyTuple_SET_ITEM0(tmp_args_name_2, 4, tmp_tuple_element_5); - tmp_dict_key_2 = mod_consts[24]; - CHECK_OBJECT(par_padding); - tmp_dict_value_2 = par_padding; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[19]; - CHECK_OBJECT(par_is3d); - tmp_dict_value_2 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_3626c4a5710c94a8edcf9a807e3a0c23->m_frame.f_lineno = 153; - tmp_args_element_name_4 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 153; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - frame_3626c4a5710c94a8edcf9a807e3a0c23->m_frame.f_lineno = 152; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3626c4a5710c94a8edcf9a807e3a0c23); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3626c4a5710c94a8edcf9a807e3a0c23); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3626c4a5710c94a8edcf9a807e3a0c23, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3626c4a5710c94a8edcf9a807e3a0c23->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3626c4a5710c94a8edcf9a807e3a0c23, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3626c4a5710c94a8edcf9a807e3a0c23, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_encoder, - par_kernel_size, - par_order, - par_num_groups, - par_padding, - par_is3d, - var_conv1_in_channels, - var_conv1_out_channels, - var_conv2_in_channels, - var_conv2_out_channels, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_3626c4a5710c94a8edcf9a807e3a0c23 == cache_frame_3626c4a5710c94a8edcf9a807e3a0c23) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3626c4a5710c94a8edcf9a807e3a0c23); - cache_frame_3626c4a5710c94a8edcf9a807e3a0c23 = NULL; - } - - assertFrameObject(frame_3626c4a5710c94a8edcf9a807e3a0c23); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_encoder); - Py_DECREF(par_encoder); - par_encoder = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - CHECK_OBJECT(var_conv1_in_channels); - Py_DECREF(var_conv1_in_channels); - var_conv1_in_channels = NULL; - Py_XDECREF(var_conv1_out_channels); - var_conv1_out_channels = NULL; - CHECK_OBJECT(var_conv2_in_channels); - Py_DECREF(var_conv2_in_channels); - var_conv2_in_channels = NULL; - CHECK_OBJECT(var_conv2_out_channels); - Py_DECREF(var_conv2_out_channels); - var_conv2_out_channels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_encoder); - Py_DECREF(par_encoder); - par_encoder = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_conv1_in_channels); - var_conv1_in_channels = NULL; - Py_XDECREF(var_conv1_out_channels); - var_conv1_out_channels = NULL; - Py_XDECREF(var_conv2_in_channels); - var_conv2_in_channels = NULL; - Py_XDECREF(var_conv2_out_channels); - var_conv2_out_channels = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__4___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_kernel_size = python_pars[3]; - PyObject *par_order = python_pars[4]; - PyObject *par_num_groups = python_pars[5]; - PyObject *par_is3d = python_pars[6]; - PyObject *par_kwargs = python_pars[7]; - PyObject *var_n_order = NULL; - PyObject *var_c = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_c7f4c34772b07e30ff47849ac9ca174c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - int tmp_res; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_c7f4c34772b07e30ff47849ac9ca174c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c7f4c34772b07e30ff47849ac9ca174c)) { - Py_XDECREF(cache_frame_c7f4c34772b07e30ff47849ac9ca174c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c7f4c34772b07e30ff47849ac9ca174c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c7f4c34772b07e30ff47849ac9ca174c = MAKE_FUNCTION_FRAME(codeobj_c7f4c34772b07e30ff47849ac9ca174c, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c7f4c34772b07e30ff47849ac9ca174c->m_type_description == NULL); - frame_c7f4c34772b07e30ff47849ac9ca174c = cache_frame_c7f4c34772b07e30ff47849ac9ca174c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c7f4c34772b07e30ff47849ac9ca174c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c7f4c34772b07e30ff47849ac9ca174c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 166; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[45]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_in_channels); - tmp_compexpr_left_1 = par_in_channels; - CHECK_OBJECT(par_out_channels); - tmp_compexpr_right_1 = par_out_channels; - tmp_condition_result_1 = RICH_COMPARE_NE_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - assert(tmp_condition_result_1 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - CHECK_OBJECT(par_is3d); - tmp_truth_name_1 = CHECK_IF_TRUE(par_is3d); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_args_element_name_1 = par_in_channels; - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_2 = par_out_channels; - tmp_args_element_name_3 = mod_consts[31]; - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 171; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assattr_name_1 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[20], - call_args - ); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[55], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_assattr_target_2; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_args_element_name_4 = par_in_channels; - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_5 = par_out_channels; - tmp_args_element_name_6 = mod_consts[31]; - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 173; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assattr_name_2 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_3, - mod_consts[26], - call_args - ); - } - - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[55], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_assattr_target_3; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 175; - tmp_assattr_name_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[56]); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[55], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[44]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[44]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_out_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "ooooooooooN"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_args_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_dict_key_1 = mod_consts[23]; - CHECK_OBJECT(par_kernel_size); - tmp_dict_value_1 = par_kernel_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[17]; - CHECK_OBJECT(par_order); - tmp_dict_value_1 = par_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[30]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - CHECK_OBJECT(par_is3d); - tmp_dict_value_1 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 178; - tmp_assattr_name_4 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[57], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - CHECK_OBJECT(par_order); - tmp_assign_source_1 = par_order; - assert(var_n_order == NULL); - Py_INCREF(tmp_assign_source_1); - var_n_order = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - tmp_iter_arg_1 = mod_consts[58]; - tmp_assign_source_2 = MAKE_ITERATOR_INFALLIBLE(tmp_iter_arg_1); - assert(!(tmp_assign_source_2 == NULL)); - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooN"; - exception_lineno = 182; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_c; - var_c = tmp_assign_source_4; - Py_INCREF(var_c); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - if (var_n_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "ooooooooooN"; - goto try_except_handler_2; - } - - tmp_called_instance_5 = var_n_order; - CHECK_OBJECT(var_c); - tmp_args_element_name_7 = var_c; - tmp_args_element_name_8 = mod_consts[34]; - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 183; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[60], - call_args - ); - } - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 183; - type_description_1 = "ooooooooooN"; - goto try_except_handler_2; - } - { - PyObject *old = var_n_order; - var_n_order = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_1 = "ooooooooooN"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_assattr_target_5; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[44]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[44]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 184; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_out_channels; - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - if (par_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 184; - type_description_1 = "ooooooooooN"; - goto tuple_build_exception_2; - } - - tmp_tuple_element_2 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_dict_key_2 = mod_consts[23]; - CHECK_OBJECT(par_kernel_size); - tmp_dict_value_2 = par_kernel_size; - tmp_kwargs_name_2 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[17]; - if (var_n_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[59]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 184; - type_description_1 = "ooooooooooN"; - goto dict_build_exception_1; - } - - tmp_dict_value_2 = var_n_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[30]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_2 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[19]; - CHECK_OBJECT(par_is3d); - tmp_dict_value_2 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 184; - tmp_assattr_name_5 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[61], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = mod_consts[12]; - CHECK_OBJECT(par_order); - tmp_compexpr_right_2 = par_order; - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_assattr_target_6; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[13]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[62]); - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 189; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[63], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_3; - branch_no_3:; - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - tmp_compexpr_left_3 = mod_consts[14]; - CHECK_OBJECT(par_order); - tmp_compexpr_right_3 = par_order; - tmp_res = PySequence_Contains(tmp_compexpr_right_3, tmp_compexpr_left_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_assattr_target_7; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[15]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[11]); - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 191; - tmp_assattr_name_7 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[63], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_assattr_target_8; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[9]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[11]); - frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame.f_lineno = 193; - tmp_assattr_name_8 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assattr_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[63], tmp_assattr_name_8); - Py_DECREF(tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_4:; - branch_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7f4c34772b07e30ff47849ac9ca174c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7f4c34772b07e30ff47849ac9ca174c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c7f4c34772b07e30ff47849ac9ca174c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c7f4c34772b07e30ff47849ac9ca174c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c7f4c34772b07e30ff47849ac9ca174c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c7f4c34772b07e30ff47849ac9ca174c, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_kernel_size, - par_order, - par_num_groups, - par_is3d, - par_kwargs, - var_n_order, - var_c, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_c7f4c34772b07e30ff47849ac9ca174c == cache_frame_c7f4c34772b07e30ff47849ac9ca174c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c7f4c34772b07e30ff47849ac9ca174c); - cache_frame_c7f4c34772b07e30ff47849ac9ca174c = NULL; - } - - assertFrameObject(frame_c7f4c34772b07e30ff47849ac9ca174c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_n_order); - var_n_order = NULL; - Py_XDECREF(var_c); - var_c = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_n_order); - var_n_order = NULL; - Py_XDECREF(var_c); - var_c = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__5_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_residual = NULL; - PyObject *var_out = NULL; - struct Nuitka_FrameObject *frame_a50904ccd5e1755d283981e60263e600; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_a50904ccd5e1755d283981e60263e600 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a50904ccd5e1755d283981e60263e600)) { - Py_XDECREF(cache_frame_a50904ccd5e1755d283981e60263e600); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a50904ccd5e1755d283981e60263e600 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a50904ccd5e1755d283981e60263e600 = MAKE_FUNCTION_FRAME(codeobj_a50904ccd5e1755d283981e60263e600, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a50904ccd5e1755d283981e60263e600->m_type_description == NULL); - frame_a50904ccd5e1755d283981e60263e600 = cache_frame_a50904ccd5e1755d283981e60263e600; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a50904ccd5e1755d283981e60263e600); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a50904ccd5e1755d283981e60263e600) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_a50904ccd5e1755d283981e60263e600->m_frame.f_lineno = 197; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[55], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_residual == NULL); - var_residual = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_residual); - tmp_args_element_name_2 = var_residual; - frame_a50904ccd5e1755d283981e60263e600->m_frame.f_lineno = 200; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[57], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_out == NULL); - var_out = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 201; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_out); - tmp_args_element_name_3 = var_out; - frame_a50904ccd5e1755d283981e60263e600->m_frame.f_lineno = 201; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[61], tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_out; - var_out = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_out); - tmp_left_name_1 = var_out; - if (var_residual == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_1 = var_residual; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = tmp_left_name_1; - var_out = tmp_assign_source_4; - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_out); - tmp_args_element_name_4 = var_out; - frame_a50904ccd5e1755d283981e60263e600->m_frame.f_lineno = 204; - tmp_assign_source_5 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[63], tmp_args_element_name_4); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_out; - var_out = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a50904ccd5e1755d283981e60263e600); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a50904ccd5e1755d283981e60263e600); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a50904ccd5e1755d283981e60263e600, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a50904ccd5e1755d283981e60263e600->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a50904ccd5e1755d283981e60263e600, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a50904ccd5e1755d283981e60263e600, - type_description_1, - par_self, - par_x, - var_residual, - var_out - ); - - - // Release cached frame if used for exception. - if (frame_a50904ccd5e1755d283981e60263e600 == cache_frame_a50904ccd5e1755d283981e60263e600) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a50904ccd5e1755d283981e60263e600); - cache_frame_a50904ccd5e1755d283981e60263e600 = NULL; - } - - assertFrameObject(frame_a50904ccd5e1755d283981e60263e600); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_out); - tmp_return_value = var_out; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_residual); - var_residual = NULL; - CHECK_OBJECT(var_out); - Py_DECREF(var_out); - var_out = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_residual); - var_residual = NULL; - Py_XDECREF(var_out); - var_out = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__6___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_kernel_size = python_pars[3]; - PyObject *par_order = python_pars[4]; - PyObject *par_num_groups = python_pars[5]; - PyObject *par_se_module = python_pars[6]; - PyObject *par_kwargs = python_pars[7]; - struct Nuitka_FrameObject *frame_3d894708a6edf411a4d5374c8d85c7f0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_3d894708a6edf411a4d5374c8d85c7f0 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3d894708a6edf411a4d5374c8d85c7f0)) { - Py_XDECREF(cache_frame_3d894708a6edf411a4d5374c8d85c7f0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3d894708a6edf411a4d5374c8d85c7f0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3d894708a6edf411a4d5374c8d85c7f0 = MAKE_FUNCTION_FRAME(codeobj_3d894708a6edf411a4d5374c8d85c7f0, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3d894708a6edf411a4d5374c8d85c7f0->m_type_description == NULL); - frame_3d894708a6edf411a4d5374c8d85c7f0 = cache_frame_3d894708a6edf411a4d5374c8d85c7f0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3d894708a6edf411a4d5374c8d85c7f0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3d894708a6edf411a4d5374c8d85c7f0) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_dircall_arg4_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[65]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[65]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[45]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_tuple_element_1 = par_in_channels; - tmp_dircall_arg2_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[23]; - CHECK_OBJECT(par_kernel_size); - tmp_dict_value_1 = par_kernel_size; - tmp_dircall_arg3_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg3_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[17]; - CHECK_OBJECT(par_order); - tmp_dict_value_1 = par_order; - tmp_res = PyDict_SetItem(tmp_dircall_arg3_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[30]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_dircall_arg3_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg4_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg4_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1, tmp_dircall_arg4_1}; - tmp_call_result_1 = impl_models$$$function__7_complex_call_helper_pos_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_se_module); - tmp_compexpr_left_1 = par_se_module; - tmp_compexpr_right_1 = LIST_COPY(mod_consts[66]); - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 214; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_se_module); - tmp_compexpr_left_2 = par_se_module; - tmp_compexpr_right_2 = mod_consts[67]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 215; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[68]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[68]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[33]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_2 = par_out_channels; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[69]; - tmp_dict_value_2 = mod_consts[31]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_3d894708a6edf411a4d5374c8d85c7f0->m_frame.f_lineno = 216; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[70], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_se_module); - tmp_compexpr_left_3 = par_se_module; - tmp_compexpr_right_3 = mod_consts[71]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 217; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[72]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[72]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[33]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_3 = par_out_channels; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[69]; - tmp_dict_value_3 = mod_consts[31]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_3d894708a6edf411a4d5374c8d85c7f0->m_frame.f_lineno = 218; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[70], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_3; - branch_no_3:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_tmp_condition_result_4_object_1; - int tmp_truth_name_3; - CHECK_OBJECT(par_se_module); - tmp_compexpr_left_4 = par_se_module; - tmp_compexpr_right_4 = mod_consts[73]; - tmp_tmp_condition_result_4_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_tmp_condition_result_4_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_tmp_condition_result_4_object_1); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_4_object_1); - - exception_lineno = 219; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_4_object_1); - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_assattr_target_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[74]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[74]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_4 = mod_consts[33]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_4 = par_out_channels; - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_3d894708a6edf411a4d5374c8d85c7f0->m_frame.f_lineno = 220; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[70], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooooN"; - goto frame_exception_exit_1; - } - } - branch_no_4:; - branch_end_3:; - branch_end_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3d894708a6edf411a4d5374c8d85c7f0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3d894708a6edf411a4d5374c8d85c7f0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3d894708a6edf411a4d5374c8d85c7f0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3d894708a6edf411a4d5374c8d85c7f0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3d894708a6edf411a4d5374c8d85c7f0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3d894708a6edf411a4d5374c8d85c7f0, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_kernel_size, - par_order, - par_num_groups, - par_se_module, - par_kwargs, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_3d894708a6edf411a4d5374c8d85c7f0 == cache_frame_3d894708a6edf411a4d5374c8d85c7f0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3d894708a6edf411a4d5374c8d85c7f0); - cache_frame_3d894708a6edf411a4d5374c8d85c7f0 = NULL; - } - - assertFrameObject(frame_3d894708a6edf411a4d5374c8d85c7f0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_se_module); - Py_DECREF(par_se_module); - par_se_module = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_kernel_size); - Py_DECREF(par_kernel_size); - par_kernel_size = NULL; - CHECK_OBJECT(par_order); - Py_DECREF(par_order); - par_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_se_module); - Py_DECREF(par_se_module); - par_se_module = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__7_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_out = NULL; - struct Nuitka_FrameObject *frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc)) { - Py_XDECREF(cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc = MAKE_FUNCTION_FRAME(codeobj_a7467ec8e28ccda7bf7c6ed35fcfc0bc, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc->m_type_description == NULL); - frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc = cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 223; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc->m_frame.f_lineno = 223; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[76], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - assert(var_out == NULL); - var_out = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_out); - tmp_args_element_name_2 = var_out; - frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc->m_frame.f_lineno = 224; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[70], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_out; - var_out = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc, - type_description_1, - par_self, - par_x, - var_out, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc == cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc); - cache_frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc = NULL; - } - - assertFrameObject(frame_a7467ec8e28ccda7bf7c6ed35fcfc0bc); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_out); - tmp_return_value = var_out; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(var_out); - Py_DECREF(var_out); - var_out = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_out); - var_out = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__8___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_conv_kernel_size = python_pars[3]; - PyObject *par_apply_pooling = python_pars[4]; - PyObject *par_pool_kernel_size = python_pars[5]; - PyObject *par_pool_type = python_pars[6]; - PyObject *par_basic_module = python_pars[7]; - PyObject *par_conv_layer_order = python_pars[8]; - PyObject *par_num_groups = python_pars[9]; - PyObject *par_padding = python_pars[10]; - PyObject *par_is3d = python_pars[11]; - struct Nuitka_FrameObject *frame_4e4e6b6f0efee3d666bd260254d2a427; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_4e4e6b6f0efee3d666bd260254d2a427 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4e4e6b6f0efee3d666bd260254d2a427)) { - Py_XDECREF(cache_frame_4e4e6b6f0efee3d666bd260254d2a427); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4e4e6b6f0efee3d666bd260254d2a427 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4e4e6b6f0efee3d666bd260254d2a427 = MAKE_FUNCTION_FRAME(codeobj_4e4e6b6f0efee3d666bd260254d2a427, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4e4e6b6f0efee3d666bd260254d2a427->m_type_description == NULL); - frame_4e4e6b6f0efee3d666bd260254d2a427 = cache_frame_4e4e6b6f0efee3d666bd260254d2a427; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4e4e6b6f0efee3d666bd260254d2a427); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4e4e6b6f0efee3d666bd260254d2a427) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[77]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[77]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame.f_lineno = 254; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[45]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_pool_type); - tmp_compexpr_left_1 = par_pool_type; - tmp_compexpr_right_1 = LIST_COPY(mod_consts[78]); - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 255; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - CHECK_OBJECT(par_apply_pooling); - tmp_truth_name_1 = CHECK_IF_TRUE(par_apply_pooling); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_pool_type); - tmp_compexpr_left_2 = par_pool_type; - tmp_compexpr_right_2 = mod_consts[79]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 257; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_3; - CHECK_OBJECT(par_is3d); - tmp_truth_name_3 = CHECK_IF_TRUE(par_is3d); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 258; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[80]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[23]; - CHECK_OBJECT(par_pool_kernel_size); - tmp_dict_value_1 = par_pool_kernel_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame.f_lineno = 259; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[81], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_assattr_target_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[82]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[23]; - CHECK_OBJECT(par_pool_kernel_size); - tmp_dict_value_2 = par_pool_kernel_size; - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame.f_lineno = 261; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[81], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_4:; - goto branch_end_3; - branch_no_3:; - { - nuitka_bool tmp_condition_result_5; - int tmp_truth_name_4; - CHECK_OBJECT(par_is3d); - tmp_truth_name_4 = CHECK_IF_TRUE(par_is3d); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_assattr_target_3; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[83]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[23]; - CHECK_OBJECT(par_pool_kernel_size); - tmp_dict_value_3 = par_pool_kernel_size; - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame.f_lineno = 264; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[81], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - PyObject *tmp_assattr_target_4; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[84]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_4 = mod_consts[23]; - CHECK_OBJECT(par_pool_kernel_size); - tmp_dict_value_4 = par_pool_kernel_size; - tmp_kwargs_name_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame.f_lineno = 266; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[81], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_5:; - branch_end_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_assattr_target_5; - tmp_assattr_name_5 = Py_None; - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[81], tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - PyObject *tmp_assattr_target_6; - CHECK_OBJECT(par_basic_module); - tmp_called_name_5 = par_basic_module; - CHECK_OBJECT(par_in_channels); - tmp_tuple_element_1 = par_in_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_5 = mod_consts[85]; - tmp_dict_value_5 = Py_True; - tmp_kwargs_name_5 = _PyDict_NewPresized( 6 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[23]; - CHECK_OBJECT(par_conv_kernel_size); - tmp_dict_value_5 = par_conv_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[17]; - CHECK_OBJECT(par_conv_layer_order); - tmp_dict_value_5 = par_conv_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[30]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_5 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[24]; - CHECK_OBJECT(par_padding); - tmp_dict_value_5 = par_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - tmp_dict_key_5 = mod_consts[19]; - CHECK_OBJECT(par_is3d); - tmp_dict_value_5 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame.f_lineno = 270; - tmp_assattr_name_6 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_1, tmp_kwargs_name_5); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[86], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4e4e6b6f0efee3d666bd260254d2a427); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4e4e6b6f0efee3d666bd260254d2a427); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4e4e6b6f0efee3d666bd260254d2a427, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4e4e6b6f0efee3d666bd260254d2a427->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4e4e6b6f0efee3d666bd260254d2a427, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4e4e6b6f0efee3d666bd260254d2a427, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_conv_kernel_size, - par_apply_pooling, - par_pool_kernel_size, - par_pool_type, - par_basic_module, - par_conv_layer_order, - par_num_groups, - par_padding, - par_is3d, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_4e4e6b6f0efee3d666bd260254d2a427 == cache_frame_4e4e6b6f0efee3d666bd260254d2a427) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4e4e6b6f0efee3d666bd260254d2a427); - cache_frame_4e4e6b6f0efee3d666bd260254d2a427 = NULL; - } - - assertFrameObject(frame_4e4e6b6f0efee3d666bd260254d2a427); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_conv_kernel_size); - Py_DECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - CHECK_OBJECT(par_apply_pooling); - Py_DECREF(par_apply_pooling); - par_apply_pooling = NULL; - Py_XDECREF(par_pool_kernel_size); - par_pool_kernel_size = NULL; - CHECK_OBJECT(par_pool_type); - Py_DECREF(par_pool_type); - par_pool_type = NULL; - CHECK_OBJECT(par_basic_module); - Py_DECREF(par_basic_module); - par_basic_module = NULL; - CHECK_OBJECT(par_conv_layer_order); - Py_DECREF(par_conv_layer_order); - par_conv_layer_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_conv_kernel_size); - Py_DECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - CHECK_OBJECT(par_apply_pooling); - Py_DECREF(par_apply_pooling); - par_apply_pooling = NULL; - Py_XDECREF(par_pool_kernel_size); - par_pool_kernel_size = NULL; - CHECK_OBJECT(par_pool_type); - Py_DECREF(par_pool_type); - par_pool_type = NULL; - CHECK_OBJECT(par_basic_module); - Py_DECREF(par_basic_module); - par_basic_module = NULL; - CHECK_OBJECT(par_conv_layer_order); - Py_DECREF(par_conv_layer_order); - par_conv_layer_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__9_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - struct Nuitka_FrameObject *frame_e8e7a096df62266405373f8a4840d42c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e8e7a096df62266405373f8a4840d42c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e8e7a096df62266405373f8a4840d42c)) { - Py_XDECREF(cache_frame_e8e7a096df62266405373f8a4840d42c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e8e7a096df62266405373f8a4840d42c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e8e7a096df62266405373f8a4840d42c = MAKE_FUNCTION_FRAME(codeobj_e8e7a096df62266405373f8a4840d42c, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e8e7a096df62266405373f8a4840d42c->m_type_description == NULL); - frame_e8e7a096df62266405373f8a4840d42c = cache_frame_e8e7a096df62266405373f8a4840d42c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e8e7a096df62266405373f8a4840d42c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e8e7a096df62266405373f8a4840d42c) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[81]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 280; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - frame_e8e7a096df62266405373f8a4840d42c->m_frame.f_lineno = 280; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[81], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 281; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_2 = par_x; - frame_e8e7a096df62266405373f8a4840d42c->m_frame.f_lineno = 281; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[86], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e8e7a096df62266405373f8a4840d42c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e8e7a096df62266405373f8a4840d42c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e8e7a096df62266405373f8a4840d42c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e8e7a096df62266405373f8a4840d42c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e8e7a096df62266405373f8a4840d42c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e8e7a096df62266405373f8a4840d42c, - type_description_1, - par_self, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_e8e7a096df62266405373f8a4840d42c == cache_frame_e8e7a096df62266405373f8a4840d42c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e8e7a096df62266405373f8a4840d42c); - cache_frame_e8e7a096df62266405373f8a4840d42c = NULL; - } - - assertFrameObject(frame_e8e7a096df62266405373f8a4840d42c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__10___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_conv_kernel_size = python_pars[3]; - PyObject *par_scale_factor = python_pars[4]; - PyObject *par_basic_module = python_pars[5]; - PyObject *par_conv_layer_order = python_pars[6]; - PyObject *par_num_groups = python_pars[7]; - PyObject *par_mode = python_pars[8]; - PyObject *par_padding = python_pars[9]; - PyObject *par_upsample = python_pars[10]; - PyObject *par_is3d = python_pars[11]; - struct Nuitka_FrameObject *frame_bf12b6f7ab651bbc0152c80d875fd7ca; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca)) { - Py_XDECREF(cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca = MAKE_FUNCTION_FRAME(codeobj_bf12b6f7ab651bbc0152c80d875fd7ca, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_type_description == NULL); - frame_bf12b6f7ab651bbc0152c80d875fd7ca = cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bf12b6f7ab651bbc0152c80d875fd7ca); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bf12b6f7ab651bbc0152c80d875fd7ca) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[87]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[87]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 308; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[45]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_upsample); - tmp_truth_name_1 = CHECK_IF_TRUE(par_upsample); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 310; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_basic_module); - tmp_compexpr_left_1 = par_basic_module; - tmp_compexpr_right_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[49]); - - if (unlikely(tmp_compexpr_right_1 == NULL)) { - tmp_compexpr_right_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[49]); - } - - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[88]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[88]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[89]; - CHECK_OBJECT(par_mode); - tmp_dict_value_1 = par_mode; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 313; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[90], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[92]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[93]); - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 315; - tmp_assattr_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 315; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[94], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_assattr_target_3; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[95]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[95]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[21]; - CHECK_OBJECT(par_in_channels); - tmp_dict_value_2 = par_in_channels; - tmp_kwargs_name_3 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[22]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_2 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[23]; - CHECK_OBJECT(par_conv_kernel_size); - tmp_dict_value_2 = par_conv_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[96]; - CHECK_OBJECT(par_scale_factor); - tmp_dict_value_2 = par_scale_factor; - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 318; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[90], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_assattr_target_4; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[92]); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[97]); - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 321; - tmp_assattr_name_4 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 321; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[94], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - CHECK_OBJECT(par_out_channels); - tmp_assign_source_1 = par_out_channels; - { - PyObject *old = par_in_channels; - assert(old != NULL); - par_in_channels = tmp_assign_source_1; - Py_INCREF(par_in_channels); - Py_DECREF(old); - } - - } - branch_end_2:; - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_name_5; - PyObject *tmp_assattr_target_5; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[98]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[98]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 326; - tmp_assattr_name_5 = CALL_FUNCTION_NO_ARGS(tmp_called_name_5); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[90], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_assattr_target_6; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[92]); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_3); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[93]); - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 328; - tmp_assattr_name_6 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_3, tmp_kwargs_name_5); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 328; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[94], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - PyObject *tmp_assattr_target_7; - CHECK_OBJECT(par_basic_module); - tmp_called_name_7 = par_basic_module; - if (par_in_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 330; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_4 = par_in_channels; - tmp_args_name_4 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_4 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_4); - tmp_dict_key_3 = mod_consts[85]; - tmp_dict_value_3 = Py_False; - tmp_kwargs_name_6 = _PyDict_NewPresized( 6 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[23]; - CHECK_OBJECT(par_conv_kernel_size); - tmp_dict_value_3 = par_conv_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[17]; - CHECK_OBJECT(par_conv_layer_order); - tmp_dict_value_3 = par_conv_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[30]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_3 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[24]; - CHECK_OBJECT(par_padding); - tmp_dict_value_3 = par_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - tmp_dict_key_3 = mod_consts[19]; - CHECK_OBJECT(par_is3d); - tmp_dict_value_3 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame.f_lineno = 330; - tmp_assattr_name_7 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_4, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_4); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_assattr_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 330; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[86], tmp_assattr_name_7); - Py_DECREF(tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "ooooooooooooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bf12b6f7ab651bbc0152c80d875fd7ca); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bf12b6f7ab651bbc0152c80d875fd7ca); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bf12b6f7ab651bbc0152c80d875fd7ca, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bf12b6f7ab651bbc0152c80d875fd7ca->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bf12b6f7ab651bbc0152c80d875fd7ca, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bf12b6f7ab651bbc0152c80d875fd7ca, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_conv_kernel_size, - par_scale_factor, - par_basic_module, - par_conv_layer_order, - par_num_groups, - par_mode, - par_padding, - par_upsample, - par_is3d, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_bf12b6f7ab651bbc0152c80d875fd7ca == cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca); - cache_frame_bf12b6f7ab651bbc0152c80d875fd7ca = NULL; - } - - assertFrameObject(frame_bf12b6f7ab651bbc0152c80d875fd7ca); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_conv_kernel_size); - Py_DECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - CHECK_OBJECT(par_scale_factor); - Py_DECREF(par_scale_factor); - par_scale_factor = NULL; - CHECK_OBJECT(par_basic_module); - Py_DECREF(par_basic_module); - par_basic_module = NULL; - CHECK_OBJECT(par_conv_layer_order); - Py_DECREF(par_conv_layer_order); - par_conv_layer_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_mode); - Py_DECREF(par_mode); - par_mode = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_upsample); - Py_DECREF(par_upsample); - par_upsample = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - CHECK_OBJECT(par_out_channels); - Py_DECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_conv_kernel_size); - Py_DECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - CHECK_OBJECT(par_scale_factor); - Py_DECREF(par_scale_factor); - par_scale_factor = NULL; - CHECK_OBJECT(par_basic_module); - Py_DECREF(par_basic_module); - par_basic_module = NULL; - CHECK_OBJECT(par_conv_layer_order); - Py_DECREF(par_conv_layer_order); - par_conv_layer_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_mode); - Py_DECREF(par_mode); - par_mode = NULL; - CHECK_OBJECT(par_padding); - Py_DECREF(par_padding); - par_padding = NULL; - CHECK_OBJECT(par_upsample); - Py_DECREF(par_upsample); - par_upsample = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__11_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_encoder_features = python_pars[1]; - PyObject *par_x = python_pars[2]; - struct Nuitka_FrameObject *frame_3f19e4a0be5fe578cb6ccc7f7293c9b8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8)) { - Py_XDECREF(cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8 = MAKE_FUNCTION_FRAME(codeobj_3f19e4a0be5fe578cb6ccc7f7293c9b8, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8->m_type_description == NULL); - frame_3f19e4a0be5fe578cb6ccc7f7293c9b8 = cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3f19e4a0be5fe578cb6ccc7f7293c9b8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3f19e4a0be5fe578cb6ccc7f7293c9b8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[90]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[99]; - CHECK_OBJECT(par_encoder_features); - tmp_dict_value_1 = par_encoder_features; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[100]; - CHECK_OBJECT(par_x); - tmp_dict_value_1 = par_x; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_3f19e4a0be5fe578cb6ccc7f7293c9b8->m_frame.f_lineno = 339; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[94]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_encoder_features == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_encoder_features; - CHECK_OBJECT(par_x); - tmp_args_element_name_2 = par_x; - frame_3f19e4a0be5fe578cb6ccc7f7293c9b8->m_frame.f_lineno = 340; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[101]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[101]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_3f19e4a0be5fe578cb6ccc7f7293c9b8->m_frame.f_lineno = 341; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[102]); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 342; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_3 = par_x; - frame_3f19e4a0be5fe578cb6ccc7f7293c9b8->m_frame.f_lineno = 342; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[86], tmp_args_element_name_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3f19e4a0be5fe578cb6ccc7f7293c9b8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3f19e4a0be5fe578cb6ccc7f7293c9b8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3f19e4a0be5fe578cb6ccc7f7293c9b8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3f19e4a0be5fe578cb6ccc7f7293c9b8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3f19e4a0be5fe578cb6ccc7f7293c9b8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3f19e4a0be5fe578cb6ccc7f7293c9b8, - type_description_1, - par_self, - par_encoder_features, - par_x - ); - - - // Release cached frame if used for exception. - if (frame_3f19e4a0be5fe578cb6ccc7f7293c9b8 == cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8); - cache_frame_3f19e4a0be5fe578cb6ccc7f7293c9b8 = NULL; - } - - assertFrameObject(frame_3f19e4a0be5fe578cb6ccc7f7293c9b8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_encoder_features); - par_encoder_features = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_encoder_features); - par_encoder_features = NULL; - Py_XDECREF(par_x); - par_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__12__joining(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_encoder_features = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_concat = python_pars[2]; - struct Nuitka_FrameObject *frame_3eaabde9ebeeda43deff0bfcc538af9b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_3eaabde9ebeeda43deff0bfcc538af9b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3eaabde9ebeeda43deff0bfcc538af9b)) { - Py_XDECREF(cache_frame_3eaabde9ebeeda43deff0bfcc538af9b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3eaabde9ebeeda43deff0bfcc538af9b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3eaabde9ebeeda43deff0bfcc538af9b = MAKE_FUNCTION_FRAME(codeobj_3eaabde9ebeeda43deff0bfcc538af9b, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3eaabde9ebeeda43deff0bfcc538af9b->m_type_description == NULL); - frame_3eaabde9ebeeda43deff0bfcc538af9b = cache_frame_3eaabde9ebeeda43deff0bfcc538af9b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3eaabde9ebeeda43deff0bfcc538af9b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3eaabde9ebeeda43deff0bfcc538af9b) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_concat); - tmp_truth_name_1 = CHECK_IF_TRUE(par_concat); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[103]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[103]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[104]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_encoder_features); - tmp_tuple_element_2 = par_encoder_features; - tmp_tuple_element_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_x); - tmp_tuple_element_2 = par_x; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 1, tmp_tuple_element_2); - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[105]); - frame_3eaabde9ebeeda43deff0bfcc538af9b->m_frame.f_lineno = 348; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_encoder_features); - tmp_left_name_1 = par_encoder_features; - CHECK_OBJECT(par_x); - tmp_right_name_1 = par_x; - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 350; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3eaabde9ebeeda43deff0bfcc538af9b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3eaabde9ebeeda43deff0bfcc538af9b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3eaabde9ebeeda43deff0bfcc538af9b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3eaabde9ebeeda43deff0bfcc538af9b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3eaabde9ebeeda43deff0bfcc538af9b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3eaabde9ebeeda43deff0bfcc538af9b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3eaabde9ebeeda43deff0bfcc538af9b, - type_description_1, - par_encoder_features, - par_x, - par_concat - ); - - - // Release cached frame if used for exception. - if (frame_3eaabde9ebeeda43deff0bfcc538af9b == cache_frame_3eaabde9ebeeda43deff0bfcc538af9b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3eaabde9ebeeda43deff0bfcc538af9b); - cache_frame_3eaabde9ebeeda43deff0bfcc538af9b = NULL; - } - - assertFrameObject(frame_3eaabde9ebeeda43deff0bfcc538af9b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_encoder_features); - par_encoder_features = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_concat); - Py_DECREF(par_concat); - par_concat = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_encoder_features); - par_encoder_features = NULL; - Py_XDECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_concat); - Py_DECREF(par_concat); - par_concat = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__13_create_encoders(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_in_channels = python_pars[0]; - PyObject *par_f_maps = python_pars[1]; - PyObject *par_basic_module = python_pars[2]; - PyObject *par_conv_kernel_size = python_pars[3]; - PyObject *par_conv_padding = python_pars[4]; - PyObject *par_layer_order = python_pars[5]; - PyObject *par_num_groups = python_pars[6]; - PyObject *par_pool_kernel_size = python_pars[7]; - PyObject *par_is3d = python_pars[8]; - PyObject *var_encoders = NULL; - PyObject *var_i = NULL; - PyObject *var_out_feature_num = NULL; - PyObject *var_encoder = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_08f24baaaf591da8452cea6e93d04f1d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_08f24baaaf591da8452cea6e93d04f1d = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_encoders == NULL); - var_encoders = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_08f24baaaf591da8452cea6e93d04f1d)) { - Py_XDECREF(cache_frame_08f24baaaf591da8452cea6e93d04f1d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_08f24baaaf591da8452cea6e93d04f1d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_08f24baaaf591da8452cea6e93d04f1d = MAKE_FUNCTION_FRAME(codeobj_08f24baaaf591da8452cea6e93d04f1d, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_08f24baaaf591da8452cea6e93d04f1d->m_type_description == NULL); - frame_08f24baaaf591da8452cea6e93d04f1d = cache_frame_08f24baaaf591da8452cea6e93d04f1d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_08f24baaaf591da8452cea6e93d04f1d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_08f24baaaf591da8452cea6e93d04f1d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = (PyObject *)&PyEnum_Type; - CHECK_OBJECT(par_f_maps); - tmp_args_element_name_1 = par_f_maps; - frame_08f24baaaf591da8452cea6e93d04f1d->m_frame.f_lineno = 357; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooo"; - exception_lineno = 357; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 357; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooooo"; - exception_lineno = 357; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooooo"; - exception_lineno = 357; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[5]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooooo"; - exception_lineno = 357; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_i; - var_i = tmp_assign_source_7; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_out_feature_num; - var_out_feature_num = tmp_assign_source_8; - Py_INCREF(var_out_feature_num); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_i); - tmp_compexpr_left_1 = var_i; - tmp_compexpr_right_1 = mod_consts[2]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 358; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 358; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[77]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[77]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - if (par_in_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 360; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_tuple_element_1 = par_in_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_out_feature_num); - tmp_tuple_element_1 = var_out_feature_num; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[106]; - tmp_dict_value_1 = Py_False; - tmp_kwargs_name_1 = _PyDict_NewPresized( 7 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[86]; - if (par_basic_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 362; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_basic_module; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[107]; - if (par_layer_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 363; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[109]; - if (par_conv_kernel_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[109]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 364; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_conv_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[30]; - if (par_num_groups == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 365; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[24]; - if (par_conv_padding == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[110]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 366; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - if (par_is3d == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 367; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto try_except_handler_2; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_08f24baaaf591da8452cea6e93d04f1d->m_frame.f_lineno = 360; - tmp_assign_source_9 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_encoder; - var_encoder = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[77]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[77]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - if (par_f_maps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[111]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 369; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_1 = par_f_maps; - CHECK_OBJECT(var_i); - tmp_left_name_1 = var_i; - tmp_right_name_1 = mod_consts[31]; - tmp_subscript_name_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_out_feature_num); - tmp_tuple_element_2 = var_out_feature_num; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_dict_key_2 = mod_consts[86]; - if (par_basic_module == NULL) { - Py_DECREF(tmp_args_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 370; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_dict_value_2 = par_basic_module; - tmp_kwargs_name_2 = _PyDict_NewPresized( 7 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[107]; - if (par_layer_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 371; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[109]; - if (par_conv_kernel_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[109]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 372; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_conv_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[30]; - if (par_num_groups == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 373; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[112]; - if (par_pool_kernel_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[112]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 374; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_pool_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[24]; - if (par_conv_padding == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[110]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 375; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[19]; - if (par_is3d == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 376; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_2; - } - - tmp_dict_value_2 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - goto dict_build_noexception_2; - // Exception handling pass through code for dict_build: - dict_build_exception_2:; - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - goto try_except_handler_2; - // Finished with no exception for dict_build: - dict_build_noexception_2:; - frame_08f24baaaf591da8452cea6e93d04f1d->m_frame.f_lineno = 369; - tmp_assign_source_10 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 369; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_encoder; - var_encoder = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - branch_end_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - if (var_encoders == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[113]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 378; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_encoders; - CHECK_OBJECT(var_encoder); - tmp_args_element_name_2 = var_encoder; - frame_08f24baaaf591da8452cea6e93d04f1d->m_frame.f_lineno = 378; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[8], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[114]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_encoders == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[113]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 380; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_encoders; - frame_08f24baaaf591da8452cea6e93d04f1d->m_frame.f_lineno = 380; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_08f24baaaf591da8452cea6e93d04f1d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_08f24baaaf591da8452cea6e93d04f1d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_08f24baaaf591da8452cea6e93d04f1d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_08f24baaaf591da8452cea6e93d04f1d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_08f24baaaf591da8452cea6e93d04f1d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_08f24baaaf591da8452cea6e93d04f1d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_08f24baaaf591da8452cea6e93d04f1d, - type_description_1, - par_in_channels, - par_f_maps, - par_basic_module, - par_conv_kernel_size, - par_conv_padding, - par_layer_order, - par_num_groups, - par_pool_kernel_size, - par_is3d, - var_encoders, - var_i, - var_out_feature_num, - var_encoder - ); - - - // Release cached frame if used for exception. - if (frame_08f24baaaf591da8452cea6e93d04f1d == cache_frame_08f24baaaf591da8452cea6e93d04f1d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_08f24baaaf591da8452cea6e93d04f1d); - cache_frame_08f24baaaf591da8452cea6e93d04f1d = NULL; - } - - assertFrameObject(frame_08f24baaaf591da8452cea6e93d04f1d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_basic_module); - par_basic_module = NULL; - Py_XDECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_pool_kernel_size); - par_pool_kernel_size = NULL; - Py_XDECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_encoders); - var_encoders = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_out_feature_num); - var_out_feature_num = NULL; - Py_XDECREF(var_encoder); - var_encoder = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_basic_module); - par_basic_module = NULL; - Py_XDECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_pool_kernel_size); - par_pool_kernel_size = NULL; - Py_XDECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_encoders); - var_encoders = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_out_feature_num); - var_out_feature_num = NULL; - Py_XDECREF(var_encoder); - var_encoder = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__14_create_decoders(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_f_maps = python_pars[0]; - PyObject *par_basic_module = python_pars[1]; - PyObject *par_conv_kernel_size = python_pars[2]; - PyObject *par_conv_padding = python_pars[3]; - PyObject *par_layer_order = python_pars[4]; - PyObject *par_num_groups = python_pars[5]; - PyObject *par_is3d = python_pars[6]; - PyObject *var_decoders = NULL; - PyObject *var_reversed_f_maps = NULL; - PyObject *var_i = NULL; - PyObject *var_in_feature_num = NULL; - PyObject *var_out_feature_num = NULL; - PyObject *var_decoder = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_f9cfc327d09906207e89cf8037f9b11d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_f9cfc327d09906207e89cf8037f9b11d = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_decoders == NULL); - var_decoders = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_f9cfc327d09906207e89cf8037f9b11d)) { - Py_XDECREF(cache_frame_f9cfc327d09906207e89cf8037f9b11d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f9cfc327d09906207e89cf8037f9b11d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f9cfc327d09906207e89cf8037f9b11d = MAKE_FUNCTION_FRAME(codeobj_f9cfc327d09906207e89cf8037f9b11d, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f9cfc327d09906207e89cf8037f9b11d->m_type_description == NULL); - frame_f9cfc327d09906207e89cf8037f9b11d = cache_frame_f9cfc327d09906207e89cf8037f9b11d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f9cfc327d09906207e89cf8037f9b11d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f9cfc327d09906207e89cf8037f9b11d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = (PyObject *)&PyReversed_Type; - CHECK_OBJECT(par_f_maps); - tmp_args_element_name_1 = par_f_maps; - frame_f9cfc327d09906207e89cf8037f9b11d->m_frame.f_lineno = 386; - tmp_list_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_reversed_f_maps == NULL); - var_reversed_f_maps = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_left_name_1; - PyObject *tmp_len_arg_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_reversed_f_maps); - tmp_len_arg_1 = var_reversed_f_maps; - tmp_left_name_1 = BUILTIN_LEN(tmp_len_arg_1); - assert(!(tmp_left_name_1 == NULL)); - tmp_right_name_1 = mod_consts[31]; - tmp_xrange_low_1 = BINARY_OPERATION_SUB_OBJECT_LONG_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - assert(!(tmp_xrange_low_1 == NULL)); - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooo"; - exception_lineno = 387; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_5; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - if (par_basic_module == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_basic_module; - tmp_compexpr_right_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[49]); - - if (unlikely(tmp_compexpr_right_1 == NULL)) { - tmp_compexpr_right_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[49]); - } - - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = RICH_COMPARE_EQ_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - assert(tmp_condition_result_1 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - if (var_reversed_f_maps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 389; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_1 = var_reversed_f_maps; - CHECK_OBJECT(var_i); - tmp_subscript_name_1 = var_i; - tmp_left_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 389; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - if (var_reversed_f_maps == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 389; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = var_reversed_f_maps; - CHECK_OBJECT(var_i); - tmp_left_name_3 = var_i; - tmp_right_name_3 = mod_consts[31]; - tmp_subscript_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_3); - if (tmp_subscript_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 389; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_right_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_2); - Py_DECREF(tmp_subscript_name_2); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 389; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 389; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_in_feature_num; - var_in_feature_num = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_3; - if (var_reversed_f_maps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 391; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = var_reversed_f_maps; - CHECK_OBJECT(var_i); - tmp_subscript_name_3 = var_i; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_in_feature_num; - var_in_feature_num = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - branch_end_1:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - if (var_reversed_f_maps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[115]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 393; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = var_reversed_f_maps; - if (var_i == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 393; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_left_name_4 = var_i; - tmp_right_name_4 = mod_consts[31]; - tmp_subscript_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_4, tmp_right_name_4); - if (tmp_subscript_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_4); - Py_DECREF(tmp_subscript_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_out_feature_num; - var_out_feature_num = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[87]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[87]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_in_feature_num); - tmp_tuple_element_1 = var_in_feature_num; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_out_feature_num); - tmp_tuple_element_1 = var_out_feature_num; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[86]; - if (par_basic_module == NULL) { - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 396; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_dict_value_1 = par_basic_module; - tmp_kwargs_name_1 = _PyDict_NewPresized( 6 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[107]; - if (par_layer_order == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 397; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[109]; - if (par_conv_kernel_size == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[109]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_conv_kernel_size; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[30]; - if (par_num_groups == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[30]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 399; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[24]; - if (par_conv_padding == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[110]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 400; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[19]; - if (par_is3d == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 401; - type_description_1 = "ooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_dict_value_1 = par_is3d; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto try_except_handler_2; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_f9cfc327d09906207e89cf8037f9b11d->m_frame.f_lineno = 395; - tmp_assign_source_9 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_decoder; - var_decoder = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - if (var_decoders == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[117]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 402; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_decoders; - CHECK_OBJECT(var_decoder); - tmp_args_element_name_2 = var_decoder; - frame_f9cfc327d09906207e89cf8037f9b11d->m_frame.f_lineno = 402; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[8], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 402; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "ooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_3; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[114]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_decoders == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[117]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 403; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_decoders; - frame_f9cfc327d09906207e89cf8037f9b11d->m_frame.f_lineno = 403; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 403; - type_description_1 = "ooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f9cfc327d09906207e89cf8037f9b11d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f9cfc327d09906207e89cf8037f9b11d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f9cfc327d09906207e89cf8037f9b11d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f9cfc327d09906207e89cf8037f9b11d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f9cfc327d09906207e89cf8037f9b11d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f9cfc327d09906207e89cf8037f9b11d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f9cfc327d09906207e89cf8037f9b11d, - type_description_1, - par_f_maps, - par_basic_module, - par_conv_kernel_size, - par_conv_padding, - par_layer_order, - par_num_groups, - par_is3d, - var_decoders, - var_reversed_f_maps, - var_i, - var_in_feature_num, - var_out_feature_num, - var_decoder - ); - - - // Release cached frame if used for exception. - if (frame_f9cfc327d09906207e89cf8037f9b11d == cache_frame_f9cfc327d09906207e89cf8037f9b11d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f9cfc327d09906207e89cf8037f9b11d); - cache_frame_f9cfc327d09906207e89cf8037f9b11d = NULL; - } - - assertFrameObject(frame_f9cfc327d09906207e89cf8037f9b11d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_f_maps); - Py_DECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_basic_module); - par_basic_module = NULL; - Py_XDECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_decoders); - var_decoders = NULL; - Py_XDECREF(var_reversed_f_maps); - var_reversed_f_maps = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_in_feature_num); - var_in_feature_num = NULL; - Py_XDECREF(var_out_feature_num); - var_out_feature_num = NULL; - Py_XDECREF(var_decoder); - var_decoder = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_f_maps); - Py_DECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_basic_module); - par_basic_module = NULL; - Py_XDECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_is3d); - par_is3d = NULL; - Py_XDECREF(var_decoders); - var_decoders = NULL; - Py_XDECREF(var_reversed_f_maps); - var_reversed_f_maps = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_in_feature_num); - var_in_feature_num = NULL; - Py_XDECREF(var_out_feature_num); - var_out_feature_num = NULL; - Py_XDECREF(var_decoder); - var_decoder = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__15___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_upsample = python_pars[1]; - struct Nuitka_FrameObject *frame_680cc562b8a232576f41f8a22b372a3d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_680cc562b8a232576f41f8a22b372a3d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_680cc562b8a232576f41f8a22b372a3d)) { - Py_XDECREF(cache_frame_680cc562b8a232576f41f8a22b372a3d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_680cc562b8a232576f41f8a22b372a3d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_680cc562b8a232576f41f8a22b372a3d = MAKE_FUNCTION_FRAME(codeobj_680cc562b8a232576f41f8a22b372a3d, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_680cc562b8a232576f41f8a22b372a3d->m_type_description == NULL); - frame_680cc562b8a232576f41f8a22b372a3d = cache_frame_680cc562b8a232576f41f8a22b372a3d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_680cc562b8a232576f41f8a22b372a3d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_680cc562b8a232576f41f8a22b372a3d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[118]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[118]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - frame_680cc562b8a232576f41f8a22b372a3d->m_frame.f_lineno = 413; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[45]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_upsample); - tmp_assattr_name_1 = par_upsample; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[119], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 414; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_680cc562b8a232576f41f8a22b372a3d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_680cc562b8a232576f41f8a22b372a3d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_680cc562b8a232576f41f8a22b372a3d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_680cc562b8a232576f41f8a22b372a3d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_680cc562b8a232576f41f8a22b372a3d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_680cc562b8a232576f41f8a22b372a3d, - type_description_1, - par_self, - par_upsample, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_680cc562b8a232576f41f8a22b372a3d == cache_frame_680cc562b8a232576f41f8a22b372a3d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_680cc562b8a232576f41f8a22b372a3d); - cache_frame_680cc562b8a232576f41f8a22b372a3d = NULL; - } - - assertFrameObject(frame_680cc562b8a232576f41f8a22b372a3d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_upsample); - Py_DECREF(par_upsample); - par_upsample = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_upsample); - Py_DECREF(par_upsample); - par_upsample = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__16_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_encoder_features = python_pars[1]; - PyObject *par_x = python_pars[2]; - PyObject *var_output_size = NULL; - struct Nuitka_FrameObject *frame_062a06af48c8c26a6cba883ee79b3d97; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_062a06af48c8c26a6cba883ee79b3d97 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_062a06af48c8c26a6cba883ee79b3d97)) { - Py_XDECREF(cache_frame_062a06af48c8c26a6cba883ee79b3d97); - -#if _DEBUG_REFCOUNTS - if (cache_frame_062a06af48c8c26a6cba883ee79b3d97 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_062a06af48c8c26a6cba883ee79b3d97 = MAKE_FUNCTION_FRAME(codeobj_062a06af48c8c26a6cba883ee79b3d97, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_062a06af48c8c26a6cba883ee79b3d97->m_type_description == NULL); - frame_062a06af48c8c26a6cba883ee79b3d97 = cache_frame_062a06af48c8c26a6cba883ee79b3d97; - - // Push the new frame as the currently active one. - pushFrameStack(frame_062a06af48c8c26a6cba883ee79b3d97); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_062a06af48c8c26a6cba883ee79b3d97) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_encoder_features); - tmp_called_instance_1 = par_encoder_features; - frame_062a06af48c8c26a6cba883ee79b3d97->m_frame.f_lineno = 418; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[120]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[121]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 418; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_output_size == NULL); - var_output_size = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_1 = par_x; - CHECK_OBJECT(var_output_size); - tmp_args_element_name_2 = var_output_size; - frame_062a06af48c8c26a6cba883ee79b3d97->m_frame.f_lineno = 420; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_return_value = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[119], - call_args - ); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 420; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_062a06af48c8c26a6cba883ee79b3d97); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_062a06af48c8c26a6cba883ee79b3d97); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_062a06af48c8c26a6cba883ee79b3d97); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_062a06af48c8c26a6cba883ee79b3d97, exception_lineno); - } else if (exception_tb->tb_frame != &frame_062a06af48c8c26a6cba883ee79b3d97->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_062a06af48c8c26a6cba883ee79b3d97, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_062a06af48c8c26a6cba883ee79b3d97, - type_description_1, - par_self, - par_encoder_features, - par_x, - var_output_size - ); - - - // Release cached frame if used for exception. - if (frame_062a06af48c8c26a6cba883ee79b3d97 == cache_frame_062a06af48c8c26a6cba883ee79b3d97) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_062a06af48c8c26a6cba883ee79b3d97); - cache_frame_062a06af48c8c26a6cba883ee79b3d97 = NULL; - } - - assertFrameObject(frame_062a06af48c8c26a6cba883ee79b3d97); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_encoder_features); - par_encoder_features = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_output_size); - var_output_size = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_encoder_features); - par_encoder_features = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_output_size); - var_output_size = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__17___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_mode = python_pars[1]; - PyObject *var_upsample = NULL; - struct Nuitka_FrameObject *frame_d6afecd1c71214c75f005fa1dd74a449; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_d6afecd1c71214c75f005fa1dd74a449 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d6afecd1c71214c75f005fa1dd74a449)) { - Py_XDECREF(cache_frame_d6afecd1c71214c75f005fa1dd74a449); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d6afecd1c71214c75f005fa1dd74a449 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d6afecd1c71214c75f005fa1dd74a449 = MAKE_FUNCTION_FRAME(codeobj_d6afecd1c71214c75f005fa1dd74a449, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d6afecd1c71214c75f005fa1dd74a449->m_type_description == NULL); - frame_d6afecd1c71214c75f005fa1dd74a449 = cache_frame_d6afecd1c71214c75f005fa1dd74a449; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d6afecd1c71214c75f005fa1dd74a449); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d6afecd1c71214c75f005fa1dd74a449) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[91]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[122]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[89]; - CHECK_OBJECT(par_mode); - tmp_dict_value_1 = par_mode; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_d6afecd1c71214c75f005fa1dd74a449->m_frame.f_lineno = 432; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 432; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - assert(var_upsample == NULL); - var_upsample = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 433; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[47]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 433; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_upsample); - tmp_args_element_name_1 = var_upsample; - frame_d6afecd1c71214c75f005fa1dd74a449->m_frame.f_lineno = 433; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[45], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 433; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d6afecd1c71214c75f005fa1dd74a449); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d6afecd1c71214c75f005fa1dd74a449); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d6afecd1c71214c75f005fa1dd74a449, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d6afecd1c71214c75f005fa1dd74a449->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d6afecd1c71214c75f005fa1dd74a449, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d6afecd1c71214c75f005fa1dd74a449, - type_description_1, - par_self, - par_mode, - var_upsample, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_d6afecd1c71214c75f005fa1dd74a449 == cache_frame_d6afecd1c71214c75f005fa1dd74a449) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d6afecd1c71214c75f005fa1dd74a449); - cache_frame_d6afecd1c71214c75f005fa1dd74a449 = NULL; - } - - assertFrameObject(frame_d6afecd1c71214c75f005fa1dd74a449); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_mode); - Py_DECREF(par_mode); - par_mode = NULL; - Py_XDECREF(var_upsample); - var_upsample = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_mode); - Py_DECREF(par_mode); - par_mode = NULL; - Py_XDECREF(var_upsample); - var_upsample = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__18__interpolate(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_x = python_pars[0]; - PyObject *par_size = python_pars[1]; - PyObject *par_mode = python_pars[2]; - struct Nuitka_FrameObject *frame_124586f9365ffeb871ad69a20ff385ec; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_124586f9365ffeb871ad69a20ff385ec = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_124586f9365ffeb871ad69a20ff385ec)) { - Py_XDECREF(cache_frame_124586f9365ffeb871ad69a20ff385ec); - -#if _DEBUG_REFCOUNTS - if (cache_frame_124586f9365ffeb871ad69a20ff385ec == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_124586f9365ffeb871ad69a20ff385ec = MAKE_FUNCTION_FRAME(codeobj_124586f9365ffeb871ad69a20ff385ec, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_124586f9365ffeb871ad69a20ff385ec->m_type_description == NULL); - frame_124586f9365ffeb871ad69a20ff385ec = cache_frame_124586f9365ffeb871ad69a20ff385ec; - - // Push the new frame as the currently active one. - pushFrameStack(frame_124586f9365ffeb871ad69a20ff385ec); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_124586f9365ffeb871ad69a20ff385ec) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[123]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[123]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[124]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_x); - tmp_tuple_element_1 = par_x; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[120]; - CHECK_OBJECT(par_size); - tmp_dict_value_1 = par_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[89]; - CHECK_OBJECT(par_mode); - tmp_dict_value_1 = par_mode; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_124586f9365ffeb871ad69a20ff385ec->m_frame.f_lineno = 437; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 437; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_124586f9365ffeb871ad69a20ff385ec); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_124586f9365ffeb871ad69a20ff385ec); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_124586f9365ffeb871ad69a20ff385ec); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_124586f9365ffeb871ad69a20ff385ec, exception_lineno); - } else if (exception_tb->tb_frame != &frame_124586f9365ffeb871ad69a20ff385ec->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_124586f9365ffeb871ad69a20ff385ec, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_124586f9365ffeb871ad69a20ff385ec, - type_description_1, - par_x, - par_size, - par_mode - ); - - - // Release cached frame if used for exception. - if (frame_124586f9365ffeb871ad69a20ff385ec == cache_frame_124586f9365ffeb871ad69a20ff385ec) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_124586f9365ffeb871ad69a20ff385ec); - cache_frame_124586f9365ffeb871ad69a20ff385ec = NULL; - } - - assertFrameObject(frame_124586f9365ffeb871ad69a20ff385ec); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_size); - par_size = NULL; - Py_XDECREF(par_mode); - par_mode = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_size); - par_size = NULL; - Py_XDECREF(par_mode); - par_mode = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__19___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_kernel_size = python_pars[3]; - PyObject *par_scale_factor = python_pars[4]; - PyObject *var_upsample = NULL; - struct Nuitka_FrameObject *frame_7a31a12e9cfabb467ef1510b22738ec3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_7a31a12e9cfabb467ef1510b22738ec3 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7a31a12e9cfabb467ef1510b22738ec3)) { - Py_XDECREF(cache_frame_7a31a12e9cfabb467ef1510b22738ec3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a31a12e9cfabb467ef1510b22738ec3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a31a12e9cfabb467ef1510b22738ec3 = MAKE_FUNCTION_FRAME(codeobj_7a31a12e9cfabb467ef1510b22738ec3, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a31a12e9cfabb467ef1510b22738ec3->m_type_description == NULL); - frame_7a31a12e9cfabb467ef1510b22738ec3 = cache_frame_7a31a12e9cfabb467ef1510b22738ec3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a31a12e9cfabb467ef1510b22738ec3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a31a12e9cfabb467ef1510b22738ec3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[125]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_tuple_element_1 = par_in_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_out_channels); - tmp_tuple_element_1 = par_out_channels; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[23]; - CHECK_OBJECT(par_kernel_size); - tmp_dict_value_1 = par_kernel_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[126]; - CHECK_OBJECT(par_scale_factor); - tmp_dict_value_1 = par_scale_factor; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[24]; - tmp_dict_value_1 = mod_consts[31]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_7a31a12e9cfabb467ef1510b22738ec3->m_frame.f_lineno = 456; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 456; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - assert(var_upsample == NULL); - var_upsample = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 458; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 458; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_upsample); - tmp_args_element_name_1 = var_upsample; - frame_7a31a12e9cfabb467ef1510b22738ec3->m_frame.f_lineno = 458; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[45], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 458; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a31a12e9cfabb467ef1510b22738ec3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a31a12e9cfabb467ef1510b22738ec3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a31a12e9cfabb467ef1510b22738ec3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a31a12e9cfabb467ef1510b22738ec3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a31a12e9cfabb467ef1510b22738ec3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a31a12e9cfabb467ef1510b22738ec3, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_kernel_size, - par_scale_factor, - var_upsample, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_7a31a12e9cfabb467ef1510b22738ec3 == cache_frame_7a31a12e9cfabb467ef1510b22738ec3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a31a12e9cfabb467ef1510b22738ec3); - cache_frame_7a31a12e9cfabb467ef1510b22738ec3 = NULL; - } - - assertFrameObject(frame_7a31a12e9cfabb467ef1510b22738ec3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_kernel_size); - par_kernel_size = NULL; - Py_XDECREF(par_scale_factor); - par_scale_factor = NULL; - Py_XDECREF(var_upsample); - var_upsample = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_kernel_size); - par_kernel_size = NULL; - Py_XDECREF(par_scale_factor); - par_scale_factor = NULL; - Py_XDECREF(var_upsample); - var_upsample = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__20___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_50b25f232efa5c6540072f74dc4480f3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_50b25f232efa5c6540072f74dc4480f3 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_50b25f232efa5c6540072f74dc4480f3)) { - Py_XDECREF(cache_frame_50b25f232efa5c6540072f74dc4480f3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_50b25f232efa5c6540072f74dc4480f3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_50b25f232efa5c6540072f74dc4480f3 = MAKE_FUNCTION_FRAME(codeobj_50b25f232efa5c6540072f74dc4480f3, module_models$unet3d$buildingblocks, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_50b25f232efa5c6540072f74dc4480f3->m_type_description == NULL); - frame_50b25f232efa5c6540072f74dc4480f3 = cache_frame_50b25f232efa5c6540072f74dc4480f3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_50b25f232efa5c6540072f74dc4480f3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_50b25f232efa5c6540072f74dc4480f3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[75]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 463; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[45]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[127]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 463; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - frame_50b25f232efa5c6540072f74dc4480f3->m_frame.f_lineno = 463; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 463; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_50b25f232efa5c6540072f74dc4480f3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_50b25f232efa5c6540072f74dc4480f3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_50b25f232efa5c6540072f74dc4480f3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_50b25f232efa5c6540072f74dc4480f3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_50b25f232efa5c6540072f74dc4480f3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_50b25f232efa5c6540072f74dc4480f3, - type_description_1, - par_self, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_50b25f232efa5c6540072f74dc4480f3 == cache_frame_50b25f232efa5c6540072f74dc4480f3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_50b25f232efa5c6540072f74dc4480f3); - cache_frame_50b25f232efa5c6540072f74dc4480f3 = NULL; - } - - assertFrameObject(frame_50b25f232efa5c6540072f74dc4480f3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$buildingblocks$$$function__21__no_upsampling(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_x = python_pars[0]; - PyObject *par_size = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - CHECK_OBJECT(par_size); - Py_DECREF(par_size); - par_size = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__10___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__10___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[174], -#endif - codeobj_bf12b6f7ab651bbc0152c80d875fd7ca, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__11_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__11_forward, - mod_consts[76], -#if PYTHON_VERSION >= 0x300 - mod_consts[175], -#endif - codeobj_3f19e4a0be5fe578cb6ccc7f7293c9b8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__12__joining() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__12__joining, - mod_consts[92], -#if PYTHON_VERSION >= 0x300 - mod_consts[177], -#endif - codeobj_3eaabde9ebeeda43deff0bfcc538af9b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__13_create_encoders() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__13_create_encoders, - mod_consts[178], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_08f24baaaf591da8452cea6e93d04f1d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__14_create_decoders() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__14_create_decoders, - mod_consts[179], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_f9cfc327d09906207e89cf8037f9b11d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__15___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__15___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[181], -#endif - codeobj_680cc562b8a232576f41f8a22b372a3d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__16_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__16_forward, - mod_consts[76], -#if PYTHON_VERSION >= 0x300 - mod_consts[182], -#endif - codeobj_062a06af48c8c26a6cba883ee79b3d97, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__17___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__17___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[185], -#endif - codeobj_d6afecd1c71214c75f005fa1dd74a449, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__18__interpolate() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__18__interpolate, - mod_consts[122], -#if PYTHON_VERSION >= 0x300 - mod_consts[186], -#endif - codeobj_124586f9365ffeb871ad69a20ff385ec, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__19___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__19___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[189], -#endif - codeobj_7a31a12e9cfabb467ef1510b22738ec3, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__1_create_conv() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__1_create_conv, - mod_consts[46], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_4706e2357cb54ddc3f420ed26efc961e, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - mod_consts[43], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__20___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__20___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[190], -#endif - codeobj_50b25f232efa5c6540072f74dc4480f3, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__21__no_upsampling() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__21__no_upsampling, - mod_consts[127], -#if PYTHON_VERSION >= 0x300 - mod_consts[191], -#endif - codeobj_01bc3090fd70ac894aee47a9381e7d06, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__2___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__2___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[153], -#endif - codeobj_47508e0f44d015eb4356045bbc424d80, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__3___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__3___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[156], -#endif - codeobj_3626c4a5710c94a8edcf9a807e3a0c23, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__4___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__4___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[160], -#endif - codeobj_c7f4c34772b07e30ff47849ac9ca174c, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__5_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__5_forward, - mod_consts[76], -#if PYTHON_VERSION >= 0x300 - mod_consts[161], -#endif - codeobj_a50904ccd5e1755d283981e60263e600, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__6___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__6___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[163], -#endif - codeobj_3d894708a6edf411a4d5374c8d85c7f0, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__7_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__7_forward, - mod_consts[76], -#if PYTHON_VERSION >= 0x300 - mod_consts[164], -#endif - codeobj_a7467ec8e28ccda7bf7c6ed35fcfc0bc, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__8___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__8___init__, - mod_consts[45], -#if PYTHON_VERSION >= 0x300 - mod_consts[169], -#endif - codeobj_4e4e6b6f0efee3d666bd260254d2a427, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__9_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$buildingblocks$$$function__9_forward, - mod_consts[76], -#if PYTHON_VERSION >= 0x300 - mod_consts[170], -#endif - codeobj_e8e7a096df62266405373f8a4840d42c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$buildingblocks, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$buildingblocks[] = { - impl_models$unet3d$buildingblocks$$$function__1_create_conv, - impl_models$unet3d$buildingblocks$$$function__2___init__, - impl_models$unet3d$buildingblocks$$$function__3___init__, - impl_models$unet3d$buildingblocks$$$function__4___init__, - impl_models$unet3d$buildingblocks$$$function__5_forward, - impl_models$unet3d$buildingblocks$$$function__6___init__, - impl_models$unet3d$buildingblocks$$$function__7_forward, - impl_models$unet3d$buildingblocks$$$function__8___init__, - impl_models$unet3d$buildingblocks$$$function__9_forward, - impl_models$unet3d$buildingblocks$$$function__10___init__, - impl_models$unet3d$buildingblocks$$$function__11_forward, - impl_models$unet3d$buildingblocks$$$function__12__joining, - impl_models$unet3d$buildingblocks$$$function__13_create_encoders, - impl_models$unet3d$buildingblocks$$$function__14_create_decoders, - impl_models$unet3d$buildingblocks$$$function__15___init__, - impl_models$unet3d$buildingblocks$$$function__16_forward, - impl_models$unet3d$buildingblocks$$$function__17___init__, - impl_models$unet3d$buildingblocks$$$function__18__interpolate, - impl_models$unet3d$buildingblocks$$$function__19___init__, - impl_models$unet3d$buildingblocks$$$function__20___init__, - impl_models$unet3d$buildingblocks$$$function__21__no_upsampling, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$buildingblocks; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$buildingblocks) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$buildingblocks[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$buildingblocks, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$buildingblocks(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$buildingblocks = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.buildingblocks: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.buildingblocks: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.buildingblocks: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$buildingblocks\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$buildingblocks = MODULE_DICT(module_models$unet3d$buildingblocks); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$buildingblocks, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$buildingblocks, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$buildingblocks, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$buildingblocks, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$buildingblocks, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$buildingblocks); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$buildingblocks); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_4_var___class__ = NULL; - PyObject *outline_5_var___class__ = NULL; - PyObject *outline_6_var___class__ = NULL; - struct Nuitka_CellObject *outline_7_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_8_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_9_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_10__bases = NULL; - PyObject *tmp_class_creation_10__bases_orig = NULL; - PyObject *tmp_class_creation_10__class_decl_dict = NULL; - PyObject *tmp_class_creation_10__metaclass = NULL; - PyObject *tmp_class_creation_10__prepared = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__bases = NULL; - PyObject *tmp_class_creation_6__bases_orig = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_class_creation_8__bases = NULL; - PyObject *tmp_class_creation_8__bases_orig = NULL; - PyObject *tmp_class_creation_8__class_decl_dict = NULL; - PyObject *tmp_class_creation_8__metaclass = NULL; - PyObject *tmp_class_creation_8__prepared = NULL; - PyObject *tmp_class_creation_9__bases = NULL; - PyObject *tmp_class_creation_9__bases_orig = NULL; - PyObject *tmp_class_creation_9__class_decl_dict = NULL; - PyObject *tmp_class_creation_9__metaclass = NULL; - PyObject *tmp_class_creation_9__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - struct Nuitka_FrameObject *frame_567c7b6e51ef3c98488cf17063fba15d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_afa22cd191b8ebcec6cea50387665bbf_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_afa22cd191b8ebcec6cea50387665bbf_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108 = NULL; - struct Nuitka_FrameObject *frame_1a41d134c2cae2248c1dc0df22026998_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_1a41d134c2cae2248c1dc0df22026998_3 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157 = NULL; - struct Nuitka_FrameObject *frame_cf784f99f35065729dea5cf87dd87713_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_cf784f99f35065729dea5cf87dd87713_4 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209 = NULL; - struct Nuitka_FrameObject *frame_98995caab116dc3e5142fcd24e1e2afa_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_98995caab116dc3e5142fcd24e1e2afa_5 = NULL; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *locals_models$unet3d$buildingblocks$$$class__5_Encoder_228 = NULL; - struct Nuitka_FrameObject *frame_bb7ea78ef71a7a2e019769fecc828da7_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6 = NULL; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *locals_models$unet3d$buildingblocks$$$class__6_Decoder_285 = NULL; - struct Nuitka_FrameObject *frame_8b831a3244dcc6e71d1488869d80f985_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_8b831a3244dcc6e71d1488869d80f985_7 = NULL; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406 = NULL; - struct Nuitka_FrameObject *frame_da6a7aef66c9944f8503b64f04dafd31_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_da6a7aef66c9944f8503b64f04dafd31_8 = NULL; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423 = NULL; - struct Nuitka_FrameObject *frame_e4cff597bcd07a9d3d895b230f9c680f_9; - NUITKA_MAY_BE_UNUSED char const *type_description_9 = NULL; - static struct Nuitka_FrameObject *cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9 = NULL; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440 = NULL; - struct Nuitka_FrameObject *frame_2f6aa7281c2a2586597beb4633f5a199_10; - NUITKA_MAY_BE_UNUSED char const *type_description_10 = NULL; - static struct Nuitka_FrameObject *cache_frame_2f6aa7281c2a2586597beb4633f5a199_10 = NULL; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - PyObject *locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461 = NULL; - struct Nuitka_FrameObject *frame_eef52d932d8de5c391eead11e09e81a1_11; - NUITKA_MAY_BE_UNUSED char const *type_description_11 = NULL; - static struct Nuitka_FrameObject *cache_frame_eef52d932d8de5c391eead11e09e81a1_11 = NULL; - PyObject *exception_keeper_type_29; - PyObject *exception_keeper_value_29; - PyTracebackObject *exception_keeper_tb_29; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_29; - PyObject *exception_keeper_type_30; - PyObject *exception_keeper_value_30; - PyTracebackObject *exception_keeper_tb_30; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_30; - PyObject *exception_keeper_type_31; - PyObject *exception_keeper_value_31; - PyTracebackObject *exception_keeper_tb_31; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_31; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[128], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[129], tmp_assign_source_2); - } - // Frame without reuse. - frame_567c7b6e51ef3c98488cf17063fba15d = MAKE_MODULE_FRAME(codeobj_567c7b6e51ef3c98488cf17063fba15d, module_models$unet3d$buildingblocks); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_567c7b6e51ef3c98488cf17063fba15d); - assert(Py_REFCNT(frame_567c7b6e51ef3c98488cf17063fba15d) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[130]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[130]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[131], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[130]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[130]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[132], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[133], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[134]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$buildingblocks; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = mod_consts[135]; - tmp_level_name_1 = mod_consts[2]; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 1; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_4 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$buildingblocks, - mod_consts[91], - mod_consts[2] - ); - } else { - tmp_assign_source_4 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[91]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[91], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[103]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$buildingblocks; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[2]; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 3; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[103], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[103]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$buildingblocks; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[136]; - tmp_level_name_3 = mod_consts[2]; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 4; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$buildingblocks, - mod_consts[10], - mod_consts[2] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[10]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[137]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$buildingblocks; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[138]; - tmp_level_name_4 = mod_consts[2]; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 5; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$buildingblocks, - mod_consts[139], - mod_consts[2] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[139]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[123], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[140]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$buildingblocks; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[141]; - tmp_level_name_5 = mod_consts[2]; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 7; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$buildingblocks, - mod_consts[72], - mod_consts[2] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[72]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[72], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$buildingblocks, - mod_consts[68], - mod_consts[2] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[68]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[68], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_6 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$buildingblocks, - mod_consts[74], - mod_consts[2] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[74]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[74], tmp_assign_source_11); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[101]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$buildingblocks; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = Py_None; - tmp_level_name_6 = mod_consts[2]; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 8; - tmp_assign_source_12 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[101], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - - - tmp_assign_source_13 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__1_create_conv(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[46], tmp_assign_source_13); - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[142]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_assign_source_14 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_14, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_15 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[143]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[2]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_17 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_17; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[144]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[144]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_tuple_element_2 = mod_consts[44]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 82; - tmp_assign_source_18 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_18; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[145]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[147]; - tmp_getattr_default_1 = mod_consts[148]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[147]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_2; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 82; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_2; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_19; - } - branch_end_2:; - { - PyObject *tmp_assign_source_20; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_4; - } - tmp_dictset_value = mod_consts[150]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_4; - } - tmp_dictset_value = mod_consts[44]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_4; - } - if (isFrameUnusable(cache_frame_afa22cd191b8ebcec6cea50387665bbf_2)) { - Py_XDECREF(cache_frame_afa22cd191b8ebcec6cea50387665bbf_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_afa22cd191b8ebcec6cea50387665bbf_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_afa22cd191b8ebcec6cea50387665bbf_2 = MAKE_FUNCTION_FRAME(codeobj_afa22cd191b8ebcec6cea50387665bbf, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_afa22cd191b8ebcec6cea50387665bbf_2->m_type_description == NULL); - frame_afa22cd191b8ebcec6cea50387665bbf_2 = cache_frame_afa22cd191b8ebcec6cea50387665bbf_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_afa22cd191b8ebcec6cea50387665bbf_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_afa22cd191b8ebcec6cea50387665bbf_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[152]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__2___init__(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_afa22cd191b8ebcec6cea50387665bbf_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_afa22cd191b8ebcec6cea50387665bbf_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_afa22cd191b8ebcec6cea50387665bbf_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_afa22cd191b8ebcec6cea50387665bbf_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_afa22cd191b8ebcec6cea50387665bbf_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_afa22cd191b8ebcec6cea50387665bbf_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_afa22cd191b8ebcec6cea50387665bbf_2 == cache_frame_afa22cd191b8ebcec6cea50387665bbf_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_afa22cd191b8ebcec6cea50387665bbf_2); - cache_frame_afa22cd191b8ebcec6cea50387665bbf_2 = NULL; - } - - assertFrameObject(frame_afa22cd191b8ebcec6cea50387665bbf_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_4; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_4; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_4; - } - branch_no_4:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[44]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 82; - tmp_assign_source_21 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - - goto try_except_handler_4; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_21; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_20 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_20); - goto try_return_handler_4; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82); - locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82 = NULL; - goto try_return_handler_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82); - locals_models$unet3d$buildingblocks$$$class__1_SingleConv_82 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 82; - goto try_except_handler_2; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[44], tmp_assign_source_20); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[142]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_assign_source_22 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_22, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_22; - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_23 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_24; - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[143]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[2]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_25 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_25; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[144]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[144]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_tuple_element_6 = mod_consts[49]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 108; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[145]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[147]; - tmp_getattr_default_2 = mod_consts[148]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[147]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_5; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 108; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_5; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_27; - } - branch_end_6:; - { - PyObject *tmp_assign_source_28; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[49]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - if (isFrameUnusable(cache_frame_1a41d134c2cae2248c1dc0df22026998_3)) { - Py_XDECREF(cache_frame_1a41d134c2cae2248c1dc0df22026998_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1a41d134c2cae2248c1dc0df22026998_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1a41d134c2cae2248c1dc0df22026998_3 = MAKE_FUNCTION_FRAME(codeobj_1a41d134c2cae2248c1dc0df22026998, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1a41d134c2cae2248c1dc0df22026998_3->m_type_description == NULL); - frame_1a41d134c2cae2248c1dc0df22026998_3 = cache_frame_1a41d134c2cae2248c1dc0df22026998_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1a41d134c2cae2248c1dc0df22026998_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1a41d134c2cae2248c1dc0df22026998_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[152]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__3___init__(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1a41d134c2cae2248c1dc0df22026998_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1a41d134c2cae2248c1dc0df22026998_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1a41d134c2cae2248c1dc0df22026998_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1a41d134c2cae2248c1dc0df22026998_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1a41d134c2cae2248c1dc0df22026998_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1a41d134c2cae2248c1dc0df22026998_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_1a41d134c2cae2248c1dc0df22026998_3 == cache_frame_1a41d134c2cae2248c1dc0df22026998_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1a41d134c2cae2248c1dc0df22026998_3); - cache_frame_1a41d134c2cae2248c1dc0df22026998_3 = NULL; - } - - assertFrameObject(frame_1a41d134c2cae2248c1dc0df22026998_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_7; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - branch_no_8:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[49]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 108; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_29; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_28 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_28); - goto try_return_handler_7; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108); - locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108 = NULL; - goto try_return_handler_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108); - locals_models$unet3d$buildingblocks$$$class__2_DoubleConv_108 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 108; - goto try_except_handler_5; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[49], tmp_assign_source_28); - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_30; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_13; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[157]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_assign_source_30 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_30, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_30; - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_31 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - tmp_assign_source_32 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[143]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_14 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[2]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_33 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_33; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_15 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_15, mod_consts[144]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_16 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[144]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_tuple_element_10 = mod_consts[54]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 157; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_17 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[145]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[147]; - tmp_getattr_default_3 = mod_consts[148]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_18; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_18 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_18 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[147]); - Py_DECREF(tmp_expression_name_18); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_8; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_8; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 157; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_8; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_35; - tmp_assign_source_35 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - branch_end_10:; - { - PyObject *tmp_assign_source_36; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[158]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[54]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_10; - } - if (isFrameUnusable(cache_frame_cf784f99f35065729dea5cf87dd87713_4)) { - Py_XDECREF(cache_frame_cf784f99f35065729dea5cf87dd87713_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_cf784f99f35065729dea5cf87dd87713_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_cf784f99f35065729dea5cf87dd87713_4 = MAKE_FUNCTION_FRAME(codeobj_cf784f99f35065729dea5cf87dd87713, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_cf784f99f35065729dea5cf87dd87713_4->m_type_description == NULL); - frame_cf784f99f35065729dea5cf87dd87713_4 = cache_frame_cf784f99f35065729dea5cf87dd87713_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_cf784f99f35065729dea5cf87dd87713_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_cf784f99f35065729dea5cf87dd87713_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[159]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__4___init__(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__5_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157, mod_consts[76], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cf784f99f35065729dea5cf87dd87713_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_cf784f99f35065729dea5cf87dd87713_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_cf784f99f35065729dea5cf87dd87713_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_cf784f99f35065729dea5cf87dd87713_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_cf784f99f35065729dea5cf87dd87713_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_cf784f99f35065729dea5cf87dd87713_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_cf784f99f35065729dea5cf87dd87713_4 == cache_frame_cf784f99f35065729dea5cf87dd87713_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_cf784f99f35065729dea5cf87dd87713_4); - cache_frame_cf784f99f35065729dea5cf87dd87713_4 = NULL; - } - - assertFrameObject(frame_cf784f99f35065729dea5cf87dd87713_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_10; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_10; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_10; - } - branch_no_12:; - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[54]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 157; - tmp_assign_source_37 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - - goto try_except_handler_10; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_37; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_36 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_36); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157); - locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157 = NULL; - goto try_return_handler_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157); - locals_models$unet3d$buildingblocks$$$class__3_ResNetBlock_157 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_9; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 157; - goto try_except_handler_8; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[54], tmp_assign_source_36); - } - goto try_end_4; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_38; - PyObject *tmp_tuple_element_13; - tmp_tuple_element_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_tuple_element_13 == NULL)) { - tmp_tuple_element_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - tmp_assign_source_38 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_38, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_38; - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_39 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - tmp_assign_source_40 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_40; - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[143]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_19 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[2]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_19, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_41 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_41; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_20; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_20 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_20, mod_consts[144]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_42; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_21 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[144]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - tmp_tuple_element_14 = mod_consts[65]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 209; - tmp_assign_source_42 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_42; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_22; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_22 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_22, mod_consts[145]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[147]; - tmp_getattr_default_4 = mod_consts[148]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_23; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_23 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_23 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[147]); - Py_DECREF(tmp_expression_name_23); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_11; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_11; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 209; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_11; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_43; - tmp_assign_source_43 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_43; - } - branch_end_14:; - { - PyObject *tmp_assign_source_44; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[65]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_13; - } - if (isFrameUnusable(cache_frame_98995caab116dc3e5142fcd24e1e2afa_5)) { - Py_XDECREF(cache_frame_98995caab116dc3e5142fcd24e1e2afa_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_98995caab116dc3e5142fcd24e1e2afa_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_98995caab116dc3e5142fcd24e1e2afa_5 = MAKE_FUNCTION_FRAME(codeobj_98995caab116dc3e5142fcd24e1e2afa, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_98995caab116dc3e5142fcd24e1e2afa_5->m_type_description == NULL); - frame_98995caab116dc3e5142fcd24e1e2afa_5 = cache_frame_98995caab116dc3e5142fcd24e1e2afa_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_98995caab116dc3e5142fcd24e1e2afa_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_98995caab116dc3e5142fcd24e1e2afa_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - tmp_defaults_4 = mod_consts[162]; - Py_INCREF(tmp_defaults_4); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__6___init__(tmp_defaults_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__7_forward(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209, mod_consts[76], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 222; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_98995caab116dc3e5142fcd24e1e2afa_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_98995caab116dc3e5142fcd24e1e2afa_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_98995caab116dc3e5142fcd24e1e2afa_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_98995caab116dc3e5142fcd24e1e2afa_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_98995caab116dc3e5142fcd24e1e2afa_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_98995caab116dc3e5142fcd24e1e2afa_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_98995caab116dc3e5142fcd24e1e2afa_5 == cache_frame_98995caab116dc3e5142fcd24e1e2afa_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_98995caab116dc3e5142fcd24e1e2afa_5); - cache_frame_98995caab116dc3e5142fcd24e1e2afa_5 = NULL; - } - - assertFrameObject(frame_98995caab116dc3e5142fcd24e1e2afa_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_13; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_13; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_13; - } - branch_no_16:; - { - PyObject *tmp_assign_source_45; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[65]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 209; - tmp_assign_source_45 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - - goto try_except_handler_13; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_45); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_44 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_44); - goto try_return_handler_13; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209); - locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209 = NULL; - goto try_return_handler_12; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209); - locals_models$unet3d$buildingblocks$$$class__4_ResNetBlockSE_209 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_12; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 209; - goto try_except_handler_11; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[65], tmp_assign_source_44); - } - goto try_end_5; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_46; - PyObject *tmp_tuple_element_17; - PyObject *tmp_expression_name_24; - tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_24 == NULL)) { - tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_tuple_element_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[157]); - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_assign_source_46 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_46, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_47 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - tmp_assign_source_48 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_48; - } - { - PyObject *tmp_assign_source_49; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_25; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[143]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_25 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[2]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_25, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_49 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_49; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_26; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_26 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_26, mod_consts[144]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_50; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_27 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[144]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_tuple_element_18 = mod_consts[77]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 228; - tmp_assign_source_50 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_50; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_28 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[145]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[147]; - tmp_getattr_default_5 = mod_consts[148]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_29; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_29 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_29 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[147]); - Py_DECREF(tmp_expression_name_29); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_14; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 228; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_14; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_51; - tmp_assign_source_51 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_51; - } - branch_end_18:; - { - PyObject *tmp_assign_source_52; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$unet3d$buildingblocks$$$class__5_Encoder_228 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[165]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[77]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_16; - } - if (isFrameUnusable(cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6)) { - Py_XDECREF(cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6 = MAKE_FUNCTION_FRAME(codeobj_bb7ea78ef71a7a2e019769fecc828da7, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6->m_type_description == NULL); - frame_bb7ea78ef71a7a2e019769fecc828da7_6 = cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bb7ea78ef71a7a2e019769fecc828da7_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bb7ea78ef71a7a2e019769fecc828da7_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_5; - PyObject *tmp_tuple_element_20; - tmp_tuple_element_20 = mod_consts[166]; - tmp_defaults_5 = PyTuple_New(9); - PyTuple_SET_ITEM0(tmp_defaults_5, 0, tmp_tuple_element_20); - tmp_tuple_element_20 = Py_True; - PyTuple_SET_ITEM0(tmp_defaults_5, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = mod_consts[50]; - PyTuple_SET_ITEM0(tmp_defaults_5, 2, tmp_tuple_element_20); - tmp_tuple_element_20 = mod_consts[79]; - PyTuple_SET_ITEM0(tmp_defaults_5, 3, tmp_tuple_element_20); - tmp_tuple_element_20 = PyObject_GetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[49]); - - if (tmp_tuple_element_20 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_tuple_element_20 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[49]); - - if (unlikely(tmp_tuple_element_20 == NULL)) { - tmp_tuple_element_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[49]); - } - - if (tmp_tuple_element_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_2 = "o"; - goto tuple_build_exception_6; - } - Py_INCREF(tmp_tuple_element_20); - } - } - - PyTuple_SET_ITEM(tmp_defaults_5, 4, tmp_tuple_element_20); - tmp_tuple_element_20 = mod_consts[167]; - PyTuple_SET_ITEM0(tmp_defaults_5, 5, tmp_tuple_element_20); - tmp_tuple_element_20 = mod_consts[168]; - PyTuple_SET_ITEM0(tmp_defaults_5, 6, tmp_tuple_element_20); - tmp_tuple_element_20 = mod_consts[31]; - PyTuple_SET_ITEM0(tmp_defaults_5, 7, tmp_tuple_element_20); - tmp_tuple_element_20 = Py_True; - PyTuple_SET_ITEM0(tmp_defaults_5, 8, tmp_tuple_element_20); - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_defaults_5); - goto frame_exception_exit_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__8___init__(tmp_defaults_5); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__9_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[76], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bb7ea78ef71a7a2e019769fecc828da7_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bb7ea78ef71a7a2e019769fecc828da7_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bb7ea78ef71a7a2e019769fecc828da7_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bb7ea78ef71a7a2e019769fecc828da7_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bb7ea78ef71a7a2e019769fecc828da7_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bb7ea78ef71a7a2e019769fecc828da7_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_bb7ea78ef71a7a2e019769fecc828da7_6 == cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6); - cache_frame_bb7ea78ef71a7a2e019769fecc828da7_6 = NULL; - } - - assertFrameObject(frame_bb7ea78ef71a7a2e019769fecc828da7_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_16; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_16; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_16; - } - branch_no_20:; - { - PyObject *tmp_assign_source_53; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_21; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_10 = tmp_class_creation_5__metaclass; - tmp_tuple_element_21 = mod_consts[77]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_21); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_21 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_21); - tmp_tuple_element_21 = locals_models$unet3d$buildingblocks$$$class__5_Encoder_228; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_21); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 228; - tmp_assign_source_53 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - - goto try_except_handler_16; - } - assert(outline_4_var___class__ == NULL); - outline_4_var___class__ = tmp_assign_source_53; - } - CHECK_OBJECT(outline_4_var___class__); - tmp_assign_source_52 = outline_4_var___class__; - Py_INCREF(tmp_assign_source_52); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228); - locals_models$unet3d$buildingblocks$$$class__5_Encoder_228 = NULL; - goto try_return_handler_15; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__5_Encoder_228); - locals_models$unet3d$buildingblocks$$$class__5_Encoder_228 = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto try_except_handler_15; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 228; - goto try_except_handler_14; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[77], tmp_assign_source_52); - } - goto try_end_6; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_54; - PyObject *tmp_tuple_element_22; - PyObject *tmp_expression_name_30; - tmp_expression_name_30 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_30 == NULL)) { - tmp_expression_name_30 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_tuple_element_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[157]); - if (tmp_tuple_element_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_assign_source_54 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_54, 0, tmp_tuple_element_22); - assert(tmp_class_creation_6__bases_orig == NULL); - tmp_class_creation_6__bases_orig = tmp_assign_source_54; - } - { - PyObject *tmp_assign_source_55; - PyObject *tmp_dircall_arg1_6; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig; - Py_INCREF(tmp_dircall_arg1_6); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_6}; - tmp_assign_source_55 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - assert(tmp_class_creation_6__bases == NULL); - tmp_class_creation_6__bases = tmp_assign_source_55; - } - { - PyObject *tmp_assign_source_56; - tmp_assign_source_56 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_56; - } - { - PyObject *tmp_assign_source_57; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - nuitka_bool tmp_condition_result_32; - int tmp_truth_name_6; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_31; - PyObject *tmp_subscript_name_6; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[143]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_class_creation_6__bases); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_condition_result_32 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_expression_name_31 = tmp_class_creation_6__bases; - tmp_subscript_name_6 = mod_consts[2]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_31, tmp_subscript_name_6, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_metaclass_name_6 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_bases_name_6 = tmp_class_creation_6__bases; - tmp_assign_source_57 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_57; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_33 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_expression_name_32; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_32 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_32, mod_consts[144]); - tmp_condition_result_34 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_58; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_33; - PyObject *tmp_args_name_11; - PyObject *tmp_tuple_element_23; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_33 = tmp_class_creation_6__metaclass; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[144]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_tuple_element_23 = mod_consts[87]; - tmp_args_name_11 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_11, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_23 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_11, 1, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 285; - tmp_assign_source_58 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_name_11); - if (tmp_assign_source_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_58; - } - { - nuitka_bool tmp_condition_result_35; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_34; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_34 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_34, mod_consts[145]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_condition_result_35 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_24; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[147]; - tmp_getattr_default_6 = mod_consts[148]; - tmp_tuple_element_24 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_35; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_12 = tmp_class_creation_6__prepared; - tmp_expression_name_35 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_35 == NULL)); - tmp_tuple_element_24 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[147]); - Py_DECREF(tmp_expression_name_35); - if (tmp_tuple_element_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_24); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_17; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_17; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 285; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_17; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_59; - tmp_assign_source_59 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_59; - } - branch_end_22:; - { - PyObject *tmp_assign_source_60; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$unet3d$buildingblocks$$$class__6_Decoder_285 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_19; - } - tmp_dictset_value = mod_consts[171]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_19; - } - tmp_dictset_value = mod_consts[87]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_19; - } - if (isFrameUnusable(cache_frame_8b831a3244dcc6e71d1488869d80f985_7)) { - Py_XDECREF(cache_frame_8b831a3244dcc6e71d1488869d80f985_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8b831a3244dcc6e71d1488869d80f985_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8b831a3244dcc6e71d1488869d80f985_7 = MAKE_FUNCTION_FRAME(codeobj_8b831a3244dcc6e71d1488869d80f985, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8b831a3244dcc6e71d1488869d80f985_7->m_type_description == NULL); - frame_8b831a3244dcc6e71d1488869d80f985_7 = cache_frame_8b831a3244dcc6e71d1488869d80f985_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8b831a3244dcc6e71d1488869d80f985_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8b831a3244dcc6e71d1488869d80f985_7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_6; - PyObject *tmp_tuple_element_25; - tmp_tuple_element_25 = mod_consts[166]; - tmp_defaults_6 = PyTuple_New(9); - PyTuple_SET_ITEM0(tmp_defaults_6, 0, tmp_tuple_element_25); - tmp_tuple_element_25 = mod_consts[172]; - PyTuple_SET_ITEM0(tmp_defaults_6, 1, tmp_tuple_element_25); - tmp_tuple_element_25 = PyObject_GetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[49]); - - if (tmp_tuple_element_25 == NULL) { - if (CHECK_AND_CLEAR_KEY_ERROR_OCCURRED()) { - tmp_tuple_element_25 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[49]); - - if (unlikely(tmp_tuple_element_25 == NULL)) { - tmp_tuple_element_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[49]); - } - - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_2 = "o"; - goto tuple_build_exception_8; - } - Py_INCREF(tmp_tuple_element_25); - } - } - - PyTuple_SET_ITEM(tmp_defaults_6, 2, tmp_tuple_element_25); - tmp_tuple_element_25 = mod_consts[167]; - PyTuple_SET_ITEM0(tmp_defaults_6, 3, tmp_tuple_element_25); - tmp_tuple_element_25 = mod_consts[168]; - PyTuple_SET_ITEM0(tmp_defaults_6, 4, tmp_tuple_element_25); - tmp_tuple_element_25 = mod_consts[173]; - PyTuple_SET_ITEM0(tmp_defaults_6, 5, tmp_tuple_element_25); - tmp_tuple_element_25 = mod_consts[31]; - PyTuple_SET_ITEM0(tmp_defaults_6, 6, tmp_tuple_element_25); - tmp_tuple_element_25 = Py_True; - PyTuple_SET_ITEM0(tmp_defaults_6, 7, tmp_tuple_element_25); - tmp_tuple_element_25 = Py_True; - PyTuple_SET_ITEM0(tmp_defaults_6, 8, tmp_tuple_element_25); - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_defaults_6); - goto frame_exception_exit_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__10___init__(tmp_defaults_6); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__11_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[76], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - { - nuitka_bool tmp_condition_result_36; - PyObject *tmp_called_name_12; - PyObject *tmp_args_element_name_1; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - tmp_condition_result_36 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - tmp_called_name_12 = PyObject_GetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[176]); - - if (unlikely(tmp_called_name_12 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 345; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__12__joining(); - - frame_8b831a3244dcc6e71d1488869d80f985_7->m_frame.f_lineno = 345; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_12); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - goto condexpr_end_13; - condexpr_false_13:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__12__joining(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_13:; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[92], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 346; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8b831a3244dcc6e71d1488869d80f985_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8b831a3244dcc6e71d1488869d80f985_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8b831a3244dcc6e71d1488869d80f985_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8b831a3244dcc6e71d1488869d80f985_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8b831a3244dcc6e71d1488869d80f985_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8b831a3244dcc6e71d1488869d80f985_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_8b831a3244dcc6e71d1488869d80f985_7 == cache_frame_8b831a3244dcc6e71d1488869d80f985_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8b831a3244dcc6e71d1488869d80f985_7); - cache_frame_8b831a3244dcc6e71d1488869d80f985_7 = NULL; - } - - assertFrameObject(frame_8b831a3244dcc6e71d1488869d80f985_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_19; - skip_nested_handling_6:; - { - nuitka_bool tmp_condition_result_37; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_compexpr_left_6 = tmp_class_creation_6__bases; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_compexpr_right_6 = tmp_class_creation_6__bases_orig; - tmp_condition_result_37 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_condition_result_37 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_19; - } - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_37 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dictset_value = tmp_class_creation_6__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_19; - } - branch_no_24:; - { - PyObject *tmp_assign_source_61; - PyObject *tmp_called_name_13; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_26; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_13 = tmp_class_creation_6__metaclass; - tmp_tuple_element_26 = mod_consts[87]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_26 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_26); - tmp_tuple_element_26 = locals_models$unet3d$buildingblocks$$$class__6_Decoder_285; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 285; - tmp_assign_source_61 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - - goto try_except_handler_19; - } - assert(outline_5_var___class__ == NULL); - outline_5_var___class__ = tmp_assign_source_61; - } - CHECK_OBJECT(outline_5_var___class__); - tmp_assign_source_60 = outline_5_var___class__; - Py_INCREF(tmp_assign_source_60); - goto try_return_handler_19; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285); - locals_models$unet3d$buildingblocks$$$class__6_Decoder_285 = NULL; - goto try_return_handler_18; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__6_Decoder_285); - locals_models$unet3d$buildingblocks$$$class__6_Decoder_285 = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto try_except_handler_18; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 285; - goto try_except_handler_17; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[87], tmp_assign_source_60); - } - goto try_end_7; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - Py_DECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - { - PyObject *tmp_assign_source_62; - - - tmp_assign_source_62 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__13_create_encoders(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[178], tmp_assign_source_62); - } - { - PyObject *tmp_assign_source_63; - - - tmp_assign_source_63 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__14_create_decoders(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[179], tmp_assign_source_63); - } - // Tried code: - { - PyObject *tmp_assign_source_64; - PyObject *tmp_tuple_element_27; - PyObject *tmp_expression_name_36; - tmp_expression_name_36 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_36 == NULL)) { - tmp_expression_name_36 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_tuple_element_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[157]); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_assign_source_64 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_64, 0, tmp_tuple_element_27); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_64; - } - { - PyObject *tmp_assign_source_65; - PyObject *tmp_dircall_arg1_7; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_7 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_7); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_7}; - tmp_assign_source_65 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_65; - } - { - PyObject *tmp_assign_source_66; - tmp_assign_source_66 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_66; - } - { - PyObject *tmp_assign_source_67; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_38; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_39; - int tmp_truth_name_7; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_7; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_38 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[143]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - goto condexpr_end_14; - condexpr_false_14:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_condition_result_39 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto condexpr_true_15; - } else { - goto condexpr_false_15; - } - condexpr_true_15:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_37 = tmp_class_creation_7__bases; - tmp_subscript_name_7 = mod_consts[2]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_37, tmp_subscript_name_7, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - goto condexpr_end_15; - condexpr_false_15:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_15:; - condexpr_end_14:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_67 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_67 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_67; - } - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_40 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_41; - PyObject *tmp_expression_name_38; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_38 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_38, mod_consts[144]); - tmp_condition_result_41 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_39; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_28; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_39 = tmp_class_creation_7__metaclass; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[144]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_tuple_element_28 = mod_consts[118]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_28 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 406; - tmp_assign_source_68 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_68; - } - { - nuitka_bool tmp_condition_result_42; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_40; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_40 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_40, mod_consts[145]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_condition_result_42 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_29; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[147]; - tmp_getattr_default_7 = mod_consts[148]; - tmp_tuple_element_29 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_41; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_29); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_14 = tmp_class_creation_7__prepared; - tmp_expression_name_41 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_41 == NULL)); - tmp_tuple_element_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[147]); - Py_DECREF(tmp_expression_name_41); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_29); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_20; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_20; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 406; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_20; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_69; - tmp_assign_source_69 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_69; - } - branch_end_26:; - { - PyObject *tmp_assign_source_70; - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_22; - } - tmp_dictset_value = mod_consts[180]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_22; - } - tmp_dictset_value = mod_consts[118]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_22; - } - if (isFrameUnusable(cache_frame_da6a7aef66c9944f8503b64f04dafd31_8)) { - Py_XDECREF(cache_frame_da6a7aef66c9944f8503b64f04dafd31_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_da6a7aef66c9944f8503b64f04dafd31_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_da6a7aef66c9944f8503b64f04dafd31_8 = MAKE_FUNCTION_FRAME(codeobj_da6a7aef66c9944f8503b64f04dafd31, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_da6a7aef66c9944f8503b64f04dafd31_8->m_type_description == NULL); - frame_da6a7aef66c9944f8503b64f04dafd31_8 = cache_frame_da6a7aef66c9944f8503b64f04dafd31_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_da6a7aef66c9944f8503b64f04dafd31_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_da6a7aef66c9944f8503b64f04dafd31_8) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__15___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 412; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__16_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406, mod_consts[76], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 416; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_da6a7aef66c9944f8503b64f04dafd31_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_da6a7aef66c9944f8503b64f04dafd31_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_da6a7aef66c9944f8503b64f04dafd31_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_da6a7aef66c9944f8503b64f04dafd31_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_da6a7aef66c9944f8503b64f04dafd31_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_da6a7aef66c9944f8503b64f04dafd31_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_da6a7aef66c9944f8503b64f04dafd31_8 == cache_frame_da6a7aef66c9944f8503b64f04dafd31_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_da6a7aef66c9944f8503b64f04dafd31_8); - cache_frame_da6a7aef66c9944f8503b64f04dafd31_8 = NULL; - } - - assertFrameObject(frame_da6a7aef66c9944f8503b64f04dafd31_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_22; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_43; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_7 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_7 = tmp_class_creation_7__bases_orig; - tmp_condition_result_43 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_7, tmp_compexpr_right_7); - if (tmp_condition_result_43 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_22; - } - if (tmp_condition_result_43 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_43 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_22; - } - branch_no_28:; - { - PyObject *tmp_assign_source_71; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_30; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_15 = tmp_class_creation_7__metaclass; - tmp_tuple_element_30 = mod_consts[118]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_30 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_30); - tmp_tuple_element_30 = locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 406; - tmp_assign_source_71 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 406; - - goto try_except_handler_22; - } - assert(outline_6_var___class__ == NULL); - outline_6_var___class__ = tmp_assign_source_71; - } - CHECK_OBJECT(outline_6_var___class__); - tmp_assign_source_70 = outline_6_var___class__; - Py_INCREF(tmp_assign_source_70); - goto try_return_handler_22; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_22:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406); - locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406 = NULL; - goto try_return_handler_21; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406); - locals_models$unet3d$buildingblocks$$$class__7_AbstractUpsampling_406 = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto try_except_handler_21; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_21:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 406; - goto try_except_handler_20; - outline_result_7:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[118], tmp_assign_source_70); - } - goto try_end_8; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_72; - PyObject *tmp_tuple_element_31; - tmp_tuple_element_31 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[118]); - - if (unlikely(tmp_tuple_element_31 == NULL)) { - tmp_tuple_element_31 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[118]); - } - - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - tmp_assign_source_72 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_72, 0, tmp_tuple_element_31); - assert(tmp_class_creation_8__bases_orig == NULL); - tmp_class_creation_8__bases_orig = tmp_assign_source_72; - } - { - PyObject *tmp_assign_source_73; - PyObject *tmp_dircall_arg1_8; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dircall_arg1_8 = tmp_class_creation_8__bases_orig; - Py_INCREF(tmp_dircall_arg1_8); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_8}; - tmp_assign_source_73 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - assert(tmp_class_creation_8__bases == NULL); - tmp_class_creation_8__bases = tmp_assign_source_73; - } - { - PyObject *tmp_assign_source_74; - tmp_assign_source_74 = PyDict_New(); - assert(tmp_class_creation_8__class_decl_dict == NULL); - tmp_class_creation_8__class_decl_dict = tmp_assign_source_74; - } - { - PyObject *tmp_assign_source_75; - PyObject *tmp_metaclass_name_8; - nuitka_bool tmp_condition_result_44; - PyObject *tmp_key_name_22; - PyObject *tmp_dict_arg_name_22; - PyObject *tmp_dict_arg_name_23; - PyObject *tmp_key_name_23; - nuitka_bool tmp_condition_result_45; - int tmp_truth_name_8; - PyObject *tmp_type_arg_15; - PyObject *tmp_expression_name_42; - PyObject *tmp_subscript_name_8; - PyObject *tmp_bases_name_8; - tmp_key_name_22 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_22 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_22, tmp_key_name_22); - assert(!(tmp_res == -1)); - tmp_condition_result_44 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_44 == NUITKA_BOOL_TRUE) { - goto condexpr_true_16; - } else { - goto condexpr_false_16; - } - condexpr_true_16:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_23 = tmp_class_creation_8__class_decl_dict; - tmp_key_name_23 = mod_consts[143]; - tmp_metaclass_name_8 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_23, tmp_key_name_23); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - goto condexpr_end_16; - condexpr_false_16:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_class_creation_8__bases); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - tmp_condition_result_45 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_45 == NUITKA_BOOL_TRUE) { - goto condexpr_true_17; - } else { - goto condexpr_false_17; - } - condexpr_true_17:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_expression_name_42 = tmp_class_creation_8__bases; - tmp_subscript_name_8 = mod_consts[2]; - tmp_type_arg_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_42, tmp_subscript_name_8, 0); - if (tmp_type_arg_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - tmp_metaclass_name_8 = BUILTIN_TYPE1(tmp_type_arg_15); - Py_DECREF(tmp_type_arg_15); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - goto condexpr_end_17; - condexpr_false_17:; - tmp_metaclass_name_8 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_8); - condexpr_end_17:; - condexpr_end_16:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_bases_name_8 = tmp_class_creation_8__bases; - tmp_assign_source_75 = SELECT_METACLASS(tmp_metaclass_name_8, tmp_bases_name_8); - Py_DECREF(tmp_metaclass_name_8); - if (tmp_assign_source_75 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - assert(tmp_class_creation_8__metaclass == NULL); - tmp_class_creation_8__metaclass = tmp_assign_source_75; - } - { - nuitka_bool tmp_condition_result_46; - PyObject *tmp_key_name_24; - PyObject *tmp_dict_arg_name_24; - tmp_key_name_24 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_24 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_24, tmp_key_name_24); - assert(!(tmp_res == -1)); - tmp_condition_result_46 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_46 == NUITKA_BOOL_TRUE) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_8__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - branch_no_29:; - { - nuitka_bool tmp_condition_result_47; - PyObject *tmp_expression_name_43; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_43 = tmp_class_creation_8__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_43, mod_consts[144]); - tmp_condition_result_47 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_47 == NUITKA_BOOL_TRUE) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_assign_source_76; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_44; - PyObject *tmp_args_name_15; - PyObject *tmp_tuple_element_32; - PyObject *tmp_kwargs_name_15; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_44 = tmp_class_creation_8__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_44, mod_consts[144]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - tmp_tuple_element_32 = mod_consts[88]; - tmp_args_name_15 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_15, 0, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_32 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_15, 1, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_15 = tmp_class_creation_8__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 423; - tmp_assign_source_76 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_15, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_15); - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_76; - } - { - nuitka_bool tmp_condition_result_48; - PyObject *tmp_operand_name_8; - PyObject *tmp_expression_name_45; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_expression_name_45 = tmp_class_creation_8__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_45, mod_consts[145]); - tmp_operand_name_8 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - tmp_condition_result_48 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_48 == NUITKA_BOOL_TRUE) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - PyObject *tmp_raise_type_8; - PyObject *tmp_raise_value_8; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_tuple_element_33; - PyObject *tmp_getattr_target_8; - PyObject *tmp_getattr_attr_8; - PyObject *tmp_getattr_default_8; - tmp_raise_type_8 = PyExc_TypeError; - tmp_left_name_8 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_getattr_target_8 = tmp_class_creation_8__metaclass; - tmp_getattr_attr_8 = mod_consts[147]; - tmp_getattr_default_8 = mod_consts[148]; - tmp_tuple_element_33 = BUILTIN_GETATTR(tmp_getattr_target_8, tmp_getattr_attr_8, tmp_getattr_default_8); - if (tmp_tuple_element_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - tmp_right_name_8 = PyTuple_New(2); - { - PyObject *tmp_expression_name_46; - PyObject *tmp_type_arg_16; - PyTuple_SET_ITEM(tmp_right_name_8, 0, tmp_tuple_element_33); - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_type_arg_16 = tmp_class_creation_8__prepared; - tmp_expression_name_46 = BUILTIN_TYPE1(tmp_type_arg_16); - assert(!(tmp_expression_name_46 == NULL)); - tmp_tuple_element_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[147]); - Py_DECREF(tmp_expression_name_46); - if (tmp_tuple_element_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_right_name_8, 1, tmp_tuple_element_33); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_right_name_8); - goto try_except_handler_23; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_raise_value_8 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_raise_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_23; - } - exception_type = tmp_raise_type_8; - Py_INCREF(tmp_raise_type_8); - exception_value = tmp_raise_value_8; - exception_lineno = 423; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_23; - } - branch_no_31:; - goto branch_end_30; - branch_no_30:; - { - PyObject *tmp_assign_source_77; - tmp_assign_source_77 = PyDict_New(); - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_77; - } - branch_end_30:; - { - PyObject *tmp_assign_source_78; - { - PyObject *tmp_set_locals_8; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_set_locals_8 = tmp_class_creation_8__prepared; - locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423 = tmp_set_locals_8; - Py_INCREF(tmp_set_locals_8); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_25; - } - tmp_dictset_value = mod_consts[183]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_25; - } - tmp_dictset_value = mod_consts[88]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_25; - } - if (isFrameUnusable(cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9)) { - Py_XDECREF(cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9 = MAKE_FUNCTION_FRAME(codeobj_e4cff597bcd07a9d3d895b230f9c680f, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9->m_type_description == NULL); - frame_e4cff597bcd07a9d3d895b230f9c680f_9 = cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e4cff597bcd07a9d3d895b230f9c680f_9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e4cff597bcd07a9d3d895b230f9c680f_9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_7; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_7 = mod_consts[184]; - Py_INCREF(tmp_defaults_7); - - tmp_closure_2[0] = outline_7_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__17___init__(tmp_defaults_7, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 431; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - { - nuitka_bool tmp_condition_result_49; - PyObject *tmp_called_name_17; - PyObject *tmp_args_element_name_2; - PyObject *tmp_staticmethod_arg_2; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - tmp_condition_result_49 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_49 == NUITKA_BOOL_TRUE) { - goto condexpr_true_18; - } else { - goto condexpr_false_18; - } - condexpr_true_18:; - tmp_called_name_17 = PyObject_GetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[176]); - - if (unlikely(tmp_called_name_17 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 435; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - - - tmp_args_element_name_2 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__18__interpolate(); - - frame_e4cff597bcd07a9d3d895b230f9c680f_9->m_frame.f_lineno = 435; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_17, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_element_name_2); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 435; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - goto condexpr_end_18; - condexpr_false_18:; - - - tmp_staticmethod_arg_2 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__18__interpolate(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_2); - Py_DECREF(tmp_staticmethod_arg_2); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_18:; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[122], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 436; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e4cff597bcd07a9d3d895b230f9c680f_9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_8; - - frame_exception_exit_9:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e4cff597bcd07a9d3d895b230f9c680f_9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e4cff597bcd07a9d3d895b230f9c680f_9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e4cff597bcd07a9d3d895b230f9c680f_9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e4cff597bcd07a9d3d895b230f9c680f_9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e4cff597bcd07a9d3d895b230f9c680f_9, - type_description_2, - outline_7_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e4cff597bcd07a9d3d895b230f9c680f_9 == cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9); - cache_frame_e4cff597bcd07a9d3d895b230f9c680f_9 = NULL; - } - - assertFrameObject(frame_e4cff597bcd07a9d3d895b230f9c680f_9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_8; - - frame_no_exception_8:; - goto skip_nested_handling_8; - nested_frame_exit_8:; - - goto try_except_handler_25; - skip_nested_handling_8:; - { - nuitka_bool tmp_condition_result_50; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_compexpr_left_8 = tmp_class_creation_8__bases; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_compexpr_right_8 = tmp_class_creation_8__bases_orig; - tmp_condition_result_50 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_8, tmp_compexpr_right_8); - if (tmp_condition_result_50 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_25; - } - if (tmp_condition_result_50 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - assert(tmp_condition_result_50 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_32:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dictset_value = tmp_class_creation_8__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_25; - } - branch_no_32:; - { - PyObject *tmp_assign_source_79; - PyObject *tmp_called_name_18; - PyObject *tmp_args_name_16; - PyObject *tmp_tuple_element_34; - PyObject *tmp_kwargs_name_16; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_called_name_18 = tmp_class_creation_8__metaclass; - tmp_tuple_element_34 = mod_consts[88]; - tmp_args_name_16 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_16, 0, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_34 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_16, 1, tmp_tuple_element_34); - tmp_tuple_element_34 = locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423; - PyTuple_SET_ITEM0(tmp_args_name_16, 2, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_16 = tmp_class_creation_8__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 423; - tmp_assign_source_79 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_16, tmp_kwargs_name_16); - Py_DECREF(tmp_args_name_16); - if (tmp_assign_source_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 423; - - goto try_except_handler_25; - } - { - PyObject *old = Nuitka_Cell_GET(outline_7_var___class__); - PyCell_SET(outline_7_var___class__, tmp_assign_source_79); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_7_var___class__)); - tmp_assign_source_78 = Nuitka_Cell_GET(outline_7_var___class__); - Py_INCREF(tmp_assign_source_78); - goto try_return_handler_25; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_25:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423); - locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423 = NULL; - goto try_return_handler_24; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423); - locals_models$unet3d$buildingblocks$$$class__8_InterpolateUpsampling_423 = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto try_except_handler_24; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_24:; - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - goto outline_result_8; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto outline_exception_8; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_8:; - exception_lineno = 423; - goto try_except_handler_23; - outline_result_8:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[88], tmp_assign_source_78); - } - goto try_end_9; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - Py_XDECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_25; - exception_value = exception_keeper_value_25; - exception_tb = exception_keeper_tb_25; - exception_lineno = exception_keeper_lineno_25; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - Py_DECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_8__prepared); - Py_DECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_80; - PyObject *tmp_tuple_element_35; - tmp_tuple_element_35 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[118]); - - if (unlikely(tmp_tuple_element_35 == NULL)) { - tmp_tuple_element_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[118]); - } - - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - tmp_assign_source_80 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_80, 0, tmp_tuple_element_35); - assert(tmp_class_creation_9__bases_orig == NULL); - tmp_class_creation_9__bases_orig = tmp_assign_source_80; - } - { - PyObject *tmp_assign_source_81; - PyObject *tmp_dircall_arg1_9; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dircall_arg1_9 = tmp_class_creation_9__bases_orig; - Py_INCREF(tmp_dircall_arg1_9); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_9}; - tmp_assign_source_81 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - assert(tmp_class_creation_9__bases == NULL); - tmp_class_creation_9__bases = tmp_assign_source_81; - } - { - PyObject *tmp_assign_source_82; - tmp_assign_source_82 = PyDict_New(); - assert(tmp_class_creation_9__class_decl_dict == NULL); - tmp_class_creation_9__class_decl_dict = tmp_assign_source_82; - } - { - PyObject *tmp_assign_source_83; - PyObject *tmp_metaclass_name_9; - nuitka_bool tmp_condition_result_51; - PyObject *tmp_key_name_25; - PyObject *tmp_dict_arg_name_25; - PyObject *tmp_dict_arg_name_26; - PyObject *tmp_key_name_26; - nuitka_bool tmp_condition_result_52; - int tmp_truth_name_9; - PyObject *tmp_type_arg_17; - PyObject *tmp_expression_name_47; - PyObject *tmp_subscript_name_9; - PyObject *tmp_bases_name_9; - tmp_key_name_25 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_25 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_25, tmp_key_name_25); - assert(!(tmp_res == -1)); - tmp_condition_result_51 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_51 == NUITKA_BOOL_TRUE) { - goto condexpr_true_19; - } else { - goto condexpr_false_19; - } - condexpr_true_19:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_26 = tmp_class_creation_9__class_decl_dict; - tmp_key_name_26 = mod_consts[143]; - tmp_metaclass_name_9 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_26, tmp_key_name_26); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - goto condexpr_end_19; - condexpr_false_19:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_truth_name_9 = CHECK_IF_TRUE(tmp_class_creation_9__bases); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - tmp_condition_result_52 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_52 == NUITKA_BOOL_TRUE) { - goto condexpr_true_20; - } else { - goto condexpr_false_20; - } - condexpr_true_20:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_expression_name_47 = tmp_class_creation_9__bases; - tmp_subscript_name_9 = mod_consts[2]; - tmp_type_arg_17 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_47, tmp_subscript_name_9, 0); - if (tmp_type_arg_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - tmp_metaclass_name_9 = BUILTIN_TYPE1(tmp_type_arg_17); - Py_DECREF(tmp_type_arg_17); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - goto condexpr_end_20; - condexpr_false_20:; - tmp_metaclass_name_9 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_9); - condexpr_end_20:; - condexpr_end_19:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_bases_name_9 = tmp_class_creation_9__bases; - tmp_assign_source_83 = SELECT_METACLASS(tmp_metaclass_name_9, tmp_bases_name_9); - Py_DECREF(tmp_metaclass_name_9); - if (tmp_assign_source_83 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - assert(tmp_class_creation_9__metaclass == NULL); - tmp_class_creation_9__metaclass = tmp_assign_source_83; - } - { - nuitka_bool tmp_condition_result_53; - PyObject *tmp_key_name_27; - PyObject *tmp_dict_arg_name_27; - tmp_key_name_27 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_27 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_27, tmp_key_name_27); - assert(!(tmp_res == -1)); - tmp_condition_result_53 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_53 == NUITKA_BOOL_TRUE) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_9__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - branch_no_33:; - { - nuitka_bool tmp_condition_result_54; - PyObject *tmp_expression_name_48; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_48 = tmp_class_creation_9__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_48, mod_consts[144]); - tmp_condition_result_54 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_54 == NUITKA_BOOL_TRUE) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_assign_source_84; - PyObject *tmp_called_name_19; - PyObject *tmp_expression_name_49; - PyObject *tmp_args_name_17; - PyObject *tmp_tuple_element_36; - PyObject *tmp_kwargs_name_17; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_49 = tmp_class_creation_9__metaclass; - tmp_called_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[144]); - if (tmp_called_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - tmp_tuple_element_36 = mod_consts[95]; - tmp_args_name_17 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_17, 0, tmp_tuple_element_36); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_36 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_17, 1, tmp_tuple_element_36); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_17 = tmp_class_creation_9__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 440; - tmp_assign_source_84 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_17, tmp_kwargs_name_17); - Py_DECREF(tmp_called_name_19); - Py_DECREF(tmp_args_name_17); - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_84; - } - { - nuitka_bool tmp_condition_result_55; - PyObject *tmp_operand_name_9; - PyObject *tmp_expression_name_50; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_expression_name_50 = tmp_class_creation_9__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_50, mod_consts[145]); - tmp_operand_name_9 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - tmp_condition_result_55 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_55 == NUITKA_BOOL_TRUE) { - goto branch_yes_35; - } else { - goto branch_no_35; - } - } - branch_yes_35:; - { - PyObject *tmp_raise_type_9; - PyObject *tmp_raise_value_9; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_tuple_element_37; - PyObject *tmp_getattr_target_9; - PyObject *tmp_getattr_attr_9; - PyObject *tmp_getattr_default_9; - tmp_raise_type_9 = PyExc_TypeError; - tmp_left_name_9 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_getattr_target_9 = tmp_class_creation_9__metaclass; - tmp_getattr_attr_9 = mod_consts[147]; - tmp_getattr_default_9 = mod_consts[148]; - tmp_tuple_element_37 = BUILTIN_GETATTR(tmp_getattr_target_9, tmp_getattr_attr_9, tmp_getattr_default_9); - if (tmp_tuple_element_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - tmp_right_name_9 = PyTuple_New(2); - { - PyObject *tmp_expression_name_51; - PyObject *tmp_type_arg_18; - PyTuple_SET_ITEM(tmp_right_name_9, 0, tmp_tuple_element_37); - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_type_arg_18 = tmp_class_creation_9__prepared; - tmp_expression_name_51 = BUILTIN_TYPE1(tmp_type_arg_18); - assert(!(tmp_expression_name_51 == NULL)); - tmp_tuple_element_37 = LOOKUP_ATTRIBUTE(tmp_expression_name_51, mod_consts[147]); - Py_DECREF(tmp_expression_name_51); - if (tmp_tuple_element_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto tuple_build_exception_11; - } - PyTuple_SET_ITEM(tmp_right_name_9, 1, tmp_tuple_element_37); - } - goto tuple_build_noexception_11; - // Exception handling pass through code for tuple_build: - tuple_build_exception_11:; - Py_DECREF(tmp_right_name_9); - goto try_except_handler_26; - // Finished with no exception for tuple_build: - tuple_build_noexception_11:; - tmp_raise_value_9 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_right_name_9); - if (tmp_raise_value_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_26; - } - exception_type = tmp_raise_type_9; - Py_INCREF(tmp_raise_type_9); - exception_value = tmp_raise_value_9; - exception_lineno = 440; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_26; - } - branch_no_35:; - goto branch_end_34; - branch_no_34:; - { - PyObject *tmp_assign_source_85; - tmp_assign_source_85 = PyDict_New(); - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_85; - } - branch_end_34:; - { - PyObject *tmp_assign_source_86; - { - PyObject *tmp_set_locals_9; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_set_locals_9 = tmp_class_creation_9__prepared; - locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440 = tmp_set_locals_9; - Py_INCREF(tmp_set_locals_9); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_28; - } - tmp_dictset_value = mod_consts[187]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440, mod_consts[128], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_28; - } - tmp_dictset_value = mod_consts[95]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_28; - } - if (isFrameUnusable(cache_frame_2f6aa7281c2a2586597beb4633f5a199_10)) { - Py_XDECREF(cache_frame_2f6aa7281c2a2586597beb4633f5a199_10); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2f6aa7281c2a2586597beb4633f5a199_10 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2f6aa7281c2a2586597beb4633f5a199_10 = MAKE_FUNCTION_FRAME(codeobj_2f6aa7281c2a2586597beb4633f5a199, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2f6aa7281c2a2586597beb4633f5a199_10->m_type_description == NULL); - frame_2f6aa7281c2a2586597beb4633f5a199_10 = cache_frame_2f6aa7281c2a2586597beb4633f5a199_10; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2f6aa7281c2a2586597beb4633f5a199_10); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2f6aa7281c2a2586597beb4633f5a199_10) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_8; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_defaults_8 = mod_consts[188]; - Py_INCREF(tmp_defaults_8); - - tmp_closure_3[0] = outline_8_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__19___init__(tmp_defaults_8, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 454; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2f6aa7281c2a2586597beb4633f5a199_10); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_9; - - frame_exception_exit_10:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2f6aa7281c2a2586597beb4633f5a199_10); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2f6aa7281c2a2586597beb4633f5a199_10, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2f6aa7281c2a2586597beb4633f5a199_10->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2f6aa7281c2a2586597beb4633f5a199_10, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2f6aa7281c2a2586597beb4633f5a199_10, - type_description_2, - outline_8_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2f6aa7281c2a2586597beb4633f5a199_10 == cache_frame_2f6aa7281c2a2586597beb4633f5a199_10) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2f6aa7281c2a2586597beb4633f5a199_10); - cache_frame_2f6aa7281c2a2586597beb4633f5a199_10 = NULL; - } - - assertFrameObject(frame_2f6aa7281c2a2586597beb4633f5a199_10); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_9; - - frame_no_exception_9:; - goto skip_nested_handling_9; - nested_frame_exit_9:; - - goto try_except_handler_28; - skip_nested_handling_9:; - { - nuitka_bool tmp_condition_result_56; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_compexpr_left_9 = tmp_class_creation_9__bases; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_compexpr_right_9 = tmp_class_creation_9__bases_orig; - tmp_condition_result_56 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_9, tmp_compexpr_right_9); - if (tmp_condition_result_56 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_28; - } - if (tmp_condition_result_56 == NUITKA_BOOL_TRUE) { - goto branch_yes_36; - } else { - goto branch_no_36; - } - assert(tmp_condition_result_56 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_36:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dictset_value = tmp_class_creation_9__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_28; - } - branch_no_36:; - { - PyObject *tmp_assign_source_87; - PyObject *tmp_called_name_20; - PyObject *tmp_args_name_18; - PyObject *tmp_tuple_element_38; - PyObject *tmp_kwargs_name_18; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_called_name_20 = tmp_class_creation_9__metaclass; - tmp_tuple_element_38 = mod_consts[95]; - tmp_args_name_18 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_18, 0, tmp_tuple_element_38); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_38 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_18, 1, tmp_tuple_element_38); - tmp_tuple_element_38 = locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440; - PyTuple_SET_ITEM0(tmp_args_name_18, 2, tmp_tuple_element_38); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_18 = tmp_class_creation_9__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 440; - tmp_assign_source_87 = CALL_FUNCTION(tmp_called_name_20, tmp_args_name_18, tmp_kwargs_name_18); - Py_DECREF(tmp_args_name_18); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 440; - - goto try_except_handler_28; - } - { - PyObject *old = Nuitka_Cell_GET(outline_8_var___class__); - PyCell_SET(outline_8_var___class__, tmp_assign_source_87); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_8_var___class__)); - tmp_assign_source_86 = Nuitka_Cell_GET(outline_8_var___class__); - Py_INCREF(tmp_assign_source_86); - goto try_return_handler_28; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_28:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440); - locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440 = NULL; - goto try_return_handler_27; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440); - locals_models$unet3d$buildingblocks$$$class__9_TransposeConvUpsampling_440 = NULL; - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto try_except_handler_27; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_27:; - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - goto outline_result_9; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto outline_exception_9; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_9:; - exception_lineno = 440; - goto try_except_handler_26; - outline_result_9:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[95], tmp_assign_source_86); - } - goto try_end_10; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - Py_XDECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - Py_DECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_9__prepared); - Py_DECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_88; - PyObject *tmp_tuple_element_39; - tmp_tuple_element_39 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[118]); - - if (unlikely(tmp_tuple_element_39 == NULL)) { - tmp_tuple_element_39 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[118]); - } - - if (tmp_tuple_element_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - tmp_assign_source_88 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_88, 0, tmp_tuple_element_39); - assert(tmp_class_creation_10__bases_orig == NULL); - tmp_class_creation_10__bases_orig = tmp_assign_source_88; - } - { - PyObject *tmp_assign_source_89; - PyObject *tmp_dircall_arg1_10; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - tmp_dircall_arg1_10 = tmp_class_creation_10__bases_orig; - Py_INCREF(tmp_dircall_arg1_10); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_10}; - tmp_assign_source_89 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_89 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - assert(tmp_class_creation_10__bases == NULL); - tmp_class_creation_10__bases = tmp_assign_source_89; - } - { - PyObject *tmp_assign_source_90; - tmp_assign_source_90 = PyDict_New(); - assert(tmp_class_creation_10__class_decl_dict == NULL); - tmp_class_creation_10__class_decl_dict = tmp_assign_source_90; - } - { - PyObject *tmp_assign_source_91; - PyObject *tmp_metaclass_name_10; - nuitka_bool tmp_condition_result_57; - PyObject *tmp_key_name_28; - PyObject *tmp_dict_arg_name_28; - PyObject *tmp_dict_arg_name_29; - PyObject *tmp_key_name_29; - nuitka_bool tmp_condition_result_58; - int tmp_truth_name_10; - PyObject *tmp_type_arg_19; - PyObject *tmp_expression_name_52; - PyObject *tmp_subscript_name_10; - PyObject *tmp_bases_name_10; - tmp_key_name_28 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_28 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_28, tmp_key_name_28); - assert(!(tmp_res == -1)); - tmp_condition_result_57 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_57 == NUITKA_BOOL_TRUE) { - goto condexpr_true_21; - } else { - goto condexpr_false_21; - } - condexpr_true_21:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_29 = tmp_class_creation_10__class_decl_dict; - tmp_key_name_29 = mod_consts[143]; - tmp_metaclass_name_10 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_29, tmp_key_name_29); - if (tmp_metaclass_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - goto condexpr_end_21; - condexpr_false_21:; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_truth_name_10 = CHECK_IF_TRUE(tmp_class_creation_10__bases); - if (tmp_truth_name_10 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - tmp_condition_result_58 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_58 == NUITKA_BOOL_TRUE) { - goto condexpr_true_22; - } else { - goto condexpr_false_22; - } - condexpr_true_22:; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_expression_name_52 = tmp_class_creation_10__bases; - tmp_subscript_name_10 = mod_consts[2]; - tmp_type_arg_19 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_52, tmp_subscript_name_10, 0); - if (tmp_type_arg_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - tmp_metaclass_name_10 = BUILTIN_TYPE1(tmp_type_arg_19); - Py_DECREF(tmp_type_arg_19); - if (tmp_metaclass_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - goto condexpr_end_22; - condexpr_false_22:; - tmp_metaclass_name_10 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_10); - condexpr_end_22:; - condexpr_end_21:; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_bases_name_10 = tmp_class_creation_10__bases; - tmp_assign_source_91 = SELECT_METACLASS(tmp_metaclass_name_10, tmp_bases_name_10); - Py_DECREF(tmp_metaclass_name_10); - if (tmp_assign_source_91 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - assert(tmp_class_creation_10__metaclass == NULL); - tmp_class_creation_10__metaclass = tmp_assign_source_91; - } - { - nuitka_bool tmp_condition_result_59; - PyObject *tmp_key_name_30; - PyObject *tmp_dict_arg_name_30; - tmp_key_name_30 = mod_consts[143]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_30 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_30, tmp_key_name_30); - assert(!(tmp_res == -1)); - tmp_condition_result_59 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_59 == NUITKA_BOOL_TRUE) { - goto branch_yes_37; - } else { - goto branch_no_37; - } - } - branch_yes_37:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_10__class_decl_dict; - tmp_dictdel_key = mod_consts[143]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - branch_no_37:; - { - nuitka_bool tmp_condition_result_60; - PyObject *tmp_expression_name_53; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_53 = tmp_class_creation_10__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_53, mod_consts[144]); - tmp_condition_result_60 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_60 == NUITKA_BOOL_TRUE) { - goto branch_yes_38; - } else { - goto branch_no_38; - } - } - branch_yes_38:; - { - PyObject *tmp_assign_source_92; - PyObject *tmp_called_name_21; - PyObject *tmp_expression_name_54; - PyObject *tmp_args_name_19; - PyObject *tmp_tuple_element_40; - PyObject *tmp_kwargs_name_19; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_54 = tmp_class_creation_10__metaclass; - tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_54, mod_consts[144]); - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - tmp_tuple_element_40 = mod_consts[98]; - tmp_args_name_19 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_19, 0, tmp_tuple_element_40); - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_tuple_element_40 = tmp_class_creation_10__bases; - PyTuple_SET_ITEM0(tmp_args_name_19, 1, tmp_tuple_element_40); - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_19 = tmp_class_creation_10__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 461; - tmp_assign_source_92 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_19, tmp_kwargs_name_19); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_name_19); - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_92; - } - { - nuitka_bool tmp_condition_result_61; - PyObject *tmp_operand_name_10; - PyObject *tmp_expression_name_55; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_expression_name_55 = tmp_class_creation_10__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_55, mod_consts[145]); - tmp_operand_name_10 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_10); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - tmp_condition_result_61 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_61 == NUITKA_BOOL_TRUE) { - goto branch_yes_39; - } else { - goto branch_no_39; - } - } - branch_yes_39:; - { - PyObject *tmp_raise_type_10; - PyObject *tmp_raise_value_10; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_tuple_element_41; - PyObject *tmp_getattr_target_10; - PyObject *tmp_getattr_attr_10; - PyObject *tmp_getattr_default_10; - tmp_raise_type_10 = PyExc_TypeError; - tmp_left_name_10 = mod_consts[146]; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_getattr_target_10 = tmp_class_creation_10__metaclass; - tmp_getattr_attr_10 = mod_consts[147]; - tmp_getattr_default_10 = mod_consts[148]; - tmp_tuple_element_41 = BUILTIN_GETATTR(tmp_getattr_target_10, tmp_getattr_attr_10, tmp_getattr_default_10); - if (tmp_tuple_element_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - tmp_right_name_10 = PyTuple_New(2); - { - PyObject *tmp_expression_name_56; - PyObject *tmp_type_arg_20; - PyTuple_SET_ITEM(tmp_right_name_10, 0, tmp_tuple_element_41); - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_type_arg_20 = tmp_class_creation_10__prepared; - tmp_expression_name_56 = BUILTIN_TYPE1(tmp_type_arg_20); - assert(!(tmp_expression_name_56 == NULL)); - tmp_tuple_element_41 = LOOKUP_ATTRIBUTE(tmp_expression_name_56, mod_consts[147]); - Py_DECREF(tmp_expression_name_56); - if (tmp_tuple_element_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto tuple_build_exception_12; - } - PyTuple_SET_ITEM(tmp_right_name_10, 1, tmp_tuple_element_41); - } - goto tuple_build_noexception_12; - // Exception handling pass through code for tuple_build: - tuple_build_exception_12:; - Py_DECREF(tmp_right_name_10); - goto try_except_handler_29; - // Finished with no exception for tuple_build: - tuple_build_noexception_12:; - tmp_raise_value_10 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_raise_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_29; - } - exception_type = tmp_raise_type_10; - Py_INCREF(tmp_raise_type_10); - exception_value = tmp_raise_value_10; - exception_lineno = 461; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_29; - } - branch_no_39:; - goto branch_end_38; - branch_no_38:; - { - PyObject *tmp_assign_source_93; - tmp_assign_source_93 = PyDict_New(); - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_93; - } - branch_end_38:; - { - PyObject *tmp_assign_source_94; - { - PyObject *tmp_set_locals_10; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_set_locals_10 = tmp_class_creation_10__prepared; - locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461 = tmp_set_locals_10; - Py_INCREF(tmp_set_locals_10); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[147]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[147]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[149], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_31; - } - tmp_dictset_value = mod_consts[98]; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[151], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_31; - } - if (isFrameUnusable(cache_frame_eef52d932d8de5c391eead11e09e81a1_11)) { - Py_XDECREF(cache_frame_eef52d932d8de5c391eead11e09e81a1_11); - -#if _DEBUG_REFCOUNTS - if (cache_frame_eef52d932d8de5c391eead11e09e81a1_11 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_eef52d932d8de5c391eead11e09e81a1_11 = MAKE_FUNCTION_FRAME(codeobj_eef52d932d8de5c391eead11e09e81a1, module_models$unet3d$buildingblocks, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_eef52d932d8de5c391eead11e09e81a1_11->m_type_description == NULL); - frame_eef52d932d8de5c391eead11e09e81a1_11 = cache_frame_eef52d932d8de5c391eead11e09e81a1_11; - - // Push the new frame as the currently active one. - pushFrameStack(frame_eef52d932d8de5c391eead11e09e81a1_11); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_eef52d932d8de5c391eead11e09e81a1_11) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_4[1]; - - tmp_closure_4[0] = outline_9_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__20___init__(tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[45], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 462; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - } - { - nuitka_bool tmp_condition_result_62; - PyObject *tmp_called_name_22; - PyObject *tmp_args_element_name_3; - PyObject *tmp_staticmethod_arg_3; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[176]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 465; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - tmp_condition_result_62 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_62 == NUITKA_BOOL_TRUE) { - goto condexpr_true_23; - } else { - goto condexpr_false_23; - } - condexpr_true_23:; - tmp_called_name_22 = PyObject_GetItem(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[176]); - - if (unlikely(tmp_called_name_22 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[176]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 465; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 465; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - - - tmp_args_element_name_3 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__21__no_upsampling(); - - frame_eef52d932d8de5c391eead11e09e81a1_11->m_frame.f_lineno = 465; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_22, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_element_name_3); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 465; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - goto condexpr_end_23; - condexpr_false_23:; - - - tmp_staticmethod_arg_3 = MAKE_FUNCTION_models$unet3d$buildingblocks$$$function__21__no_upsampling(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_3); - Py_DECREF(tmp_staticmethod_arg_3); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_23:; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[127], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 466; - type_description_2 = "c"; - goto frame_exception_exit_11; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_eef52d932d8de5c391eead11e09e81a1_11); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_10; - - frame_exception_exit_11:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_eef52d932d8de5c391eead11e09e81a1_11); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_eef52d932d8de5c391eead11e09e81a1_11, exception_lineno); - } else if (exception_tb->tb_frame != &frame_eef52d932d8de5c391eead11e09e81a1_11->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_eef52d932d8de5c391eead11e09e81a1_11, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_eef52d932d8de5c391eead11e09e81a1_11, - type_description_2, - outline_9_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_eef52d932d8de5c391eead11e09e81a1_11 == cache_frame_eef52d932d8de5c391eead11e09e81a1_11) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_eef52d932d8de5c391eead11e09e81a1_11); - cache_frame_eef52d932d8de5c391eead11e09e81a1_11 = NULL; - } - - assertFrameObject(frame_eef52d932d8de5c391eead11e09e81a1_11); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_10; - - frame_no_exception_10:; - goto skip_nested_handling_10; - nested_frame_exit_10:; - - goto try_except_handler_31; - skip_nested_handling_10:; - { - nuitka_bool tmp_condition_result_63; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_compexpr_left_10 = tmp_class_creation_10__bases; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - tmp_compexpr_right_10 = tmp_class_creation_10__bases_orig; - tmp_condition_result_63 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_10, tmp_compexpr_right_10); - if (tmp_condition_result_63 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_31; - } - if (tmp_condition_result_63 == NUITKA_BOOL_TRUE) { - goto branch_yes_40; - } else { - goto branch_no_40; - } - assert(tmp_condition_result_63 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_40:; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - tmp_dictset_value = tmp_class_creation_10__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461, mod_consts[154], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_31; - } - branch_no_40:; - { - PyObject *tmp_assign_source_95; - PyObject *tmp_called_name_23; - PyObject *tmp_args_name_20; - PyObject *tmp_tuple_element_42; - PyObject *tmp_kwargs_name_20; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_called_name_23 = tmp_class_creation_10__metaclass; - tmp_tuple_element_42 = mod_consts[98]; - tmp_args_name_20 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_20, 0, tmp_tuple_element_42); - CHECK_OBJECT(tmp_class_creation_10__bases); - tmp_tuple_element_42 = tmp_class_creation_10__bases; - PyTuple_SET_ITEM0(tmp_args_name_20, 1, tmp_tuple_element_42); - tmp_tuple_element_42 = locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461; - PyTuple_SET_ITEM0(tmp_args_name_20, 2, tmp_tuple_element_42); - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_20 = tmp_class_creation_10__class_decl_dict; - frame_567c7b6e51ef3c98488cf17063fba15d->m_frame.f_lineno = 461; - tmp_assign_source_95 = CALL_FUNCTION(tmp_called_name_23, tmp_args_name_20, tmp_kwargs_name_20); - Py_DECREF(tmp_args_name_20); - if (tmp_assign_source_95 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 461; - - goto try_except_handler_31; - } - { - PyObject *old = Nuitka_Cell_GET(outline_9_var___class__); - PyCell_SET(outline_9_var___class__, tmp_assign_source_95); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_9_var___class__)); - tmp_assign_source_94 = Nuitka_Cell_GET(outline_9_var___class__); - Py_INCREF(tmp_assign_source_94); - goto try_return_handler_31; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_31:; - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461); - locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461 = NULL; - goto try_return_handler_30; - // Exception handler code: - try_except_handler_31:; - exception_keeper_type_29 = exception_type; - exception_keeper_value_29 = exception_value; - exception_keeper_tb_29 = exception_tb; - exception_keeper_lineno_29 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461); - locals_models$unet3d$buildingblocks$$$class__10_NoUpsampling_461 = NULL; - // Re-raise. - exception_type = exception_keeper_type_29; - exception_value = exception_keeper_value_29; - exception_tb = exception_keeper_tb_29; - exception_lineno = exception_keeper_lineno_29; - - goto try_except_handler_30; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_30:; - CHECK_OBJECT(outline_9_var___class__); - Py_DECREF(outline_9_var___class__); - outline_9_var___class__ = NULL; - goto outline_result_10; - // Exception handler code: - try_except_handler_30:; - exception_keeper_type_30 = exception_type; - exception_keeper_value_30 = exception_value; - exception_keeper_tb_30 = exception_tb; - exception_keeper_lineno_30 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_9_var___class__); - Py_DECREF(outline_9_var___class__); - outline_9_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_30; - exception_value = exception_keeper_value_30; - exception_tb = exception_keeper_tb_30; - exception_lineno = exception_keeper_lineno_30; - - goto outline_exception_10; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_10:; - exception_lineno = 461; - goto try_except_handler_29; - outline_result_10:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$buildingblocks, (Nuitka_StringObject *)mod_consts[98], tmp_assign_source_94); - } - goto try_end_11; - // Exception handler code: - try_except_handler_29:; - exception_keeper_type_31 = exception_type; - exception_keeper_value_31 = exception_value; - exception_keeper_tb_31 = exception_tb; - exception_keeper_lineno_31 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_10__bases_orig); - tmp_class_creation_10__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_10__bases); - tmp_class_creation_10__bases = NULL; - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - Py_XDECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_31; - exception_value = exception_keeper_value_31; - exception_tb = exception_keeper_tb_31; - exception_lineno = exception_keeper_lineno_31; - - goto frame_exception_exit_1; - // End of try: - try_end_11:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_567c7b6e51ef3c98488cf17063fba15d); -#endif - popFrameStack(); - - assertFrameObject(frame_567c7b6e51ef3c98488cf17063fba15d); - - goto frame_no_exception_11; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_567c7b6e51ef3c98488cf17063fba15d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_567c7b6e51ef3c98488cf17063fba15d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_567c7b6e51ef3c98488cf17063fba15d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_567c7b6e51ef3c98488cf17063fba15d, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_11:; - CHECK_OBJECT(tmp_class_creation_10__bases_orig); - Py_DECREF(tmp_class_creation_10__bases_orig); - tmp_class_creation_10__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_10__bases); - tmp_class_creation_10__bases = NULL; - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_10__prepared); - Py_DECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - - return module_models$unet3d$buildingblocks; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.config.const b/medomni/models.build/module.models.unet3d.config.const deleted file mode 100644 index ed5d029fc142866a5545a9e195e924d3c279a76d..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.config.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.config.cpp b/medomni/models.build/module.models.unet3d.config.cpp deleted file mode 100644 index 724522fe0736b3b35e411ee900e3899b357804b8..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.config.cpp +++ /dev/null @@ -1,1704 +0,0 @@ -/* Generated code for Python module 'models.unet3d.config' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$config" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$config; -PyDictObject *moduledict_models$unet3d$config; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[41]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.config")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$config(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.config"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_0d287422afe948efe554fb353d458e08; -static PyCodeObject *codeobj_06a61653c58962b90971568d2c6397d2; -static PyCodeObject *codeobj_fe147ccf47df0f0326a7eabd624239de; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[37]); CHECK_OBJECT(module_filename_obj); - codeobj_0d287422afe948efe554fb353d458e08 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[38], NULL, NULL, 0, 0, 0); - codeobj_06a61653c58962b90971568d2c6397d2 = MAKE_CODEOBJECT(module_filename_obj, 31, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[36], mod_consts[39], NULL, 1, 0, 0); - codeobj_fe147ccf47df0f0326a7eabd624239de = MAKE_CODEOBJECT(module_filename_obj, 11, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[35], mod_consts[40], NULL, 0, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__1_load_config(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__2__load_config_yaml(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$config$$$function__1_load_config(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *var_parser = NULL; - PyObject *var_args = NULL; - PyObject *var_config = NULL; - PyObject *var_device = NULL; - struct Nuitka_FrameObject *frame_fe147ccf47df0f0326a7eabd624239de; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_fe147ccf47df0f0326a7eabd624239de = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fe147ccf47df0f0326a7eabd624239de)) { - Py_XDECREF(cache_frame_fe147ccf47df0f0326a7eabd624239de); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fe147ccf47df0f0326a7eabd624239de == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fe147ccf47df0f0326a7eabd624239de = MAKE_FUNCTION_FRAME(codeobj_fe147ccf47df0f0326a7eabd624239de, module_models$unet3d$config, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fe147ccf47df0f0326a7eabd624239de->m_type_description == NULL); - frame_fe147ccf47df0f0326a7eabd624239de = cache_frame_fe147ccf47df0f0326a7eabd624239de; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fe147ccf47df0f0326a7eabd624239de); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fe147ccf47df0f0326a7eabd624239de) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[2]); - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 12; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_parser == NULL); - var_parser = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(var_parser); - tmp_expression_name_2 = var_parser; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = mod_consts[4]; - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[5]); - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 13; - tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - if (var_parser == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 14; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = var_parser; - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 14; - tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_args == NULL); - var_args = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_open_filename_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_open_mode_1; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[9]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_args); - tmp_expression_name_4 = var_args; - tmp_open_filename_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[10]); - if (tmp_open_filename_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 15; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_open_mode_1 = mod_consts[11]; - tmp_args_element_name_1 = BUILTIN_OPEN(tmp_open_filename_1, tmp_open_mode_1, NULL, NULL, NULL, NULL, NULL, NULL); - Py_DECREF(tmp_open_filename_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 15; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 15; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_config == NULL); - var_config = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_config); - tmp_called_instance_2 = var_config; - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 17; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[12], - &PyTuple_GET_ITEM(mod_consts[13], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_device == NULL); - var_device = tmp_assign_source_4; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_device); - tmp_compexpr_left_1 = var_device; - tmp_compexpr_right_1 = mod_consts[14]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 18; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_3; - PyObject *tmp_call_result_2; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 19; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[16], - &PyTuple_GET_ITEM(mod_consts[17], 0) - ); - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 19; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - tmp_ass_subvalue_1 = mod_consts[14]; - if (var_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 20; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_1 = var_config; - tmp_ass_subscript_1 = mod_consts[18]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 20; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - if (var_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 21; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_config; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_3; - int tmp_truth_name_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[19]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[19]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[20]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 23; - tmp_call_result_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[21]); - Py_DECREF(tmp_called_instance_4); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_3); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_3); - - exception_lineno = 23; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_3); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_ass_subvalue_2 = mod_consts[20]; - if (var_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 24; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_2 = var_config; - tmp_ass_subscript_2 = mod_consts[18]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_called_instance_5; - PyObject *tmp_call_result_4; - tmp_called_instance_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[15]); - - if (unlikely(tmp_called_instance_5 == NULL)) { - tmp_called_instance_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[15]); - } - - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_fe147ccf47df0f0326a7eabd624239de->m_frame.f_lineno = 26; - tmp_call_result_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[16], - &PyTuple_GET_ITEM(mod_consts[22], 0) - ); - - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - tmp_ass_subvalue_3 = mod_consts[14]; - if (var_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 27; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_3 = var_config; - tmp_ass_subscript_3 = mod_consts[18]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - if (var_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[10]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 28; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_config; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe147ccf47df0f0326a7eabd624239de); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe147ccf47df0f0326a7eabd624239de); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe147ccf47df0f0326a7eabd624239de); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fe147ccf47df0f0326a7eabd624239de, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fe147ccf47df0f0326a7eabd624239de->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fe147ccf47df0f0326a7eabd624239de, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fe147ccf47df0f0326a7eabd624239de, - type_description_1, - var_parser, - var_args, - var_config, - var_device - ); - - - // Release cached frame if used for exception. - if (frame_fe147ccf47df0f0326a7eabd624239de == cache_frame_fe147ccf47df0f0326a7eabd624239de) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fe147ccf47df0f0326a7eabd624239de); - cache_frame_fe147ccf47df0f0326a7eabd624239de = NULL; - } - - assertFrameObject(frame_fe147ccf47df0f0326a7eabd624239de); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(var_parser); - var_parser = NULL; - Py_XDECREF(var_args); - var_args = NULL; - Py_XDECREF(var_config); - var_config = NULL; - CHECK_OBJECT(var_device); - Py_DECREF(var_device); - var_device = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(var_parser); - var_parser = NULL; - Py_XDECREF(var_args); - var_args = NULL; - Py_XDECREF(var_config); - var_config = NULL; - Py_XDECREF(var_device); - var_device = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$config$$$function__2__load_config_yaml(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config_file = python_pars[0]; - struct Nuitka_FrameObject *frame_06a61653c58962b90971568d2c6397d2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_06a61653c58962b90971568d2c6397d2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_06a61653c58962b90971568d2c6397d2)) { - Py_XDECREF(cache_frame_06a61653c58962b90971568d2c6397d2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_06a61653c58962b90971568d2c6397d2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_06a61653c58962b90971568d2c6397d2 = MAKE_FUNCTION_FRAME(codeobj_06a61653c58962b90971568d2c6397d2, module_models$unet3d$config, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_06a61653c58962b90971568d2c6397d2->m_type_description == NULL); - frame_06a61653c58962b90971568d2c6397d2 = cache_frame_06a61653c58962b90971568d2c6397d2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_06a61653c58962b90971568d2c6397d2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_06a61653c58962b90971568d2c6397d2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_open_filename_1; - PyObject *tmp_open_mode_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[9]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config_file); - tmp_open_filename_1 = par_config_file; - tmp_open_mode_1 = mod_consts[11]; - tmp_args_element_name_1 = BUILTIN_OPEN(tmp_open_filename_1, tmp_open_mode_1, NULL, NULL, NULL, NULL, NULL, NULL); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 32; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_06a61653c58962b90971568d2c6397d2->m_frame.f_lineno = 32; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_06a61653c58962b90971568d2c6397d2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_06a61653c58962b90971568d2c6397d2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_06a61653c58962b90971568d2c6397d2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_06a61653c58962b90971568d2c6397d2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_06a61653c58962b90971568d2c6397d2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_06a61653c58962b90971568d2c6397d2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_06a61653c58962b90971568d2c6397d2, - type_description_1, - par_config_file - ); - - - // Release cached frame if used for exception. - if (frame_06a61653c58962b90971568d2c6397d2 == cache_frame_06a61653c58962b90971568d2c6397d2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_06a61653c58962b90971568d2c6397d2); - cache_frame_06a61653c58962b90971568d2c6397d2 = NULL; - } - - assertFrameObject(frame_06a61653c58962b90971568d2c6397d2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_config_file); - Py_DECREF(par_config_file); - par_config_file = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_config_file); - Py_DECREF(par_config_file); - par_config_file = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__1_load_config() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$config$$$function__1_load_config, - mod_consts[35], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_fe147ccf47df0f0326a7eabd624239de, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$config, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$config$$$function__2__load_config_yaml() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$config$$$function__2__load_config_yaml, - mod_consts[36], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_06a61653c58962b90971568d2c6397d2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$config, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$config[] = { - impl_models$unet3d$config$$$function__1_load_config, - impl_models$unet3d$config$$$function__2__load_config_yaml, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$config; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$config) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$config[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$config, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$config(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$config = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.config: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.config: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.config: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$config\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$config = MODULE_DICT(module_models$unet3d$config); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$config, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$config, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$config, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$config, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$config, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$config); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$config); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_FrameObject *frame_0d287422afe948efe554fb353d458e08; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[23], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[24], tmp_assign_source_2); - } - // Frame without reuse. - frame_0d287422afe948efe554fb353d458e08 = MAKE_MODULE_FRAME(codeobj_0d287422afe948efe554fb353d458e08, module_models$unet3d$config); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_0d287422afe948efe554fb353d458e08); - assert(Py_REFCNT(frame_0d287422afe948efe554fb353d458e08) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[25]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[26], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[25]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[25]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[27], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[0]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$config; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[29]; - frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[19]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$config; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[29]; - frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 3; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[19], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[8]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$config; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[29]; - frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 4; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[30]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$config; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[31]; - tmp_level_name_4 = mod_consts[29]; - frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 6; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$config, - mod_consts[32], - mod_consts[29] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[32]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[32], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[32]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[32]); - } - - assert(!(tmp_called_instance_1 == NULL)); - frame_0d287422afe948efe554fb353d458e08->m_frame.f_lineno = 8; - tmp_assign_source_8 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[33], - &PyTuple_GET_ITEM(mod_consts[34], 0) - ); - - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[15], tmp_assign_source_8); - } - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0d287422afe948efe554fb353d458e08); -#endif - popFrameStack(); - - assertFrameObject(frame_0d287422afe948efe554fb353d458e08); - - goto frame_no_exception_1; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0d287422afe948efe554fb353d458e08); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0d287422afe948efe554fb353d458e08, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0d287422afe948efe554fb353d458e08->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0d287422afe948efe554fb353d458e08, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_1:; - { - PyObject *tmp_assign_source_9; - - - tmp_assign_source_9 = MAKE_FUNCTION_models$unet3d$config$$$function__1_load_config(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[35], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - - - tmp_assign_source_10 = MAKE_FUNCTION_models$unet3d$config$$$function__2__load_config_yaml(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$config, (Nuitka_StringObject *)mod_consts[36], tmp_assign_source_10); - } - - return module_models$unet3d$config; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.const b/medomni/models.build/module.models.unet3d.const deleted file mode 100644 index c60c18112c3d07f002c86cd0d2814019d61806e4..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.cpp b/medomni/models.build/module.models.unet3d.cpp deleted file mode 100644 index 009cca2420134258662d306b470bc877b9d7de63..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.cpp +++ /dev/null @@ -1,808 +0,0 @@ -/* Generated code for Python module 'models.unet3d' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d; -PyDictObject *moduledict_models$unet3d; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[19]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_5e387c7afb8f5b1764470a49d9353be7; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[17]); CHECK_OBJECT(module_filename_obj); - codeobj_5e387c7afb8f5b1764470a49d9353be7 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[18], NULL, NULL, 0, 0, 0); -} - -// The module function declarations. - - -// The module function definitions. - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d[] = { - - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d = MODULE_DICT(module_models$unet3d); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 1 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - struct Nuitka_FrameObject *frame_5e387c7afb8f5b1764470a49d9353be7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_dictset_value; - PyObject *tmp_dictset_dict; - PyObject *tmp_dictset_key; - int tmp_res; - bool tmp_result; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_2); - } - // Frame without reuse. - frame_5e387c7afb8f5b1764470a49d9353be7 = MAKE_MODULE_FRAME(codeobj_5e387c7afb8f5b1764470a49d9353be7, module_models$unet3d); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_5e387c7afb8f5b1764470a49d9353be7); - assert(Py_REFCNT(frame_5e387c7afb8f5b1764470a49d9353be7) == 2); - - // Framed code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_list_element_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - { - PyObject *hard_module = IMPORT_HARD_OS(); - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[3]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = module_filename_obj; - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - tmp_list_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_assign_source_3 = PyList_New(3); - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_instance_2; - PyList_SET_ITEM(tmp_assign_source_3, 0, tmp_list_element_1); - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - { - PyObject *hard_module = IMPORT_HARD_OS(); - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[4]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - { - PyObject *hard_module = IMPORT_HARD_OS(); - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[5]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 1; - - goto list_build_exception_1; - } - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - tmp_args_element_name_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 1; - - goto list_build_exception_1; - } - tmp_args_element_name_3 = mod_consts[8]; - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_list_element_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_assign_source_3, 1, tmp_list_element_1); - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - { - PyObject *hard_module = IMPORT_HARD_OS(); - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[5]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - frame_5e387c7afb8f5b1764470a49d9353be7->m_frame.f_lineno = 1; - tmp_list_element_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[9], 0) - ); - - if (tmp_list_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto list_build_exception_1; - } - PyList_SET_ITEM(tmp_assign_source_3, 2, tmp_list_element_1); - } - goto list_build_noexception_1; - // Exception handling pass through code for list_build: - list_build_exception_1:; - Py_DECREF(tmp_assign_source_3); - goto frame_exception_exit_1; - // Finished with no exception for list_build: - list_build_noexception_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_3); - } - { - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - tmp_dictset_value = Nuitka_Loader_New(module_entry); - tmp_dictset_dict = PySys_GetObject((char *)"path_importer_cache"); - if (tmp_dictset_dict == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - assert(!(tmp_expression_name_3 == NULL)); - tmp_subscript_name_1 = mod_consts[11]; - tmp_dictset_key = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_1, 0); - if (tmp_dictset_key == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_res = PyDict_SetItem(tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value); - Py_DECREF(tmp_dictset_key); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[13], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[14], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - tmp_assattr_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_assattr_name_3 == NULL)) { - tmp_assattr_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - tmp_assattr_target_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_assattr_target_3 == NULL)) { - tmp_assattr_target_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - assert(!(tmp_assattr_target_3 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[15], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5e387c7afb8f5b1764470a49d9353be7); -#endif - popFrameStack(); - - assertFrameObject(frame_5e387c7afb8f5b1764470a49d9353be7); - - goto frame_no_exception_1; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5e387c7afb8f5b1764470a49d9353be7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5e387c7afb8f5b1764470a49d9353be7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5e387c7afb8f5b1764470a49d9353be7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5e387c7afb8f5b1764470a49d9353be7, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_1:; - { - PyObject *tmp_assign_source_4; - tmp_assign_source_4 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d, (Nuitka_StringObject *)mod_consts[16], tmp_assign_source_4); - } - - return module_models$unet3d; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.losses.const b/medomni/models.build/module.models.unet3d.losses.const deleted file mode 100644 index 092da5180cf9563aee39205e47a37328124e26db..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.losses.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.losses.cpp b/medomni/models.build/module.models.unet3d.losses.cpp deleted file mode 100644 index 020b3abc756b73624707afb66d5469b3c81df03b..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.losses.cpp +++ /dev/null @@ -1,20125 +0,0 @@ -/* Generated code for Python module 'models.unet3d.losses' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$losses" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$losses; -PyDictObject *moduledict_models$unet3d$losses; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[206]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.losses")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$losses(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.losses"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_bbd4e7afc692945e27dee598a8242d6c; -static PyCodeObject *codeobj_705bf4315d2d4f531dff5d3d03b1beec; -static PyCodeObject *codeobj_79c7d5960b91f122e38985085658fe13; -static PyCodeObject *codeobj_7a70797e1919541bc6bae64c7102f99b; -static PyCodeObject *codeobj_0f3b06d4df296077ba10f315932c80a2; -static PyCodeObject *codeobj_829d0a1ffa540ba75404cd988b32f0b5; -static PyCodeObject *codeobj_102f6d9c8caf3c07fcacb9b74c819b61; -static PyCodeObject *codeobj_b82f846403c5bbd1de1ab21ea54bad05; -static PyCodeObject *codeobj_0812d28c0fd416b215956f202c82484e; -static PyCodeObject *codeobj_f19ed9ee26d93c2e82ea0c001dacbbbc; -static PyCodeObject *codeobj_653cd49c73152390d2f5ad682e34a196; -static PyCodeObject *codeobj_619124ae3c7c6b52dec6da317ecfa60b; -static PyCodeObject *codeobj_f0147916ca8a0f188f736d2445a24142; -static PyCodeObject *codeobj_45f52b2af41ae9eeda8b8dceada0ce54; -static PyCodeObject *codeobj_4eb47512d57f9eb20a1993d6d1c3fb78; -static PyCodeObject *codeobj_7fca07fbabf40b9aedb62b82b03ac314; -static PyCodeObject *codeobj_689fefa3b59b704f733760f36572546b; -static PyCodeObject *codeobj_915a2da7d900624b990aa096cbb70b79; -static PyCodeObject *codeobj_967b9bb58a2e42c245494faa4e98659a; -static PyCodeObject *codeobj_38eaebfe4d2be968a308d6c799019465; -static PyCodeObject *codeobj_c60e6b0b6cbf537f64facb5040a84769; -static PyCodeObject *codeobj_48d8d9a1daf8117bcef99d7047b108c4; -static PyCodeObject *codeobj_ad5336bf04811a8c76dcc0c2c51b6074; -static PyCodeObject *codeobj_f96de2d7cdf8118d4114f6e4b5a0cc47; -static PyCodeObject *codeobj_7138dc343b9d36f61ecf5068b1d4a9e2; -static PyCodeObject *codeobj_d8de5593120711397ebcd544a9a5beee; -static PyCodeObject *codeobj_0201c31e1e7feff6304044e6d3951db4; -static PyCodeObject *codeobj_df030e46b619f2e1d7bbe1bf22d15c8c; -static PyCodeObject *codeobj_3a3c4357c3d422694cae78ba51b909d4; -static PyCodeObject *codeobj_ce55a77527b8cae9d98b409844d8d681; -static PyCodeObject *codeobj_7e600e5abd5b883d8c3faab8d6f2a207; -static PyCodeObject *codeobj_599f9bc91cca49981a976e3e360b0b63; -static PyCodeObject *codeobj_d0a908219576feca58e31d68600ccb1c; -static PyCodeObject *codeobj_ca8b7a4c8713e1d10286835f390e025f; -static PyCodeObject *codeobj_4f67554983fc1bad95f8404ef1c044ec; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[182]); CHECK_OBJECT(module_filename_obj); - codeobj_bbd4e7afc692945e27dee598a8242d6c = MAKE_CODEOBJECT(module_filename_obj, 103, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[41], mod_consts[183], NULL, 1, 0, 0); - codeobj_705bf4315d2d4f531dff5d3d03b1beec = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[184], NULL, NULL, 0, 0, 0); - codeobj_79c7d5960b91f122e38985085658fe13 = MAKE_CODEOBJECT(module_filename_obj, 168, CO_NOFREE, mod_consts[53], mod_consts[185], NULL, 0, 0, 0); - codeobj_7a70797e1919541bc6bae64c7102f99b = MAKE_CODEOBJECT(module_filename_obj, 120, CO_NOFREE, mod_consts[58], mod_consts[185], NULL, 0, 0, 0); - codeobj_0f3b06d4df296077ba10f315932c80a2 = MAKE_CODEOBJECT(module_filename_obj, 133, CO_NOFREE, mod_consts[110], mod_consts[185], NULL, 0, 0, 0); - codeobj_829d0a1ffa540ba75404cd988b32f0b5 = MAKE_CODEOBJECT(module_filename_obj, 205, CO_NOFREE, mod_consts[66], mod_consts[185], NULL, 0, 0, 0); - codeobj_102f6d9c8caf3c07fcacb9b74c819b61 = MAKE_CODEOBJECT(module_filename_obj, 62, CO_NOFREE, mod_consts[22], mod_consts[185], NULL, 0, 0, 0); - codeobj_b82f846403c5bbd1de1ab21ea54bad05 = MAKE_CODEOBJECT(module_filename_obj, 182, CO_NOFREE, mod_consts[59], mod_consts[185], NULL, 0, 0, 0); - codeobj_0812d28c0fd416b215956f202c82484e = MAKE_CODEOBJECT(module_filename_obj, 240, CO_NOFREE, mod_consts[115], mod_consts[185], NULL, 0, 0, 0); - codeobj_f19ed9ee26d93c2e82ea0c001dacbbbc = MAKE_CODEOBJECT(module_filename_obj, 84, CO_NOFREE, mod_consts[31], mod_consts[185], NULL, 0, 0, 0); - codeobj_653cd49c73152390d2f5ad682e34a196 = MAKE_CODEOBJECT(module_filename_obj, 39, CO_NOFREE, mod_consts[12], mod_consts[185], NULL, 0, 0, 0); - codeobj_619124ae3c7c6b52dec6da317ecfa60b = MAKE_CODEOBJECT(module_filename_obj, 171, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[186], NULL, 3, 0, 0); - codeobj_f0147916ca8a0f188f736d2445a24142 = MAKE_CODEOBJECT(module_filename_obj, 206, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[187], NULL, 3, 0, 0); - codeobj_45f52b2af41ae9eeda8b8dceada0ce54 = MAKE_CODEOBJECT(module_filename_obj, 186, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[188], NULL, 2, 0, 0); - codeobj_4eb47512d57f9eb20a1993d6d1c3fb78 = MAKE_CODEOBJECT(module_filename_obj, 44, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[189], NULL, 3, 0, 0); - codeobj_7fca07fbabf40b9aedb62b82b03ac314 = MAKE_CODEOBJECT(module_filename_obj, 67, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[190], NULL, 3, 0, 0); - codeobj_689fefa3b59b704f733760f36572546b = MAKE_CODEOBJECT(module_filename_obj, 137, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[13], mod_consts[191], mod_consts[185], 3, 0, 0); - codeobj_915a2da7d900624b990aa096cbb70b79 = MAKE_CODEOBJECT(module_filename_obj, 241, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[13], mod_consts[192], mod_consts[185], 4, 0, 0); - codeobj_967b9bb58a2e42c245494faa4e98659a = MAKE_CODEOBJECT(module_filename_obj, 89, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[13], mod_consts[193], NULL, 3, 0, 0); - codeobj_38eaebfe4d2be968a308d6c799019465 = MAKE_CODEOBJECT(module_filename_obj, 126, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[13], mod_consts[193], mod_consts[185], 3, 0, 0); - codeobj_c60e6b0b6cbf537f64facb5040a84769 = MAKE_CODEOBJECT(module_filename_obj, 195, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[194], NULL, 1, 0, 0); - codeobj_48d8d9a1daf8117bcef99d7047b108c4 = MAKE_CODEOBJECT(module_filename_obj, 313, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[99], mod_consts[195], NULL, 5, 0, 0); - codeobj_ad5336bf04811a8c76dcc0c2c51b6074 = MAKE_CODEOBJECT(module_filename_obj, 10, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[47], mod_consts[196], NULL, 4, 0, 0); - codeobj_f96de2d7cdf8118d4114f6e4b5a0cc47 = MAKE_CODEOBJECT(module_filename_obj, 105, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[43], mod_consts[197], NULL, 4, 0, 0); - codeobj_7138dc343b9d36f61ecf5068b1d4a9e2 = MAKE_CODEOBJECT(module_filename_obj, 129, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[43], mod_consts[197], NULL, 4, 0, 0); - codeobj_d8de5593120711397ebcd544a9a5beee = MAKE_CODEOBJECT(module_filename_obj, 141, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[43], mod_consts[198], NULL, 4, 0, 0); - codeobj_0201c31e1e7feff6304044e6d3951db4 = MAKE_CODEOBJECT(module_filename_obj, 260, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[2], mod_consts[199], NULL, 1, 0, 0); - codeobj_df030e46b619f2e1d7bbe1bf22d15c8c = MAKE_CODEOBJECT(module_filename_obj, 72, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[200], NULL, 3, 0, 0); - codeobj_3a3c4357c3d422694cae78ba51b909d4 = MAKE_CODEOBJECT(module_filename_obj, 178, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[200], NULL, 3, 0, 0); - codeobj_ce55a77527b8cae9d98b409844d8d681 = MAKE_CODEOBJECT(module_filename_obj, 247, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[82], mod_consts[201], mod_consts[185], 3, 0, 0); - codeobj_7e600e5abd5b883d8c3faab8d6f2a207 = MAKE_CODEOBJECT(module_filename_obj, 50, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[202], NULL, 3, 0, 0); - codeobj_599f9bc91cca49981a976e3e360b0b63 = MAKE_CODEOBJECT(module_filename_obj, 109, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[203], NULL, 3, 0, 0); - codeobj_d0a908219576feca58e31d68600ccb1c = MAKE_CODEOBJECT(module_filename_obj, 190, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[197], NULL, 3, 0, 0); - codeobj_ca8b7a4c8713e1d10286835f390e025f = MAKE_CODEOBJECT(module_filename_obj, 212, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[204], NULL, 4, 0, 0); - codeobj_4f67554983fc1bad95f8404ef1c044ec = MAKE_CODEOBJECT(module_filename_obj, 275, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[181], mod_consts[205], NULL, 1, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__10_dice(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__11___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__12_dice(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__13___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__14_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__15___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__16_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__17__class_weights(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__18___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__19_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__1_compute_per_channel_dice(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__20___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__21_forward(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__22_flatten(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__23_get_loss_criterion(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__24__create_loss(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__2___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__3_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__4___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__5_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__6___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__6___init__$$$function__1_lambda(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__7_dice(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__8_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__9___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -// The module function definitions. -static PyObject *impl_models$unet3d$losses$$$function__1_compute_per_channel_dice(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *par_target = python_pars[1]; - PyObject *par_epsilon = python_pars[2]; - PyObject *par_weight = python_pars[3]; - PyObject *var_intersect = NULL; - PyObject *var_denominator = NULL; - struct Nuitka_FrameObject *frame_ad5336bf04811a8c76dcc0c2c51b6074; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_ad5336bf04811a8c76dcc0c2c51b6074 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ad5336bf04811a8c76dcc0c2c51b6074)) { - Py_XDECREF(cache_frame_ad5336bf04811a8c76dcc0c2c51b6074); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ad5336bf04811a8c76dcc0c2c51b6074 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ad5336bf04811a8c76dcc0c2c51b6074 = MAKE_FUNCTION_FRAME(codeobj_ad5336bf04811a8c76dcc0c2c51b6074, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ad5336bf04811a8c76dcc0c2c51b6074->m_type_description == NULL); - frame_ad5336bf04811a8c76dcc0c2c51b6074 = cache_frame_ad5336bf04811a8c76dcc0c2c51b6074; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ad5336bf04811a8c76dcc0c2c51b6074); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ad5336bf04811a8c76dcc0c2c51b6074) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_input); - tmp_called_instance_1 = par_input; - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 23; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[0]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_called_instance_2 = par_target; - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 23; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[0]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 23; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[1]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 23; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 25; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_input; - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 25; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 26; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_target; - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 26; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_target); - tmp_called_instance_3 = par_target; - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 27; - tmp_assign_source_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[5]); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_input); - tmp_left_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_right_name_1 = par_target; - tmp_called_instance_4 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 30; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_intersect == NULL); - var_intersect = tmp_assign_source_4; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_weight); - tmp_compexpr_left_2 = par_weight; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(par_weight); - tmp_left_name_2 = par_weight; - CHECK_OBJECT(var_intersect); - tmp_right_name_2 = var_intersect; - tmp_assign_source_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_intersect; - var_intersect = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_3; - PyObject *tmp_called_instance_5; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_called_instance_6; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_4 = par_input; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_3 = par_input; - tmp_called_instance_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_3); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 35; - tmp_left_name_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - Py_DECREF(tmp_called_instance_5); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_5 = par_target; - if (par_target == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_5 = par_target; - tmp_called_instance_6 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 35; - tmp_right_name_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - Py_DECREF(tmp_called_instance_6); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_4); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_4); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_denominator == NULL); - var_denominator = tmp_assign_source_6; - } - { - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_left_name_6 = mod_consts[8]; - CHECK_OBJECT(var_intersect); - tmp_left_name_7 = var_intersect; - CHECK_OBJECT(var_denominator); - tmp_expression_name_1 = var_denominator; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[9]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[10]; - CHECK_OBJECT(par_epsilon); - tmp_dict_value_1 = par_epsilon; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame.f_lineno = 36; - tmp_right_name_7 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_right_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_6 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_right_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ad5336bf04811a8c76dcc0c2c51b6074); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ad5336bf04811a8c76dcc0c2c51b6074); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ad5336bf04811a8c76dcc0c2c51b6074); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ad5336bf04811a8c76dcc0c2c51b6074, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ad5336bf04811a8c76dcc0c2c51b6074->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ad5336bf04811a8c76dcc0c2c51b6074, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ad5336bf04811a8c76dcc0c2c51b6074, - type_description_1, - par_input, - par_target, - par_epsilon, - par_weight, - var_intersect, - var_denominator - ); - - - // Release cached frame if used for exception. - if (frame_ad5336bf04811a8c76dcc0c2c51b6074 == cache_frame_ad5336bf04811a8c76dcc0c2c51b6074) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ad5336bf04811a8c76dcc0c2c51b6074); - cache_frame_ad5336bf04811a8c76dcc0c2c51b6074 = NULL; - } - - assertFrameObject(frame_ad5336bf04811a8c76dcc0c2c51b6074); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(par_epsilon); - par_epsilon = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(var_intersect); - var_intersect = NULL; - Py_XDECREF(var_denominator); - var_denominator = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(par_epsilon); - par_epsilon = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(var_intersect); - var_intersect = NULL; - Py_XDECREF(var_denominator); - var_denominator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__2___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_loss = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - struct Nuitka_FrameObject *frame_4eb47512d57f9eb20a1993d6d1c3fb78; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78)) { - Py_XDECREF(cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78 = MAKE_FUNCTION_FRAME(codeobj_4eb47512d57f9eb20a1993d6d1c3fb78, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78->m_type_description == NULL); - frame_4eb47512d57f9eb20a1993d6d1c3fb78 = cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4eb47512d57f9eb20a1993d6d1c3fb78); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4eb47512d57f9eb20a1993d6d1c3fb78) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_4eb47512d57f9eb20a1993d6d1c3fb78->m_frame.f_lineno = 45; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[13]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_ignore_index); - tmp_compexpr_left_1 = par_ignore_index; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[14]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 46; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_loss); - tmp_assattr_name_1 = par_loss; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[15], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_2 = par_ignore_index; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[16], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4eb47512d57f9eb20a1993d6d1c3fb78); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4eb47512d57f9eb20a1993d6d1c3fb78); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4eb47512d57f9eb20a1993d6d1c3fb78, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4eb47512d57f9eb20a1993d6d1c3fb78->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4eb47512d57f9eb20a1993d6d1c3fb78, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4eb47512d57f9eb20a1993d6d1c3fb78, - type_description_1, - par_self, - par_loss, - par_ignore_index, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_4eb47512d57f9eb20a1993d6d1c3fb78 == cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78); - cache_frame_4eb47512d57f9eb20a1993d6d1c3fb78 = NULL; - } - - assertFrameObject(frame_4eb47512d57f9eb20a1993d6d1c3fb78); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_loss); - Py_DECREF(par_loss); - par_loss = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_loss); - Py_DECREF(par_loss); - par_loss = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__3_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_mask = NULL; - struct Nuitka_FrameObject *frame_7e600e5abd5b883d8c3faab8d6f2a207; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_7e600e5abd5b883d8c3faab8d6f2a207 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7e600e5abd5b883d8c3faab8d6f2a207)) { - Py_XDECREF(cache_frame_7e600e5abd5b883d8c3faab8d6f2a207); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7e600e5abd5b883d8c3faab8d6f2a207 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7e600e5abd5b883d8c3faab8d6f2a207 = MAKE_FUNCTION_FRAME(codeobj_7e600e5abd5b883d8c3faab8d6f2a207, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7e600e5abd5b883d8c3faab8d6f2a207->m_type_description == NULL); - frame_7e600e5abd5b883d8c3faab8d6f2a207 = cache_frame_7e600e5abd5b883d8c3faab8d6f2a207; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7e600e5abd5b883d8c3faab8d6f2a207); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7e600e5abd5b883d8c3faab8d6f2a207) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_7e600e5abd5b883d8c3faab8d6f2a207->m_frame.f_lineno = 51; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[17]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[18]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[16]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 51; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_7e600e5abd5b883d8c3faab8d6f2a207->m_frame.f_lineno = 51; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_mask == NULL); - var_mask = tmp_assign_source_1; - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = Py_False; - CHECK_OBJECT(var_mask); - tmp_assattr_target_1 = var_mask; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[19], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_input); - tmp_left_name_1 = par_input; - CHECK_OBJECT(var_mask); - tmp_right_name_1 = var_mask; - tmp_assign_source_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 56; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_2 = par_target; - if (var_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[20]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 56; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = var_mask; - tmp_assign_source_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 59; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_2 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_3 = par_target; - frame_7e600e5abd5b883d8c3faab8d6f2a207->m_frame.f_lineno = 59; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_return_value = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[15], - call_args - ); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e600e5abd5b883d8c3faab8d6f2a207); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e600e5abd5b883d8c3faab8d6f2a207); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e600e5abd5b883d8c3faab8d6f2a207); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7e600e5abd5b883d8c3faab8d6f2a207, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7e600e5abd5b883d8c3faab8d6f2a207->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7e600e5abd5b883d8c3faab8d6f2a207, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7e600e5abd5b883d8c3faab8d6f2a207, - type_description_1, - par_self, - par_input, - par_target, - var_mask - ); - - - // Release cached frame if used for exception. - if (frame_7e600e5abd5b883d8c3faab8d6f2a207 == cache_frame_7e600e5abd5b883d8c3faab8d6f2a207) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7e600e5abd5b883d8c3faab8d6f2a207); - cache_frame_7e600e5abd5b883d8c3faab8d6f2a207 = NULL; - } - - assertFrameObject(frame_7e600e5abd5b883d8c3faab8d6f2a207); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__4___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_loss = python_pars[1]; - PyObject *par_squeeze_channel = python_pars[2]; - struct Nuitka_FrameObject *frame_7fca07fbabf40b9aedb62b82b03ac314; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_7fca07fbabf40b9aedb62b82b03ac314 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7fca07fbabf40b9aedb62b82b03ac314)) { - Py_XDECREF(cache_frame_7fca07fbabf40b9aedb62b82b03ac314); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7fca07fbabf40b9aedb62b82b03ac314 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7fca07fbabf40b9aedb62b82b03ac314 = MAKE_FUNCTION_FRAME(codeobj_7fca07fbabf40b9aedb62b82b03ac314, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7fca07fbabf40b9aedb62b82b03ac314->m_type_description == NULL); - frame_7fca07fbabf40b9aedb62b82b03ac314 = cache_frame_7fca07fbabf40b9aedb62b82b03ac314; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7fca07fbabf40b9aedb62b82b03ac314); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7fca07fbabf40b9aedb62b82b03ac314) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[22]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_7fca07fbabf40b9aedb62b82b03ac314->m_frame.f_lineno = 68; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[13]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_loss); - tmp_assattr_name_1 = par_loss; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[15], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_squeeze_channel); - tmp_assattr_name_2 = par_squeeze_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[23], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7fca07fbabf40b9aedb62b82b03ac314); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7fca07fbabf40b9aedb62b82b03ac314); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7fca07fbabf40b9aedb62b82b03ac314, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7fca07fbabf40b9aedb62b82b03ac314->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7fca07fbabf40b9aedb62b82b03ac314, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7fca07fbabf40b9aedb62b82b03ac314, - type_description_1, - par_self, - par_loss, - par_squeeze_channel, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_7fca07fbabf40b9aedb62b82b03ac314 == cache_frame_7fca07fbabf40b9aedb62b82b03ac314) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7fca07fbabf40b9aedb62b82b03ac314); - cache_frame_7fca07fbabf40b9aedb62b82b03ac314 = NULL; - } - - assertFrameObject(frame_7fca07fbabf40b9aedb62b82b03ac314); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_loss); - Py_DECREF(par_loss); - par_loss = NULL; - CHECK_OBJECT(par_squeeze_channel); - Py_DECREF(par_squeeze_channel); - par_squeeze_channel = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_loss); - Py_DECREF(par_loss); - par_loss = NULL; - CHECK_OBJECT(par_squeeze_channel); - Py_DECREF(par_squeeze_channel); - par_squeeze_channel = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__5_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_df030e46b619f2e1d7bbe1bf22d15c8c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c)) { - Py_XDECREF(cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c = MAKE_FUNCTION_FRAME(codeobj_df030e46b619f2e1d7bbe1bf22d15c8c, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c->m_type_description == NULL); - frame_df030e46b619f2e1d7bbe1bf22d15c8c = cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df030e46b619f2e1d7bbe1bf22d15c8c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df030e46b619f2e1d7bbe1bf22d15c8c) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_df030e46b619f2e1d7bbe1bf22d15c8c->m_frame.f_lineno = 73; - tmp_compexpr_left_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[0], - &PyTuple_GET_ITEM(mod_consts[24], 0) - ); - - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[25]; - tmp_operand_name_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[26]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 73; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_target; - tmp_subscript_name_1 = mod_consts[27]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[23]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 78; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[29]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_tuple_element_1 = par_target; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[30]); - frame_df030e46b619f2e1d7bbe1bf22d15c8c->m_frame.f_lineno = 80; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_df030e46b619f2e1d7bbe1bf22d15c8c->m_frame.f_lineno = 81; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_return_value = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[15], - call_args - ); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df030e46b619f2e1d7bbe1bf22d15c8c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df030e46b619f2e1d7bbe1bf22d15c8c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df030e46b619f2e1d7bbe1bf22d15c8c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df030e46b619f2e1d7bbe1bf22d15c8c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df030e46b619f2e1d7bbe1bf22d15c8c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df030e46b619f2e1d7bbe1bf22d15c8c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df030e46b619f2e1d7bbe1bf22d15c8c, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_df030e46b619f2e1d7bbe1bf22d15c8c == cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c); - cache_frame_df030e46b619f2e1d7bbe1bf22d15c8c = NULL; - } - - assertFrameObject(frame_df030e46b619f2e1d7bbe1bf22d15c8c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__6___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_weight = python_pars[1]; - PyObject *par_normalization = python_pars[2]; - struct Nuitka_FrameObject *frame_967b9bb58a2e42c245494faa4e98659a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_967b9bb58a2e42c245494faa4e98659a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_967b9bb58a2e42c245494faa4e98659a)) { - Py_XDECREF(cache_frame_967b9bb58a2e42c245494faa4e98659a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_967b9bb58a2e42c245494faa4e98659a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_967b9bb58a2e42c245494faa4e98659a = MAKE_FUNCTION_FRAME(codeobj_967b9bb58a2e42c245494faa4e98659a, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_967b9bb58a2e42c245494faa4e98659a->m_type_description == NULL); - frame_967b9bb58a2e42c245494faa4e98659a = cache_frame_967b9bb58a2e42c245494faa4e98659a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_967b9bb58a2e42c245494faa4e98659a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_967b9bb58a2e42c245494faa4e98659a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[31]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[31]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_967b9bb58a2e42c245494faa4e98659a->m_frame.f_lineno = 90; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[13]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - tmp_args_element_name_1 = mod_consts[33]; - CHECK_OBJECT(par_weight); - tmp_args_element_name_2 = par_weight; - frame_967b9bb58a2e42c245494faa4e98659a->m_frame.f_lineno = 91; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[32], - call_args - ); - } - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_normalization); - tmp_compexpr_left_1 = par_normalization; - tmp_compexpr_right_1 = LIST_COPY(mod_consts[34]); - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 97; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_normalization); - tmp_compexpr_left_2 = par_normalization; - tmp_compexpr_right_2 = mod_consts[35]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 98; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_assattr_target_1; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_967b9bb58a2e42c245494faa4e98659a->m_frame.f_lineno = 99; - tmp_assattr_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[37]); - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[38], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_normalization); - tmp_compexpr_left_3 = par_normalization; - tmp_compexpr_right_3 = mod_consts[39]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 100; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[40]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[30]); - frame_967b9bb58a2e42c245494faa4e98659a->m_frame.f_lineno = 101; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 101; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[38], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - - - tmp_assattr_name_3 = MAKE_FUNCTION_models$unet3d$losses$$$function__6___init__$$$function__1_lambda(); - - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 103; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[38], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - branch_end_3:; - branch_end_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_967b9bb58a2e42c245494faa4e98659a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_967b9bb58a2e42c245494faa4e98659a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_967b9bb58a2e42c245494faa4e98659a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_967b9bb58a2e42c245494faa4e98659a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_967b9bb58a2e42c245494faa4e98659a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_967b9bb58a2e42c245494faa4e98659a, - type_description_1, - par_self, - par_weight, - par_normalization, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_967b9bb58a2e42c245494faa4e98659a == cache_frame_967b9bb58a2e42c245494faa4e98659a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_967b9bb58a2e42c245494faa4e98659a); - cache_frame_967b9bb58a2e42c245494faa4e98659a = NULL; - } - - assertFrameObject(frame_967b9bb58a2e42c245494faa4e98659a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - CHECK_OBJECT(par_normalization); - Py_DECREF(par_normalization); - par_normalization = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - CHECK_OBJECT(par_normalization); - Py_DECREF(par_normalization); - par_normalization = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__6___init__$$$function__1_lambda(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_x = python_pars[0]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__7_dice(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *par_weight = python_pars[3]; - struct Nuitka_FrameObject *frame_f96de2d7cdf8118d4114f6e4b5a0cc47; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47)) { - Py_XDECREF(cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47 = MAKE_FUNCTION_FRAME(codeobj_f96de2d7cdf8118d4114f6e4b5a0cc47, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47->m_type_description == NULL); - frame_f96de2d7cdf8118d4114f6e4b5a0cc47 = cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f96de2d7cdf8118d4114f6e4b5a0cc47); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f96de2d7cdf8118d4114f6e4b5a0cc47) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 107; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f96de2d7cdf8118d4114f6e4b5a0cc47); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f96de2d7cdf8118d4114f6e4b5a0cc47); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f96de2d7cdf8118d4114f6e4b5a0cc47, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f96de2d7cdf8118d4114f6e4b5a0cc47->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f96de2d7cdf8118d4114f6e4b5a0cc47, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f96de2d7cdf8118d4114f6e4b5a0cc47, - type_description_1, - par_self, - par_input, - par_target, - par_weight - ); - - - // Release cached frame if used for exception. - if (frame_f96de2d7cdf8118d4114f6e4b5a0cc47 == cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47); - cache_frame_f96de2d7cdf8118d4114f6e4b5a0cc47 = NULL; - } - - assertFrameObject(frame_f96de2d7cdf8118d4114f6e4b5a0cc47); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_weight); - Py_DECREF(par_weight); - par_weight = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$unet3d$losses$$$function__8_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_per_channel_dice = NULL; - struct Nuitka_FrameObject *frame_599f9bc91cca49981a976e3e360b0b63; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_599f9bc91cca49981a976e3e360b0b63 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_599f9bc91cca49981a976e3e360b0b63)) { - Py_XDECREF(cache_frame_599f9bc91cca49981a976e3e360b0b63); - -#if _DEBUG_REFCOUNTS - if (cache_frame_599f9bc91cca49981a976e3e360b0b63 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_599f9bc91cca49981a976e3e360b0b63 = MAKE_FUNCTION_FRAME(codeobj_599f9bc91cca49981a976e3e360b0b63, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_599f9bc91cca49981a976e3e360b0b63->m_type_description == NULL); - frame_599f9bc91cca49981a976e3e360b0b63 = cache_frame_599f9bc91cca49981a976e3e360b0b63; - - // Push the new frame as the currently active one. - pushFrameStack(frame_599f9bc91cca49981a976e3e360b0b63); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_599f9bc91cca49981a976e3e360b0b63) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_599f9bc91cca49981a976e3e360b0b63->m_frame.f_lineno = 111; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[38], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[43]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_target); - tmp_tuple_element_1 = par_target; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[33]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 114; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[33]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 114; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_599f9bc91cca49981a976e3e360b0b63->m_frame.f_lineno = 114; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_per_channel_dice == NULL); - var_per_channel_dice = tmp_assign_source_2; - } - { - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - tmp_left_name_1 = mod_consts[44]; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_per_channel_dice); - tmp_args_element_name_2 = var_per_channel_dice; - frame_599f9bc91cca49981a976e3e360b0b63->m_frame.f_lineno = 117; - tmp_right_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[45], tmp_args_element_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_SUB_OBJECT_FLOAT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_599f9bc91cca49981a976e3e360b0b63); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_599f9bc91cca49981a976e3e360b0b63); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_599f9bc91cca49981a976e3e360b0b63); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_599f9bc91cca49981a976e3e360b0b63, exception_lineno); - } else if (exception_tb->tb_frame != &frame_599f9bc91cca49981a976e3e360b0b63->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_599f9bc91cca49981a976e3e360b0b63, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_599f9bc91cca49981a976e3e360b0b63, - type_description_1, - par_self, - par_input, - par_target, - var_per_channel_dice - ); - - - // Release cached frame if used for exception. - if (frame_599f9bc91cca49981a976e3e360b0b63 == cache_frame_599f9bc91cca49981a976e3e360b0b63) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_599f9bc91cca49981a976e3e360b0b63); - cache_frame_599f9bc91cca49981a976e3e360b0b63 = NULL; - } - - assertFrameObject(frame_599f9bc91cca49981a976e3e360b0b63); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_per_channel_dice); - var_per_channel_dice = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_per_channel_dice); - var_per_channel_dice = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_weight = python_pars[1]; - PyObject *par_normalization = python_pars[2]; - struct Nuitka_FrameObject *frame_38eaebfe4d2be968a308d6c799019465; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_38eaebfe4d2be968a308d6c799019465 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_38eaebfe4d2be968a308d6c799019465)) { - Py_XDECREF(cache_frame_38eaebfe4d2be968a308d6c799019465); - -#if _DEBUG_REFCOUNTS - if (cache_frame_38eaebfe4d2be968a308d6c799019465 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_38eaebfe4d2be968a308d6c799019465 = MAKE_FUNCTION_FRAME(codeobj_38eaebfe4d2be968a308d6c799019465, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_38eaebfe4d2be968a308d6c799019465->m_type_description == NULL); - frame_38eaebfe4d2be968a308d6c799019465 = cache_frame_38eaebfe4d2be968a308d6c799019465; - - // Push the new frame as the currently active one. - pushFrameStack(frame_38eaebfe4d2be968a308d6c799019465); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_38eaebfe4d2be968a308d6c799019465) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_weight); - tmp_args_element_name_1 = par_weight; - CHECK_OBJECT(par_normalization); - tmp_args_element_name_2 = par_normalization; - frame_38eaebfe4d2be968a308d6c799019465->m_frame.f_lineno = 127; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[13], - call_args - ); - } - - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 127; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_38eaebfe4d2be968a308d6c799019465); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_38eaebfe4d2be968a308d6c799019465); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_38eaebfe4d2be968a308d6c799019465, exception_lineno); - } else if (exception_tb->tb_frame != &frame_38eaebfe4d2be968a308d6c799019465->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_38eaebfe4d2be968a308d6c799019465, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_38eaebfe4d2be968a308d6c799019465, - type_description_1, - par_self, - par_weight, - par_normalization, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_38eaebfe4d2be968a308d6c799019465 == cache_frame_38eaebfe4d2be968a308d6c799019465) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_38eaebfe4d2be968a308d6c799019465); - cache_frame_38eaebfe4d2be968a308d6c799019465 = NULL; - } - - assertFrameObject(frame_38eaebfe4d2be968a308d6c799019465); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(par_normalization); - par_normalization = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(par_normalization); - par_normalization = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__10_dice(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *par_weight = python_pars[3]; - struct Nuitka_FrameObject *frame_7138dc343b9d36f61ecf5068b1d4a9e2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2)) { - Py_XDECREF(cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2 = MAKE_FUNCTION_FRAME(codeobj_7138dc343b9d36f61ecf5068b1d4a9e2, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2->m_type_description == NULL); - frame_7138dc343b9d36f61ecf5068b1d4a9e2 = cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7138dc343b9d36f61ecf5068b1d4a9e2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7138dc343b9d36f61ecf5068b1d4a9e2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_target); - tmp_tuple_element_1 = par_target; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[33]; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[33]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 130; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_7138dc343b9d36f61ecf5068b1d4a9e2->m_frame.f_lineno = 130; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7138dc343b9d36f61ecf5068b1d4a9e2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7138dc343b9d36f61ecf5068b1d4a9e2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7138dc343b9d36f61ecf5068b1d4a9e2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7138dc343b9d36f61ecf5068b1d4a9e2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7138dc343b9d36f61ecf5068b1d4a9e2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7138dc343b9d36f61ecf5068b1d4a9e2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7138dc343b9d36f61ecf5068b1d4a9e2, - type_description_1, - par_self, - par_input, - par_target, - par_weight - ); - - - // Release cached frame if used for exception. - if (frame_7138dc343b9d36f61ecf5068b1d4a9e2 == cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2); - cache_frame_7138dc343b9d36f61ecf5068b1d4a9e2 = NULL; - } - - assertFrameObject(frame_7138dc343b9d36f61ecf5068b1d4a9e2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_weight); - Py_DECREF(par_weight); - par_weight = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_weight); - Py_DECREF(par_weight); - par_weight = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__11___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_normalization = python_pars[1]; - PyObject *par_epsilon = python_pars[2]; - struct Nuitka_FrameObject *frame_689fefa3b59b704f733760f36572546b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_689fefa3b59b704f733760f36572546b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_689fefa3b59b704f733760f36572546b)) { - Py_XDECREF(cache_frame_689fefa3b59b704f733760f36572546b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_689fefa3b59b704f733760f36572546b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_689fefa3b59b704f733760f36572546b = MAKE_FUNCTION_FRAME(codeobj_689fefa3b59b704f733760f36572546b, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_689fefa3b59b704f733760f36572546b->m_type_description == NULL); - frame_689fefa3b59b704f733760f36572546b = cache_frame_689fefa3b59b704f733760f36572546b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_689fefa3b59b704f733760f36572546b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_689fefa3b59b704f733760f36572546b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 138; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[13]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[33]; - tmp_dict_value_1 = Py_None; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[38]; - CHECK_OBJECT(par_normalization); - tmp_dict_value_1 = par_normalization; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_689fefa3b59b704f733760f36572546b->m_frame.f_lineno = 138; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_epsilon); - tmp_assattr_name_1 = par_epsilon; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[48], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_689fefa3b59b704f733760f36572546b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_689fefa3b59b704f733760f36572546b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_689fefa3b59b704f733760f36572546b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_689fefa3b59b704f733760f36572546b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_689fefa3b59b704f733760f36572546b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_689fefa3b59b704f733760f36572546b, - type_description_1, - par_self, - par_normalization, - par_epsilon, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_689fefa3b59b704f733760f36572546b == cache_frame_689fefa3b59b704f733760f36572546b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_689fefa3b59b704f733760f36572546b); - cache_frame_689fefa3b59b704f733760f36572546b = NULL; - } - - assertFrameObject(frame_689fefa3b59b704f733760f36572546b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_normalization); - par_normalization = NULL; - CHECK_OBJECT(par_epsilon); - Py_DECREF(par_epsilon); - par_epsilon = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_normalization); - par_normalization = NULL; - CHECK_OBJECT(par_epsilon); - Py_DECREF(par_epsilon); - par_epsilon = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__12_dice(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *par_weight = python_pars[3]; - PyObject *var_w_l = NULL; - PyObject *var_intersect = NULL; - PyObject *var_denominator = NULL; - struct Nuitka_FrameObject *frame_d8de5593120711397ebcd544a9a5beee; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_d8de5593120711397ebcd544a9a5beee = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d8de5593120711397ebcd544a9a5beee)) { - Py_XDECREF(cache_frame_d8de5593120711397ebcd544a9a5beee); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d8de5593120711397ebcd544a9a5beee == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d8de5593120711397ebcd544a9a5beee = MAKE_FUNCTION_FRAME(codeobj_d8de5593120711397ebcd544a9a5beee, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d8de5593120711397ebcd544a9a5beee->m_type_description == NULL); - frame_d8de5593120711397ebcd544a9a5beee = cache_frame_d8de5593120711397ebcd544a9a5beee; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d8de5593120711397ebcd544a9a5beee); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d8de5593120711397ebcd544a9a5beee) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_input); - tmp_called_instance_1 = par_input; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 142; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[0]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_called_instance_2 = par_target; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 142; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[0]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 142; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[1]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 142; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 144; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_input; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 144; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_target; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 145; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_target); - tmp_called_instance_3 = par_target; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 146; - tmp_assign_source_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[5]); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 146; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_instance_4; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_input); - tmp_called_instance_4 = par_input; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 148; - tmp_compexpr_left_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_4, - mod_consts[0], - &PyTuple_GET_ITEM(mod_consts[49], 0) - ); - - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[25]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 148; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[50]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 151; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_input; - tmp_tuple_element_1 = PyTuple_New(2); - { - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - tmp_left_name_1 = mod_consts[25]; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 151; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - - tmp_right_name_1 = par_input; - tmp_tuple_element_2 = BINARY_OPERATION_SUB_OBJECT_LONG_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_tuple_element_1, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_tuple_element_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[51]); - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 151; - tmp_assign_source_4 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[50]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_tuple_element_4 = par_target; - tmp_tuple_element_3 = PyTuple_New(2); - { - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM0(tmp_tuple_element_3, 0, tmp_tuple_element_4); - tmp_left_name_2 = mod_consts[25]; - CHECK_OBJECT(par_target); - tmp_right_name_2 = par_target; - tmp_tuple_element_4 = BINARY_OPERATION_SUB_OBJECT_LONG_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_tuple_element_3, 1, tmp_tuple_element_4); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_tuple_element_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_3); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[51]); - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 152; - tmp_assign_source_5 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_5; - CHECK_OBJECT(par_target); - tmp_called_instance_5 = par_target; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 155; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_w_l == NULL); - var_w_l = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_4; - tmp_left_name_3 = mod_consts[25]; - CHECK_OBJECT(var_w_l); - tmp_left_name_4 = var_w_l; - CHECK_OBJECT(var_w_l); - tmp_right_name_4 = var_w_l; - tmp_expression_name_3 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[9]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[10]; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[48]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 156; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 156; - tmp_right_name_3 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_7 = BINARY_OPERATION_TRUEDIV_OBJECT_LONG_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_w_l; - var_w_l = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = Py_False; - CHECK_OBJECT(var_w_l); - tmp_assattr_target_1 = var_w_l; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[19], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_instance_6; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 159; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_5 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 159; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_5 = par_target; - tmp_called_instance_6 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_5, tmp_right_name_5); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 159; - tmp_assign_source_8 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - Py_DECREF(tmp_called_instance_6); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_intersect == NULL); - var_intersect = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - CHECK_OBJECT(var_intersect); - tmp_left_name_6 = var_intersect; - CHECK_OBJECT(var_w_l); - tmp_right_name_6 = var_w_l; - tmp_assign_source_9 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_intersect; - var_intersect = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_7 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_7 = par_target; - tmp_called_instance_7 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_7, tmp_right_name_7); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 162; - tmp_assign_source_10 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_7, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - Py_DECREF(tmp_called_instance_7); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_denominator == NULL); - var_denominator = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_5; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(var_denominator); - tmp_left_name_8 = var_denominator; - if (var_w_l == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[52]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_8 = var_w_l; - tmp_expression_name_5 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_8, tmp_right_name_8); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[9]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[10]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[48]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 163; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_4 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 163; - tmp_assign_source_11 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_denominator; - var_denominator = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_left_name_10; - PyObject *tmp_called_instance_8; - PyObject *tmp_right_name_10; - PyObject *tmp_called_instance_9; - tmp_left_name_9 = mod_consts[8]; - CHECK_OBJECT(var_intersect); - tmp_called_instance_8 = var_intersect; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 165; - tmp_left_name_10 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[6]); - if (tmp_left_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_denominator); - tmp_called_instance_9 = var_denominator; - frame_d8de5593120711397ebcd544a9a5beee->m_frame.f_lineno = 165; - tmp_right_name_10 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[6]); - if (tmp_right_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_10); - - exception_lineno = 165; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_9 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_left_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_right_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_right_name_9); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8de5593120711397ebcd544a9a5beee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8de5593120711397ebcd544a9a5beee); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d8de5593120711397ebcd544a9a5beee); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d8de5593120711397ebcd544a9a5beee, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d8de5593120711397ebcd544a9a5beee->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d8de5593120711397ebcd544a9a5beee, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d8de5593120711397ebcd544a9a5beee, - type_description_1, - par_self, - par_input, - par_target, - par_weight, - var_w_l, - var_intersect, - var_denominator - ); - - - // Release cached frame if used for exception. - if (frame_d8de5593120711397ebcd544a9a5beee == cache_frame_d8de5593120711397ebcd544a9a5beee) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d8de5593120711397ebcd544a9a5beee); - cache_frame_d8de5593120711397ebcd544a9a5beee = NULL; - } - - assertFrameObject(frame_d8de5593120711397ebcd544a9a5beee); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_weight); - Py_DECREF(par_weight); - par_weight = NULL; - Py_XDECREF(var_w_l); - var_w_l = NULL; - Py_XDECREF(var_intersect); - var_intersect = NULL; - Py_XDECREF(var_denominator); - var_denominator = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_weight); - Py_DECREF(par_weight); - par_weight = NULL; - Py_XDECREF(var_w_l); - var_w_l = NULL; - Py_XDECREF(var_intersect); - var_intersect = NULL; - Py_XDECREF(var_denominator); - var_denominator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__13___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_alpha = python_pars[1]; - PyObject *par_beta = python_pars[2]; - struct Nuitka_FrameObject *frame_619124ae3c7c6b52dec6da317ecfa60b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_619124ae3c7c6b52dec6da317ecfa60b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_619124ae3c7c6b52dec6da317ecfa60b)) { - Py_XDECREF(cache_frame_619124ae3c7c6b52dec6da317ecfa60b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_619124ae3c7c6b52dec6da317ecfa60b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_619124ae3c7c6b52dec6da317ecfa60b = MAKE_FUNCTION_FRAME(codeobj_619124ae3c7c6b52dec6da317ecfa60b, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_619124ae3c7c6b52dec6da317ecfa60b->m_type_description == NULL); - frame_619124ae3c7c6b52dec6da317ecfa60b = cache_frame_619124ae3c7c6b52dec6da317ecfa60b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_619124ae3c7c6b52dec6da317ecfa60b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_619124ae3c7c6b52dec6da317ecfa60b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_619124ae3c7c6b52dec6da317ecfa60b->m_frame.f_lineno = 172; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[13]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_alpha); - tmp_assattr_name_1 = par_alpha; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[54], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_619124ae3c7c6b52dec6da317ecfa60b->m_frame.f_lineno = 174; - tmp_assattr_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[55]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[56], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_beta); - tmp_assattr_name_3 = par_beta; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[57], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 175; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[58]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[58]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_619124ae3c7c6b52dec6da317ecfa60b->m_frame.f_lineno = 176; - tmp_assattr_name_4 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[43], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_619124ae3c7c6b52dec6da317ecfa60b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_619124ae3c7c6b52dec6da317ecfa60b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_619124ae3c7c6b52dec6da317ecfa60b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_619124ae3c7c6b52dec6da317ecfa60b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_619124ae3c7c6b52dec6da317ecfa60b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_619124ae3c7c6b52dec6da317ecfa60b, - type_description_1, - par_self, - par_alpha, - par_beta, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_619124ae3c7c6b52dec6da317ecfa60b == cache_frame_619124ae3c7c6b52dec6da317ecfa60b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_619124ae3c7c6b52dec6da317ecfa60b); - cache_frame_619124ae3c7c6b52dec6da317ecfa60b = NULL; - } - - assertFrameObject(frame_619124ae3c7c6b52dec6da317ecfa60b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_alpha); - Py_DECREF(par_alpha); - par_alpha = NULL; - CHECK_OBJECT(par_beta); - Py_DECREF(par_beta); - par_beta = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_alpha); - Py_DECREF(par_alpha); - par_alpha = NULL; - CHECK_OBJECT(par_beta); - Py_DECREF(par_beta); - par_beta = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__14_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_3a3c4357c3d422694cae78ba51b909d4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_3a3c4357c3d422694cae78ba51b909d4 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3a3c4357c3d422694cae78ba51b909d4)) { - Py_XDECREF(cache_frame_3a3c4357c3d422694cae78ba51b909d4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3a3c4357c3d422694cae78ba51b909d4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3a3c4357c3d422694cae78ba51b909d4 = MAKE_FUNCTION_FRAME(codeobj_3a3c4357c3d422694cae78ba51b909d4, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3a3c4357c3d422694cae78ba51b909d4->m_type_description == NULL); - frame_3a3c4357c3d422694cae78ba51b909d4 = cache_frame_3a3c4357c3d422694cae78ba51b909d4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3a3c4357c3d422694cae78ba51b909d4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3a3c4357c3d422694cae78ba51b909d4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_2; - PyObject *tmp_right_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[54]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_3a3c4357c3d422694cae78ba51b909d4->m_frame.f_lineno = 179; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_right_name_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[56], - call_args - ); - } - - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[57]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[43]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_input; - if (par_target == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_target; - frame_3a3c4357c3d422694cae78ba51b909d4->m_frame.f_lineno = 179; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_right_name_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3a3c4357c3d422694cae78ba51b909d4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3a3c4357c3d422694cae78ba51b909d4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3a3c4357c3d422694cae78ba51b909d4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3a3c4357c3d422694cae78ba51b909d4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3a3c4357c3d422694cae78ba51b909d4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3a3c4357c3d422694cae78ba51b909d4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3a3c4357c3d422694cae78ba51b909d4, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_3a3c4357c3d422694cae78ba51b909d4 == cache_frame_3a3c4357c3d422694cae78ba51b909d4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3a3c4357c3d422694cae78ba51b909d4); - cache_frame_3a3c4357c3d422694cae78ba51b909d4 = NULL; - } - - assertFrameObject(frame_3a3c4357c3d422694cae78ba51b909d4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__15___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_ignore_index = python_pars[1]; - struct Nuitka_FrameObject *frame_45f52b2af41ae9eeda8b8dceada0ce54; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_45f52b2af41ae9eeda8b8dceada0ce54 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_45f52b2af41ae9eeda8b8dceada0ce54)) { - Py_XDECREF(cache_frame_45f52b2af41ae9eeda8b8dceada0ce54); - -#if _DEBUG_REFCOUNTS - if (cache_frame_45f52b2af41ae9eeda8b8dceada0ce54 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_45f52b2af41ae9eeda8b8dceada0ce54 = MAKE_FUNCTION_FRAME(codeobj_45f52b2af41ae9eeda8b8dceada0ce54, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_45f52b2af41ae9eeda8b8dceada0ce54->m_type_description == NULL); - frame_45f52b2af41ae9eeda8b8dceada0ce54 = cache_frame_45f52b2af41ae9eeda8b8dceada0ce54; - - // Push the new frame as the currently active one. - pushFrameStack(frame_45f52b2af41ae9eeda8b8dceada0ce54); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_45f52b2af41ae9eeda8b8dceada0ce54) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[59]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[59]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - frame_45f52b2af41ae9eeda8b8dceada0ce54->m_frame.f_lineno = 187; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[13]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_1 = par_ignore_index; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[16], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_45f52b2af41ae9eeda8b8dceada0ce54); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_45f52b2af41ae9eeda8b8dceada0ce54); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_45f52b2af41ae9eeda8b8dceada0ce54, exception_lineno); - } else if (exception_tb->tb_frame != &frame_45f52b2af41ae9eeda8b8dceada0ce54->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_45f52b2af41ae9eeda8b8dceada0ce54, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_45f52b2af41ae9eeda8b8dceada0ce54, - type_description_1, - par_self, - par_ignore_index, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_45f52b2af41ae9eeda8b8dceada0ce54 == cache_frame_45f52b2af41ae9eeda8b8dceada0ce54) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_45f52b2af41ae9eeda8b8dceada0ce54); - cache_frame_45f52b2af41ae9eeda8b8dceada0ce54 = NULL; - } - - assertFrameObject(frame_45f52b2af41ae9eeda8b8dceada0ce54); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__16_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_weight = NULL; - struct Nuitka_FrameObject *frame_d0a908219576feca58e31d68600ccb1c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_d0a908219576feca58e31d68600ccb1c = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d0a908219576feca58e31d68600ccb1c)) { - Py_XDECREF(cache_frame_d0a908219576feca58e31d68600ccb1c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d0a908219576feca58e31d68600ccb1c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d0a908219576feca58e31d68600ccb1c = MAKE_FUNCTION_FRAME(codeobj_d0a908219576feca58e31d68600ccb1c, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d0a908219576feca58e31d68600ccb1c->m_type_description == NULL); - frame_d0a908219576feca58e31d68600ccb1c = cache_frame_d0a908219576feca58e31d68600ccb1c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d0a908219576feca58e31d68600ccb1c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d0a908219576feca58e31d68600ccb1c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_d0a908219576feca58e31d68600ccb1c->m_frame.f_lineno = 191; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[60], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_weight == NULL); - var_weight = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[61]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[61]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[62]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_target); - tmp_tuple_element_1 = par_target; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[33]; - CHECK_OBJECT(var_weight); - tmp_dict_value_1 = var_weight; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_2; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[16]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[16]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_d0a908219576feca58e31d68600ccb1c->m_frame.f_lineno = 192; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d0a908219576feca58e31d68600ccb1c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d0a908219576feca58e31d68600ccb1c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d0a908219576feca58e31d68600ccb1c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d0a908219576feca58e31d68600ccb1c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d0a908219576feca58e31d68600ccb1c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d0a908219576feca58e31d68600ccb1c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d0a908219576feca58e31d68600ccb1c, - type_description_1, - par_self, - par_input, - par_target, - var_weight - ); - - - // Release cached frame if used for exception. - if (frame_d0a908219576feca58e31d68600ccb1c == cache_frame_d0a908219576feca58e31d68600ccb1c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d0a908219576feca58e31d68600ccb1c); - cache_frame_d0a908219576feca58e31d68600ccb1c = NULL; - } - - assertFrameObject(frame_d0a908219576feca58e31d68600ccb1c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__17__class_weights(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *var_flattened = NULL; - PyObject *var_nominator = NULL; - PyObject *var_denominator = NULL; - PyObject *var_class_weights = NULL; - struct Nuitka_FrameObject *frame_c60e6b0b6cbf537f64facb5040a84769; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_c60e6b0b6cbf537f64facb5040a84769 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c60e6b0b6cbf537f64facb5040a84769)) { - Py_XDECREF(cache_frame_c60e6b0b6cbf537f64facb5040a84769); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c60e6b0b6cbf537f64facb5040a84769 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c60e6b0b6cbf537f64facb5040a84769 = MAKE_FUNCTION_FRAME(codeobj_c60e6b0b6cbf537f64facb5040a84769, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c60e6b0b6cbf537f64facb5040a84769->m_type_description == NULL); - frame_c60e6b0b6cbf537f64facb5040a84769 = cache_frame_c60e6b0b6cbf537f64facb5040a84769; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c60e6b0b6cbf537f64facb5040a84769); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c60e6b0b6cbf537f64facb5040a84769) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[61]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[61]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[39]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[30]); - frame_c60e6b0b6cbf537f64facb5040a84769->m_frame.f_lineno = 197; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_c60e6b0b6cbf537f64facb5040a84769->m_frame.f_lineno = 198; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_flattened == NULL); - var_flattened = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_left_name_1 = mod_consts[44]; - CHECK_OBJECT(var_flattened); - tmp_right_name_1 = var_flattened; - tmp_called_instance_1 = BINARY_OPERATION_SUB_OBJECT_FLOAT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_c60e6b0b6cbf537f64facb5040a84769->m_frame.f_lineno = 199; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_nominator == NULL); - var_nominator = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_2; - if (var_flattened == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 200; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = var_flattened; - frame_c60e6b0b6cbf537f64facb5040a84769->m_frame.f_lineno = 200; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[6], - &PyTuple_GET_ITEM(mod_consts[7], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_denominator == NULL); - var_denominator = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_kwargs_name_2; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[64]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[64]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_nominator); - tmp_left_name_2 = var_nominator; - CHECK_OBJECT(var_denominator); - tmp_right_name_2 = var_denominator; - tmp_tuple_element_2 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[65]); - frame_c60e6b0b6cbf537f64facb5040a84769->m_frame.f_lineno = 201; - tmp_assign_source_5 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_class_weights == NULL); - var_class_weights = tmp_assign_source_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c60e6b0b6cbf537f64facb5040a84769); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c60e6b0b6cbf537f64facb5040a84769); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c60e6b0b6cbf537f64facb5040a84769, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c60e6b0b6cbf537f64facb5040a84769->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c60e6b0b6cbf537f64facb5040a84769, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c60e6b0b6cbf537f64facb5040a84769, - type_description_1, - par_input, - var_flattened, - var_nominator, - var_denominator, - var_class_weights - ); - - - // Release cached frame if used for exception. - if (frame_c60e6b0b6cbf537f64facb5040a84769 == cache_frame_c60e6b0b6cbf537f64facb5040a84769) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c60e6b0b6cbf537f64facb5040a84769); - cache_frame_c60e6b0b6cbf537f64facb5040a84769 = NULL; - } - - assertFrameObject(frame_c60e6b0b6cbf537f64facb5040a84769); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_class_weights); - tmp_return_value = var_class_weights; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - Py_XDECREF(var_flattened); - var_flattened = NULL; - Py_XDECREF(var_nominator); - var_nominator = NULL; - Py_XDECREF(var_denominator); - var_denominator = NULL; - CHECK_OBJECT(var_class_weights); - Py_DECREF(var_class_weights); - var_class_weights = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_flattened); - var_flattened = NULL; - Py_XDECREF(var_nominator); - var_nominator = NULL; - Py_XDECREF(var_denominator); - var_denominator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__18___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_class_weights = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - struct Nuitka_FrameObject *frame_f0147916ca8a0f188f736d2445a24142; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_f0147916ca8a0f188f736d2445a24142 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f0147916ca8a0f188f736d2445a24142)) { - Py_XDECREF(cache_frame_f0147916ca8a0f188f736d2445a24142); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f0147916ca8a0f188f736d2445a24142 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f0147916ca8a0f188f736d2445a24142 = MAKE_FUNCTION_FRAME(codeobj_f0147916ca8a0f188f736d2445a24142, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f0147916ca8a0f188f736d2445a24142->m_type_description == NULL); - frame_f0147916ca8a0f188f736d2445a24142 = cache_frame_f0147916ca8a0f188f736d2445a24142; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f0147916ca8a0f188f736d2445a24142); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f0147916ca8a0f188f736d2445a24142) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[66]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[66]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_f0147916ca8a0f188f736d2445a24142->m_frame.f_lineno = 207; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[13]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_self); - tmp_called_instance_2 = par_self; - tmp_args_element_name_1 = mod_consts[67]; - CHECK_OBJECT(par_class_weights); - tmp_args_element_name_2 = par_class_weights; - frame_f0147916ca8a0f188f736d2445a24142->m_frame.f_lineno = 208; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[32], - call_args - ); - } - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_1 = par_ignore_index; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[16], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[68]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[30]); - frame_f0147916ca8a0f188f736d2445a24142->m_frame.f_lineno = 210; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[69], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f0147916ca8a0f188f736d2445a24142); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f0147916ca8a0f188f736d2445a24142); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f0147916ca8a0f188f736d2445a24142, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f0147916ca8a0f188f736d2445a24142->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f0147916ca8a0f188f736d2445a24142, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f0147916ca8a0f188f736d2445a24142, - type_description_1, - par_self, - par_class_weights, - par_ignore_index, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_f0147916ca8a0f188f736d2445a24142 == cache_frame_f0147916ca8a0f188f736d2445a24142) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f0147916ca8a0f188f736d2445a24142); - cache_frame_f0147916ca8a0f188f736d2445a24142 = NULL; - } - - assertFrameObject(frame_f0147916ca8a0f188f736d2445a24142); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_class_weights); - par_class_weights = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_class_weights); - par_class_weights = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__19_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *par_weights = python_pars[3]; - PyObject *var_log_probabilities = NULL; - PyObject *var_class_weights = NULL; - PyObject *var_result = NULL; - struct Nuitka_FrameObject *frame_ca8b7a4c8713e1d10286835f390e025f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_ca8b7a4c8713e1d10286835f390e025f = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ca8b7a4c8713e1d10286835f390e025f)) { - Py_XDECREF(cache_frame_ca8b7a4c8713e1d10286835f390e025f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ca8b7a4c8713e1d10286835f390e025f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ca8b7a4c8713e1d10286835f390e025f = MAKE_FUNCTION_FRAME(codeobj_ca8b7a4c8713e1d10286835f390e025f, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ca8b7a4c8713e1d10286835f390e025f->m_type_description == NULL); - frame_ca8b7a4c8713e1d10286835f390e025f = cache_frame_ca8b7a4c8713e1d10286835f390e025f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ca8b7a4c8713e1d10286835f390e025f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ca8b7a4c8713e1d10286835f390e025f) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 213; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[0]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_weights); - tmp_called_instance_2 = par_weights; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 213; - tmp_compexpr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[0]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 213; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 213; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_called_instance_3 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 215; - tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[69], tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_log_probabilities == NULL); - var_log_probabilities = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_4; - PyObject *tmp_subscript_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[70]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[70]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_target; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[71]; - if (par_input == NULL) { - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_input; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 217; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[0]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[25]; - tmp_dict_value_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 1); - Py_DECREF(tmp_expression_name_1); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_2; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[16]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[16]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 217; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_5; - if (par_weights == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 219; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_weights; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 219; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_5, - mod_consts[73], - &PyTuple_GET_ITEM(mod_consts[24], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_weights; - par_weights = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_weights); - tmp_expression_name_3 = par_weights; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[74]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_input; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 220; - tmp_assign_source_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_weights; - par_weights = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 223; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[67]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - Py_DECREF(tmp_compexpr_left_2); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_called_instance_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_called_instance_8; - PyObject *tmp_subscript_name_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[75]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[3]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_8 = par_input; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 224; - tmp_expression_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[0]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[25]; - tmp_args_element_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_2, 1); - Py_DECREF(tmp_expression_name_6); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 224; - tmp_called_instance_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 224; - tmp_called_instance_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[5]); - Py_DECREF(tmp_called_instance_7); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 224; - tmp_assign_source_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[76]); - Py_DECREF(tmp_called_instance_6); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_class_weights == NULL); - var_class_weights = tmp_assign_source_5; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_expression_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_assign_source_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[67]); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_class_weights == NULL); - var_class_weights = tmp_assign_source_6; - } - branch_end_2:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_9; - CHECK_OBJECT(var_class_weights); - tmp_called_instance_9 = var_class_weights; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 229; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS5( - tmp_called_instance_9, - mod_consts[77], - &PyTuple_GET_ITEM(mod_consts[78], 0) - ); - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_class_weights; - var_class_weights = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_class_weights); - tmp_left_name_1 = var_class_weights; - CHECK_OBJECT(par_weights); - tmp_right_name_1 = par_weights; - tmp_assign_source_8 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_weights; - par_weights = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_operand_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - CHECK_OBJECT(par_weights); - tmp_operand_name_2 = par_weights; - tmp_left_name_3 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_2); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_right_name_2 = par_target; - tmp_left_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_2); - Py_DECREF(tmp_left_name_3); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_log_probabilities); - tmp_right_name_3 = var_log_probabilities; - tmp_assign_source_9 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_result == NULL); - var_result = tmp_assign_source_9; - } - { - PyObject *tmp_called_instance_10; - CHECK_OBJECT(var_result); - tmp_called_instance_10 = var_result; - frame_ca8b7a4c8713e1d10286835f390e025f->m_frame.f_lineno = 237; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[45]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 237; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca8b7a4c8713e1d10286835f390e025f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca8b7a4c8713e1d10286835f390e025f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ca8b7a4c8713e1d10286835f390e025f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ca8b7a4c8713e1d10286835f390e025f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ca8b7a4c8713e1d10286835f390e025f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ca8b7a4c8713e1d10286835f390e025f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ca8b7a4c8713e1d10286835f390e025f, - type_description_1, - par_self, - par_input, - par_target, - par_weights, - var_log_probabilities, - var_class_weights, - var_result - ); - - - // Release cached frame if used for exception. - if (frame_ca8b7a4c8713e1d10286835f390e025f == cache_frame_ca8b7a4c8713e1d10286835f390e025f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ca8b7a4c8713e1d10286835f390e025f); - cache_frame_ca8b7a4c8713e1d10286835f390e025f = NULL; - } - - assertFrameObject(frame_ca8b7a4c8713e1d10286835f390e025f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_weights); - Py_DECREF(par_weights); - par_weights = NULL; - Py_XDECREF(var_log_probabilities); - var_log_probabilities = NULL; - Py_XDECREF(var_class_weights); - var_class_weights = NULL; - Py_XDECREF(var_result); - var_result = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(par_weights); - par_weights = NULL; - Py_XDECREF(var_log_probabilities); - var_log_probabilities = NULL; - Py_XDECREF(var_class_weights); - var_class_weights = NULL; - Py_XDECREF(var_result); - var_result = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__20___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_threshold = python_pars[1]; - PyObject *par_initial_weight = python_pars[2]; - PyObject *par_apply_below_threshold = python_pars[3]; - struct Nuitka_FrameObject *frame_915a2da7d900624b990aa096cbb70b79; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_915a2da7d900624b990aa096cbb70b79 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_915a2da7d900624b990aa096cbb70b79)) { - Py_XDECREF(cache_frame_915a2da7d900624b990aa096cbb70b79); - -#if _DEBUG_REFCOUNTS - if (cache_frame_915a2da7d900624b990aa096cbb70b79 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_915a2da7d900624b990aa096cbb70b79 = MAKE_FUNCTION_FRAME(codeobj_915a2da7d900624b990aa096cbb70b79, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_915a2da7d900624b990aa096cbb70b79->m_type_description == NULL); - frame_915a2da7d900624b990aa096cbb70b79 = cache_frame_915a2da7d900624b990aa096cbb70b79; - - // Push the new frame as the currently active one. - pushFrameStack(frame_915a2da7d900624b990aa096cbb70b79); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_915a2da7d900624b990aa096cbb70b79) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 242; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[13]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[79]); - frame_915a2da7d900624b990aa096cbb70b79->m_frame.f_lineno = 242; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_threshold); - tmp_assattr_name_1 = par_threshold; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[80], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_apply_below_threshold); - tmp_assattr_name_2 = par_apply_below_threshold; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[81], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_initial_weight); - tmp_assattr_name_3 = par_initial_weight; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[33], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_915a2da7d900624b990aa096cbb70b79); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_915a2da7d900624b990aa096cbb70b79); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_915a2da7d900624b990aa096cbb70b79, exception_lineno); - } else if (exception_tb->tb_frame != &frame_915a2da7d900624b990aa096cbb70b79->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_915a2da7d900624b990aa096cbb70b79, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_915a2da7d900624b990aa096cbb70b79, - type_description_1, - par_self, - par_threshold, - par_initial_weight, - par_apply_below_threshold, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_915a2da7d900624b990aa096cbb70b79 == cache_frame_915a2da7d900624b990aa096cbb70b79) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_915a2da7d900624b990aa096cbb70b79); - cache_frame_915a2da7d900624b990aa096cbb70b79 = NULL; - } - - assertFrameObject(frame_915a2da7d900624b990aa096cbb70b79); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_threshold); - Py_DECREF(par_threshold); - par_threshold = NULL; - CHECK_OBJECT(par_initial_weight); - Py_DECREF(par_initial_weight); - par_initial_weight = NULL; - CHECK_OBJECT(par_apply_below_threshold); - Py_DECREF(par_apply_below_threshold); - par_apply_below_threshold = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_threshold); - Py_DECREF(par_threshold); - par_threshold = NULL; - CHECK_OBJECT(par_initial_weight); - Py_DECREF(par_initial_weight); - par_initial_weight = NULL; - CHECK_OBJECT(par_apply_below_threshold); - Py_DECREF(par_apply_below_threshold); - par_apply_below_threshold = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__21_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_l1 = NULL; - PyObject *var_mask = NULL; - struct Nuitka_FrameObject *frame_ce55a77527b8cae9d98b409844d8d681; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_ce55a77527b8cae9d98b409844d8d681 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ce55a77527b8cae9d98b409844d8d681)) { - Py_XDECREF(cache_frame_ce55a77527b8cae9d98b409844d8d681); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ce55a77527b8cae9d98b409844d8d681 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ce55a77527b8cae9d98b409844d8d681 = MAKE_FUNCTION_FRAME(codeobj_ce55a77527b8cae9d98b409844d8d681, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ce55a77527b8cae9d98b409844d8d681->m_type_description == NULL); - frame_ce55a77527b8cae9d98b409844d8d681 = cache_frame_ce55a77527b8cae9d98b409844d8d681; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ce55a77527b8cae9d98b409844d8d681); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ce55a77527b8cae9d98b409844d8d681) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[46]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_ce55a77527b8cae9d98b409844d8d681->m_frame.f_lineno = 248; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[82], - call_args - ); - } - - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - assert(var_l1 == NULL); - var_l1 = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[81]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 250; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_2; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 251; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_1 = par_target; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 251; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[80]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = RICH_COMPARE_LT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - assert(var_mask == NULL); - var_mask = tmp_assign_source_2; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 253; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_2 = par_target; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 253; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[80]); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = RICH_COMPARE_GE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - assert(var_mask == NULL); - var_mask = tmp_assign_source_3; - } - branch_end_1:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(var_l1); - tmp_expression_name_4 = var_l1; - CHECK_OBJECT(var_mask); - tmp_subscript_name_1 = var_mask; - tmp_left_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 255; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_right_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[33]); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 255; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_ass_subvalue_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_l1); - tmp_ass_subscribed_1 = var_l1; - CHECK_OBJECT(var_mask); - tmp_ass_subscript_1 = var_mask; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_2; - if (var_l1 == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[83]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = var_l1; - frame_ce55a77527b8cae9d98b409844d8d681->m_frame.f_lineno = 257; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[45]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce55a77527b8cae9d98b409844d8d681); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce55a77527b8cae9d98b409844d8d681); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce55a77527b8cae9d98b409844d8d681); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ce55a77527b8cae9d98b409844d8d681, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ce55a77527b8cae9d98b409844d8d681->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ce55a77527b8cae9d98b409844d8d681, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ce55a77527b8cae9d98b409844d8d681, - type_description_1, - par_self, - par_input, - par_target, - var_l1, - var_mask, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_ce55a77527b8cae9d98b409844d8d681 == cache_frame_ce55a77527b8cae9d98b409844d8d681) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ce55a77527b8cae9d98b409844d8d681); - cache_frame_ce55a77527b8cae9d98b409844d8d681 = NULL; - } - - assertFrameObject(frame_ce55a77527b8cae9d98b409844d8d681); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_l1); - var_l1 = NULL; - CHECK_OBJECT(var_mask); - Py_DECREF(var_mask); - var_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_l1); - var_l1 = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__22_flatten(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tensor = python_pars[0]; - PyObject *var_C = NULL; - PyObject *var_axis_order = NULL; - PyObject *var_transposed = NULL; - struct Nuitka_FrameObject *frame_0201c31e1e7feff6304044e6d3951db4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_0201c31e1e7feff6304044e6d3951db4 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0201c31e1e7feff6304044e6d3951db4)) { - Py_XDECREF(cache_frame_0201c31e1e7feff6304044e6d3951db4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0201c31e1e7feff6304044e6d3951db4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0201c31e1e7feff6304044e6d3951db4 = MAKE_FUNCTION_FRAME(codeobj_0201c31e1e7feff6304044e6d3951db4, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0201c31e1e7feff6304044e6d3951db4->m_type_description == NULL); - frame_0201c31e1e7feff6304044e6d3951db4 = cache_frame_0201c31e1e7feff6304044e6d3951db4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0201c31e1e7feff6304044e6d3951db4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0201c31e1e7feff6304044e6d3951db4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_tensor); - tmp_called_instance_1 = par_tensor; - frame_0201c31e1e7feff6304044e6d3951db4->m_frame.f_lineno = 266; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[0], - &PyTuple_GET_ITEM(mod_consts[24], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_C == NULL); - var_C = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_xrange_high_1; - PyObject *tmp_called_instance_2; - tmp_left_name_1 = mod_consts[84]; - tmp_xrange_low_1 = mod_consts[8]; - if (par_tensor == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 268; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_tensor; - frame_0201c31e1e7feff6304044e6d3951db4->m_frame.f_lineno = 268; - tmp_xrange_high_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[86]); - if (tmp_xrange_high_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_tuple_arg_1 = BUILTIN_XRANGE2(tmp_xrange_low_1, tmp_xrange_high_1); - Py_DECREF(tmp_xrange_high_1); - if (tmp_tuple_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = BINARY_OPERATION_ADD_OBJECT_TUPLE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - assert(!(tmp_assign_source_2 == NULL)); - assert(var_axis_order == NULL); - var_axis_order = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_1; - if (par_tensor == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[85]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 270; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_tensor; - CHECK_OBJECT(var_axis_order); - tmp_args_element_name_1 = var_axis_order; - frame_0201c31e1e7feff6304044e6d3951db4->m_frame.f_lineno = 270; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[87], tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_transposed == NULL); - var_transposed = tmp_assign_source_3; - } - { - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_transposed); - tmp_called_instance_5 = var_transposed; - frame_0201c31e1e7feff6304044e6d3951db4->m_frame.f_lineno = 272; - tmp_called_instance_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[88]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_C); - tmp_args_element_name_2 = var_C; - tmp_args_element_name_3 = mod_consts[89]; - frame_0201c31e1e7feff6304044e6d3951db4->m_frame.f_lineno = 272; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_return_value = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[77], - call_args - ); - } - - Py_DECREF(tmp_called_instance_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0201c31e1e7feff6304044e6d3951db4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0201c31e1e7feff6304044e6d3951db4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0201c31e1e7feff6304044e6d3951db4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0201c31e1e7feff6304044e6d3951db4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0201c31e1e7feff6304044e6d3951db4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0201c31e1e7feff6304044e6d3951db4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0201c31e1e7feff6304044e6d3951db4, - type_description_1, - par_tensor, - var_C, - var_axis_order, - var_transposed - ); - - - // Release cached frame if used for exception. - if (frame_0201c31e1e7feff6304044e6d3951db4 == cache_frame_0201c31e1e7feff6304044e6d3951db4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0201c31e1e7feff6304044e6d3951db4); - cache_frame_0201c31e1e7feff6304044e6d3951db4 = NULL; - } - - assertFrameObject(frame_0201c31e1e7feff6304044e6d3951db4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(var_C); - var_C = NULL; - Py_XDECREF(var_axis_order); - var_axis_order = NULL; - Py_XDECREF(var_transposed); - var_transposed = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tensor); - par_tensor = NULL; - Py_XDECREF(var_C); - var_C = NULL; - Py_XDECREF(var_axis_order); - var_axis_order = NULL; - Py_XDECREF(var_transposed); - var_transposed = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__23_get_loss_criterion(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config = python_pars[0]; - PyObject *var_loss_config = NULL; - PyObject *var_name = NULL; - PyObject *var_ignore_index = NULL; - PyObject *var_skip_last_target = NULL; - PyObject *var_weight = NULL; - PyObject *var_pos_weight = NULL; - PyObject *var_loss = NULL; - struct Nuitka_FrameObject *frame_4f67554983fc1bad95f8404ef1c044ec; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_4f67554983fc1bad95f8404ef1c044ec = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4f67554983fc1bad95f8404ef1c044ec)) { - Py_XDECREF(cache_frame_4f67554983fc1bad95f8404ef1c044ec); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4f67554983fc1bad95f8404ef1c044ec == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4f67554983fc1bad95f8404ef1c044ec = MAKE_FUNCTION_FRAME(codeobj_4f67554983fc1bad95f8404ef1c044ec, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4f67554983fc1bad95f8404ef1c044ec->m_type_description == NULL); - frame_4f67554983fc1bad95f8404ef1c044ec = cache_frame_4f67554983fc1bad95f8404ef1c044ec; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4f67554983fc1bad95f8404ef1c044ec); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4f67554983fc1bad95f8404ef1c044ec) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[15]; - CHECK_OBJECT(par_config); - tmp_compexpr_right_1 = par_config; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[91]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 281; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_subscript_name_1 = mod_consts[15]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss_config == NULL); - var_loss_config = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(var_loss_config); - tmp_called_instance_1 = var_loss_config; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 283; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[92], - &PyTuple_GET_ITEM(mod_consts[93], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_name == NULL); - var_name = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_2; - if (var_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 285; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = var_loss_config; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 285; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[92], - &PyTuple_GET_ITEM(mod_consts[95], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_ignore_index == NULL); - var_ignore_index = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_3; - if (var_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 286; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = var_loss_config; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 286; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[92], - &PyTuple_GET_ITEM(mod_consts[96], 0) - ); - - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_skip_last_target == NULL); - var_skip_last_target = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_4; - if (var_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 287; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = var_loss_config; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 287; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[92], - &PyTuple_GET_ITEM(mod_consts[97], 0) - ); - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_weight == NULL); - var_weight = tmp_assign_source_5; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(var_weight); - tmp_compexpr_left_2 = var_weight; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_1; - tmp_called_instance_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_called_instance_5 == NULL)) { - tmp_called_instance_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_weight); - tmp_args_element_name_1 = var_weight; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 290; - tmp_assign_source_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[85], tmp_args_element_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_weight; - var_weight = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_6; - if (var_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_6 = var_loss_config; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 292; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_6, - mod_consts[92], - &PyTuple_GET_ITEM(mod_consts[98], 0) - ); - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_pos_weight == NULL); - var_pos_weight = tmp_assign_source_7; - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(var_pos_weight); - tmp_compexpr_left_3 = var_pos_weight; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_2; - tmp_called_instance_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_called_instance_7 == NULL)) { - tmp_called_instance_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_pos_weight); - tmp_args_element_name_2 = var_pos_weight; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 294; - tmp_assign_source_8 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_7, mod_consts[85], tmp_args_element_name_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_pos_weight; - var_pos_weight = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - branch_no_3:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[99]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[99]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_name); - tmp_args_element_name_3 = var_name; - if (var_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = var_loss_config; - CHECK_OBJECT(var_weight); - tmp_args_element_name_5 = var_weight; - CHECK_OBJECT(var_ignore_index); - tmp_args_element_name_6 = var_ignore_index; - CHECK_OBJECT(var_pos_weight); - tmp_args_element_name_7 = var_pos_weight; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 296; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_9 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_1, call_args); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_9; - } - { - bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(var_ignore_index); - tmp_compexpr_left_4 = var_ignore_index; - tmp_compexpr_right_4 = Py_None; - tmp_or_left_value_1 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? Py_True : Py_False; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(var_name); - tmp_compexpr_left_5 = var_name; - tmp_compexpr_right_5 = LIST_COPY(mod_consts[100]); - tmp_res = PySequence_Contains(tmp_compexpr_right_5, tmp_compexpr_left_5); - Py_DECREF(tmp_compexpr_right_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 298; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res == 1) ? Py_True : Py_False; - tmp_operand_name_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_operand_name_1 = tmp_or_left_value_1; - or_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_4 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[12]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[12]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_loss); - tmp_args_element_name_8 = var_loss; - CHECK_OBJECT(var_ignore_index); - tmp_args_element_name_9 = var_ignore_index; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 300; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_10 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_loss; - assert(old != NULL); - var_loss = tmp_assign_source_10; - Py_DECREF(old); - } - - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_5; - int tmp_truth_name_1; - CHECK_OBJECT(var_skip_last_target); - tmp_truth_name_1 = CHECK_IF_TRUE(var_skip_last_target); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_instance_8; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[22]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[22]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_loss); - tmp_args_element_name_10 = var_loss; - if (var_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 303; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_8 = var_loss_config; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 303; - tmp_args_element_name_11 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_8, - mod_consts[101], - &PyTuple_GET_ITEM(mod_consts[102], 0) - ); - - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 303; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_args_element_name_11); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_loss; - assert(old != NULL); - var_loss = tmp_assign_source_11; - Py_DECREF(old); - } - - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_called_instance_9; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - int tmp_truth_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[76]); - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 305; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[103]); - Py_DECREF(tmp_called_instance_9); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 305; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_6 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_10; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 306; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_10 = var_loss; - frame_4f67554983fc1bad95f8404ef1c044ec->m_frame.f_lineno = 306; - tmp_assign_source_12 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[76]); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 306; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_loss; - var_loss = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - branch_no_6:; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 308; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_loss; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4f67554983fc1bad95f8404ef1c044ec); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4f67554983fc1bad95f8404ef1c044ec); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4f67554983fc1bad95f8404ef1c044ec); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4f67554983fc1bad95f8404ef1c044ec, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4f67554983fc1bad95f8404ef1c044ec->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4f67554983fc1bad95f8404ef1c044ec, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4f67554983fc1bad95f8404ef1c044ec, - type_description_1, - par_config, - var_loss_config, - var_name, - var_ignore_index, - var_skip_last_target, - var_weight, - var_pos_weight, - var_loss - ); - - - // Release cached frame if used for exception. - if (frame_4f67554983fc1bad95f8404ef1c044ec == cache_frame_4f67554983fc1bad95f8404ef1c044ec) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4f67554983fc1bad95f8404ef1c044ec); - cache_frame_4f67554983fc1bad95f8404ef1c044ec = NULL; - } - - assertFrameObject(frame_4f67554983fc1bad95f8404ef1c044ec); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - Py_XDECREF(var_loss_config); - var_loss_config = NULL; - CHECK_OBJECT(var_name); - Py_DECREF(var_name); - var_name = NULL; - CHECK_OBJECT(var_ignore_index); - Py_DECREF(var_ignore_index); - var_ignore_index = NULL; - CHECK_OBJECT(var_skip_last_target); - Py_DECREF(var_skip_last_target); - var_skip_last_target = NULL; - CHECK_OBJECT(var_weight); - Py_DECREF(var_weight); - var_weight = NULL; - CHECK_OBJECT(var_pos_weight); - Py_DECREF(var_pos_weight); - var_pos_weight = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - Py_XDECREF(var_loss_config); - var_loss_config = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_ignore_index); - var_ignore_index = NULL; - Py_XDECREF(var_skip_last_target); - var_skip_last_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - Py_XDECREF(var_pos_weight); - var_pos_weight = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$losses$$$function__24__create_loss(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_name = python_pars[0]; - PyObject *par_loss_config = python_pars[1]; - PyObject *par_weight = python_pars[2]; - PyObject *par_ignore_index = python_pars[3]; - PyObject *par_pos_weight = python_pars[4]; - PyObject *var_alpha = NULL; - PyObject *var_beta = NULL; - PyObject *var_normalization = NULL; - struct Nuitka_FrameObject *frame_48d8d9a1daf8117bcef99d7047b108c4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_48d8d9a1daf8117bcef99d7047b108c4 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_48d8d9a1daf8117bcef99d7047b108c4)) { - Py_XDECREF(cache_frame_48d8d9a1daf8117bcef99d7047b108c4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_48d8d9a1daf8117bcef99d7047b108c4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_48d8d9a1daf8117bcef99d7047b108c4 = MAKE_FUNCTION_FRAME(codeobj_48d8d9a1daf8117bcef99d7047b108c4, module_models$unet3d$losses, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_48d8d9a1daf8117bcef99d7047b108c4->m_type_description == NULL); - frame_48d8d9a1daf8117bcef99d7047b108c4 = cache_frame_48d8d9a1daf8117bcef99d7047b108c4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_48d8d9a1daf8117bcef99d7047b108c4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_48d8d9a1daf8117bcef99d7047b108c4) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_name); - tmp_compexpr_left_1 = par_name; - tmp_compexpr_right_1 = mod_consts[55]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 314; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[55]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[105]; - CHECK_OBJECT(par_pos_weight); - tmp_dict_value_1 = par_pos_weight; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 315; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_name); - tmp_compexpr_left_2 = par_name; - tmp_compexpr_right_2 = mod_consts[53]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 316; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 316; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_loss_config); - tmp_called_instance_1 = par_loss_config; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 317; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[101], - &PyTuple_GET_ITEM(mod_consts[106], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 317; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_alpha == NULL); - var_alpha = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - if (par_loss_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_loss_config; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 318; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[101], - &PyTuple_GET_ITEM(mod_consts[107], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 318; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_beta == NULL); - var_beta = tmp_assign_source_2; - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[53]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[53]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_alpha); - tmp_args_element_name_1 = var_alpha; - CHECK_OBJECT(var_beta); - tmp_args_element_name_2 = var_beta; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 319; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_2; - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_3; - CHECK_OBJECT(par_name); - tmp_compexpr_left_3 = par_name; - tmp_compexpr_right_3 = mod_consts[108]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 320; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(par_ignore_index); - tmp_compexpr_left_4 = par_ignore_index; - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = mod_consts[109]; - { - PyObject *old = par_ignore_index; - assert(old != NULL); - par_ignore_index = tmp_assign_source_3; - Py_INCREF(par_ignore_index); - Py_DECREF(old); - } - - } - branch_no_4:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[108]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_2 = mod_consts[33]; - CHECK_OBJECT(par_weight); - tmp_dict_value_2 = par_weight; - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[16]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_2 = par_ignore_index; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 323; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_3; - branch_no_3:; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_tmp_condition_result_5_object_1; - int tmp_truth_name_4; - CHECK_OBJECT(par_name); - tmp_compexpr_left_5 = par_name; - tmp_compexpr_right_5 = mod_consts[59]; - tmp_tmp_condition_result_5_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_tmp_condition_result_5_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 324; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_tmp_condition_result_5_object_1); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_5_object_1); - - exception_lineno = 324; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_5_object_1); - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(par_ignore_index); - tmp_compexpr_left_6 = par_ignore_index; - tmp_compexpr_right_6 = Py_None; - tmp_condition_result_6 = (tmp_compexpr_left_6 == tmp_compexpr_right_6) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_4; - tmp_assign_source_4 = mod_consts[109]; - { - PyObject *old = par_ignore_index; - assert(old != NULL); - par_ignore_index = tmp_assign_source_4; - Py_INCREF(par_ignore_index); - Py_DECREF(old); - } - - } - branch_no_6:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_kwargs_name_3; - PyObject *tmp_dict_key_3; - PyObject *tmp_dict_value_3; - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[59]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[59]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_3 = mod_consts[16]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_3 = par_ignore_index; - tmp_kwargs_name_3 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_3, tmp_dict_key_3, tmp_dict_value_3); - assert(!(tmp_res != 0)); - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 327; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_3); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_5; - branch_no_5:; - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - PyObject *tmp_tmp_condition_result_7_object_1; - int tmp_truth_name_5; - CHECK_OBJECT(par_name); - tmp_compexpr_left_7 = par_name; - tmp_compexpr_right_7 = mod_consts[66]; - tmp_tmp_condition_result_7_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_7, tmp_compexpr_right_7); - if (tmp_tmp_condition_result_7_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_tmp_condition_result_7_object_1); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_7_object_1); - - exception_lineno = 328; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_7 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_7_object_1); - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_called_name_5; - PyObject *tmp_kwargs_name_4; - PyObject *tmp_dict_key_4; - PyObject *tmp_dict_value_4; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[66]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[66]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_4 = mod_consts[67]; - CHECK_OBJECT(par_weight); - tmp_dict_value_4 = par_weight; - tmp_kwargs_name_4 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - tmp_dict_key_4 = mod_consts[16]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_4 = par_ignore_index; - tmp_res = PyDict_SetItem(tmp_kwargs_name_4, tmp_dict_key_4, tmp_dict_value_4); - assert(!(tmp_res != 0)); - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 329; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_4); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_7; - branch_no_7:; - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - PyObject *tmp_tmp_condition_result_8_object_1; - int tmp_truth_name_6; - CHECK_OBJECT(par_name); - tmp_compexpr_left_8 = par_name; - tmp_compexpr_right_8 = mod_consts[110]; - tmp_tmp_condition_result_8_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_8, tmp_compexpr_right_8); - if (tmp_tmp_condition_result_8_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_tmp_condition_result_8_object_1); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_8_object_1); - - exception_lineno = 330; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_8 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_8_object_1); - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_loss_config); - tmp_called_instance_3 = par_loss_config; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 331; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[101], - &PyTuple_GET_ITEM(mod_consts[111], 0) - ); - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 331; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_normalization == NULL); - var_normalization = tmp_assign_source_5; - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_kwargs_name_5; - PyObject *tmp_dict_key_5; - PyObject *tmp_dict_value_5; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_5 = mod_consts[38]; - CHECK_OBJECT(var_normalization); - tmp_dict_value_5 = var_normalization; - tmp_kwargs_name_5 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_5, tmp_dict_key_5, tmp_dict_value_5); - assert(!(tmp_res != 0)); - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 332; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_5); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_8; - branch_no_8:; - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - PyObject *tmp_tmp_condition_result_9_object_1; - int tmp_truth_name_7; - CHECK_OBJECT(par_name); - tmp_compexpr_left_9 = par_name; - tmp_compexpr_right_9 = mod_consts[58]; - tmp_tmp_condition_result_9_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_9, tmp_compexpr_right_9); - if (tmp_tmp_condition_result_9_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_tmp_condition_result_9_object_1); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_9_object_1); - - exception_lineno = 333; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_9 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_9_object_1); - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_4; - CHECK_OBJECT(par_loss_config); - tmp_called_instance_4 = par_loss_config; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 334; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[101], - &PyTuple_GET_ITEM(mod_consts[111], 0) - ); - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(var_normalization == NULL); - var_normalization = tmp_assign_source_6; - } - { - PyObject *tmp_called_name_7; - PyObject *tmp_kwargs_name_6; - PyObject *tmp_dict_key_6; - PyObject *tmp_dict_value_6; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[58]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[58]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_6 = mod_consts[33]; - CHECK_OBJECT(par_weight); - tmp_dict_value_6 = par_weight; - tmp_kwargs_name_6 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - tmp_dict_key_6 = mod_consts[38]; - CHECK_OBJECT(var_normalization); - tmp_dict_value_6 = var_normalization; - tmp_res = PyDict_SetItem(tmp_kwargs_name_6, tmp_dict_key_6, tmp_dict_value_6); - assert(!(tmp_res != 0)); - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 335; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_7, tmp_kwargs_name_6); - Py_DECREF(tmp_kwargs_name_6); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_9; - branch_no_9:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_compexpr_left_10; - PyObject *tmp_compexpr_right_10; - PyObject *tmp_tmp_condition_result_10_object_1; - int tmp_truth_name_8; - CHECK_OBJECT(par_name); - tmp_compexpr_left_10 = par_name; - tmp_compexpr_right_10 = mod_consts[112]; - tmp_tmp_condition_result_10_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_10, tmp_compexpr_right_10); - if (tmp_tmp_condition_result_10_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 336; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_tmp_condition_result_10_object_1); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_10_object_1); - - exception_lineno = 336; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_10 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_10_object_1); - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_called_name_8; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[112]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[112]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 337; - tmp_return_value = CALL_FUNCTION_NO_ARGS(tmp_called_name_8); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 337; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_10; - branch_no_10:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_compexpr_left_11; - PyObject *tmp_compexpr_right_11; - PyObject *tmp_tmp_condition_result_11_object_1; - int tmp_truth_name_9; - CHECK_OBJECT(par_name); - tmp_compexpr_left_11 = par_name; - tmp_compexpr_right_11 = mod_consts[113]; - tmp_tmp_condition_result_11_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_11, tmp_compexpr_right_11); - if (tmp_tmp_condition_result_11_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_9 = CHECK_IF_TRUE(tmp_tmp_condition_result_11_object_1); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_11_object_1); - - exception_lineno = 338; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_11 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_11_object_1); - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_called_name_9; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[113]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[113]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 339; - tmp_return_value = CALL_FUNCTION_NO_ARGS(tmp_called_name_9); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_11; - branch_no_11:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_12; - PyObject *tmp_compexpr_right_12; - PyObject *tmp_tmp_condition_result_12_object_1; - int tmp_truth_name_10; - CHECK_OBJECT(par_name); - tmp_compexpr_left_12 = par_name; - tmp_compexpr_right_12 = mod_consts[114]; - tmp_tmp_condition_result_12_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_12, tmp_compexpr_right_12); - if (tmp_tmp_condition_result_12_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_10 = CHECK_IF_TRUE(tmp_tmp_condition_result_12_object_1); - if (tmp_truth_name_10 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_12_object_1); - - exception_lineno = 340; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_12 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_12_object_1); - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - PyObject *tmp_called_name_10; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[114]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[114]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 341; - tmp_return_value = CALL_FUNCTION_NO_ARGS(tmp_called_name_10); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 341; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_12; - branch_no_12:; - { - nuitka_bool tmp_condition_result_13; - PyObject *tmp_compexpr_left_13; - PyObject *tmp_compexpr_right_13; - PyObject *tmp_tmp_condition_result_13_object_1; - int tmp_truth_name_11; - CHECK_OBJECT(par_name); - tmp_compexpr_left_13 = par_name; - tmp_compexpr_right_13 = mod_consts[115]; - tmp_tmp_condition_result_13_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_13, tmp_compexpr_right_13); - if (tmp_tmp_condition_result_13_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_11 = CHECK_IF_TRUE(tmp_tmp_condition_result_13_object_1); - if (tmp_truth_name_11 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_13_object_1); - - exception_lineno = 342; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_13 = tmp_truth_name_11 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_13_object_1); - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - { - PyObject *tmp_called_name_11; - PyObject *tmp_kwargs_name_7; - PyObject *tmp_dict_key_7; - PyObject *tmp_dict_value_7; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - tmp_called_name_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[115]); - - if (unlikely(tmp_called_name_11 == NULL)) { - tmp_called_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[115]); - } - - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_7 = mod_consts[80]; - CHECK_OBJECT(par_loss_config); - tmp_expression_name_3 = par_loss_config; - tmp_subscript_name_1 = mod_consts[80]; - tmp_dict_value_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_7 = _PyDict_NewPresized( 3 ); - { - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_2; - PyObject *tmp_called_instance_5; - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - tmp_dict_key_7 = mod_consts[116]; - CHECK_OBJECT(par_loss_config); - tmp_expression_name_4 = par_loss_config; - tmp_subscript_name_2 = mod_consts[116]; - tmp_dict_value_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_2); - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 344; - type_description_1 = "oooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - tmp_dict_key_7 = mod_consts[81]; - CHECK_OBJECT(par_loss_config); - tmp_called_instance_5 = par_loss_config; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 345; - tmp_dict_value_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[101], - &PyTuple_GET_ITEM(mod_consts[117], 0) - ); - - if (tmp_dict_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_1 = "oooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_7, tmp_dict_key_7, tmp_dict_value_7); - Py_DECREF(tmp_dict_value_7); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_7); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 343; - tmp_return_value = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_11, tmp_kwargs_name_7); - Py_DECREF(tmp_kwargs_name_7); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_13; - branch_no_13:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_tuple_element_1 = mod_consts[118]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_name); - tmp_format_value_1 = par_name; - tmp_format_spec_1 = mod_consts[119]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[120]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = PyUnicode_Join(mod_consts[119], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame.f_lineno = 347; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_RuntimeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 347; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - branch_end_13:; - branch_end_12:; - branch_end_11:; - branch_end_10:; - branch_end_9:; - branch_end_8:; - branch_end_7:; - branch_end_5:; - branch_end_3:; - branch_end_2:; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_48d8d9a1daf8117bcef99d7047b108c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_48d8d9a1daf8117bcef99d7047b108c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_48d8d9a1daf8117bcef99d7047b108c4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_48d8d9a1daf8117bcef99d7047b108c4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_48d8d9a1daf8117bcef99d7047b108c4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_48d8d9a1daf8117bcef99d7047b108c4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_48d8d9a1daf8117bcef99d7047b108c4, - type_description_1, - par_name, - par_loss_config, - par_weight, - par_ignore_index, - par_pos_weight, - var_alpha, - var_beta, - var_normalization - ); - - - // Release cached frame if used for exception. - if (frame_48d8d9a1daf8117bcef99d7047b108c4 == cache_frame_48d8d9a1daf8117bcef99d7047b108c4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_48d8d9a1daf8117bcef99d7047b108c4); - cache_frame_48d8d9a1daf8117bcef99d7047b108c4 = NULL; - } - - assertFrameObject(frame_48d8d9a1daf8117bcef99d7047b108c4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_name); - Py_DECREF(par_name); - par_name = NULL; - Py_XDECREF(par_loss_config); - par_loss_config = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(par_ignore_index); - par_ignore_index = NULL; - Py_XDECREF(par_pos_weight); - par_pos_weight = NULL; - Py_XDECREF(var_alpha); - var_alpha = NULL; - Py_XDECREF(var_beta); - var_beta = NULL; - Py_XDECREF(var_normalization); - var_normalization = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_name); - Py_DECREF(par_name); - par_name = NULL; - Py_XDECREF(par_loss_config); - par_loss_config = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(par_ignore_index); - par_ignore_index = NULL; - Py_XDECREF(par_pos_weight); - par_pos_weight = NULL; - Py_XDECREF(var_alpha); - var_alpha = NULL; - Py_XDECREF(var_beta); - var_beta = NULL; - Py_XDECREF(var_normalization); - var_normalization = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__10_dice() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__10_dice, - mod_consts[43], -#if PYTHON_VERSION >= 0x300 - mod_consts[162], -#endif - codeobj_7138dc343b9d36f61ecf5068b1d4a9e2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__11___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__11___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[165], -#endif - codeobj_689fefa3b59b704f733760f36572546b, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__12_dice() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__12_dice, - mod_consts[43], -#if PYTHON_VERSION >= 0x300 - mod_consts[166], -#endif - codeobj_d8de5593120711397ebcd544a9a5beee, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__13___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__13___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[168], -#endif - codeobj_619124ae3c7c6b52dec6da317ecfa60b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__14_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__14_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[169], -#endif - codeobj_3a3c4357c3d422694cae78ba51b909d4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__15___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__15___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[171], -#endif - codeobj_45f52b2af41ae9eeda8b8dceada0ce54, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__16_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__16_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[172], -#endif - codeobj_d0a908219576feca58e31d68600ccb1c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__17__class_weights() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__17__class_weights, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[174], -#endif - codeobj_c60e6b0b6cbf537f64facb5040a84769, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__18___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__18___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[176], -#endif - codeobj_f0147916ca8a0f188f736d2445a24142, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__19_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__19_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[177], -#endif - codeobj_ca8b7a4c8713e1d10286835f390e025f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__1_compute_per_channel_dice(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__1_compute_per_channel_dice, - mod_consts[47], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_ad5336bf04811a8c76dcc0c2c51b6074, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - mod_consts[11], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__20___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__20___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[179], -#endif - codeobj_915a2da7d900624b990aa096cbb70b79, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__21_forward(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__21_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[180], -#endif - codeobj_ce55a77527b8cae9d98b409844d8d681, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__22_flatten() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__22_flatten, - mod_consts[2], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_0201c31e1e7feff6304044e6d3951db4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - mod_consts[90], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__23_get_loss_criterion() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__23_get_loss_criterion, - mod_consts[181], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_4f67554983fc1bad95f8404ef1c044ec, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - mod_consts[104], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__24__create_loss() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__24__create_loss, - mod_consts[99], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_48d8d9a1daf8117bcef99d7047b108c4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__2___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__2___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[148], -#endif - codeobj_4eb47512d57f9eb20a1993d6d1c3fb78, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__3_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__3_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[149], -#endif - codeobj_7e600e5abd5b883d8c3faab8d6f2a207, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__4___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__4___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[153], -#endif - codeobj_7fca07fbabf40b9aedb62b82b03ac314, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__5_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__5_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[154], -#endif - codeobj_df030e46b619f2e1d7bbe1bf22d15c8c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__6___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__6___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[157], -#endif - codeobj_967b9bb58a2e42c245494faa4e98659a, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__6___init__$$$function__1_lambda() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__6___init__$$$function__1_lambda, - mod_consts[41], -#if PYTHON_VERSION >= 0x300 - mod_consts[42], -#endif - codeobj_bbd4e7afc692945e27dee598a8242d6c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__7_dice() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__7_dice, - mod_consts[43], -#if PYTHON_VERSION >= 0x300 - mod_consts[158], -#endif - codeobj_f96de2d7cdf8118d4114f6e4b5a0cc47, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__8_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__8_forward, - mod_consts[82], -#if PYTHON_VERSION >= 0x300 - mod_consts[159], -#endif - codeobj_599f9bc91cca49981a976e3e360b0b63, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$losses$$$function__9___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$losses$$$function__9___init__, - mod_consts[13], -#if PYTHON_VERSION >= 0x300 - mod_consts[161], -#endif - codeobj_38eaebfe4d2be968a308d6c799019465, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$losses, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$losses[] = { - impl_models$unet3d$losses$$$function__6___init__$$$function__1_lambda, - impl_models$unet3d$losses$$$function__1_compute_per_channel_dice, - impl_models$unet3d$losses$$$function__2___init__, - impl_models$unet3d$losses$$$function__3_forward, - impl_models$unet3d$losses$$$function__4___init__, - impl_models$unet3d$losses$$$function__5_forward, - impl_models$unet3d$losses$$$function__6___init__, - impl_models$unet3d$losses$$$function__7_dice, - impl_models$unet3d$losses$$$function__8_forward, - impl_models$unet3d$losses$$$function__9___init__, - impl_models$unet3d$losses$$$function__10_dice, - impl_models$unet3d$losses$$$function__11___init__, - impl_models$unet3d$losses$$$function__12_dice, - impl_models$unet3d$losses$$$function__13___init__, - impl_models$unet3d$losses$$$function__14_forward, - impl_models$unet3d$losses$$$function__15___init__, - impl_models$unet3d$losses$$$function__16_forward, - impl_models$unet3d$losses$$$function__17__class_weights, - impl_models$unet3d$losses$$$function__18___init__, - impl_models$unet3d$losses$$$function__19_forward, - impl_models$unet3d$losses$$$function__20___init__, - impl_models$unet3d$losses$$$function__21_forward, - impl_models$unet3d$losses$$$function__22_flatten, - impl_models$unet3d$losses$$$function__23_get_loss_criterion, - impl_models$unet3d$losses$$$function__24__create_loss, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$losses; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$losses) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$losses[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$losses, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$losses(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$losses = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.losses: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.losses: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.losses: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$losses\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$losses = MODULE_DICT(module_models$unet3d$losses); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$losses, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$losses, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$losses, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$losses, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$losses, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$losses); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$losses); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_5_var___class__ = NULL; - PyObject *outline_6_var___class__ = NULL; - PyObject *outline_7_var___class__ = NULL; - struct Nuitka_CellObject *outline_8_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__bases = NULL; - PyObject *tmp_class_creation_6__bases_orig = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_class_creation_8__bases = NULL; - PyObject *tmp_class_creation_8__bases_orig = NULL; - PyObject *tmp_class_creation_8__class_decl_dict = NULL; - PyObject *tmp_class_creation_8__metaclass = NULL; - PyObject *tmp_class_creation_8__prepared = NULL; - PyObject *tmp_class_creation_9__bases = NULL; - PyObject *tmp_class_creation_9__bases_orig = NULL; - PyObject *tmp_class_creation_9__class_decl_dict = NULL; - PyObject *tmp_class_creation_9__metaclass = NULL; - PyObject *tmp_class_creation_9__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - struct Nuitka_FrameObject *frame_705bf4315d2d4f531dff5d3d03b1beec; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_653cd49c73152390d2f5ad682e34a196_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_653cd49c73152390d2f5ad682e34a196_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62 = NULL; - struct Nuitka_FrameObject *frame_102f6d9c8caf3c07fcacb9b74c819b61_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84 = NULL; - struct Nuitka_FrameObject *frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *locals_models$unet3d$losses$$$class__4_DiceLoss_120 = NULL; - struct Nuitka_FrameObject *frame_7a70797e1919541bc6bae64c7102f99b_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_7a70797e1919541bc6bae64c7102f99b_5 = NULL; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133 = NULL; - struct Nuitka_FrameObject *frame_0f3b06d4df296077ba10f315932c80a2_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_0f3b06d4df296077ba10f315932c80a2_6 = NULL; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168 = NULL; - struct Nuitka_FrameObject *frame_79c7d5960b91f122e38985085658fe13_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_79c7d5960b91f122e38985085658fe13_7 = NULL; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182 = NULL; - struct Nuitka_FrameObject *frame_b82f846403c5bbd1de1ab21ea54bad05_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8 = NULL; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205 = NULL; - struct Nuitka_FrameObject *frame_829d0a1ffa540ba75404cd988b32f0b5_9; - NUITKA_MAY_BE_UNUSED char const *type_description_9 = NULL; - static struct Nuitka_FrameObject *cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9 = NULL; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240 = NULL; - struct Nuitka_FrameObject *frame_0812d28c0fd416b215956f202c82484e_10; - NUITKA_MAY_BE_UNUSED char const *type_description_10 = NULL; - static struct Nuitka_FrameObject *cache_frame_0812d28c0fd416b215956f202c82484e_10 = NULL; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[121], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[122], tmp_assign_source_2); - } - // Frame without reuse. - frame_705bf4315d2d4f531dff5d3d03b1beec = MAKE_MODULE_FRAME(codeobj_705bf4315d2d4f531dff5d3d03b1beec, module_models$unet3d$losses); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_705bf4315d2d4f531dff5d3d03b1beec); - assert(Py_REFCNT(frame_705bf4315d2d4f531dff5d3d03b1beec) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[123]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[123]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[124], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[123]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[123]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[125], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[126], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[28]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$losses; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[127]; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_import_name_from_1; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[128]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$losses; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[127]; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 2; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_import_name_from_1 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[36], - mod_consts[127] - ); - } else { - tmp_import_name_from_1 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[36]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[129], - mod_consts[127] - ); - } else { - tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[129]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[61], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[28]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$losses; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[130]; - tmp_level_name_3 = mod_consts[127]; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 3; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[36], - mod_consts[127] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[36]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[131]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$losses; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[132]; - tmp_level_name_4 = mod_consts[127]; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 4; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[64], - mod_consts[127] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[64]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[64], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[133]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$losses; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[134]; - tmp_level_name_5 = mod_consts[127]; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 5; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[112], - mod_consts[127] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[112]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[112], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_6 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[113], - mod_consts[127] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[113]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[113], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_7 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[114], - mod_consts[127] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[114]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[114], tmp_assign_source_11); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_8; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[135]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$losses; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[136]; - tmp_level_name_6 = mod_consts[127]; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 7; - tmp_import_name_from_8 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$unet3d$losses, - mod_consts[70], - mod_consts[127] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[70]); - } - - Py_DECREF(tmp_import_name_from_8); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[70], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[137]; - Py_INCREF(tmp_defaults_1); - - - tmp_assign_source_13 = MAKE_FUNCTION_models$unet3d$losses$$$function__1_compute_per_channel_dice(tmp_defaults_1); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_13); - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[138]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_assign_source_14 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_14, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_15 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[139]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[127]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_17 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_17; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[140]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[140]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_tuple_element_2 = mod_consts[12]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 39; - tmp_assign_source_18 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_18; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[141]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[143]; - tmp_getattr_default_1 = mod_consts[144]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[143]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_2; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 39; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_2; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_19; - } - branch_end_2:; - { - PyObject *tmp_assign_source_20; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - tmp_dictset_value = mod_consts[146]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - tmp_dictset_value = mod_consts[12]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - if (isFrameUnusable(cache_frame_653cd49c73152390d2f5ad682e34a196_2)) { - Py_XDECREF(cache_frame_653cd49c73152390d2f5ad682e34a196_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_653cd49c73152390d2f5ad682e34a196_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_653cd49c73152390d2f5ad682e34a196_2 = MAKE_FUNCTION_FRAME(codeobj_653cd49c73152390d2f5ad682e34a196, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_653cd49c73152390d2f5ad682e34a196_2->m_type_description == NULL); - frame_653cd49c73152390d2f5ad682e34a196_2 = cache_frame_653cd49c73152390d2f5ad682e34a196_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_653cd49c73152390d2f5ad682e34a196_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_653cd49c73152390d2f5ad682e34a196_2) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__2___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__3_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 50; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_653cd49c73152390d2f5ad682e34a196_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_653cd49c73152390d2f5ad682e34a196_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_653cd49c73152390d2f5ad682e34a196_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_653cd49c73152390d2f5ad682e34a196_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_653cd49c73152390d2f5ad682e34a196_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_653cd49c73152390d2f5ad682e34a196_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_653cd49c73152390d2f5ad682e34a196_2 == cache_frame_653cd49c73152390d2f5ad682e34a196_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_653cd49c73152390d2f5ad682e34a196_2); - cache_frame_653cd49c73152390d2f5ad682e34a196_2 = NULL; - } - - assertFrameObject(frame_653cd49c73152390d2f5ad682e34a196_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_4; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - branch_no_4:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[12]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 39; - tmp_assign_source_21 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - - goto try_except_handler_4; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_21; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_20 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_20); - goto try_return_handler_4; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - Py_DECREF(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39); - locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39 = NULL; - goto try_return_handler_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39); - locals_models$unet3d$losses$$$class__1__MaskingLossWrapper_39 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 39; - goto try_except_handler_2; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[12], tmp_assign_source_20); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[138]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_assign_source_22 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_22, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_22; - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_23 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_24; - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[139]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[127]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_25 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_25; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[140]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[140]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_tuple_element_6 = mod_consts[22]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 62; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[141]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[143]; - tmp_getattr_default_2 = mod_consts[144]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[143]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_5; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 62; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_5; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_27; - } - branch_end_6:; - { - PyObject *tmp_assign_source_28; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[151]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_7; - } - tmp_dictset_value = mod_consts[22]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_7; - } - if (isFrameUnusable(cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3)) { - Py_XDECREF(cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3 = MAKE_FUNCTION_FRAME(codeobj_102f6d9c8caf3c07fcacb9b74c819b61, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3->m_type_description == NULL); - frame_102f6d9c8caf3c07fcacb9b74c819b61_3 = cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_102f6d9c8caf3c07fcacb9b74c819b61_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_102f6d9c8caf3c07fcacb9b74c819b61_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[152]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__4___init__(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__5_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_102f6d9c8caf3c07fcacb9b74c819b61_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_102f6d9c8caf3c07fcacb9b74c819b61_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_102f6d9c8caf3c07fcacb9b74c819b61_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_102f6d9c8caf3c07fcacb9b74c819b61_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_102f6d9c8caf3c07fcacb9b74c819b61_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_102f6d9c8caf3c07fcacb9b74c819b61_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_102f6d9c8caf3c07fcacb9b74c819b61_3 == cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3); - cache_frame_102f6d9c8caf3c07fcacb9b74c819b61_3 = NULL; - } - - assertFrameObject(frame_102f6d9c8caf3c07fcacb9b74c819b61_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_7; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_7; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_7; - } - branch_no_8:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[22]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 62; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - - goto try_except_handler_7; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_29; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_28 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_28); - goto try_return_handler_7; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_DECREF(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62); - locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62 = NULL; - goto try_return_handler_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62); - locals_models$unet3d$losses$$$class__2_SkipLastTargetChannelWrapper_62 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_6; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 62; - goto try_except_handler_5; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[22], tmp_assign_source_28); - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_30; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_13; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[138]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_assign_source_30 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_30, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_30; - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_31 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - tmp_assign_source_32 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[139]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_14 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[127]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_33 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_33; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_15 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_15, mod_consts[140]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_16 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[140]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_tuple_element_10 = mod_consts[31]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 84; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_17 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[141]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[143]; - tmp_getattr_default_3 = mod_consts[144]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_18; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_18 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_18 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[143]); - Py_DECREF(tmp_expression_name_18); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_8; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_8; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 84; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_8; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_35; - tmp_assign_source_35 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - branch_end_10:; - { - PyObject *tmp_assign_source_36; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_10; - } - tmp_dictset_value = mod_consts[31]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_10; - } - if (isFrameUnusable(cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4)) { - Py_XDECREF(cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4 = MAKE_FUNCTION_FRAME(codeobj_f19ed9ee26d93c2e82ea0c001dacbbbc, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4->m_type_description == NULL); - frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4 = cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[156]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__6___init__(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__7_dice(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[43], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__8_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4 == cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4); - cache_frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4 = NULL; - } - - assertFrameObject(frame_f19ed9ee26d93c2e82ea0c001dacbbbc_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_10; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_10; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_10; - } - branch_no_12:; - { - PyObject *tmp_assign_source_37; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[31]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 84; - tmp_assign_source_37 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - - goto try_except_handler_10; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_37; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_36 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_36); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_DECREF(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84); - locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84 = NULL; - goto try_return_handler_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84); - locals_models$unet3d$losses$$$class__3__AbstractDiceLoss_84 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_9; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 84; - goto try_except_handler_8; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[31], tmp_assign_source_36); - } - goto try_end_4; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_38; - PyObject *tmp_tuple_element_13; - tmp_tuple_element_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[31]); - - if (unlikely(tmp_tuple_element_13 == NULL)) { - tmp_tuple_element_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[31]); - } - - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - tmp_assign_source_38 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_38, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_38; - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_39 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - tmp_assign_source_40 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_40; - } - { - PyObject *tmp_assign_source_41; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_19; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[139]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_19 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[127]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_19, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_41 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_41; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_20; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_20 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_20, mod_consts[140]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_42; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_21; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_21 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[140]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - tmp_tuple_element_14 = mod_consts[58]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 120; - tmp_assign_source_42 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_42; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_22; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_22 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_22, mod_consts[141]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[143]; - tmp_getattr_default_4 = mod_consts[144]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_23; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_23 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_23 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[143]); - Py_DECREF(tmp_expression_name_23); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_11; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_11; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 120; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_11; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_43; - tmp_assign_source_43 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_43; - } - branch_end_14:; - { - PyObject *tmp_assign_source_44; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$unet3d$losses$$$class__4_DiceLoss_120 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__4_DiceLoss_120, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[160]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__4_DiceLoss_120, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_13; - } - tmp_dictset_value = mod_consts[58]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__4_DiceLoss_120, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_13; - } - if (isFrameUnusable(cache_frame_7a70797e1919541bc6bae64c7102f99b_5)) { - Py_XDECREF(cache_frame_7a70797e1919541bc6bae64c7102f99b_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a70797e1919541bc6bae64c7102f99b_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a70797e1919541bc6bae64c7102f99b_5 = MAKE_FUNCTION_FRAME(codeobj_7a70797e1919541bc6bae64c7102f99b, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a70797e1919541bc6bae64c7102f99b_5->m_type_description == NULL); - frame_7a70797e1919541bc6bae64c7102f99b_5 = cache_frame_7a70797e1919541bc6bae64c7102f99b_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a70797e1919541bc6bae64c7102f99b_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a70797e1919541bc6bae64c7102f99b_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_defaults_4 = mod_consts[156]; - Py_INCREF(tmp_defaults_4); - - tmp_closure_1[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__9___init__(tmp_defaults_4, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__4_DiceLoss_120, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__10_dice(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__4_DiceLoss_120, mod_consts[43], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a70797e1919541bc6bae64c7102f99b_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a70797e1919541bc6bae64c7102f99b_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a70797e1919541bc6bae64c7102f99b_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a70797e1919541bc6bae64c7102f99b_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a70797e1919541bc6bae64c7102f99b_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a70797e1919541bc6bae64c7102f99b_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_7a70797e1919541bc6bae64c7102f99b_5 == cache_frame_7a70797e1919541bc6bae64c7102f99b_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a70797e1919541bc6bae64c7102f99b_5); - cache_frame_7a70797e1919541bc6bae64c7102f99b_5 = NULL; - } - - assertFrameObject(frame_7a70797e1919541bc6bae64c7102f99b_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_13; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_13; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__4_DiceLoss_120, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_13; - } - branch_no_16:; - { - PyObject *tmp_assign_source_45; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[58]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$unet3d$losses$$$class__4_DiceLoss_120; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 120; - tmp_assign_source_45 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_45 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - - goto try_except_handler_13; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_45); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_44 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_44); - goto try_return_handler_13; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - Py_DECREF(locals_models$unet3d$losses$$$class__4_DiceLoss_120); - locals_models$unet3d$losses$$$class__4_DiceLoss_120 = NULL; - goto try_return_handler_12; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__4_DiceLoss_120); - locals_models$unet3d$losses$$$class__4_DiceLoss_120 = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_12; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 120; - goto try_except_handler_11; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[58], tmp_assign_source_44); - } - goto try_end_5; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_46; - PyObject *tmp_tuple_element_17; - tmp_tuple_element_17 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[31]); - - if (unlikely(tmp_tuple_element_17 == NULL)) { - tmp_tuple_element_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[31]); - } - - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - tmp_assign_source_46 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_46, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_47 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - tmp_assign_source_48 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_48; - } - { - PyObject *tmp_assign_source_49; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_24; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[139]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_24 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[127]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_24, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_49 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_49; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_25 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[140]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_50; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_26; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_26 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[140]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - tmp_tuple_element_18 = mod_consts[110]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 133; - tmp_assign_source_50 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_50; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_27; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_27 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_27, mod_consts[141]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[143]; - tmp_getattr_default_5 = mod_consts[144]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_28; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_28 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_28 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[143]); - Py_DECREF(tmp_expression_name_28); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_14; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_14; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 133; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_14; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_51; - tmp_assign_source_51 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_51; - } - branch_end_18:; - { - PyObject *tmp_assign_source_52; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[163]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - tmp_dictset_value = mod_consts[110]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - if (isFrameUnusable(cache_frame_0f3b06d4df296077ba10f315932c80a2_6)) { - Py_XDECREF(cache_frame_0f3b06d4df296077ba10f315932c80a2_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0f3b06d4df296077ba10f315932c80a2_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0f3b06d4df296077ba10f315932c80a2_6 = MAKE_FUNCTION_FRAME(codeobj_0f3b06d4df296077ba10f315932c80a2, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0f3b06d4df296077ba10f315932c80a2_6->m_type_description == NULL); - frame_0f3b06d4df296077ba10f315932c80a2_6 = cache_frame_0f3b06d4df296077ba10f315932c80a2_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0f3b06d4df296077ba10f315932c80a2_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0f3b06d4df296077ba10f315932c80a2_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_5; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_5 = mod_consts[164]; - Py_INCREF(tmp_defaults_5); - - tmp_closure_2[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__11___init__(tmp_defaults_5, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__12_dice(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133, mod_consts[43], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0f3b06d4df296077ba10f315932c80a2_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0f3b06d4df296077ba10f315932c80a2_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0f3b06d4df296077ba10f315932c80a2_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0f3b06d4df296077ba10f315932c80a2_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0f3b06d4df296077ba10f315932c80a2_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0f3b06d4df296077ba10f315932c80a2_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_0f3b06d4df296077ba10f315932c80a2_6 == cache_frame_0f3b06d4df296077ba10f315932c80a2_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0f3b06d4df296077ba10f315932c80a2_6); - cache_frame_0f3b06d4df296077ba10f315932c80a2_6 = NULL; - } - - assertFrameObject(frame_0f3b06d4df296077ba10f315932c80a2_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_16; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - branch_no_20:; - { - PyObject *tmp_assign_source_53; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_10 = tmp_class_creation_5__metaclass; - tmp_tuple_element_20 = mod_consts[110]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 133; - tmp_assign_source_53 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_53 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 133; - - goto try_except_handler_16; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_53); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_52 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_52); - goto try_return_handler_16; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - Py_DECREF(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133); - locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133 = NULL; - goto try_return_handler_15; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133); - locals_models$unet3d$losses$$$class__5_GeneralizedDiceLoss_133 = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto try_except_handler_15; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 133; - goto try_except_handler_14; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[110], tmp_assign_source_52); - } - goto try_end_6; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_54; - PyObject *tmp_tuple_element_21; - PyObject *tmp_expression_name_29; - tmp_expression_name_29 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_29 == NULL)) { - tmp_expression_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_tuple_element_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[138]); - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_assign_source_54 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_54, 0, tmp_tuple_element_21); - assert(tmp_class_creation_6__bases_orig == NULL); - tmp_class_creation_6__bases_orig = tmp_assign_source_54; - } - { - PyObject *tmp_assign_source_55; - PyObject *tmp_dircall_arg1_6; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig; - Py_INCREF(tmp_dircall_arg1_6); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_6}; - tmp_assign_source_55 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_55 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - assert(tmp_class_creation_6__bases == NULL); - tmp_class_creation_6__bases = tmp_assign_source_55; - } - { - PyObject *tmp_assign_source_56; - tmp_assign_source_56 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_56; - } - { - PyObject *tmp_assign_source_57; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - nuitka_bool tmp_condition_result_32; - int tmp_truth_name_6; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_30; - PyObject *tmp_subscript_name_6; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[139]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_truth_name_6 = CHECK_IF_TRUE(tmp_class_creation_6__bases); - if (tmp_truth_name_6 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_condition_result_32 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_expression_name_30 = tmp_class_creation_6__bases; - tmp_subscript_name_6 = mod_consts[127]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_30, tmp_subscript_name_6, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_metaclass_name_6 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_bases_name_6 = tmp_class_creation_6__bases; - tmp_assign_source_57 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_57; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_33 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_expression_name_31; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_31 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_31, mod_consts[140]); - tmp_condition_result_34 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_58; - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_32; - PyObject *tmp_args_name_11; - PyObject *tmp_tuple_element_22; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_32 = tmp_class_creation_6__metaclass; - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[140]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_tuple_element_22 = mod_consts[53]; - tmp_args_name_11 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_11, 0, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_22 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_11, 1, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 168; - tmp_assign_source_58 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_name_11); - if (tmp_assign_source_58 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_58; - } - { - nuitka_bool tmp_condition_result_35; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_33; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_33 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_33, mod_consts[141]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_condition_result_35 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_23; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[143]; - tmp_getattr_default_6 = mod_consts[144]; - tmp_tuple_element_23 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_34; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_12 = tmp_class_creation_6__prepared; - tmp_expression_name_34 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_34 == NULL)); - tmp_tuple_element_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[143]); - Py_DECREF(tmp_expression_name_34); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_23); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_17; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_17; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 168; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_17; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_59; - tmp_assign_source_59 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_59; - } - branch_end_22:; - { - PyObject *tmp_assign_source_60; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_19; - } - tmp_dictset_value = mod_consts[167]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_19; - } - tmp_dictset_value = mod_consts[53]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_19; - } - if (isFrameUnusable(cache_frame_79c7d5960b91f122e38985085658fe13_7)) { - Py_XDECREF(cache_frame_79c7d5960b91f122e38985085658fe13_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_79c7d5960b91f122e38985085658fe13_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_79c7d5960b91f122e38985085658fe13_7 = MAKE_FUNCTION_FRAME(codeobj_79c7d5960b91f122e38985085658fe13, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_79c7d5960b91f122e38985085658fe13_7->m_type_description == NULL); - frame_79c7d5960b91f122e38985085658fe13_7 = cache_frame_79c7d5960b91f122e38985085658fe13_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_79c7d5960b91f122e38985085658fe13_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_79c7d5960b91f122e38985085658fe13_7) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__13___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__14_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_79c7d5960b91f122e38985085658fe13_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_79c7d5960b91f122e38985085658fe13_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_79c7d5960b91f122e38985085658fe13_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_79c7d5960b91f122e38985085658fe13_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_79c7d5960b91f122e38985085658fe13_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_79c7d5960b91f122e38985085658fe13_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_79c7d5960b91f122e38985085658fe13_7 == cache_frame_79c7d5960b91f122e38985085658fe13_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_79c7d5960b91f122e38985085658fe13_7); - cache_frame_79c7d5960b91f122e38985085658fe13_7 = NULL; - } - - assertFrameObject(frame_79c7d5960b91f122e38985085658fe13_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_19; - skip_nested_handling_6:; - { - nuitka_bool tmp_condition_result_36; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_compexpr_left_6 = tmp_class_creation_6__bases; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_compexpr_right_6 = tmp_class_creation_6__bases_orig; - tmp_condition_result_36 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_6, tmp_compexpr_right_6); - if (tmp_condition_result_36 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_19; - } - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_36 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - tmp_dictset_value = tmp_class_creation_6__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_19; - } - branch_no_24:; - { - PyObject *tmp_assign_source_61; - PyObject *tmp_called_name_12; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_24; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_12 = tmp_class_creation_6__metaclass; - tmp_tuple_element_24 = mod_consts[53]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__bases); - tmp_tuple_element_24 = tmp_class_creation_6__bases; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_24); - tmp_tuple_element_24 = locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 168; - tmp_assign_source_61 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_61 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - - goto try_except_handler_19; - } - assert(outline_5_var___class__ == NULL); - outline_5_var___class__ = tmp_assign_source_61; - } - CHECK_OBJECT(outline_5_var___class__); - tmp_assign_source_60 = outline_5_var___class__; - Py_INCREF(tmp_assign_source_60); - goto try_return_handler_19; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_19:; - Py_DECREF(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168); - locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168 = NULL; - goto try_return_handler_18; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168); - locals_models$unet3d$losses$$$class__6_BCEDiceLoss_168 = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto try_except_handler_18; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 168; - goto try_except_handler_17; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[53], tmp_assign_source_60); - } - goto try_end_7; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_6__bases_orig); - Py_DECREF(tmp_class_creation_6__bases_orig); - tmp_class_creation_6__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_6__bases); - tmp_class_creation_6__bases = NULL; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_62; - PyObject *tmp_tuple_element_25; - PyObject *tmp_expression_name_35; - tmp_expression_name_35 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_35 == NULL)) { - tmp_expression_name_35 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_tuple_element_25 = LOOKUP_ATTRIBUTE(tmp_expression_name_35, mod_consts[138]); - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_assign_source_62 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_62, 0, tmp_tuple_element_25); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - PyObject *tmp_dircall_arg1_7; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_7 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_7); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_7}; - tmp_assign_source_63 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_63 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_63; - } - { - PyObject *tmp_assign_source_64; - tmp_assign_source_64 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_64; - } - { - PyObject *tmp_assign_source_65; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_37; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_38; - int tmp_truth_name_7; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_36; - PyObject *tmp_subscript_name_7; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_37 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[139]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - goto condexpr_end_13; - condexpr_false_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_7 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_7 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_condition_result_38 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_36 = tmp_class_creation_7__bases; - tmp_subscript_name_7 = mod_consts[127]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_36, tmp_subscript_name_7, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - goto condexpr_end_14; - condexpr_false_14:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_14:; - condexpr_end_13:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_65 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_65; - } - { - nuitka_bool tmp_condition_result_39; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_39 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_expression_name_37; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_37 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_37, mod_consts[140]); - tmp_condition_result_40 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_66; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_38; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_26; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_38 = tmp_class_creation_7__metaclass; - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_38, mod_consts[140]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_tuple_element_26 = mod_consts[59]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_26 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 182; - tmp_assign_source_66 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_66 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_66; - } - { - nuitka_bool tmp_condition_result_41; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_39; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_39 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_39, mod_consts[141]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_condition_result_41 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_27; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[143]; - tmp_getattr_default_7 = mod_consts[144]; - tmp_tuple_element_27 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_40; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_27); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_14 = tmp_class_creation_7__prepared; - tmp_expression_name_40 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_40 == NULL)); - tmp_tuple_element_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_40, mod_consts[143]); - Py_DECREF(tmp_expression_name_40); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_27); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_20; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_20; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 182; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_20; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_67; - tmp_assign_source_67 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_67; - } - branch_end_26:; - { - PyObject *tmp_assign_source_68; - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_22; - } - tmp_dictset_value = mod_consts[170]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[121], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_22; - } - tmp_dictset_value = mod_consts[59]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_22; - } - if (isFrameUnusable(cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8)) { - Py_XDECREF(cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8 = MAKE_FUNCTION_FRAME(codeobj_b82f846403c5bbd1de1ab21ea54bad05, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8->m_type_description == NULL); - frame_b82f846403c5bbd1de1ab21ea54bad05_8 = cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b82f846403c5bbd1de1ab21ea54bad05_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b82f846403c5bbd1de1ab21ea54bad05_8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_6; - tmp_defaults_6 = mod_consts[7]; - Py_INCREF(tmp_defaults_6); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__15___init__(tmp_defaults_6); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__16_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - { - nuitka_bool tmp_condition_result_42; - PyObject *tmp_called_name_14; - PyObject *tmp_args_element_name_1; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[173]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - tmp_condition_result_42 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto condexpr_true_15; - } else { - goto condexpr_false_15; - } - condexpr_true_15:; - tmp_called_name_14 = PyObject_GetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[173]); - - if (unlikely(tmp_called_name_14 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[173]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 194; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$unet3d$losses$$$function__17__class_weights(); - - frame_b82f846403c5bbd1de1ab21ea54bad05_8->m_frame.f_lineno = 194; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_14, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 194; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - goto condexpr_end_15; - condexpr_false_15:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$unet3d$losses$$$function__17__class_weights(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_15:; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_2 = "o"; - goto frame_exception_exit_8; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b82f846403c5bbd1de1ab21ea54bad05_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b82f846403c5bbd1de1ab21ea54bad05_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b82f846403c5bbd1de1ab21ea54bad05_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b82f846403c5bbd1de1ab21ea54bad05_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b82f846403c5bbd1de1ab21ea54bad05_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b82f846403c5bbd1de1ab21ea54bad05_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b82f846403c5bbd1de1ab21ea54bad05_8 == cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8); - cache_frame_b82f846403c5bbd1de1ab21ea54bad05_8 = NULL; - } - - assertFrameObject(frame_b82f846403c5bbd1de1ab21ea54bad05_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_22; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_43; - PyObject *tmp_compexpr_left_7; - PyObject *tmp_compexpr_right_7; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_7 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_7 = tmp_class_creation_7__bases_orig; - tmp_condition_result_43 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_7, tmp_compexpr_right_7); - if (tmp_condition_result_43 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_22; - } - if (tmp_condition_result_43 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_43 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_22; - } - branch_no_28:; - { - PyObject *tmp_assign_source_69; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_28; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_15 = tmp_class_creation_7__metaclass; - tmp_tuple_element_28 = mod_consts[59]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_28 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_28); - tmp_tuple_element_28 = locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 182; - tmp_assign_source_69 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_69 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_22; - } - assert(outline_6_var___class__ == NULL); - outline_6_var___class__ = tmp_assign_source_69; - } - CHECK_OBJECT(outline_6_var___class__); - tmp_assign_source_68 = outline_6_var___class__; - Py_INCREF(tmp_assign_source_68); - goto try_return_handler_22; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_22:; - Py_DECREF(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182); - locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182 = NULL; - goto try_return_handler_21; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182); - locals_models$unet3d$losses$$$class__7_WeightedCrossEntropyLoss_182 = NULL; - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto try_except_handler_21; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_21:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 182; - goto try_except_handler_20; - outline_result_7:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[59], tmp_assign_source_68); - } - goto try_end_8; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_70; - PyObject *tmp_tuple_element_29; - PyObject *tmp_expression_name_41; - tmp_expression_name_41 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_41 == NULL)) { - tmp_expression_name_41 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_tuple_element_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[138]); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_assign_source_70 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_70, 0, tmp_tuple_element_29); - assert(tmp_class_creation_8__bases_orig == NULL); - tmp_class_creation_8__bases_orig = tmp_assign_source_70; - } - { - PyObject *tmp_assign_source_71; - PyObject *tmp_dircall_arg1_8; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dircall_arg1_8 = tmp_class_creation_8__bases_orig; - Py_INCREF(tmp_dircall_arg1_8); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_8}; - tmp_assign_source_71 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_71 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - assert(tmp_class_creation_8__bases == NULL); - tmp_class_creation_8__bases = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - tmp_assign_source_72 = PyDict_New(); - assert(tmp_class_creation_8__class_decl_dict == NULL); - tmp_class_creation_8__class_decl_dict = tmp_assign_source_72; - } - { - PyObject *tmp_assign_source_73; - PyObject *tmp_metaclass_name_8; - nuitka_bool tmp_condition_result_44; - PyObject *tmp_key_name_22; - PyObject *tmp_dict_arg_name_22; - PyObject *tmp_dict_arg_name_23; - PyObject *tmp_key_name_23; - nuitka_bool tmp_condition_result_45; - int tmp_truth_name_8; - PyObject *tmp_type_arg_15; - PyObject *tmp_expression_name_42; - PyObject *tmp_subscript_name_8; - PyObject *tmp_bases_name_8; - tmp_key_name_22 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_22 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_22, tmp_key_name_22); - assert(!(tmp_res == -1)); - tmp_condition_result_44 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_44 == NUITKA_BOOL_TRUE) { - goto condexpr_true_16; - } else { - goto condexpr_false_16; - } - condexpr_true_16:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_23 = tmp_class_creation_8__class_decl_dict; - tmp_key_name_23 = mod_consts[139]; - tmp_metaclass_name_8 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_23, tmp_key_name_23); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - goto condexpr_end_16; - condexpr_false_16:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_truth_name_8 = CHECK_IF_TRUE(tmp_class_creation_8__bases); - if (tmp_truth_name_8 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_condition_result_45 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_45 == NUITKA_BOOL_TRUE) { - goto condexpr_true_17; - } else { - goto condexpr_false_17; - } - condexpr_true_17:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_expression_name_42 = tmp_class_creation_8__bases; - tmp_subscript_name_8 = mod_consts[127]; - tmp_type_arg_15 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_42, tmp_subscript_name_8, 0); - if (tmp_type_arg_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_metaclass_name_8 = BUILTIN_TYPE1(tmp_type_arg_15); - Py_DECREF(tmp_type_arg_15); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - goto condexpr_end_17; - condexpr_false_17:; - tmp_metaclass_name_8 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_8); - condexpr_end_17:; - condexpr_end_16:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_bases_name_8 = tmp_class_creation_8__bases; - tmp_assign_source_73 = SELECT_METACLASS(tmp_metaclass_name_8, tmp_bases_name_8); - Py_DECREF(tmp_metaclass_name_8); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - assert(tmp_class_creation_8__metaclass == NULL); - tmp_class_creation_8__metaclass = tmp_assign_source_73; - } - { - nuitka_bool tmp_condition_result_46; - PyObject *tmp_key_name_24; - PyObject *tmp_dict_arg_name_24; - tmp_key_name_24 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_24 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_24, tmp_key_name_24); - assert(!(tmp_res == -1)); - tmp_condition_result_46 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_46 == NUITKA_BOOL_TRUE) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_8__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - branch_no_29:; - { - nuitka_bool tmp_condition_result_47; - PyObject *tmp_expression_name_43; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_43 = tmp_class_creation_8__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_43, mod_consts[140]); - tmp_condition_result_47 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_47 == NUITKA_BOOL_TRUE) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_assign_source_74; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_44; - PyObject *tmp_args_name_15; - PyObject *tmp_tuple_element_30; - PyObject *tmp_kwargs_name_15; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_44 = tmp_class_creation_8__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_44, mod_consts[140]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_tuple_element_30 = mod_consts[66]; - tmp_args_name_15 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_15, 0, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_30 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_15, 1, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_15 = tmp_class_creation_8__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 205; - tmp_assign_source_74 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_15, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_15); - if (tmp_assign_source_74 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_74; - } - { - nuitka_bool tmp_condition_result_48; - PyObject *tmp_operand_name_8; - PyObject *tmp_expression_name_45; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_expression_name_45 = tmp_class_creation_8__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_45, mod_consts[141]); - tmp_operand_name_8 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_condition_result_48 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_48 == NUITKA_BOOL_TRUE) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - PyObject *tmp_raise_type_8; - PyObject *tmp_raise_value_8; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_tuple_element_31; - PyObject *tmp_getattr_target_8; - PyObject *tmp_getattr_attr_8; - PyObject *tmp_getattr_default_8; - tmp_raise_type_8 = PyExc_TypeError; - tmp_left_name_8 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_getattr_target_8 = tmp_class_creation_8__metaclass; - tmp_getattr_attr_8 = mod_consts[143]; - tmp_getattr_default_8 = mod_consts[144]; - tmp_tuple_element_31 = BUILTIN_GETATTR(tmp_getattr_target_8, tmp_getattr_attr_8, tmp_getattr_default_8); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - tmp_right_name_8 = PyTuple_New(2); - { - PyObject *tmp_expression_name_46; - PyObject *tmp_type_arg_16; - PyTuple_SET_ITEM(tmp_right_name_8, 0, tmp_tuple_element_31); - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_type_arg_16 = tmp_class_creation_8__prepared; - tmp_expression_name_46 = BUILTIN_TYPE1(tmp_type_arg_16); - assert(!(tmp_expression_name_46 == NULL)); - tmp_tuple_element_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_46, mod_consts[143]); - Py_DECREF(tmp_expression_name_46); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_right_name_8, 1, tmp_tuple_element_31); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_right_name_8); - goto try_except_handler_23; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_raise_value_8 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_raise_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_23; - } - exception_type = tmp_raise_type_8; - Py_INCREF(tmp_raise_type_8); - exception_value = tmp_raise_value_8; - exception_lineno = 205; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_23; - } - branch_no_31:; - goto branch_end_30; - branch_no_30:; - { - PyObject *tmp_assign_source_75; - tmp_assign_source_75 = PyDict_New(); - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_75; - } - branch_end_30:; - { - PyObject *tmp_assign_source_76; - { - PyObject *tmp_set_locals_8; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_set_locals_8 = tmp_class_creation_8__prepared; - locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205 = tmp_set_locals_8; - Py_INCREF(tmp_set_locals_8); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_25; - } - tmp_dictset_value = mod_consts[66]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_25; - } - if (isFrameUnusable(cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9)) { - Py_XDECREF(cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9 = MAKE_FUNCTION_FRAME(codeobj_829d0a1ffa540ba75404cd988b32f0b5, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9->m_type_description == NULL); - frame_829d0a1ffa540ba75404cd988b32f0b5_9 = cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_829d0a1ffa540ba75404cd988b32f0b5_9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_829d0a1ffa540ba75404cd988b32f0b5_9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_7; - tmp_defaults_7 = mod_consts[175]; - Py_INCREF(tmp_defaults_7); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__18___init__(tmp_defaults_7); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_2 = "o"; - goto frame_exception_exit_9; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__19_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_2 = "o"; - goto frame_exception_exit_9; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_829d0a1ffa540ba75404cd988b32f0b5_9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_8; - - frame_exception_exit_9:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_829d0a1ffa540ba75404cd988b32f0b5_9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_829d0a1ffa540ba75404cd988b32f0b5_9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_829d0a1ffa540ba75404cd988b32f0b5_9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_829d0a1ffa540ba75404cd988b32f0b5_9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_829d0a1ffa540ba75404cd988b32f0b5_9, - type_description_2, - outline_7_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_829d0a1ffa540ba75404cd988b32f0b5_9 == cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9); - cache_frame_829d0a1ffa540ba75404cd988b32f0b5_9 = NULL; - } - - assertFrameObject(frame_829d0a1ffa540ba75404cd988b32f0b5_9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_8; - - frame_no_exception_8:; - goto skip_nested_handling_8; - nested_frame_exit_8:; - - goto try_except_handler_25; - skip_nested_handling_8:; - { - nuitka_bool tmp_condition_result_49; - PyObject *tmp_compexpr_left_8; - PyObject *tmp_compexpr_right_8; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_compexpr_left_8 = tmp_class_creation_8__bases; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_compexpr_right_8 = tmp_class_creation_8__bases_orig; - tmp_condition_result_49 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_8, tmp_compexpr_right_8); - if (tmp_condition_result_49 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_25; - } - if (tmp_condition_result_49 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - assert(tmp_condition_result_49 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_32:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dictset_value = tmp_class_creation_8__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_25; - } - branch_no_32:; - { - PyObject *tmp_assign_source_77; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_16; - PyObject *tmp_tuple_element_32; - PyObject *tmp_kwargs_name_16; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_called_name_17 = tmp_class_creation_8__metaclass; - tmp_tuple_element_32 = mod_consts[66]; - tmp_args_name_16 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_16, 0, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_32 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_16, 1, tmp_tuple_element_32); - tmp_tuple_element_32 = locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205; - PyTuple_SET_ITEM0(tmp_args_name_16, 2, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_16 = tmp_class_creation_8__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 205; - tmp_assign_source_77 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_16, tmp_kwargs_name_16); - Py_DECREF(tmp_args_name_16); - if (tmp_assign_source_77 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - - goto try_except_handler_25; - } - assert(outline_7_var___class__ == NULL); - outline_7_var___class__ = tmp_assign_source_77; - } - CHECK_OBJECT(outline_7_var___class__); - tmp_assign_source_76 = outline_7_var___class__; - Py_INCREF(tmp_assign_source_76); - goto try_return_handler_25; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_25:; - Py_DECREF(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205); - locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205 = NULL; - goto try_return_handler_24; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205); - locals_models$unet3d$losses$$$class__8_PixelWiseCrossEntropyLoss_205 = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto try_except_handler_24; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_24:; - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - goto outline_result_8; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto outline_exception_8; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_8:; - exception_lineno = 205; - goto try_except_handler_23; - outline_result_8:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[66], tmp_assign_source_76); - } - goto try_end_9; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - Py_XDECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_25; - exception_value = exception_keeper_value_25; - exception_tb = exception_keeper_tb_25; - exception_lineno = exception_keeper_lineno_25; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - Py_DECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_8__prepared); - Py_DECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_78; - PyObject *tmp_tuple_element_33; - PyObject *tmp_expression_name_47; - tmp_expression_name_47 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_expression_name_47 == NULL)) { - tmp_expression_name_47 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_expression_name_47 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_tuple_element_33 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[113]); - if (tmp_tuple_element_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_assign_source_78 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_78, 0, tmp_tuple_element_33); - assert(tmp_class_creation_9__bases_orig == NULL); - tmp_class_creation_9__bases_orig = tmp_assign_source_78; - } - { - PyObject *tmp_assign_source_79; - PyObject *tmp_dircall_arg1_9; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dircall_arg1_9 = tmp_class_creation_9__bases_orig; - Py_INCREF(tmp_dircall_arg1_9); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_9}; - tmp_assign_source_79 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_79 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - assert(tmp_class_creation_9__bases == NULL); - tmp_class_creation_9__bases = tmp_assign_source_79; - } - { - PyObject *tmp_assign_source_80; - tmp_assign_source_80 = PyDict_New(); - assert(tmp_class_creation_9__class_decl_dict == NULL); - tmp_class_creation_9__class_decl_dict = tmp_assign_source_80; - } - { - PyObject *tmp_assign_source_81; - PyObject *tmp_metaclass_name_9; - nuitka_bool tmp_condition_result_50; - PyObject *tmp_key_name_25; - PyObject *tmp_dict_arg_name_25; - PyObject *tmp_dict_arg_name_26; - PyObject *tmp_key_name_26; - nuitka_bool tmp_condition_result_51; - int tmp_truth_name_9; - PyObject *tmp_type_arg_17; - PyObject *tmp_expression_name_48; - PyObject *tmp_subscript_name_9; - PyObject *tmp_bases_name_9; - tmp_key_name_25 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_25 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_25, tmp_key_name_25); - assert(!(tmp_res == -1)); - tmp_condition_result_50 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_50 == NUITKA_BOOL_TRUE) { - goto condexpr_true_18; - } else { - goto condexpr_false_18; - } - condexpr_true_18:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_26 = tmp_class_creation_9__class_decl_dict; - tmp_key_name_26 = mod_consts[139]; - tmp_metaclass_name_9 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_26, tmp_key_name_26); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - goto condexpr_end_18; - condexpr_false_18:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_truth_name_9 = CHECK_IF_TRUE(tmp_class_creation_9__bases); - if (tmp_truth_name_9 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_condition_result_51 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_51 == NUITKA_BOOL_TRUE) { - goto condexpr_true_19; - } else { - goto condexpr_false_19; - } - condexpr_true_19:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_expression_name_48 = tmp_class_creation_9__bases; - tmp_subscript_name_9 = mod_consts[127]; - tmp_type_arg_17 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_48, tmp_subscript_name_9, 0); - if (tmp_type_arg_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_metaclass_name_9 = BUILTIN_TYPE1(tmp_type_arg_17); - Py_DECREF(tmp_type_arg_17); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - goto condexpr_end_19; - condexpr_false_19:; - tmp_metaclass_name_9 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_9); - condexpr_end_19:; - condexpr_end_18:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_bases_name_9 = tmp_class_creation_9__bases; - tmp_assign_source_81 = SELECT_METACLASS(tmp_metaclass_name_9, tmp_bases_name_9); - Py_DECREF(tmp_metaclass_name_9); - if (tmp_assign_source_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - assert(tmp_class_creation_9__metaclass == NULL); - tmp_class_creation_9__metaclass = tmp_assign_source_81; - } - { - nuitka_bool tmp_condition_result_52; - PyObject *tmp_key_name_27; - PyObject *tmp_dict_arg_name_27; - tmp_key_name_27 = mod_consts[139]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_27 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_27, tmp_key_name_27); - assert(!(tmp_res == -1)); - tmp_condition_result_52 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_52 == NUITKA_BOOL_TRUE) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_9__class_decl_dict; - tmp_dictdel_key = mod_consts[139]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - branch_no_33:; - { - nuitka_bool tmp_condition_result_53; - PyObject *tmp_expression_name_49; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_49 = tmp_class_creation_9__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_49, mod_consts[140]); - tmp_condition_result_53 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_53 == NUITKA_BOOL_TRUE) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_assign_source_82; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_50; - PyObject *tmp_args_name_17; - PyObject *tmp_tuple_element_34; - PyObject *tmp_kwargs_name_17; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_50 = tmp_class_creation_9__metaclass; - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_50, mod_consts[140]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_tuple_element_34 = mod_consts[115]; - tmp_args_name_17 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_17, 0, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_34 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_17, 1, tmp_tuple_element_34); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_17 = tmp_class_creation_9__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 240; - tmp_assign_source_82 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_17, tmp_kwargs_name_17); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_17); - if (tmp_assign_source_82 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_82; - } - { - nuitka_bool tmp_condition_result_54; - PyObject *tmp_operand_name_9; - PyObject *tmp_expression_name_51; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_expression_name_51 = tmp_class_creation_9__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_51, mod_consts[141]); - tmp_operand_name_9 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_condition_result_54 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_54 == NUITKA_BOOL_TRUE) { - goto branch_yes_35; - } else { - goto branch_no_35; - } - } - branch_yes_35:; - { - PyObject *tmp_raise_type_9; - PyObject *tmp_raise_value_9; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_tuple_element_35; - PyObject *tmp_getattr_target_9; - PyObject *tmp_getattr_attr_9; - PyObject *tmp_getattr_default_9; - tmp_raise_type_9 = PyExc_TypeError; - tmp_left_name_9 = mod_consts[142]; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_getattr_target_9 = tmp_class_creation_9__metaclass; - tmp_getattr_attr_9 = mod_consts[143]; - tmp_getattr_default_9 = mod_consts[144]; - tmp_tuple_element_35 = BUILTIN_GETATTR(tmp_getattr_target_9, tmp_getattr_attr_9, tmp_getattr_default_9); - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - tmp_right_name_9 = PyTuple_New(2); - { - PyObject *tmp_expression_name_52; - PyObject *tmp_type_arg_18; - PyTuple_SET_ITEM(tmp_right_name_9, 0, tmp_tuple_element_35); - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_type_arg_18 = tmp_class_creation_9__prepared; - tmp_expression_name_52 = BUILTIN_TYPE1(tmp_type_arg_18); - assert(!(tmp_expression_name_52 == NULL)); - tmp_tuple_element_35 = LOOKUP_ATTRIBUTE(tmp_expression_name_52, mod_consts[143]); - Py_DECREF(tmp_expression_name_52); - if (tmp_tuple_element_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_9, 1, tmp_tuple_element_35); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_9); - goto try_except_handler_26; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_9 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_right_name_9); - if (tmp_raise_value_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_26; - } - exception_type = tmp_raise_type_9; - Py_INCREF(tmp_raise_type_9); - exception_value = tmp_raise_value_9; - exception_lineno = 240; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_26; - } - branch_no_35:; - goto branch_end_34; - branch_no_34:; - { - PyObject *tmp_assign_source_83; - tmp_assign_source_83 = PyDict_New(); - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_83; - } - branch_end_34:; - { - PyObject *tmp_assign_source_84; - { - PyObject *tmp_set_locals_9; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_set_locals_9 = tmp_class_creation_9__prepared; - locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240 = tmp_set_locals_9; - Py_INCREF(tmp_set_locals_9); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240, mod_consts[145], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_28; - } - tmp_dictset_value = mod_consts[115]; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240, mod_consts[147], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_28; - } - if (isFrameUnusable(cache_frame_0812d28c0fd416b215956f202c82484e_10)) { - Py_XDECREF(cache_frame_0812d28c0fd416b215956f202c82484e_10); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0812d28c0fd416b215956f202c82484e_10 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0812d28c0fd416b215956f202c82484e_10 = MAKE_FUNCTION_FRAME(codeobj_0812d28c0fd416b215956f202c82484e, module_models$unet3d$losses, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0812d28c0fd416b215956f202c82484e_10->m_type_description == NULL); - frame_0812d28c0fd416b215956f202c82484e_10 = cache_frame_0812d28c0fd416b215956f202c82484e_10; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0812d28c0fd416b215956f202c82484e_10); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0812d28c0fd416b215956f202c82484e_10) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_8; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_defaults_8 = mod_consts[178]; - Py_INCREF(tmp_defaults_8); - - tmp_closure_3[0] = outline_8_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__20___init__(tmp_defaults_8, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240, mod_consts[13], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - { - struct Nuitka_CellObject *tmp_closure_4[1]; - - tmp_closure_4[0] = outline_8_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$losses$$$function__21_forward(tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240, mod_consts[82], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0812d28c0fd416b215956f202c82484e_10); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_9; - - frame_exception_exit_10:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0812d28c0fd416b215956f202c82484e_10); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0812d28c0fd416b215956f202c82484e_10, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0812d28c0fd416b215956f202c82484e_10->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0812d28c0fd416b215956f202c82484e_10, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0812d28c0fd416b215956f202c82484e_10, - type_description_2, - outline_8_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_0812d28c0fd416b215956f202c82484e_10 == cache_frame_0812d28c0fd416b215956f202c82484e_10) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0812d28c0fd416b215956f202c82484e_10); - cache_frame_0812d28c0fd416b215956f202c82484e_10 = NULL; - } - - assertFrameObject(frame_0812d28c0fd416b215956f202c82484e_10); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_9; - - frame_no_exception_9:; - goto skip_nested_handling_9; - nested_frame_exit_9:; - - goto try_except_handler_28; - skip_nested_handling_9:; - { - nuitka_bool tmp_condition_result_55; - PyObject *tmp_compexpr_left_9; - PyObject *tmp_compexpr_right_9; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_compexpr_left_9 = tmp_class_creation_9__bases; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_compexpr_right_9 = tmp_class_creation_9__bases_orig; - tmp_condition_result_55 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_9, tmp_compexpr_right_9); - if (tmp_condition_result_55 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_28; - } - if (tmp_condition_result_55 == NUITKA_BOOL_TRUE) { - goto branch_yes_36; - } else { - goto branch_no_36; - } - assert(tmp_condition_result_55 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_36:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dictset_value = tmp_class_creation_9__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_28; - } - branch_no_36:; - { - PyObject *tmp_assign_source_85; - PyObject *tmp_called_name_19; - PyObject *tmp_args_name_18; - PyObject *tmp_tuple_element_36; - PyObject *tmp_kwargs_name_18; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_called_name_19 = tmp_class_creation_9__metaclass; - tmp_tuple_element_36 = mod_consts[115]; - tmp_args_name_18 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_18, 0, tmp_tuple_element_36); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_36 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_18, 1, tmp_tuple_element_36); - tmp_tuple_element_36 = locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240; - PyTuple_SET_ITEM0(tmp_args_name_18, 2, tmp_tuple_element_36); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_18 = tmp_class_creation_9__class_decl_dict; - frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame.f_lineno = 240; - tmp_assign_source_85 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_18, tmp_kwargs_name_18); - Py_DECREF(tmp_args_name_18); - if (tmp_assign_source_85 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - - goto try_except_handler_28; - } - { - PyObject *old = Nuitka_Cell_GET(outline_8_var___class__); - PyCell_SET(outline_8_var___class__, tmp_assign_source_85); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_8_var___class__)); - tmp_assign_source_84 = Nuitka_Cell_GET(outline_8_var___class__); - Py_INCREF(tmp_assign_source_84); - goto try_return_handler_28; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_28:; - Py_DECREF(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240); - locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240 = NULL; - goto try_return_handler_27; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240); - locals_models$unet3d$losses$$$class__9_WeightedSmoothL1Loss_240 = NULL; - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto try_except_handler_27; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_27:; - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - goto outline_result_9; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto outline_exception_9; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_9:; - exception_lineno = 240; - goto try_except_handler_26; - outline_result_9:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[115], tmp_assign_source_84); - } - goto try_end_10; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - Py_XDECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_705bf4315d2d4f531dff5d3d03b1beec); -#endif - popFrameStack(); - - assertFrameObject(frame_705bf4315d2d4f531dff5d3d03b1beec); - - goto frame_no_exception_10; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_705bf4315d2d4f531dff5d3d03b1beec); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_705bf4315d2d4f531dff5d3d03b1beec, exception_lineno); - } else if (exception_tb->tb_frame != &frame_705bf4315d2d4f531dff5d3d03b1beec->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_705bf4315d2d4f531dff5d3d03b1beec, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_10:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - Py_DECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_9__prepared); - Py_DECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - { - PyObject *tmp_assign_source_86; - - - tmp_assign_source_86 = MAKE_FUNCTION_models$unet3d$losses$$$function__22_flatten(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_86); - } - { - PyObject *tmp_assign_source_87; - - - tmp_assign_source_87 = MAKE_FUNCTION_models$unet3d$losses$$$function__23_get_loss_criterion(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[181], tmp_assign_source_87); - } - { - PyObject *tmp_assign_source_88; - - - tmp_assign_source_88 = MAKE_FUNCTION_models$unet3d$losses$$$function__24__create_loss(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$losses, (Nuitka_StringObject *)mod_consts[99], tmp_assign_source_88); - } - - return module_models$unet3d$losses; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.metrics.const b/medomni/models.build/module.models.unet3d.metrics.const deleted file mode 100644 index aacb36a86844402d30c1f3b442bb0ee73cc34b09..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.metrics.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.metrics.cpp b/medomni/models.build/module.models.unet3d.metrics.cpp deleted file mode 100644 index 690f95045a196b3603f2c079347489bc48e37478..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.metrics.cpp +++ /dev/null @@ -1,26893 +0,0 @@ -/* Generated code for Python module 'models.unet3d.metrics' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$metrics" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$metrics; -PyDictObject *moduledict_models$unet3d$metrics; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[252]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.metrics")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$metrics(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.metrics"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_d1e5352fa1a9fbab176ce0366f74b972; -static PyCodeObject *codeobj_c7d769025392d480a661ed7525d49b57; -static PyCodeObject *codeobj_0cf8f15b912f59c3df11f1bc1cb3fea0; -static PyCodeObject *codeobj_6a79547a3227bd3687d03320c888a7d5; -static PyCodeObject *codeobj_e88cbe919e4943422eaca3092583f68c; -static PyCodeObject *codeobj_9dcbcaa61a62b4193359e4eafa1dff12; -static PyCodeObject *codeobj_8e5ee399b651fc84fb09e0543608ba47; -static PyCodeObject *codeobj_5fc270cde0051c2eaf563a16fdfd133c; -static PyCodeObject *codeobj_2bba83743ec6097e610836f64263d12c; -static PyCodeObject *codeobj_e59924c010f350a33847b7bc37fb8c13; -static PyCodeObject *codeobj_b75ff7e24434e35dfc56d4768e73ec18; -static PyCodeObject *codeobj_a46b4a5c8a31bf4bad1959b4462967d8; -static PyCodeObject *codeobj_ea86a78d4b88f338243492fda90f9024; -static PyCodeObject *codeobj_72a00a732f540edac0bacfbeb9ebea2b; -static PyCodeObject *codeobj_739414be80f1099a2cddef3246c0c91d; -static PyCodeObject *codeobj_30651049ccf86cdd063b55ec7a4fa364; -static PyCodeObject *codeobj_2d44772b57531805600dabf6c833f211; -static PyCodeObject *codeobj_addffaf71f67b562ba4f792bfe1d9f33; -static PyCodeObject *codeobj_c0f8ba1eff149bb00d08b0021f15f590; -static PyCodeObject *codeobj_37251eb0c36bb09af4c0657f634957f5; -static PyCodeObject *codeobj_3683e3c7caa72ba2b301b3459a3c874e; -static PyCodeObject *codeobj_15029efea78ca37b23d40989b01f6a0a; -static PyCodeObject *codeobj_fe4dd1bb443ed6d52978af57ca08be53; -static PyCodeObject *codeobj_50a9020e6a51f1105daf1f222e909ae4; -static PyCodeObject *codeobj_c01d4c493e093c7de00d919c7dbc97f3; -static PyCodeObject *codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f; -static PyCodeObject *codeobj_7840753a58ffee472a48045eef486f18; -static PyCodeObject *codeobj_914854f2ce28cebe09f6c205cabe789a; -static PyCodeObject *codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5; -static PyCodeObject *codeobj_1d51fefa562de680476f0ff4599fe161; -static PyCodeObject *codeobj_6743357ccf7c82940fdd3986d828807c; -static PyCodeObject *codeobj_a4b23dac5778bf03565b51ee2cf73c40; -static PyCodeObject *codeobj_6d22b487fe6bb506aeab8c6f44f9fb50; -static PyCodeObject *codeobj_5da5d8dd8341dd90a301f5c1751530a7; -static PyCodeObject *codeobj_c463a7dbb13c425ed40fd700772abbe8; -static PyCodeObject *codeobj_e3c6ef6ba02f733011711ea56309b825; -static PyCodeObject *codeobj_fb00d90ebe317fe797e6b0aaf6808223; -static PyCodeObject *codeobj_28390b239ba9d51ee3f330d3fa1ea492; -static PyCodeObject *codeobj_299471fa28284ce856fcc2bb0f99954f; -static PyCodeObject *codeobj_5939483b3ea62df720d54e2d3cdb595f; -static PyCodeObject *codeobj_8f9bfd09bcf73e307b173aa11c64832f; -static PyCodeObject *codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27; -static PyCodeObject *codeobj_1b065ad043e94dde4abbeb05ae11c727; -static PyCodeObject *codeobj_1fe68f10d21aab4314bc2d9433ea7e6d; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[221]); CHECK_OBJECT(module_filename_obj); - codeobj_d1e5352fa1a9fbab176ce0366f74b972 = MAKE_CODEOBJECT(module_filename_obj, 162, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[222], mod_consts[223], NULL, 1, 0, 0); - codeobj_c7d769025392d480a661ed7525d49b57 = MAKE_CODEOBJECT(module_filename_obj, 305, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[222], mod_consts[224], NULL, 1, 0, 0); - codeobj_0cf8f15b912f59c3df11f1bc1cb3fea0 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[225], NULL, NULL, 0, 0, 0); - codeobj_6a79547a3227bd3687d03320c888a7d5 = MAKE_CODEOBJECT(module_filename_obj, 107, CO_NOFREE, mod_consts[171], mod_consts[226], NULL, 0, 0, 0); - codeobj_e88cbe919e4943422eaca3092583f68c = MAKE_CODEOBJECT(module_filename_obj, 333, CO_NOFREE, mod_consts[195], mod_consts[226], NULL, 0, 0, 0); - codeobj_9dcbcaa61a62b4193359e4eafa1dff12 = MAKE_CODEOBJECT(module_filename_obj, 357, CO_NOFREE, mod_consts[200], mod_consts[226], NULL, 0, 0, 0); - codeobj_8e5ee399b651fc84fb09e0543608ba47 = MAKE_CODEOBJECT(module_filename_obj, 182, CO_NOFREE, mod_consts[176], mod_consts[226], NULL, 0, 0, 0); - codeobj_5fc270cde0051c2eaf563a16fdfd133c = MAKE_CODEOBJECT(module_filename_obj, 382, CO_NOFREE, mod_consts[205], mod_consts[226], NULL, 0, 0, 0); - codeobj_2bba83743ec6097e610836f64263d12c = MAKE_CODEOBJECT(module_filename_obj, 15, CO_NOFREE, mod_consts[155], mod_consts[226], NULL, 0, 0, 0); - codeobj_e59924c010f350a33847b7bc37fb8c13 = MAKE_CODEOBJECT(module_filename_obj, 223, CO_NOFREE, mod_consts[182], mod_consts[226], NULL, 0, 0, 0); - codeobj_b75ff7e24434e35dfc56d4768e73ec18 = MAKE_CODEOBJECT(module_filename_obj, 260, CO_NOFREE, mod_consts[187], mod_consts[226], NULL, 0, 0, 0); - codeobj_a46b4a5c8a31bf4bad1959b4462967d8 = MAKE_CODEOBJECT(module_filename_obj, 417, CO_NOFREE, mod_consts[217], mod_consts[226], NULL, 0, 0, 0); - codeobj_ea86a78d4b88f338243492fda90f9024 = MAKE_CODEOBJECT(module_filename_obj, 32, CO_NOFREE, mod_consts[163], mod_consts[226], NULL, 0, 0, 0); - codeobj_72a00a732f540edac0bacfbeb9ebea2b = MAKE_CODEOBJECT(module_filename_obj, 404, CO_NOFREE, mod_consts[212], mod_consts[226], NULL, 0, 0, 0); - codeobj_739414be80f1099a2cddef3246c0c91d = MAKE_CODEOBJECT(module_filename_obj, 27, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[227], NULL, 3, 0, 0); - codeobj_30651049ccf86cdd063b55ec7a4fa364 = MAKE_CODEOBJECT(module_filename_obj, 412, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[227], NULL, 3, 0, 0); - codeobj_2d44772b57531805600dabf6c833f211 = MAKE_CODEOBJECT(module_filename_obj, 425, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[227], NULL, 3, 0, 0); - codeobj_addffaf71f67b562ba4f792bfe1d9f33 = MAKE_CODEOBJECT(module_filename_obj, 272, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[228], NULL, 3, 0, 0); - codeobj_c0f8ba1eff149bb00d08b0021f15f590 = MAKE_CODEOBJECT(module_filename_obj, 45, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[229], NULL, 3, 0, 0); - codeobj_37251eb0c36bb09af4c0657f634957f5 = MAKE_CODEOBJECT(module_filename_obj, 124, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[230], NULL, 3, 0, 0); - codeobj_3683e3c7caa72ba2b301b3459a3c874e = MAKE_CODEOBJECT(module_filename_obj, 24, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[231], NULL, 2, 0, 0); - codeobj_15029efea78ca37b23d40989b01f6a0a = MAKE_CODEOBJECT(module_filename_obj, 224, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[232], mod_consts[226], 6, 0, 0); - codeobj_fe4dd1bb443ed6d52978af57ca08be53 = MAKE_CODEOBJECT(module_filename_obj, 409, CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[233], NULL, 1, 0, 0); - codeobj_50a9020e6a51f1105daf1f222e909ae4 = MAKE_CODEOBJECT(module_filename_obj, 422, CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[233], NULL, 1, 0, 0); - codeobj_c01d4c493e093c7de00d919c7dbc97f3 = MAKE_CODEOBJECT(module_filename_obj, 261, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[234], NULL, 4, 0, 0); - codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f = MAKE_CODEOBJECT(module_filename_obj, 37, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[235], NULL, 3, 0, 0); - codeobj_7840753a58ffee472a48045eef486f18 = MAKE_CODEOBJECT(module_filename_obj, 338, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[236], mod_consts[226], 5, 0, 0); - codeobj_914854f2ce28cebe09f6c205cabe789a = MAKE_CODEOBJECT(module_filename_obj, 363, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[237], mod_consts[226], 4, 0, 0); - codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5 = MAKE_CODEOBJECT(module_filename_obj, 387, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[238], mod_consts[226], 4, 0, 0); - codeobj_1d51fefa562de680476f0ff4599fe161 = MAKE_CODEOBJECT(module_filename_obj, 188, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[72], mod_consts[239], mod_consts[226], 8, 0, 0); - codeobj_6743357ccf7c82940fdd3986d828807c = MAKE_CODEOBJECT(module_filename_obj, 120, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[72], mod_consts[240], NULL, 3, 0, 0); - codeobj_a4b23dac5778bf03565b51ee2cf73c40 = MAKE_CODEOBJECT(module_filename_obj, 87, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[18], mod_consts[241], NULL, 3, 0, 0); - codeobj_6d22b487fe6bb506aeab8c6f44f9fb50 = MAKE_CODEOBJECT(module_filename_obj, 314, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[103], mod_consts[242], NULL, 2, 0, 0); - codeobj_5da5d8dd8341dd90a301f5c1751530a7 = MAKE_CODEOBJECT(module_filename_obj, 100, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[26], mod_consts[243], NULL, 3, 0, 0); - codeobj_c463a7dbb13c425ed40fd700772abbe8 = MAKE_CODEOBJECT(module_filename_obj, 437, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[117], mod_consts[244], NULL, 1, 0, 0); - codeobj_e3c6ef6ba02f733011711ea56309b825 = MAKE_CODEOBJECT(module_filename_obj, 430, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[220], mod_consts[245], NULL, 1, 0, 0); - codeobj_fb00d90ebe317fe797e6b0aaf6808223 = MAKE_CODEOBJECT(module_filename_obj, 326, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[227], NULL, 3, 0, 0); - codeobj_28390b239ba9d51ee3f330d3fa1ea492 = MAKE_CODEOBJECT(module_filename_obj, 346, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[246], NULL, 3, 0, 0); - codeobj_299471fa28284ce856fcc2bb0f99954f = MAKE_CODEOBJECT(module_filename_obj, 370, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[246], NULL, 3, 0, 0); - codeobj_5939483b3ea62df720d54e2d3cdb595f = MAKE_CODEOBJECT(module_filename_obj, 395, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[100], mod_consts[247], NULL, 3, 0, 0); - codeobj_8f9bfd09bcf73e307b173aa11c64832f = MAKE_CODEOBJECT(module_filename_obj, 170, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[248], NULL, 2, 0, 0); - codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27 = MAKE_CODEOBJECT(module_filename_obj, 238, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[249], NULL, 2, 0, 0); - codeobj_1b065ad043e94dde4abbeb05ae11c727 = MAKE_CODEOBJECT(module_filename_obj, 200, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[60], mod_consts[250], NULL, 2, 0, 0); - codeobj_1fe68f10d21aab4314bc2d9433ea7e6d = MAKE_CODEOBJECT(module_filename_obj, 329, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[101], mod_consts[251], NULL, 2, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__8_complex_call_helper_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__10___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__11_input_to_segm(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__13_input_to_segm(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__14___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__15___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__16__filter_instances(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__17_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__18_target_to_seg(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__19___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__1___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__20_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__21___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__22_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__23___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__24_input_to_seg(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__25___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__26___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__27___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__28___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__2___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__3___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__4___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__5__binarize_predictions(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__6__jaccard_index(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__7___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__8___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__9_input_to_segm(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$metrics$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_epsilon = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - struct Nuitka_FrameObject *frame_3683e3c7caa72ba2b301b3459a3c874e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_3683e3c7caa72ba2b301b3459a3c874e = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3683e3c7caa72ba2b301b3459a3c874e)) { - Py_XDECREF(cache_frame_3683e3c7caa72ba2b301b3459a3c874e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3683e3c7caa72ba2b301b3459a3c874e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3683e3c7caa72ba2b301b3459a3c874e = MAKE_FUNCTION_FRAME(codeobj_3683e3c7caa72ba2b301b3459a3c874e, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3683e3c7caa72ba2b301b3459a3c874e->m_type_description == NULL); - frame_3683e3c7caa72ba2b301b3459a3c874e = cache_frame_3683e3c7caa72ba2b301b3459a3c874e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3683e3c7caa72ba2b301b3459a3c874e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3683e3c7caa72ba2b301b3459a3c874e) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_epsilon); - tmp_assattr_name_1 = par_epsilon; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[0], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3683e3c7caa72ba2b301b3459a3c874e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3683e3c7caa72ba2b301b3459a3c874e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3683e3c7caa72ba2b301b3459a3c874e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3683e3c7caa72ba2b301b3459a3c874e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3683e3c7caa72ba2b301b3459a3c874e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3683e3c7caa72ba2b301b3459a3c874e, - type_description_1, - par_self, - par_epsilon, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_3683e3c7caa72ba2b301b3459a3c874e == cache_frame_3683e3c7caa72ba2b301b3459a3c874e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3683e3c7caa72ba2b301b3459a3c874e); - cache_frame_3683e3c7caa72ba2b301b3459a3c874e = NULL; - } - - assertFrameObject(frame_3683e3c7caa72ba2b301b3459a3c874e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_epsilon); - Py_DECREF(par_epsilon); - par_epsilon = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_epsilon); - Py_DECREF(par_epsilon); - par_epsilon = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__2___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_739414be80f1099a2cddef3246c0c91d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_739414be80f1099a2cddef3246c0c91d = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_739414be80f1099a2cddef3246c0c91d)) { - Py_XDECREF(cache_frame_739414be80f1099a2cddef3246c0c91d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_739414be80f1099a2cddef3246c0c91d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_739414be80f1099a2cddef3246c0c91d = MAKE_FUNCTION_FRAME(codeobj_739414be80f1099a2cddef3246c0c91d, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_739414be80f1099a2cddef3246c0c91d->m_type_description == NULL); - frame_739414be80f1099a2cddef3246c0c91d = cache_frame_739414be80f1099a2cddef3246c0c91d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_739414be80f1099a2cddef3246c0c91d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_739414be80f1099a2cddef3246c0c91d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_2; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[2]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_target); - tmp_tuple_element_1 = par_target; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[0]; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[0]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_739414be80f1099a2cddef3246c0c91d->m_frame.f_lineno = 29; - tmp_args_element_name_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_739414be80f1099a2cddef3246c0c91d->m_frame.f_lineno = 29; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_739414be80f1099a2cddef3246c0c91d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_739414be80f1099a2cddef3246c0c91d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_739414be80f1099a2cddef3246c0c91d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_739414be80f1099a2cddef3246c0c91d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_739414be80f1099a2cddef3246c0c91d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_739414be80f1099a2cddef3246c0c91d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_739414be80f1099a2cddef3246c0c91d, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_739414be80f1099a2cddef3246c0c91d == cache_frame_739414be80f1099a2cddef3246c0c91d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_739414be80f1099a2cddef3246c0c91d); - cache_frame_739414be80f1099a2cddef3246c0c91d = NULL; - } - - assertFrameObject(frame_739414be80f1099a2cddef3246c0c91d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_skip_channels = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - PyObject *par_kwargs = python_pars[3]; - struct Nuitka_FrameObject *frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f)) { - Py_XDECREF(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = MAKE_FUNCTION_FRAME(codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f->m_type_description == NULL); - frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_1 = par_ignore_index; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[4], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_skip_channels); - tmp_assattr_name_2 = par_skip_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[5], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f, - type_description_1, - par_self, - par_skip_channels, - par_ignore_index, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f == cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - cache_frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f = NULL; - } - - assertFrameObject(frame_7a7683ba09b0b5b3bdc1b8d7f7188a7f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_skip_channels); - Py_DECREF(par_skip_channels); - par_skip_channels = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_skip_channels); - Py_DECREF(par_skip_channels); - par_skip_channels = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__4___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_n_classes = NULL; - PyObject *var_per_batch_iou = NULL; - PyObject *var__input = NULL; - PyObject *var__target = NULL; - PyObject *var_binary_prediction = NULL; - PyObject *var_mask = NULL; - PyObject *var_per_channel_iou = NULL; - PyObject *var_c = NULL; - PyObject *var_mean_iou = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_c0f8ba1eff149bb00d08b0021f15f590; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_c0f8ba1eff149bb00d08b0021f15f590 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c0f8ba1eff149bb00d08b0021f15f590)) { - Py_XDECREF(cache_frame_c0f8ba1eff149bb00d08b0021f15f590); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c0f8ba1eff149bb00d08b0021f15f590 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c0f8ba1eff149bb00d08b0021f15f590 = MAKE_FUNCTION_FRAME(codeobj_c0f8ba1eff149bb00d08b0021f15f590, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c0f8ba1eff149bb00d08b0021f15f590->m_type_description == NULL); - frame_c0f8ba1eff149bb00d08b0021f15f590 = cache_frame_c0f8ba1eff149bb00d08b0021f15f590; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c0f8ba1eff149bb00d08b0021f15f590); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c0f8ba1eff149bb00d08b0021f15f590) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_input); - tmp_called_instance_1 = par_input; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 51; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[8]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 51; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_input; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 53; - tmp_expression_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[10]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[11]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 1); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_n_classes == NULL); - var_n_classes = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_target); - tmp_called_instance_3 = par_target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 55; - tmp_compexpr_left_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[7]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[12]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 55; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_target; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[15]; - CHECK_OBJECT(var_n_classes); - tmp_dict_value_1 = var_n_classes; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_2; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[4]; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[4]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 56; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 56; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_called_instance_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_input; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 58; - tmp_compexpr_left_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[10]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (par_target == NULL) { - Py_DECREF(tmp_compexpr_left_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_5 = par_target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 58; - tmp_compexpr_right_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[10]); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_3); - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 58; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - tmp_raise_type_2 = PyExc_AssertionError; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_lineno = 58; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(var_per_batch_iou == NULL); - var_per_batch_iou = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 61; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_4 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_4; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooo"; - exception_lineno = 61; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var__input; - var__input = tmp_assign_source_9; - Py_INCREF(var__input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var__target; - var__target = tmp_assign_source_10; - Py_INCREF(var__target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[18]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var__input); - tmp_args_element_name_3 = var__input; - if (var_n_classes == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_4 = var_n_classes; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 62; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_binary_prediction; - var_binary_prediction = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_4 = par_self; - tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[4]); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_4 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_4 != tmp_compexpr_right_4) ? true : false; - Py_DECREF(tmp_compexpr_left_4); - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(var__target); - tmp_compexpr_left_5 = var__target; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 66; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_self; - tmp_compexpr_right_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[4]); - if (tmp_compexpr_right_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_12 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - Py_DECREF(tmp_compexpr_right_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - tmp_ass_subvalue_1 = mod_consts[20]; - CHECK_OBJECT(var_binary_prediction); - tmp_ass_subscribed_1 = var_binary_prediction; - CHECK_OBJECT(var_mask); - tmp_ass_subscript_1 = var_mask; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_ass_subvalue_2 = mod_consts[20]; - CHECK_OBJECT(var__target); - tmp_ass_subscribed_2 = var__target; - CHECK_OBJECT(var_mask); - tmp_ass_subscript_2 = var_mask; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - } - branch_no_4:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_instance_6; - if (var_binary_prediction == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 71; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_6 = var_binary_prediction; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 71; - tmp_assign_source_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[22]); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_binary_prediction; - var_binary_prediction = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_instance_7; - if (var__target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 72; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_7 = var__target; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 72; - tmp_assign_source_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[22]); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var__target; - var__target = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - tmp_assign_source_15 = PyList_New(0); - { - PyObject *old = var_per_channel_iou; - var_per_channel_iou = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_iter_arg_3; - PyObject *tmp_xrange_low_1; - if (var_n_classes == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_xrange_low_1 = var_n_classes; - tmp_iter_arg_3 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_16 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_17 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_17 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - exception_lineno = 75; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_18 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_c; - var_c = tmp_assign_source_18; - Py_INCREF(var_c); - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_6; - PyObject *tmp_compexpr_right_6; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(var_c); - tmp_compexpr_left_6 = var_c; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_6 = par_self; - tmp_compexpr_right_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[5]); - if (tmp_compexpr_right_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_6, tmp_compexpr_left_6); - Py_DECREF(tmp_compexpr_right_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - tmp_condition_result_5 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - goto loop_start_2; - branch_no_5:; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - if (var_per_channel_iou == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_7 = var_per_channel_iou; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[25]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[26]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - if (var_binary_prediction == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_9 = var_binary_prediction; - CHECK_OBJECT(var_c); - tmp_subscript_name_2 = var_c; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_2); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - if (var__target == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_10 = var__target; - CHECK_OBJECT(var_c); - tmp_subscript_name_3 = var_c; - tmp_args_element_name_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_3); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 79; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 79; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_1 = "oooooooooooo"; - goto try_except_handler_5; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_operand_name_3; - if (var_per_channel_iou == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 81; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_operand_name_3 = var_per_channel_iou; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_6 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_1; - tmp_raise_type_3 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[27]; - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 81; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - branch_no_6:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_8; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_element_name_9; - tmp_expression_name_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_11 == NULL)) { - tmp_expression_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[2]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[28]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - if (var_per_channel_iou == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_9 = var_per_channel_iou; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 82; - tmp_args_element_name_8 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_7); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 82; - tmp_assign_source_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mean_iou; - var_mean_iou = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_8; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_10; - if (var_per_batch_iou == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_8 = var_per_batch_iou; - CHECK_OBJECT(var_mean_iou); - tmp_args_element_name_10 = var_mean_iou; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 83; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_8, mod_consts[25], tmp_args_element_name_10); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "oooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_13; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_12; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[2]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[28]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - if (var_per_batch_iou == NULL) { - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[29]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_12 = var_per_batch_iou; - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 85; - tmp_args_element_name_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_9); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame.f_lineno = 85; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_11); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c0f8ba1eff149bb00d08b0021f15f590); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c0f8ba1eff149bb00d08b0021f15f590); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c0f8ba1eff149bb00d08b0021f15f590); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c0f8ba1eff149bb00d08b0021f15f590, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c0f8ba1eff149bb00d08b0021f15f590->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c0f8ba1eff149bb00d08b0021f15f590, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c0f8ba1eff149bb00d08b0021f15f590, - type_description_1, - par_self, - par_input, - par_target, - var_n_classes, - var_per_batch_iou, - var__input, - var__target, - var_binary_prediction, - var_mask, - var_per_channel_iou, - var_c, - var_mean_iou - ); - - - // Release cached frame if used for exception. - if (frame_c0f8ba1eff149bb00d08b0021f15f590 == cache_frame_c0f8ba1eff149bb00d08b0021f15f590) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c0f8ba1eff149bb00d08b0021f15f590); - cache_frame_c0f8ba1eff149bb00d08b0021f15f590 = NULL; - } - - assertFrameObject(frame_c0f8ba1eff149bb00d08b0021f15f590); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_n_classes); - var_n_classes = NULL; - Py_XDECREF(var_per_batch_iou); - var_per_batch_iou = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_binary_prediction); - var_binary_prediction = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_per_channel_iou); - var_per_channel_iou = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_mean_iou); - var_mean_iou = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_n_classes); - var_n_classes = NULL; - Py_XDECREF(var_per_batch_iou); - var_per_batch_iou = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_binary_prediction); - var_binary_prediction = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_per_channel_iou); - var_per_channel_iou = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_mean_iou); - var_mean_iou = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__5__binarize_predictions(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_n_classes = python_pars[2]; - PyObject *var_result = NULL; - PyObject *var__ = NULL; - PyObject *var_max_index = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_a4b23dac5778bf03565b51ee2cf73c40; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_a4b23dac5778bf03565b51ee2cf73c40 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a4b23dac5778bf03565b51ee2cf73c40)) { - Py_XDECREF(cache_frame_a4b23dac5778bf03565b51ee2cf73c40); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a4b23dac5778bf03565b51ee2cf73c40 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a4b23dac5778bf03565b51ee2cf73c40 = MAKE_FUNCTION_FRAME(codeobj_a4b23dac5778bf03565b51ee2cf73c40, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a4b23dac5778bf03565b51ee2cf73c40->m_type_description == NULL); - frame_a4b23dac5778bf03565b51ee2cf73c40 = cache_frame_a4b23dac5778bf03565b51ee2cf73c40; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a4b23dac5778bf03565b51ee2cf73c40); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a4b23dac5778bf03565b51ee2cf73c40) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_n_classes); - tmp_compexpr_left_1 = par_n_classes; - tmp_compexpr_right_1 = mod_consts[11]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_input); - tmp_compexpr_left_2 = par_input; - tmp_compexpr_right_2 = mod_consts[31]; - tmp_assign_source_1 = RICH_COMPARE_GT_OBJECT_OBJECT_FLOAT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_result == NULL); - var_result = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_1; - CHECK_OBJECT(var_result); - tmp_called_instance_1 = var_result; - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 95; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[32]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[33]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[34]); - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 97; - tmp_iter_arg_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 97; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_5); - var__ = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_max_index == NULL); - Py_INCREF(tmp_assign_source_6); - var_max_index = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[35]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_input; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[36]; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[37]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 98; - tmp_called_instance_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[20]; - CHECK_OBJECT(var_max_index); - tmp_args_element_name_2 = var_max_index; - tmp_args_element_name_3 = mod_consts[11]; - frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame.f_lineno = 98; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_return_value = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[38], - call_args - ); - } - - Py_DECREF(tmp_called_instance_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a4b23dac5778bf03565b51ee2cf73c40); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a4b23dac5778bf03565b51ee2cf73c40); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a4b23dac5778bf03565b51ee2cf73c40); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a4b23dac5778bf03565b51ee2cf73c40, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a4b23dac5778bf03565b51ee2cf73c40->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a4b23dac5778bf03565b51ee2cf73c40, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a4b23dac5778bf03565b51ee2cf73c40, - type_description_1, - par_self, - par_input, - par_n_classes, - var_result, - var__, - var_max_index - ); - - - // Release cached frame if used for exception. - if (frame_a4b23dac5778bf03565b51ee2cf73c40 == cache_frame_a4b23dac5778bf03565b51ee2cf73c40) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a4b23dac5778bf03565b51ee2cf73c40); - cache_frame_a4b23dac5778bf03565b51ee2cf73c40 = NULL; - } - - assertFrameObject(frame_a4b23dac5778bf03565b51ee2cf73c40); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_n_classes); - Py_DECREF(par_n_classes); - par_n_classes = NULL; - Py_XDECREF(var_result); - var_result = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_max_index); - var_max_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_n_classes); - Py_DECREF(par_n_classes); - par_n_classes = NULL; - Py_XDECREF(var_result); - var_result = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_max_index); - var_max_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__6__jaccard_index(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_prediction = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_5da5d8dd8341dd90a301f5c1751530a7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_5da5d8dd8341dd90a301f5c1751530a7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5da5d8dd8341dd90a301f5c1751530a7)) { - Py_XDECREF(cache_frame_5da5d8dd8341dd90a301f5c1751530a7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5da5d8dd8341dd90a301f5c1751530a7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5da5d8dd8341dd90a301f5c1751530a7 = MAKE_FUNCTION_FRAME(codeobj_5da5d8dd8341dd90a301f5c1751530a7, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5da5d8dd8341dd90a301f5c1751530a7->m_type_description == NULL); - frame_5da5d8dd8341dd90a301f5c1751530a7 = cache_frame_5da5d8dd8341dd90a301f5c1751530a7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5da5d8dd8341dd90a301f5c1751530a7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5da5d8dd8341dd90a301f5c1751530a7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_left_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[40]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_prediction); - tmp_left_name_2 = par_prediction; - CHECK_OBJECT(par_target); - tmp_right_name_1 = par_target; - tmp_args_element_name_1 = BINARY_OPERATION_BITAND_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_called_instance_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_left_name_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[41]); - Py_DECREF(tmp_called_instance_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[42]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[40]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_prediction == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[43]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = par_prediction; - if (par_target == NULL) { - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_3 = par_target; - tmp_args_element_name_2 = BINARY_OPERATION_BITOR_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_called_instance_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_tuple_element_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[41]); - Py_DECREF(tmp_called_instance_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[44]); - frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame.f_lineno = 104; - tmp_right_name_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5da5d8dd8341dd90a301f5c1751530a7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5da5d8dd8341dd90a301f5c1751530a7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5da5d8dd8341dd90a301f5c1751530a7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5da5d8dd8341dd90a301f5c1751530a7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5da5d8dd8341dd90a301f5c1751530a7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5da5d8dd8341dd90a301f5c1751530a7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5da5d8dd8341dd90a301f5c1751530a7, - type_description_1, - par_self, - par_prediction, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_5da5d8dd8341dd90a301f5c1751530a7 == cache_frame_5da5d8dd8341dd90a301f5c1751530a7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5da5d8dd8341dd90a301f5c1751530a7); - cache_frame_5da5d8dd8341dd90a301f5c1751530a7 = NULL; - } - - assertFrameObject(frame_5da5d8dd8341dd90a301f5c1751530a7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction); - par_prediction = NULL; - Py_XDECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction); - par_prediction = NULL; - Py_XDECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_use_last_target = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - PyObject *par_kwargs = python_pars[3]; - struct Nuitka_FrameObject *frame_6743357ccf7c82940fdd3986d828807c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_6743357ccf7c82940fdd3986d828807c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6743357ccf7c82940fdd3986d828807c)) { - Py_XDECREF(cache_frame_6743357ccf7c82940fdd3986d828807c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6743357ccf7c82940fdd3986d828807c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6743357ccf7c82940fdd3986d828807c = MAKE_FUNCTION_FRAME(codeobj_6743357ccf7c82940fdd3986d828807c, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6743357ccf7c82940fdd3986d828807c->m_type_description == NULL); - frame_6743357ccf7c82940fdd3986d828807c = cache_frame_6743357ccf7c82940fdd3986d828807c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6743357ccf7c82940fdd3986d828807c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6743357ccf7c82940fdd3986d828807c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_use_last_target); - tmp_assattr_name_1 = par_use_last_target; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[46], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_ignore_index); - tmp_assattr_name_2 = par_ignore_index; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[4], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6743357ccf7c82940fdd3986d828807c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6743357ccf7c82940fdd3986d828807c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6743357ccf7c82940fdd3986d828807c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6743357ccf7c82940fdd3986d828807c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6743357ccf7c82940fdd3986d828807c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6743357ccf7c82940fdd3986d828807c, - type_description_1, - par_self, - par_use_last_target, - par_ignore_index, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_6743357ccf7c82940fdd3986d828807c == cache_frame_6743357ccf7c82940fdd3986d828807c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6743357ccf7c82940fdd3986d828807c); - cache_frame_6743357ccf7c82940fdd3986d828807c = NULL; - } - - assertFrameObject(frame_6743357ccf7c82940fdd3986d828807c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__8___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_per_batch_arand = NULL; - PyObject *var__input = NULL; - PyObject *var__target = NULL; - PyObject *var_segm = NULL; - PyObject *var_per_channel_arand = NULL; - PyObject *var_mean_arand = NULL; - PyObject *outline_0_var_channel_segm = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_37251eb0c36bb09af4c0657f634957f5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - struct Nuitka_FrameObject *frame_d1e5352fa1a9fbab176ce0366f74b972_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - static struct Nuitka_FrameObject *cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_37251eb0c36bb09af4c0657f634957f5 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_37251eb0c36bb09af4c0657f634957f5)) { - Py_XDECREF(cache_frame_37251eb0c36bb09af4c0657f634957f5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_37251eb0c36bb09af4c0657f634957f5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_37251eb0c36bb09af4c0657f634957f5 = MAKE_FUNCTION_FRAME(codeobj_37251eb0c36bb09af4c0657f634957f5, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_37251eb0c36bb09af4c0657f634957f5->m_type_description == NULL); - frame_37251eb0c36bb09af4c0657f634957f5 = cache_frame_37251eb0c36bb09af4c0657f634957f5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_37251eb0c36bb09af4c0657f634957f5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_37251eb0c36bb09af4c0657f634957f5) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 137; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooo"; - exception_lineno = 137; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_4; - Py_INCREF(par_input); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_5; - Py_INCREF(par_target); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[46]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 138; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_target); - tmp_expression_name_2 = par_target; - tmp_subscript_name_1 = mod_consts[48]; - tmp_assign_source_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_6; - Py_DECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_target); - tmp_expression_name_3 = par_target; - tmp_subscript_name_2 = mod_consts[49]; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_7; - Py_DECREF(old); - } - - } - branch_end_1:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(par_target); - tmp_expression_name_4 = par_target; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[50]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[52]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 145; - tmp_assign_source_8 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[4]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_7; - tmp_ass_subvalue_1 = mod_consts[20]; - CHECK_OBJECT(par_target); - tmp_ass_subscribed_1 = par_target; - CHECK_OBJECT(par_target); - tmp_compexpr_left_2 = par_target; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[4]); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_ass_subscript_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_ass_subscript_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = PyList_New(0); - assert(var_per_batch_arand == NULL); - var_per_batch_arand = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - tmp_called_name_3 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(par_input); - tmp_args_element_name_4 = par_input; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_target; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 151; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_10 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_10; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_11 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_11 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_3 = tmp_for_loop_1__iter_value; - tmp_assign_source_12 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_13 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_13 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooo"; - exception_lineno = 151; - goto try_except_handler_6; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_5; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_4; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_15 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var__input; - var__input = tmp_assign_source_15; - Py_INCREF(var__input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var__target; - var__target = tmp_assign_source_16; - Py_INCREF(var__target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_6; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - int tmp_truth_name_2; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[53]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var__target); - tmp_compexpr_left_3 = var__target; - CHECK_OBJECT(var__target); - tmp_expression_name_10 = var__target; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[54]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_subscript_name_3 = mod_consts[20]; - tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_9, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_9); - if (tmp_compexpr_right_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_args_element_name_6 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_right_3); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 152; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 152; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_2; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 153; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[56], - &PyTuple_GET_ITEM(mod_consts[57], 0) - ); - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_3; - if (var_per_batch_arand == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_2 = var_per_batch_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 154; - tmp_call_result_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[25], - &PyTuple_GET_ITEM(mod_consts[59], 0) - ); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_3); - } - goto loop_start_1; - branch_no_3:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 158; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var__input); - tmp_args_element_name_7 = var__input; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 158; - tmp_assign_source_17 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[60], tmp_args_element_name_7); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 158; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = var_segm; - var_segm = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(var_segm); - tmp_expression_name_11 = var_segm; - tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[61]); - if (tmp_compexpr_left_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_compexpr_right_4 = mod_consts[12]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - Py_DECREF(tmp_compexpr_left_4); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 159; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - branch_no_4:; - { - PyObject *tmp_assign_source_18; - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_iter_arg_4; - if (var_segm == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[62]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_1 = "ooooooooo"; - goto try_except_handler_7; - } - - tmp_iter_arg_4 = var_segm; - tmp_assign_source_19 = MAKE_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_listcomp_1__$0; - tmp_listcomp_1__$0 = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = PyList_New(0); - { - PyObject *old = tmp_listcomp_1__contraction; - tmp_listcomp_1__contraction = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - if (isFrameUnusable(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2)) { - Py_XDECREF(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 = MAKE_FUNCTION_FRAME(codeobj_d1e5352fa1a9fbab176ce0366f74b972, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2->m_type_description == NULL); - frame_d1e5352fa1a9fbab176ce0366f74b972_2 = cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d1e5352fa1a9fbab176ce0366f74b972_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d1e5352fa1a9fbab176ce0366f74b972_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_2 = tmp_listcomp_1__$0; - tmp_assign_source_21 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_21 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 162; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_21; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_22; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_22 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_channel_segm; - outline_0_var_channel_segm = tmp_assign_source_22; - Py_INCREF(outline_0_var_channel_segm); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_expression_name_12; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[63]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[63]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - if (var__target == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - - tmp_args_element_name_8 = var__target; - CHECK_OBJECT(outline_0_var_channel_segm); - tmp_args_element_name_9 = outline_0_var_channel_segm; - frame_d1e5352fa1a9fbab176ce0366f74b972_2->m_frame.f_lineno = 162; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_expression_name_12 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - tmp_subscript_name_4 = mod_consts[20]; - tmp_append_value_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_12, tmp_subscript_name_4, 0); - Py_DECREF(tmp_expression_name_12); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_2 = "oo"; - goto try_except_handler_8; - } - goto loop_start_2; - loop_end_2:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_18 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_18); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1e5352fa1a9fbab176ce0366f74b972_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1e5352fa1a9fbab176ce0366f74b972_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_7; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d1e5352fa1a9fbab176ce0366f74b972_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d1e5352fa1a9fbab176ce0366f74b972_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d1e5352fa1a9fbab176ce0366f74b972_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d1e5352fa1a9fbab176ce0366f74b972_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d1e5352fa1a9fbab176ce0366f74b972_2, - type_description_2, - outline_0_var_channel_segm, - var__target - ); - - - // Release cached frame if used for exception. - if (frame_d1e5352fa1a9fbab176ce0366f74b972_2 == cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2); - cache_frame_d1e5352fa1a9fbab176ce0366f74b972_2 = NULL; - } - - assertFrameObject(frame_d1e5352fa1a9fbab176ce0366f74b972_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooooooo"; - goto try_except_handler_7; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - Py_XDECREF(outline_0_var_channel_segm); - outline_0_var_channel_segm = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_channel_segm); - outline_0_var_channel_segm = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 162; - goto try_except_handler_4; - outline_result_1:; - { - PyObject *old = var_per_channel_arand; - var_per_channel_arand = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_13; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_10; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_11; - if (var_per_batch_arand == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_13 = var_per_batch_arand; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[25]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_per_channel_arand); - tmp_args_element_name_11 = var_per_channel_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 163; - tmp_args_element_name_10 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[64], tmp_args_element_name_11); - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 163; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_10); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_4); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_5; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_element_name_12; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_element_name_13; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[2]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_15 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_15 == NULL)) { - tmp_expression_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[28]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_per_batch_arand == NULL) { - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[58]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_13 = var_per_batch_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 166; - tmp_args_element_name_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_13); - Py_DECREF(tmp_called_name_8); - if (tmp_args_element_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 166; - tmp_assign_source_23 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_12); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_12); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(var_mean_arand == NULL); - var_mean_arand = tmp_assign_source_23; - } - { - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_14; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[56]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[65]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_called_instance_5; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_mean_arand); - tmp_called_instance_5 = var_mean_arand; - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 167; - tmp_format_value_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[66]); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[67]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_14 = PyUnicode_Join(mod_consts[67], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - frame_37251eb0c36bb09af4c0657f634957f5->m_frame.f_lineno = 167; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_14); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_14); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_5); - } - if (var_mean_arand == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 168; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_mean_arand; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_37251eb0c36bb09af4c0657f634957f5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_37251eb0c36bb09af4c0657f634957f5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_37251eb0c36bb09af4c0657f634957f5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_37251eb0c36bb09af4c0657f634957f5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_37251eb0c36bb09af4c0657f634957f5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_37251eb0c36bb09af4c0657f634957f5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_37251eb0c36bb09af4c0657f634957f5, - type_description_1, - par_self, - par_input, - par_target, - var_per_batch_arand, - var__input, - var__target, - var_segm, - var_per_channel_arand, - var_mean_arand - ); - - - // Release cached frame if used for exception. - if (frame_37251eb0c36bb09af4c0657f634957f5 == cache_frame_37251eb0c36bb09af4c0657f634957f5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_37251eb0c36bb09af4c0657f634957f5); - cache_frame_37251eb0c36bb09af4c0657f634957f5 = NULL; - } - - assertFrameObject(frame_37251eb0c36bb09af4c0657f634957f5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_per_batch_arand); - var_per_batch_arand = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_segm); - var_segm = NULL; - Py_XDECREF(var_per_channel_arand); - var_per_channel_arand = NULL; - Py_XDECREF(var_mean_arand); - var_mean_arand = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_per_batch_arand); - var_per_batch_arand = NULL; - Py_XDECREF(var__input); - var__input = NULL; - Py_XDECREF(var__target); - var__target = NULL; - Py_XDECREF(var_segm); - var_segm = NULL; - Py_XDECREF(var_per_channel_arand); - var_per_channel_arand = NULL; - Py_XDECREF(var_mean_arand); - var_mean_arand = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__9_input_to_segm(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_input); - tmp_return_value = par_input; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__10___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_use_last_target = python_pars[2]; - PyObject *par_ignore_index = python_pars[3]; - PyObject *par_input_channel = python_pars[4]; - PyObject *par_invert_pmaps = python_pars[5]; - PyObject *par_save_plots = python_pars[6]; - PyObject *par_plots_dir = python_pars[7]; - PyObject *par_kwargs = python_pars[8]; - struct Nuitka_FrameObject *frame_1d51fefa562de680476f0ff4599fe161; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_1d51fefa562de680476f0ff4599fe161 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1d51fefa562de680476f0ff4599fe161)) { - Py_XDECREF(cache_frame_1d51fefa562de680476f0ff4599fe161); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1d51fefa562de680476f0ff4599fe161 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1d51fefa562de680476f0ff4599fe161 = MAKE_FUNCTION_FRAME(codeobj_1d51fefa562de680476f0ff4599fe161, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1d51fefa562de680476f0ff4599fe161->m_type_description == NULL); - frame_1d51fefa562de680476f0ff4599fe161 = cache_frame_1d51fefa562de680476f0ff4599fe161; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1d51fefa562de680476f0ff4599fe161); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1d51fefa562de680476f0ff4599fe161) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[46]; - CHECK_OBJECT(par_use_last_target); - tmp_dict_value_1 = par_use_last_target; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[4]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_1 = par_ignore_index; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[73]; - CHECK_OBJECT(par_save_plots); - tmp_dict_value_1 = par_save_plots; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[74]; - CHECK_OBJECT(par_plots_dir); - tmp_dict_value_1 = par_plots_dir; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 190; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[75]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 195; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 196; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_input_channel); - tmp_assattr_name_2 = par_input_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[77], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_invert_pmaps); - tmp_assattr_name_3 = par_invert_pmaps; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[78], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1d51fefa562de680476f0ff4599fe161); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1d51fefa562de680476f0ff4599fe161); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1d51fefa562de680476f0ff4599fe161, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1d51fefa562de680476f0ff4599fe161->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1d51fefa562de680476f0ff4599fe161, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1d51fefa562de680476f0ff4599fe161, - type_description_1, - par_self, - par_thresholds, - par_use_last_target, - par_ignore_index, - par_input_channel, - par_invert_pmaps, - par_save_plots, - par_plots_dir, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_1d51fefa562de680476f0ff4599fe161 == cache_frame_1d51fefa562de680476f0ff4599fe161) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1d51fefa562de680476f0ff4599fe161); - cache_frame_1d51fefa562de680476f0ff4599fe161 = NULL; - } - - assertFrameObject(frame_1d51fefa562de680476f0ff4599fe161); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_invert_pmaps); - Py_DECREF(par_invert_pmaps); - par_invert_pmaps = NULL; - CHECK_OBJECT(par_save_plots); - Py_DECREF(par_save_plots); - par_save_plots = NULL; - CHECK_OBJECT(par_plots_dir); - Py_DECREF(par_plots_dir); - par_plots_dir = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_invert_pmaps); - Py_DECREF(par_invert_pmaps); - par_invert_pmaps = NULL; - CHECK_OBJECT(par_save_plots); - Py_DECREF(par_save_plots); - par_save_plots = NULL; - CHECK_OBJECT(par_plots_dir); - Py_DECREF(par_plots_dir); - par_plots_dir = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__11_input_to_segm(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *var_segs = NULL; - PyObject *var_predictions = NULL; - PyObject *var_th = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - struct Nuitka_FrameObject *frame_1b065ad043e94dde4abbeb05ae11c727; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_1b065ad043e94dde4abbeb05ae11c727 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1b065ad043e94dde4abbeb05ae11c727)) { - Py_XDECREF(cache_frame_1b065ad043e94dde4abbeb05ae11c727); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1b065ad043e94dde4abbeb05ae11c727 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1b065ad043e94dde4abbeb05ae11c727 = MAKE_FUNCTION_FRAME(codeobj_1b065ad043e94dde4abbeb05ae11c727, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1b065ad043e94dde4abbeb05ae11c727->m_type_description == NULL); - frame_1b065ad043e94dde4abbeb05ae11c727 = cache_frame_1b065ad043e94dde4abbeb05ae11c727; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1b065ad043e94dde4abbeb05ae11c727); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1b065ad043e94dde4abbeb05ae11c727) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[77]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[79]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_expression_name_3 = par_input; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[77]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[80]); - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 202; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input); - tmp_iter_arg_1 = par_input; - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 205; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_5; - Py_INCREF(var_predictions); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_self; - tmp_iter_arg_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[76]); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 206; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_8 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_8; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - if (var_predictions == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[81]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_compexpr_left_2 = var_predictions; - CHECK_OBJECT(var_th); - tmp_compexpr_right_2 = var_th; - tmp_assign_source_9 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 210; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_6 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[78]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 210; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_predictions); - tmp_args_element_name_1 = var_predictions; - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 213; - tmp_assign_source_10 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[82], tmp_args_element_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(var_predictions); - tmp_expression_name_7 = var_predictions; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[50]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[37]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 215; - tmp_assign_source_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[84]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_predictions); - tmp_tuple_element_2 = var_predictions; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[85]); - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 217; - tmp_assign_source_12 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 218; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_called_instance_2 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_3 = var_seg; - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 218; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[25], tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 205; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_4; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[87]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = var_segs; - frame_1b065ad043e94dde4abbeb05ae11c727->m_frame.f_lineno = 220; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b065ad043e94dde4abbeb05ae11c727); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b065ad043e94dde4abbeb05ae11c727); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b065ad043e94dde4abbeb05ae11c727); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1b065ad043e94dde4abbeb05ae11c727, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1b065ad043e94dde4abbeb05ae11c727->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1b065ad043e94dde4abbeb05ae11c727, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1b065ad043e94dde4abbeb05ae11c727, - type_description_1, - par_self, - par_input, - var_segs, - var_predictions, - var_th, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_1b065ad043e94dde4abbeb05ae11c727 == cache_frame_1b065ad043e94dde4abbeb05ae11c727) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1b065ad043e94dde4abbeb05ae11c727); - cache_frame_1b065ad043e94dde4abbeb05ae11c727 = NULL; - } - - assertFrameObject(frame_1b065ad043e94dde4abbeb05ae11c727); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__12___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_channels = python_pars[1]; - PyObject *par_thresholds = python_pars[2]; - PyObject *par_use_last_target = python_pars[3]; - PyObject *par_ignore_index = python_pars[4]; - PyObject *par_invert_channels = python_pars[5]; - PyObject *par_kwargs = python_pars[6]; - struct Nuitka_FrameObject *frame_15029efea78ca37b23d40989b01f6a0a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_15029efea78ca37b23d40989b01f6a0a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_15029efea78ca37b23d40989b01f6a0a)) { - Py_XDECREF(cache_frame_15029efea78ca37b23d40989b01f6a0a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_15029efea78ca37b23d40989b01f6a0a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_15029efea78ca37b23d40989b01f6a0a = MAKE_FUNCTION_FRAME(codeobj_15029efea78ca37b23d40989b01f6a0a, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_15029efea78ca37b23d40989b01f6a0a->m_type_description == NULL); - frame_15029efea78ca37b23d40989b01f6a0a = cache_frame_15029efea78ca37b23d40989b01f6a0a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_15029efea78ca37b23d40989b01f6a0a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_15029efea78ca37b23d40989b01f6a0a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[46]; - CHECK_OBJECT(par_use_last_target); - tmp_dict_value_1 = par_use_last_target; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[4]; - CHECK_OBJECT(par_ignore_index); - tmp_dict_value_1 = par_ignore_index; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 227; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - CHECK_OBJECT(par_input_channels); - tmp_isinstance_inst_1 = par_input_channels; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_input_channels); - tmp_isinstance_inst_2 = par_input_channels; - tmp_isinstance_cls_2 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_operand_name_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_operand_name_1 = tmp_or_left_value_1; - or_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 228; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 228; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_input_channels); - tmp_assattr_name_1 = par_input_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[88], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[75]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_2:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_2; - PyObject *tmp_isinstance_inst_3; - PyObject *tmp_isinstance_cls_3; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_3 = par_thresholds; - tmp_isinstance_cls_3 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_3, tmp_isinstance_cls_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_2 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 232; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - tmp_raise_type_2 = PyExc_AssertionError; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_lineno = 232; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_2 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[76], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_invert_channels); - tmp_compexpr_left_2 = par_invert_channels; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - { - PyObject *old = par_invert_channels; - assert(old != NULL); - par_invert_channels = tmp_assign_source_2; - Py_DECREF(old); - } - - } - branch_no_4:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_invert_channels); - tmp_assattr_name_3 = par_invert_channels; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[89], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15029efea78ca37b23d40989b01f6a0a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_15029efea78ca37b23d40989b01f6a0a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_15029efea78ca37b23d40989b01f6a0a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_15029efea78ca37b23d40989b01f6a0a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_15029efea78ca37b23d40989b01f6a0a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_15029efea78ca37b23d40989b01f6a0a, - type_description_1, - par_self, - par_input_channels, - par_thresholds, - par_use_last_target, - par_ignore_index, - par_invert_channels, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_15029efea78ca37b23d40989b01f6a0a == cache_frame_15029efea78ca37b23d40989b01f6a0a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_15029efea78ca37b23d40989b01f6a0a); - cache_frame_15029efea78ca37b23d40989b01f6a0a = NULL; - } - - assertFrameObject(frame_15029efea78ca37b23d40989b01f6a0a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_channels); - Py_DECREF(par_input_channels); - par_input_channels = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - CHECK_OBJECT(par_invert_channels); - Py_DECREF(par_invert_channels); - par_invert_channels = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_channels); - Py_DECREF(par_input_channels); - par_input_channels = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - Py_XDECREF(par_invert_channels); - par_invert_channels = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__13_input_to_segm(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *var_results = NULL; - PyObject *var_i = NULL; - PyObject *var_c = NULL; - PyObject *var_segs = NULL; - PyObject *var_predictions = NULL; - PyObject *var_th = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_aa4eae3e0dbdfd57a611a0325f8f7e27; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_results == NULL); - var_results = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27)) { - Py_XDECREF(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - -#if _DEBUG_REFCOUNTS - if (cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = MAKE_FUNCTION_FRAME(codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_type_description == NULL); - frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27; - - // Push the new frame as the currently active one. - pushFrameStack(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_aa4eae3e0dbdfd57a611a0325f8f7e27) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[88]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 241; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_i; - var_i = tmp_assign_source_4; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 242; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = par_input; - CHECK_OBJECT(var_i); - tmp_subscript_name_1 = var_i; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_c; - var_c = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(var_i); - tmp_compexpr_left_1 = var_i; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 244; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[89]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - tmp_left_name_1 = mod_consts[11]; - CHECK_OBJECT(var_c); - tmp_right_name_1 = var_c; - tmp_assign_source_6 = BINARY_OPERATION_SUB_OBJECT_LONG_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_c; - var_c = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - if (var_results == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 246; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_results; - CHECK_OBJECT(var_c); - tmp_args_element_name_1 = var_c; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 246; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_1 = "ooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[87]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_results == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = var_results; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 248; - tmp_assign_source_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - tmp_assign_source_8 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(par_input); - tmp_iter_arg_2 = par_input; - tmp_assign_source_9 = MAKE_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_2__for_iterator == NULL); - tmp_for_loop_2__for_iterator = tmp_assign_source_9; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_10 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_10 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 251; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_11 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_predictions; - var_predictions = tmp_assign_source_11; - Py_INCREF(var_predictions); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_3; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_5 = par_self; - tmp_iter_arg_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[76]); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_12 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_for_loop_3__for_iterator; - tmp_for_loop_3__for_iterator = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_13 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_13 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooo"; - exception_lineno = 252; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_14 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_14; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - if (var_predictions == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[81]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_compexpr_left_2 = var_predictions; - CHECK_OBJECT(var_th); - tmp_compexpr_right_2 = var_th; - tmp_expression_name_7 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[50]); - Py_DECREF(tmp_expression_name_7); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[37]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 254; - tmp_tuple_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 254; - tmp_assign_source_15 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_4; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 255; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - - tmp_called_instance_2 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_4 = var_seg; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 255; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[25], tmp_args_element_name_4); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "ooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "ooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_5; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[87]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = var_segs; - frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame.f_lineno = 257; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_aa4eae3e0dbdfd57a611a0325f8f7e27, exception_lineno); - } else if (exception_tb->tb_frame != &frame_aa4eae3e0dbdfd57a611a0325f8f7e27->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_aa4eae3e0dbdfd57a611a0325f8f7e27, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_aa4eae3e0dbdfd57a611a0325f8f7e27, - type_description_1, - par_self, - par_input, - var_results, - var_i, - var_c, - var_segs, - var_predictions, - var_th, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_aa4eae3e0dbdfd57a611a0325f8f7e27 == cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - cache_frame_aa4eae3e0dbdfd57a611a0325f8f7e27 = NULL; - } - - assertFrameObject(frame_aa4eae3e0dbdfd57a611a0325f8f7e27); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_results); - var_results = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_results); - var_results = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_c); - var_c = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_predictions); - var_predictions = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__14___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_min_instance_size = python_pars[1]; - PyObject *par_use_last_target = python_pars[2]; - PyObject *par_metric = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_c01d4c493e093c7de00d919c7dbc97f3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_c01d4c493e093c7de00d919c7dbc97f3 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c01d4c493e093c7de00d919c7dbc97f3)) { - Py_XDECREF(cache_frame_c01d4c493e093c7de00d919c7dbc97f3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c01d4c493e093c7de00d919c7dbc97f3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c01d4c493e093c7de00d919c7dbc97f3 = MAKE_FUNCTION_FRAME(codeobj_c01d4c493e093c7de00d919c7dbc97f3, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c01d4c493e093c7de00d919c7dbc97f3->m_type_description == NULL); - frame_c01d4c493e093c7de00d919c7dbc97f3 = cache_frame_c01d4c493e093c7de00d919c7dbc97f3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c01d4c493e093c7de00d919c7dbc97f3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c01d4c493e093c7de00d919c7dbc97f3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_min_instance_size); - tmp_assattr_name_1 = par_min_instance_size; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[91], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_use_last_target); - tmp_assattr_name_2 = par_use_last_target; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[46], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 263; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_metric); - tmp_compexpr_left_1 = par_metric; - tmp_compexpr_right_1 = LIST_COPY(mod_consts[92]); - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 264; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 264; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_metric); - tmp_compexpr_left_2 = par_metric; - tmp_compexpr_right_2 = mod_consts[93]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 265; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_assattr_target_3; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[94]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[94]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_c01d4c493e093c7de00d919c7dbc97f3->m_frame.f_lineno = 267; - tmp_assattr_name_3 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[95], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[96]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[96]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[97]); - frame_c01d4c493e093c7de00d919c7dbc97f3->m_frame.f_lineno = 270; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[95], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - branch_end_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c01d4c493e093c7de00d919c7dbc97f3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c01d4c493e093c7de00d919c7dbc97f3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c01d4c493e093c7de00d919c7dbc97f3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c01d4c493e093c7de00d919c7dbc97f3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c01d4c493e093c7de00d919c7dbc97f3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c01d4c493e093c7de00d919c7dbc97f3, - type_description_1, - par_self, - par_min_instance_size, - par_use_last_target, - par_metric, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_c01d4c493e093c7de00d919c7dbc97f3 == cache_frame_c01d4c493e093c7de00d919c7dbc97f3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c01d4c493e093c7de00d919c7dbc97f3); - cache_frame_c01d4c493e093c7de00d919c7dbc97f3 = NULL; - } - - assertFrameObject(frame_c01d4c493e093c7de00d919c7dbc97f3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_min_instance_size); - Py_DECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_metric); - Py_DECREF(par_metric); - par_metric = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_min_instance_size); - Py_DECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_use_last_target); - Py_DECREF(par_use_last_target); - par_use_last_target = NULL; - CHECK_OBJECT(par_metric); - Py_DECREF(par_metric); - par_metric = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__15___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_input1 = NULL; - PyObject *var_input2 = NULL; - PyObject *var_multi_head = NULL; - PyObject *var_batch_aps = NULL; - PyObject *var_i_batch = NULL; - PyObject *var_inp1 = NULL; - PyObject *var_inp2 = NULL; - PyObject *var_tar = NULL; - PyObject *var_inp = NULL; - PyObject *var_segs = NULL; - PyObject *var_segs_aps = NULL; - PyObject *outline_0_var_seg = NULL; - PyObject *tmp_assign_unpack_1__assign_source = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__element_3 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - struct Nuitka_FrameObject *frame_addffaf71f67b562ba4f792bfe1d9f33; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - struct Nuitka_FrameObject *frame_c7d769025392d480a661ed7525d49b57_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - static struct Nuitka_FrameObject *cache_frame_c7d769025392d480a661ed7525d49b57_2 = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_addffaf71f67b562ba4f792bfe1d9f33 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_addffaf71f67b562ba4f792bfe1d9f33)) { - Py_XDECREF(cache_frame_addffaf71f67b562ba4f792bfe1d9f33); - -#if _DEBUG_REFCOUNTS - if (cache_frame_addffaf71f67b562ba4f792bfe1d9f33 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_addffaf71f67b562ba4f792bfe1d9f33 = MAKE_FUNCTION_FRAME(codeobj_addffaf71f67b562ba4f792bfe1d9f33, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_addffaf71f67b562ba4f792bfe1d9f33->m_type_description == NULL); - frame_addffaf71f67b562ba4f792bfe1d9f33 = cache_frame_addffaf71f67b562ba4f792bfe1d9f33; - - // Push the new frame as the currently active one. - pushFrameStack(frame_addffaf71f67b562ba4f792bfe1d9f33); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_addffaf71f67b562ba4f792bfe1d9f33) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_target); - tmp_called_instance_1 = par_target; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 273; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[7]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[8]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 273; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[46]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 274; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 274; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 275; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_target; - tmp_subscript_name_1 = mod_consts[48]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 278; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_target; - tmp_subscript_name_2 = mod_consts[49]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_target; - par_target = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - branch_end_2:; - branch_no_1:; - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(par_input); - tmp_assign_source_3 = par_input; - assert(tmp_assign_unpack_1__assign_source == NULL); - Py_INCREF(tmp_assign_source_3); - tmp_assign_unpack_1__assign_source = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_4 = tmp_assign_unpack_1__assign_source; - assert(var_input1 == NULL); - Py_INCREF(tmp_assign_source_4); - var_input1 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_5 = tmp_assign_unpack_1__assign_source; - assert(var_input2 == NULL); - Py_INCREF(tmp_assign_source_5); - var_input2 = tmp_assign_source_5; - } - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - Py_DECREF(tmp_assign_unpack_1__assign_source); - tmp_assign_unpack_1__assign_source = NULL; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_input); - tmp_isinstance_inst_1 = par_input; - tmp_isinstance_cls_1 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = (tmp_res != 0) ? Py_True : Py_False; - assert(var_multi_head == NULL); - Py_INCREF(tmp_assign_source_6); - var_multi_head = tmp_assign_source_6; - } - { - nuitka_bool tmp_condition_result_3; - int tmp_truth_name_3; - CHECK_OBJECT(var_multi_head); - tmp_truth_name_3 = CHECK_IF_TRUE(var_multi_head); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input); - tmp_iter_arg_1 = par_input; - tmp_assign_source_7 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 283; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_7; - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_9; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 283; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_input1; - assert(old != NULL); - var_input1 = tmp_assign_source_10; - Py_INCREF(var_input1); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_input2; - assert(old != NULL); - var_input2 = tmp_assign_source_11; - Py_INCREF(var_input2); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - branch_no_3:; - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_input1); - tmp_args_element_name_1 = var_input1; - CHECK_OBJECT(var_input2); - tmp_args_element_name_2 = var_input2; - if (par_target == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[14]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_3 = par_target; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 285; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_12 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 285; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_13 = UNPACK_NEXT(tmp_unpack_3, 0, 3); - if (tmp_assign_source_13 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_4, 1, 3); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_15 = UNPACK_NEXT(tmp_unpack_5, 2, 3); - if (tmp_assign_source_15 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_3 == NULL); - tmp_tuple_unpack_2__element_3 = tmp_assign_source_15; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[98]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 285; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_input1; - assert(old != NULL); - var_input1 = tmp_assign_source_16; - Py_INCREF(var_input1); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_17 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_input2; - assert(old != NULL); - var_input2 = tmp_assign_source_17; - Py_INCREF(var_input2); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_18 = tmp_tuple_unpack_2__element_3; - { - PyObject *old = par_target; - par_target = tmp_assign_source_18; - Py_INCREF(par_target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyList_New(0); - assert(var_batch_aps == NULL); - var_batch_aps = tmp_assign_source_19; - } - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = mod_consts[20]; - assert(var_i_batch == NULL); - Py_INCREF(tmp_assign_source_20); - var_i_batch = tmp_assign_source_20; - } - { - PyObject *tmp_assign_source_21; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_input1); - tmp_args_element_name_4 = var_input1; - CHECK_OBJECT(var_input2); - tmp_args_element_name_5 = var_input2; - CHECK_OBJECT(par_target); - tmp_args_element_name_6 = par_target; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 290; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_iter_arg_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_21 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_21; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_22; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_22 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_22 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_6; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_4 = tmp_for_loop_1__iter_value; - tmp_assign_source_23 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_24; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_24 = UNPACK_NEXT(tmp_unpack_6, 0, 3); - if (tmp_assign_source_24 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_25; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_25 = UNPACK_NEXT(tmp_unpack_7, 1, 3); - if (tmp_assign_source_25 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_25; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_26 = UNPACK_NEXT(tmp_unpack_8, 2, 3); - if (tmp_assign_source_26 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_3__element_3; - tmp_tuple_unpack_3__element_3 = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[98]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 290; - goto try_except_handler_8; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_7; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_6; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_27; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_27 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_inp1; - var_inp1 = tmp_assign_source_27; - Py_INCREF(var_inp1); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_28; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_28 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_inp2; - var_inp2 = tmp_assign_source_28; - Py_INCREF(var_inp2); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - { - PyObject *tmp_assign_source_29; - CHECK_OBJECT(tmp_tuple_unpack_3__element_3); - tmp_assign_source_29 = tmp_tuple_unpack_3__element_3; - { - PyObject *old = var_tar; - var_tar = tmp_assign_source_29; - Py_INCREF(var_tar); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_3); - tmp_tuple_unpack_3__element_3 = NULL; - { - nuitka_bool tmp_condition_result_4; - int tmp_truth_name_4; - if (var_multi_head == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[99]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 291; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_truth_name_4 = CHECK_IF_TRUE(var_multi_head); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_4 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(var_inp1); - tmp_tuple_element_1 = var_inp1; - tmp_assign_source_30 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_assign_source_30, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_inp2); - tmp_tuple_element_1 = var_inp2; - PyTuple_SET_ITEM0(tmp_assign_source_30, 1, tmp_tuple_element_1); - { - PyObject *old = var_inp; - var_inp = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - goto branch_end_4; - branch_no_4:; - { - PyObject *tmp_assign_source_31; - CHECK_OBJECT(var_inp1); - tmp_assign_source_31 = var_inp1; - { - PyObject *old = var_inp; - var_inp = tmp_assign_source_31; - Py_INCREF(var_inp); - Py_XDECREF(old); - } - - } - branch_end_4:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 296; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_inp); - tmp_args_element_name_7 = var_inp; - CHECK_OBJECT(var_tar); - tmp_args_element_name_8 = var_tar; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 296; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_32 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[100], - call_args - ); - } - - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_segs; - var_segs = tmp_assign_source_32; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(var_segs); - tmp_expression_name_4 = var_segs; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[61]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_compexpr_right_2 = mod_consts[12]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 297; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - branch_no_5:; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_5 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[101]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - if (var_tar == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[102]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_9 = var_tar; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 299; - tmp_assign_source_33 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 299; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_tar; - var_tar = tmp_assign_source_33; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 302; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_tar); - tmp_args_element_name_10 = var_tar; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 302; - tmp_assign_source_34 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[103], tmp_args_element_name_10); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 302; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = var_tar; - var_tar = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_35; - // Tried code: - { - PyObject *tmp_assign_source_36; - PyObject *tmp_iter_arg_5; - if (var_segs == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - } - - tmp_iter_arg_5 = var_segs; - tmp_assign_source_36 = MAKE_ITERATOR(tmp_iter_arg_5); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - } - { - PyObject *old = tmp_listcomp_1__$0; - tmp_listcomp_1__$0 = tmp_assign_source_36; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = PyList_New(0); - { - PyObject *old = tmp_listcomp_1__contraction; - tmp_listcomp_1__contraction = tmp_assign_source_37; - Py_XDECREF(old); - } - - } - if (isFrameUnusable(cache_frame_c7d769025392d480a661ed7525d49b57_2)) { - Py_XDECREF(cache_frame_c7d769025392d480a661ed7525d49b57_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c7d769025392d480a661ed7525d49b57_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c7d769025392d480a661ed7525d49b57_2 = MAKE_FUNCTION_FRAME(codeobj_c7d769025392d480a661ed7525d49b57, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c7d769025392d480a661ed7525d49b57_2->m_type_description == NULL); - frame_c7d769025392d480a661ed7525d49b57_2 = cache_frame_c7d769025392d480a661ed7525d49b57_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c7d769025392d480a661ed7525d49b57_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c7d769025392d480a661ed7525d49b57_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_38; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_2 = tmp_listcomp_1__$0; - tmp_assign_source_38 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_38 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "ooo"; - exception_lineno = 305; - goto try_except_handler_10; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_38; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_39 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_seg; - outline_0_var_seg = tmp_assign_source_39; - Py_INCREF(outline_0_var_seg); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (par_self == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - - tmp_expression_name_6 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[95]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(outline_0_var_seg); - tmp_args_element_name_12 = outline_0_var_seg; - frame_c7d769025392d480a661ed7525d49b57_2->m_frame.f_lineno = 305; - tmp_args_element_name_11 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[103], tmp_args_element_name_12); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - if (var_tar == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_11); - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[102]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - - tmp_args_element_name_13 = var_tar; - frame_c7d769025392d480a661ed7525d49b57_2->m_frame.f_lineno = 305; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_13}; - tmp_append_value_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_11); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 305; - type_description_2 = "ooo"; - goto try_except_handler_10; - } - goto loop_start_2; - loop_end_2:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_35 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_35); - goto try_return_handler_10; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7d769025392d480a661ed7525d49b57_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7d769025392d480a661ed7525d49b57_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_9; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c7d769025392d480a661ed7525d49b57_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c7d769025392d480a661ed7525d49b57_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c7d769025392d480a661ed7525d49b57_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c7d769025392d480a661ed7525d49b57_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c7d769025392d480a661ed7525d49b57_2, - type_description_2, - outline_0_var_seg, - par_self, - var_tar - ); - - - // Release cached frame if used for exception. - if (frame_c7d769025392d480a661ed7525d49b57_2 == cache_frame_c7d769025392d480a661ed7525d49b57_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c7d769025392d480a661ed7525d49b57_2); - cache_frame_c7d769025392d480a661ed7525d49b57_2 = NULL; - } - - assertFrameObject(frame_c7d769025392d480a661ed7525d49b57_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_XDECREF(outline_0_var_seg); - outline_0_var_seg = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_seg); - outline_0_var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 305; - goto try_except_handler_6; - outline_result_1:; - { - PyObject *old = var_segs_aps; - var_segs_aps = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_14; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_2; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[56]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_tuple_element_2 = mod_consts[104]; - tmp_string_concat_values_1 = PyTuple_New(4); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_15; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_2); - if (var_i_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_format_value_1 = var_i_batch; - tmp_format_spec_1 = mod_consts[67]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[106]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_2); - tmp_called_instance_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_called_instance_5 == NULL)) { - tmp_called_instance_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - CHECK_OBJECT(var_segs_aps); - tmp_args_element_name_15 = var_segs_aps; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 307; - tmp_format_value_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[107], tmp_args_element_name_15); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_2 = mod_consts[67]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_14 = PyUnicode_Join(mod_consts[67], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 307; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_14); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_14); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_16; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_17; - if (var_batch_aps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_expression_name_8 = var_batch_aps; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[25]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[33]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - if (var_segs_aps == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[109]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_17 = var_segs_aps; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 309; - tmp_args_element_name_16 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_17); - Py_DECREF(tmp_called_name_7); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 309; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_16); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_16); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 309; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - if (var_i_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 310; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - - tmp_left_name_1 = var_i_batch; - tmp_right_name_1 = mod_consts[11]; - tmp_result = BINARY_OPERATION_ADD_LONG_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - assert(!(tmp_result == false)); - tmp_assign_source_40 = tmp_left_name_1; - var_i_batch = tmp_assign_source_40; - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - goto loop_start_1; - loop_end_1:; - goto try_end_7; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_instance_6; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_18; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[1]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[28]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_batch_aps == NULL) { - Py_DECREF(tmp_called_name_8); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_18 = var_batch_aps; - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 312; - tmp_called_instance_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_18); - Py_DECREF(tmp_called_name_8); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame.f_lineno = 312; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[2]); - Py_DECREF(tmp_called_instance_6); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 312; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_addffaf71f67b562ba4f792bfe1d9f33); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_addffaf71f67b562ba4f792bfe1d9f33); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_addffaf71f67b562ba4f792bfe1d9f33); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_addffaf71f67b562ba4f792bfe1d9f33, exception_lineno); - } else if (exception_tb->tb_frame != &frame_addffaf71f67b562ba4f792bfe1d9f33->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_addffaf71f67b562ba4f792bfe1d9f33, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_addffaf71f67b562ba4f792bfe1d9f33, - type_description_1, - par_self, - par_input, - par_target, - var_input1, - var_input2, - var_multi_head, - var_batch_aps, - var_i_batch, - var_inp1, - var_inp2, - var_tar, - var_inp, - var_segs, - var_segs_aps - ); - - - // Release cached frame if used for exception. - if (frame_addffaf71f67b562ba4f792bfe1d9f33 == cache_frame_addffaf71f67b562ba4f792bfe1d9f33) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_addffaf71f67b562ba4f792bfe1d9f33); - cache_frame_addffaf71f67b562ba4f792bfe1d9f33 = NULL; - } - - assertFrameObject(frame_addffaf71f67b562ba4f792bfe1d9f33); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - CHECK_OBJECT(var_input1); - Py_DECREF(var_input1); - var_input1 = NULL; - CHECK_OBJECT(var_input2); - Py_DECREF(var_input2); - var_input2 = NULL; - Py_XDECREF(var_multi_head); - var_multi_head = NULL; - Py_XDECREF(var_batch_aps); - var_batch_aps = NULL; - Py_XDECREF(var_i_batch); - var_i_batch = NULL; - Py_XDECREF(var_inp1); - var_inp1 = NULL; - Py_XDECREF(var_inp2); - var_inp2 = NULL; - Py_XDECREF(var_tar); - var_tar = NULL; - Py_XDECREF(var_inp); - var_inp = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_segs_aps); - var_segs_aps = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(var_input1); - var_input1 = NULL; - Py_XDECREF(var_input2); - var_input2 = NULL; - Py_XDECREF(var_multi_head); - var_multi_head = NULL; - Py_XDECREF(var_batch_aps); - var_batch_aps = NULL; - Py_XDECREF(var_i_batch); - var_i_batch = NULL; - Py_XDECREF(var_inp1); - var_inp1 = NULL; - Py_XDECREF(var_inp2); - var_inp2 = NULL; - Py_XDECREF(var_tar); - var_tar = NULL; - Py_XDECREF(var_inp); - var_inp = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_segs_aps); - var_segs_aps = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__16__filter_instances(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *var_labels = NULL; - PyObject *var_counts = NULL; - PyObject *var_label = NULL; - PyObject *var_count = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_6d22b487fe6bb506aeab8c6f44f9fb50; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - bool tmp_result; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50)) { - Py_XDECREF(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 = MAKE_FUNCTION_FRAME(codeobj_6d22b487fe6bb506aeab8c6f44f9fb50, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_type_description == NULL); - frame_6d22b487fe6bb506aeab8c6f44f9fb50 = cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6d22b487fe6bb506aeab8c6f44f9fb50); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6d22b487fe6bb506aeab8c6f44f9fb50) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[91]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[110]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[111]); - frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_frame.f_lineno = 320; - tmp_iter_arg_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 320; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 320; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var_labels == NULL); - Py_INCREF(tmp_assign_source_4); - var_labels = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_counts == NULL); - Py_INCREF(tmp_assign_source_5); - var_counts = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_labels); - tmp_args_element_name_1 = var_labels; - CHECK_OBJECT(var_counts); - tmp_args_element_name_2 = var_counts; - frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_frame.f_lineno = 321; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_6; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_3 = tmp_for_loop_1__iter_value; - tmp_assign_source_8 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 321; - goto try_except_handler_6; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_5; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_4; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_11 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_label; - var_label = tmp_assign_source_11; - Py_INCREF(var_label); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_12 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_count; - var_count = tmp_assign_source_12; - Py_INCREF(var_count); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(var_count); - tmp_compexpr_left_2 = var_count; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 322; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[91]); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - tmp_condition_result_2 = RICH_COMPARE_LT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - tmp_ass_subvalue_1 = mod_consts[20]; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_1 = par_input; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - - tmp_compexpr_left_3 = par_input; - CHECK_OBJECT(var_label); - tmp_compexpr_right_3 = var_label; - tmp_ass_subscript_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_ass_subscript_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - } - branch_no_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 321; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_5; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - branch_no_1:; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 324; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = par_input; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6d22b487fe6bb506aeab8c6f44f9fb50); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6d22b487fe6bb506aeab8c6f44f9fb50); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6d22b487fe6bb506aeab8c6f44f9fb50); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6d22b487fe6bb506aeab8c6f44f9fb50, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6d22b487fe6bb506aeab8c6f44f9fb50->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6d22b487fe6bb506aeab8c6f44f9fb50, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6d22b487fe6bb506aeab8c6f44f9fb50, - type_description_1, - par_self, - par_input, - var_labels, - var_counts, - var_label, - var_count - ); - - - // Release cached frame if used for exception. - if (frame_6d22b487fe6bb506aeab8c6f44f9fb50 == cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50); - cache_frame_6d22b487fe6bb506aeab8c6f44f9fb50 = NULL; - } - - assertFrameObject(frame_6d22b487fe6bb506aeab8c6f44f9fb50); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_counts); - var_counts = NULL; - Py_XDECREF(var_label); - var_label = NULL; - Py_XDECREF(var_count); - var_count = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var_labels); - var_labels = NULL; - Py_XDECREF(var_counts); - var_counts = NULL; - Py_XDECREF(var_label); - var_label = NULL; - Py_XDECREF(var_count); - var_count = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__17_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - struct Nuitka_FrameObject *frame_fb00d90ebe317fe797e6b0aaf6808223; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_fb00d90ebe317fe797e6b0aaf6808223 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_fb00d90ebe317fe797e6b0aaf6808223)) { - Py_XDECREF(cache_frame_fb00d90ebe317fe797e6b0aaf6808223); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fb00d90ebe317fe797e6b0aaf6808223 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fb00d90ebe317fe797e6b0aaf6808223 = MAKE_FUNCTION_FRAME(codeobj_fb00d90ebe317fe797e6b0aaf6808223, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fb00d90ebe317fe797e6b0aaf6808223->m_type_description == NULL); - frame_fb00d90ebe317fe797e6b0aaf6808223 = cache_frame_fb00d90ebe317fe797e6b0aaf6808223; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fb00d90ebe317fe797e6b0aaf6808223); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fb00d90ebe317fe797e6b0aaf6808223) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 327; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb00d90ebe317fe797e6b0aaf6808223); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fb00d90ebe317fe797e6b0aaf6808223); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fb00d90ebe317fe797e6b0aaf6808223, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fb00d90ebe317fe797e6b0aaf6808223->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fb00d90ebe317fe797e6b0aaf6808223, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fb00d90ebe317fe797e6b0aaf6808223, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_fb00d90ebe317fe797e6b0aaf6808223 == cache_frame_fb00d90ebe317fe797e6b0aaf6808223) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fb00d90ebe317fe797e6b0aaf6808223); - cache_frame_fb00d90ebe317fe797e6b0aaf6808223 = NULL; - } - - assertFrameObject(frame_fb00d90ebe317fe797e6b0aaf6808223); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$unet3d$metrics$$$function__18_target_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_target = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - CHECK_OBJECT(par_target); - tmp_return_value = par_target; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__19___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_metric = python_pars[2]; - PyObject *par_min_instance_size = python_pars[3]; - PyObject *par_input_channel = python_pars[4]; - PyObject *par_kwargs = python_pars[5]; - struct Nuitka_FrameObject *frame_7840753a58ffee472a48045eef486f18; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_7840753a58ffee472a48045eef486f18 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7840753a58ffee472a48045eef486f18)) { - Py_XDECREF(cache_frame_7840753a58ffee472a48045eef486f18); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7840753a58ffee472a48045eef486f18 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7840753a58ffee472a48045eef486f18 = MAKE_FUNCTION_FRAME(codeobj_7840753a58ffee472a48045eef486f18, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7840753a58ffee472a48045eef486f18->m_type_description == NULL); - frame_7840753a58ffee472a48045eef486f18 = cache_frame_7840753a58ffee472a48045eef486f18; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7840753a58ffee472a48045eef486f18); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7840753a58ffee472a48045eef486f18) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[91]; - CHECK_OBJECT(par_min_instance_size); - tmp_dict_value_1 = par_min_instance_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[46]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - CHECK_OBJECT(par_metric); - tmp_dict_value_1 = par_metric; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_7840753a58ffee472a48045eef486f18->m_frame.f_lineno = 339; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[113]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 342; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_input_channel); - tmp_assattr_name_2 = par_input_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[77], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 344; - type_description_1 = "ooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7840753a58ffee472a48045eef486f18); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7840753a58ffee472a48045eef486f18); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7840753a58ffee472a48045eef486f18, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7840753a58ffee472a48045eef486f18->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7840753a58ffee472a48045eef486f18, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7840753a58ffee472a48045eef486f18, - type_description_1, - par_self, - par_thresholds, - par_metric, - par_min_instance_size, - par_input_channel, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_7840753a58ffee472a48045eef486f18 == cache_frame_7840753a58ffee472a48045eef486f18) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7840753a58ffee472a48045eef486f18); - cache_frame_7840753a58ffee472a48045eef486f18 = NULL; - } - - assertFrameObject(frame_7840753a58ffee472a48045eef486f18); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__20_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_segs = NULL; - PyObject *var_th = NULL; - PyObject *var_mask = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_28390b239ba9d51ee3f330d3fa1ea492; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_28390b239ba9d51ee3f330d3fa1ea492 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_28390b239ba9d51ee3f330d3fa1ea492)) { - Py_XDECREF(cache_frame_28390b239ba9d51ee3f330d3fa1ea492); - -#if _DEBUG_REFCOUNTS - if (cache_frame_28390b239ba9d51ee3f330d3fa1ea492 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_28390b239ba9d51ee3f330d3fa1ea492 = MAKE_FUNCTION_FRAME(codeobj_28390b239ba9d51ee3f330d3fa1ea492, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_28390b239ba9d51ee3f330d3fa1ea492->m_type_description == NULL); - frame_28390b239ba9d51ee3f330d3fa1ea492 = cache_frame_28390b239ba9d51ee3f330d3fa1ea492; - - // Push the new frame as the currently active one. - pushFrameStack(frame_28390b239ba9d51ee3f330d3fa1ea492); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_28390b239ba9d51ee3f330d3fa1ea492) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[77]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 347; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - exception_lineno = 349; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_5; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_input; - CHECK_OBJECT(var_th); - tmp_compexpr_right_1 = var_th; - tmp_expression_name_4 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[50]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[37]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 351; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_mask); - tmp_tuple_element_1 = var_mask; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 352; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 353; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_2 = var_seg; - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 353; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[87]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_segs; - frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame.f_lineno = 354; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28390b239ba9d51ee3f330d3fa1ea492); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28390b239ba9d51ee3f330d3fa1ea492); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_28390b239ba9d51ee3f330d3fa1ea492); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_28390b239ba9d51ee3f330d3fa1ea492, exception_lineno); - } else if (exception_tb->tb_frame != &frame_28390b239ba9d51ee3f330d3fa1ea492->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_28390b239ba9d51ee3f330d3fa1ea492, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_28390b239ba9d51ee3f330d3fa1ea492, - type_description_1, - par_self, - par_input, - par_target, - var_segs, - var_th, - var_mask, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_28390b239ba9d51ee3f330d3fa1ea492 == cache_frame_28390b239ba9d51ee3f330d3fa1ea492) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_28390b239ba9d51ee3f330d3fa1ea492); - cache_frame_28390b239ba9d51ee3f330d3fa1ea492 = NULL; - } - - assertFrameObject(frame_28390b239ba9d51ee3f330d3fa1ea492); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__21___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_metric = python_pars[2]; - PyObject *par_min_instance_size = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_914854f2ce28cebe09f6c205cabe789a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_914854f2ce28cebe09f6c205cabe789a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_914854f2ce28cebe09f6c205cabe789a)) { - Py_XDECREF(cache_frame_914854f2ce28cebe09f6c205cabe789a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_914854f2ce28cebe09f6c205cabe789a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_914854f2ce28cebe09f6c205cabe789a = MAKE_FUNCTION_FRAME(codeobj_914854f2ce28cebe09f6c205cabe789a, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_914854f2ce28cebe09f6c205cabe789a->m_type_description == NULL); - frame_914854f2ce28cebe09f6c205cabe789a = cache_frame_914854f2ce28cebe09f6c205cabe789a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_914854f2ce28cebe09f6c205cabe789a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_914854f2ce28cebe09f6c205cabe789a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[91]; - CHECK_OBJECT(par_min_instance_size); - tmp_dict_value_1 = par_min_instance_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[46]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - CHECK_OBJECT(par_metric); - tmp_dict_value_1 = par_metric; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_914854f2ce28cebe09f6c205cabe789a->m_frame.f_lineno = 364; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[114]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 367; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 367; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 368; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_914854f2ce28cebe09f6c205cabe789a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_914854f2ce28cebe09f6c205cabe789a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_914854f2ce28cebe09f6c205cabe789a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_914854f2ce28cebe09f6c205cabe789a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_914854f2ce28cebe09f6c205cabe789a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_914854f2ce28cebe09f6c205cabe789a, - type_description_1, - par_self, - par_thresholds, - par_metric, - par_min_instance_size, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_914854f2ce28cebe09f6c205cabe789a == cache_frame_914854f2ce28cebe09f6c205cabe789a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_914854f2ce28cebe09f6c205cabe789a); - cache_frame_914854f2ce28cebe09f6c205cabe789a = NULL; - } - - assertFrameObject(frame_914854f2ce28cebe09f6c205cabe789a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_metric); - par_metric = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__22_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_segs = NULL; - PyObject *var_th = NULL; - PyObject *var_mask = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_299471fa28284ce856fcc2bb0f99954f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_299471fa28284ce856fcc2bb0f99954f = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_299471fa28284ce856fcc2bb0f99954f)) { - Py_XDECREF(cache_frame_299471fa28284ce856fcc2bb0f99954f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_299471fa28284ce856fcc2bb0f99954f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_299471fa28284ce856fcc2bb0f99954f = MAKE_FUNCTION_FRAME(codeobj_299471fa28284ce856fcc2bb0f99954f, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_299471fa28284ce856fcc2bb0f99954f->m_type_description == NULL); - frame_299471fa28284ce856fcc2bb0f99954f = cache_frame_299471fa28284ce856fcc2bb0f99954f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_299471fa28284ce856fcc2bb0f99954f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_299471fa28284ce856fcc2bb0f99954f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - tmp_subscript_name_1 = mod_consts[20]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_expression_name_2 = par_input; - tmp_subscript_name_2 = mod_consts[11]; - tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_2, 1); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 372; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 372; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_self); - tmp_expression_name_3 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - exception_lineno = 374; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_5; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_5; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_input; - CHECK_OBJECT(var_th); - tmp_compexpr_right_1 = var_th; - tmp_expression_name_4 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[50]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[37]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 376; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_mask; - var_mask = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[84]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_mask); - tmp_tuple_element_1 = var_mask; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 377; - tmp_assign_source_7 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 377; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 378; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_2 = var_seg; - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 378; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[87]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = var_segs; - frame_299471fa28284ce856fcc2bb0f99954f->m_frame.f_lineno = 379; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 379; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_299471fa28284ce856fcc2bb0f99954f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_299471fa28284ce856fcc2bb0f99954f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_299471fa28284ce856fcc2bb0f99954f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_299471fa28284ce856fcc2bb0f99954f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_299471fa28284ce856fcc2bb0f99954f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_299471fa28284ce856fcc2bb0f99954f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_299471fa28284ce856fcc2bb0f99954f, - type_description_1, - par_self, - par_input, - par_target, - var_segs, - var_th, - var_mask, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_299471fa28284ce856fcc2bb0f99954f == cache_frame_299471fa28284ce856fcc2bb0f99954f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_299471fa28284ce856fcc2bb0f99954f); - cache_frame_299471fa28284ce856fcc2bb0f99954f = NULL; - } - - assertFrameObject(frame_299471fa28284ce856fcc2bb0f99954f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__23___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_thresholds = python_pars[1]; - PyObject *par_min_instance_size = python_pars[2]; - PyObject *par_input_channel = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_2eb4e4f6c5da0f8b4962b907098bd1f5; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5)) { - Py_XDECREF(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = MAKE_FUNCTION_FRAME(codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5->m_type_description == NULL); - frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2eb4e4f6c5da0f8b4962b907098bd1f5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[91]; - CHECK_OBJECT(par_min_instance_size); - tmp_dict_value_1 = par_min_instance_size; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[46]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_2eb4e4f6c5da0f8b4962b907098bd1f5->m_frame.f_lineno = 388; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 388; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_thresholds); - tmp_compexpr_left_1 = par_thresholds; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = LIST_COPY(mod_consts[75]); - { - PyObject *old = par_thresholds; - assert(old != NULL); - par_thresholds = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_thresholds); - tmp_isinstance_inst_1 = par_thresholds; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 391; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 391; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_thresholds); - tmp_assattr_name_1 = par_thresholds; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[76], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 392; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_input_channel); - tmp_assattr_name_2 = par_input_channel; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[77], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 393; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2eb4e4f6c5da0f8b4962b907098bd1f5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2eb4e4f6c5da0f8b4962b907098bd1f5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2eb4e4f6c5da0f8b4962b907098bd1f5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2eb4e4f6c5da0f8b4962b907098bd1f5, - type_description_1, - par_self, - par_thresholds, - par_min_instance_size, - par_input_channel, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_2eb4e4f6c5da0f8b4962b907098bd1f5 == cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - cache_frame_2eb4e4f6c5da0f8b4962b907098bd1f5 = NULL; - } - - assertFrameObject(frame_2eb4e4f6c5da0f8b4962b907098bd1f5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_thresholds); - Py_DECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_thresholds); - par_thresholds = NULL; - Py_XDECREF(par_min_instance_size); - par_min_instance_size = NULL; - CHECK_OBJECT(par_input_channel); - Py_DECREF(par_input_channel); - par_input_channel = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__24_input_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *var_segs = NULL; - PyObject *var_th = NULL; - PyObject *var_seg = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_5939483b3ea62df720d54e2d3cdb595f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_5939483b3ea62df720d54e2d3cdb595f = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5939483b3ea62df720d54e2d3cdb595f)) { - Py_XDECREF(cache_frame_5939483b3ea62df720d54e2d3cdb595f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5939483b3ea62df720d54e2d3cdb595f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5939483b3ea62df720d54e2d3cdb595f = MAKE_FUNCTION_FRAME(codeobj_5939483b3ea62df720d54e2d3cdb595f, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5939483b3ea62df720d54e2d3cdb595f->m_type_description == NULL); - frame_5939483b3ea62df720d54e2d3cdb595f = cache_frame_5939483b3ea62df720d54e2d3cdb595f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5939483b3ea62df720d54e2d3cdb595f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5939483b3ea62df720d54e2d3cdb595f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_subscript_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[77]); - if (tmp_subscript_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 396; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(var_segs == NULL); - var_segs = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[17]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[76]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 398; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_th; - var_th = tmp_assign_source_5; - Py_INCREF(var_th); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_7; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[84]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[82]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_input; - CHECK_OBJECT(var_th); - tmp_compexpr_right_1 = var_th; - tmp_args_element_name_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 399; - tmp_expression_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_1); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[50]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[37]); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 399; - tmp_tuple_element_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[85]); - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 399; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 399; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_seg; - var_seg = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - if (var_segs == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 400; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_segs; - CHECK_OBJECT(var_seg); - tmp_args_element_name_3 = var_seg; - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 400; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[25], tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 400; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 398; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_4; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[51]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[87]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_segs == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = var_segs; - frame_5939483b3ea62df720d54e2d3cdb595f->m_frame.f_lineno = 401; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 401; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5939483b3ea62df720d54e2d3cdb595f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5939483b3ea62df720d54e2d3cdb595f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5939483b3ea62df720d54e2d3cdb595f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5939483b3ea62df720d54e2d3cdb595f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5939483b3ea62df720d54e2d3cdb595f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5939483b3ea62df720d54e2d3cdb595f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5939483b3ea62df720d54e2d3cdb595f, - type_description_1, - par_self, - par_input, - par_target, - var_segs, - var_th, - var_seg - ); - - - // Release cached frame if used for exception. - if (frame_5939483b3ea62df720d54e2d3cdb595f == cache_frame_5939483b3ea62df720d54e2d3cdb595f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5939483b3ea62df720d54e2d3cdb595f); - cache_frame_5939483b3ea62df720d54e2d3cdb595f = NULL; - } - - assertFrameObject(frame_5939483b3ea62df720d54e2d3cdb595f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(var_segs); - var_segs = NULL; - Py_XDECREF(var_th); - var_th = NULL; - Py_XDECREF(var_seg); - var_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__25___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__26___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_30651049ccf86cdd063b55ec7a4fa364; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_30651049ccf86cdd063b55ec7a4fa364 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_30651049ccf86cdd063b55ec7a4fa364)) { - Py_XDECREF(cache_frame_30651049ccf86cdd063b55ec7a4fa364); - -#if _DEBUG_REFCOUNTS - if (cache_frame_30651049ccf86cdd063b55ec7a4fa364 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_30651049ccf86cdd063b55ec7a4fa364 = MAKE_FUNCTION_FRAME(codeobj_30651049ccf86cdd063b55ec7a4fa364, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_30651049ccf86cdd063b55ec7a4fa364->m_type_description == NULL); - frame_30651049ccf86cdd063b55ec7a4fa364 = cache_frame_30651049ccf86cdd063b55ec7a4fa364; - - // Push the new frame as the currently active one. - pushFrameStack(frame_30651049ccf86cdd063b55ec7a4fa364); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_30651049ccf86cdd063b55ec7a4fa364) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_30651049ccf86cdd063b55ec7a4fa364->m_frame.f_lineno = 413; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 413; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 413; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_4; - Py_INCREF(par_input); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_5; - Py_INCREF(par_target); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[115]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[115]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 414; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_target); - tmp_args_element_name_3 = par_target; - CHECK_OBJECT(par_input); - tmp_args_element_name_4 = par_input; - frame_30651049ccf86cdd063b55ec7a4fa364->m_frame.f_lineno = 414; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 414; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30651049ccf86cdd063b55ec7a4fa364); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30651049ccf86cdd063b55ec7a4fa364); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_30651049ccf86cdd063b55ec7a4fa364); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_30651049ccf86cdd063b55ec7a4fa364, exception_lineno); - } else if (exception_tb->tb_frame != &frame_30651049ccf86cdd063b55ec7a4fa364->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_30651049ccf86cdd063b55ec7a4fa364, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_30651049ccf86cdd063b55ec7a4fa364, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_30651049ccf86cdd063b55ec7a4fa364 == cache_frame_30651049ccf86cdd063b55ec7a4fa364) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_30651049ccf86cdd063b55ec7a4fa364); - cache_frame_30651049ccf86cdd063b55ec7a4fa364 = NULL; - } - - assertFrameObject(frame_30651049ccf86cdd063b55ec7a4fa364); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__27___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__28___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_2d44772b57531805600dabf6c833f211; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_2d44772b57531805600dabf6c833f211 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_2d44772b57531805600dabf6c833f211)) { - Py_XDECREF(cache_frame_2d44772b57531805600dabf6c833f211); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2d44772b57531805600dabf6c833f211 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2d44772b57531805600dabf6c833f211 = MAKE_FUNCTION_FRAME(codeobj_2d44772b57531805600dabf6c833f211, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2d44772b57531805600dabf6c833f211->m_type_description == NULL); - frame_2d44772b57531805600dabf6c833f211 = cache_frame_2d44772b57531805600dabf6c833f211; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2d44772b57531805600dabf6c833f211); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2d44772b57531805600dabf6c833f211) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_2 = par_target; - frame_2d44772b57531805600dabf6c833f211->m_frame.f_lineno = 426; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 426; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[16]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 426; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = par_input; - assert(old != NULL); - par_input = tmp_assign_source_4; - Py_INCREF(par_input); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = par_target; - assert(old != NULL); - par_target = tmp_assign_source_5; - Py_INCREF(par_target); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[116]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[116]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 427; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_args_element_name_3 = par_input; - CHECK_OBJECT(par_target); - tmp_args_element_name_4 = par_target; - frame_2d44772b57531805600dabf6c833f211->m_frame.f_lineno = 427; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 427; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2d44772b57531805600dabf6c833f211); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2d44772b57531805600dabf6c833f211); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2d44772b57531805600dabf6c833f211); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2d44772b57531805600dabf6c833f211, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2d44772b57531805600dabf6c833f211->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2d44772b57531805600dabf6c833f211, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2d44772b57531805600dabf6c833f211, - type_description_1, - par_self, - par_input, - par_target - ); - - - // Release cached frame if used for exception. - if (frame_2d44772b57531805600dabf6c833f211 == cache_frame_2d44772b57531805600dabf6c833f211) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2d44772b57531805600dabf6c833f211); - cache_frame_2d44772b57531805600dabf6c833f211 = NULL; - } - - assertFrameObject(frame_2d44772b57531805600dabf6c833f211); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__29_get_evaluation_metric(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config = python_pars[0]; - PyObject *var__metric_class = NULL; - PyObject *var_metric_config = NULL; - PyObject *var_metric_class = NULL; - struct Nuitka_FrameObject *frame_e3c6ef6ba02f733011711ea56309b825; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e3c6ef6ba02f733011711ea56309b825 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class(); - - assert(var__metric_class == NULL); - var__metric_class = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_e3c6ef6ba02f733011711ea56309b825)) { - Py_XDECREF(cache_frame_e3c6ef6ba02f733011711ea56309b825); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e3c6ef6ba02f733011711ea56309b825 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e3c6ef6ba02f733011711ea56309b825 = MAKE_FUNCTION_FRAME(codeobj_e3c6ef6ba02f733011711ea56309b825, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e3c6ef6ba02f733011711ea56309b825->m_type_description == NULL); - frame_e3c6ef6ba02f733011711ea56309b825 = cache_frame_e3c6ef6ba02f733011711ea56309b825; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e3c6ef6ba02f733011711ea56309b825); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e3c6ef6ba02f733011711ea56309b825) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[119]; - CHECK_OBJECT(par_config); - tmp_compexpr_right_1 = par_config; - tmp_res = PySequence_Contains(tmp_compexpr_right_1, tmp_compexpr_left_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 442; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[120]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 442; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_subscript_name_1 = mod_consts[119]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 443; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_metric_config == NULL); - var_metric_config = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(var__metric_class); - tmp_called_name_1 = var__metric_class; - CHECK_OBJECT(var_metric_config); - tmp_expression_name_2 = var_metric_config; - tmp_subscript_name_2 = mod_consts[121]; - tmp_args_element_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_e3c6ef6ba02f733011711ea56309b825->m_frame.f_lineno = 444; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 444; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_metric_class == NULL); - var_metric_class = tmp_assign_source_3; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - CHECK_OBJECT(var_metric_class); - tmp_dircall_arg1_1 = var_metric_class; - CHECK_OBJECT(var_metric_config); - tmp_dircall_arg2_1 = var_metric_config; - Py_INCREF(tmp_dircall_arg1_1); - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__8_complex_call_helper_star_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 445; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e3c6ef6ba02f733011711ea56309b825); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e3c6ef6ba02f733011711ea56309b825); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e3c6ef6ba02f733011711ea56309b825); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e3c6ef6ba02f733011711ea56309b825, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e3c6ef6ba02f733011711ea56309b825->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e3c6ef6ba02f733011711ea56309b825, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e3c6ef6ba02f733011711ea56309b825, - type_description_1, - par_config, - var__metric_class, - var_metric_config, - var_metric_class - ); - - - // Release cached frame if used for exception. - if (frame_e3c6ef6ba02f733011711ea56309b825 == cache_frame_e3c6ef6ba02f733011711ea56309b825) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e3c6ef6ba02f733011711ea56309b825); - cache_frame_e3c6ef6ba02f733011711ea56309b825 = NULL; - } - - assertFrameObject(frame_e3c6ef6ba02f733011711ea56309b825); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(var__metric_class); - Py_DECREF(var__metric_class); - var__metric_class = NULL; - CHECK_OBJECT(var_metric_config); - Py_DECREF(var_metric_config); - var_metric_config = NULL; - CHECK_OBJECT(var_metric_class); - Py_DECREF(var_metric_class); - var_metric_class = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(var__metric_class); - Py_DECREF(var__metric_class); - var__metric_class = NULL; - Py_XDECREF(var_metric_config); - var_metric_config = NULL; - Py_XDECREF(var_metric_class); - var_metric_class = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_class_name = python_pars[0]; - PyObject *var_m = NULL; - PyObject *var_clazz = NULL; - struct Nuitka_FrameObject *frame_c463a7dbb13c425ed40fd700772abbe8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_c463a7dbb13c425ed40fd700772abbe8 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_c463a7dbb13c425ed40fd700772abbe8)) { - Py_XDECREF(cache_frame_c463a7dbb13c425ed40fd700772abbe8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c463a7dbb13c425ed40fd700772abbe8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c463a7dbb13c425ed40fd700772abbe8 = MAKE_FUNCTION_FRAME(codeobj_c463a7dbb13c425ed40fd700772abbe8, module_models$unet3d$metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c463a7dbb13c425ed40fd700772abbe8->m_type_description == NULL); - frame_c463a7dbb13c425ed40fd700772abbe8 = cache_frame_c463a7dbb13c425ed40fd700772abbe8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c463a7dbb13c425ed40fd700772abbe8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c463a7dbb13c425ed40fd700772abbe8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[123]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[123]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_c463a7dbb13c425ed40fd700772abbe8->m_frame.f_lineno = 438; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[124], - &PyTuple_GET_ITEM(mod_consts[125], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 438; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_m == NULL); - var_m = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - CHECK_OBJECT(var_m); - tmp_getattr_target_1 = var_m; - CHECK_OBJECT(par_class_name); - tmp_getattr_attr_1 = par_class_name; - tmp_assign_source_2 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, NULL); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 439; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_clazz == NULL); - var_clazz = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c463a7dbb13c425ed40fd700772abbe8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c463a7dbb13c425ed40fd700772abbe8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c463a7dbb13c425ed40fd700772abbe8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c463a7dbb13c425ed40fd700772abbe8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c463a7dbb13c425ed40fd700772abbe8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c463a7dbb13c425ed40fd700772abbe8, - type_description_1, - par_class_name, - var_m, - var_clazz - ); - - - // Release cached frame if used for exception. - if (frame_c463a7dbb13c425ed40fd700772abbe8 == cache_frame_c463a7dbb13c425ed40fd700772abbe8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c463a7dbb13c425ed40fd700772abbe8); - cache_frame_c463a7dbb13c425ed40fd700772abbe8 = NULL; - } - - assertFrameObject(frame_c463a7dbb13c425ed40fd700772abbe8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_clazz); - tmp_return_value = var_clazz; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_class_name); - Py_DECREF(par_class_name); - par_class_name = NULL; - CHECK_OBJECT(var_m); - Py_DECREF(var_m); - var_m = NULL; - CHECK_OBJECT(var_clazz); - Py_DECREF(var_clazz); - var_clazz = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_class_name); - Py_DECREF(par_class_name); - par_class_name = NULL; - Py_XDECREF(var_m); - var_m = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__10___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__10___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[179], -#endif - codeobj_1d51fefa562de680476f0ff4599fe161, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__11_input_to_segm() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__11_input_to_segm, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[180], -#endif - codeobj_1b065ad043e94dde4abbeb05ae11c727, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__12___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[184], -#endif - codeobj_15029efea78ca37b23d40989b01f6a0a, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__13_input_to_segm() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__13_input_to_segm, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[185], -#endif - codeobj_aa4eae3e0dbdfd57a611a0325f8f7e27, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__14___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__14___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[189], -#endif - codeobj_c01d4c493e093c7de00d919c7dbc97f3, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__15___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__15___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[190], -#endif - codeobj_addffaf71f67b562ba4f792bfe1d9f33, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__16__filter_instances() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__16__filter_instances, - mod_consts[103], -#if PYTHON_VERSION >= 0x300 - mod_consts[191], -#endif - codeobj_6d22b487fe6bb506aeab8c6f44f9fb50, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[112], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__17_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__17_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[193], -#endif - codeobj_fb00d90ebe317fe797e6b0aaf6808223, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__18_target_to_seg() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__18_target_to_seg, - mod_consts[101], -#if PYTHON_VERSION >= 0x300 - mod_consts[194], -#endif - codeobj_1fe68f10d21aab4314bc2d9433ea7e6d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__19___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__19___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[198], -#endif - codeobj_7840753a58ffee472a48045eef486f18, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__1___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__1___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[158], -#endif - codeobj_3683e3c7caa72ba2b301b3459a3c874e, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__20_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__20_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[199], -#endif - codeobj_28390b239ba9d51ee3f330d3fa1ea492, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__21___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__21___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[203], -#endif - codeobj_914854f2ce28cebe09f6c205cabe789a, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__22_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__22_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[204], -#endif - codeobj_299471fa28284ce856fcc2bb0f99954f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__23___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__23___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[208], -#endif - codeobj_2eb4e4f6c5da0f8b4962b907098bd1f5, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__24_input_to_seg(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__24_input_to_seg, - mod_consts[100], -#if PYTHON_VERSION >= 0x300 - mod_consts[209], -#endif - codeobj_5939483b3ea62df720d54e2d3cdb595f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__25___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__25___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[213], -#endif - codeobj_fe4dd1bb443ed6d52978af57ca08be53, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__26___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__26___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[214], -#endif - codeobj_30651049ccf86cdd063b55ec7a4fa364, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__27___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__27___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[218], -#endif - codeobj_50a9020e6a51f1105daf1f222e909ae4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__28___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__28___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[219], -#endif - codeobj_2d44772b57531805600dabf6c833f211, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric, - mod_consts[220], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_e3c6ef6ba02f733011711ea56309b825, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[122], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class, - mod_consts[117], -#if PYTHON_VERSION >= 0x300 - mod_consts[118], -#endif - codeobj_c463a7dbb13c425ed40fd700772abbe8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__2___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__2___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[160], -#endif - codeobj_739414be80f1099a2cddef3246c0c91d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__3___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__3___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[165], -#endif - codeobj_7a7683ba09b0b5b3bdc1b8d7f7188a7f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[6], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__4___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__4___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[166], -#endif - codeobj_c0f8ba1eff149bb00d08b0021f15f590, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[30], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__5__binarize_predictions() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__5__binarize_predictions, - mod_consts[18], -#if PYTHON_VERSION >= 0x300 - mod_consts[167], -#endif - codeobj_a4b23dac5778bf03565b51ee2cf73c40, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[39], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__6__jaccard_index() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__6__jaccard_index, - mod_consts[26], -#if PYTHON_VERSION >= 0x300 - mod_consts[168], -#endif - codeobj_5da5d8dd8341dd90a301f5c1751530a7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[45], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__7___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__7___init__, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[173], -#endif - codeobj_6743357ccf7c82940fdd3986d828807c, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__8___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__8___call__, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - mod_consts[174], -#endif - codeobj_37251eb0c36bb09af4c0657f634957f5, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[69], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$metrics$$$function__9_input_to_segm() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$metrics$$$function__9_input_to_segm, - mod_consts[60], -#if PYTHON_VERSION >= 0x300 - mod_consts[175], -#endif - codeobj_8f9bfd09bcf73e307b173aa11c64832f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$metrics, - mod_consts[70], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$metrics[] = { - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric$$$function__1__metric_class, - impl_models$unet3d$metrics$$$function__1___init__, - impl_models$unet3d$metrics$$$function__2___call__, - impl_models$unet3d$metrics$$$function__3___init__, - impl_models$unet3d$metrics$$$function__4___call__, - impl_models$unet3d$metrics$$$function__5__binarize_predictions, - impl_models$unet3d$metrics$$$function__6__jaccard_index, - impl_models$unet3d$metrics$$$function__7___init__, - impl_models$unet3d$metrics$$$function__8___call__, - impl_models$unet3d$metrics$$$function__9_input_to_segm, - impl_models$unet3d$metrics$$$function__10___init__, - impl_models$unet3d$metrics$$$function__11_input_to_segm, - impl_models$unet3d$metrics$$$function__12___init__, - impl_models$unet3d$metrics$$$function__13_input_to_segm, - impl_models$unet3d$metrics$$$function__14___init__, - impl_models$unet3d$metrics$$$function__15___call__, - impl_models$unet3d$metrics$$$function__16__filter_instances, - impl_models$unet3d$metrics$$$function__17_input_to_seg, - impl_models$unet3d$metrics$$$function__18_target_to_seg, - impl_models$unet3d$metrics$$$function__19___init__, - impl_models$unet3d$metrics$$$function__20_input_to_seg, - impl_models$unet3d$metrics$$$function__21___init__, - impl_models$unet3d$metrics$$$function__22_input_to_seg, - impl_models$unet3d$metrics$$$function__23___init__, - impl_models$unet3d$metrics$$$function__24_input_to_seg, - impl_models$unet3d$metrics$$$function__25___init__, - impl_models$unet3d$metrics$$$function__26___call__, - impl_models$unet3d$metrics$$$function__27___init__, - impl_models$unet3d$metrics$$$function__28___call__, - impl_models$unet3d$metrics$$$function__29_get_evaluation_metric, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$metrics; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$metrics) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$metrics[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$metrics, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$metrics(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$metrics = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.metrics: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.metrics: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.metrics: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$metrics\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$metrics = MODULE_DICT(module_models$unet3d$metrics); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$metrics, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$metrics); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$metrics); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_4_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_5_var___class__ = NULL; - struct Nuitka_CellObject *outline_6_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_7_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_8_var___class__ = Nuitka_Cell_Empty(); - PyObject *outline_9_var___class__ = NULL; - PyObject *outline_10_var___class__ = NULL; - PyObject *tmp_class_creation_10__class_decl_dict = NULL; - PyObject *tmp_class_creation_10__metaclass = NULL; - PyObject *tmp_class_creation_10__prepared = NULL; - PyObject *tmp_class_creation_11__class_decl_dict = NULL; - PyObject *tmp_class_creation_11__metaclass = NULL; - PyObject *tmp_class_creation_11__prepared = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_class_creation_6__class_decl_dict = NULL; - PyObject *tmp_class_creation_6__metaclass = NULL; - PyObject *tmp_class_creation_6__prepared = NULL; - PyObject *tmp_class_creation_7__bases = NULL; - PyObject *tmp_class_creation_7__bases_orig = NULL; - PyObject *tmp_class_creation_7__class_decl_dict = NULL; - PyObject *tmp_class_creation_7__metaclass = NULL; - PyObject *tmp_class_creation_7__prepared = NULL; - PyObject *tmp_class_creation_8__bases = NULL; - PyObject *tmp_class_creation_8__bases_orig = NULL; - PyObject *tmp_class_creation_8__class_decl_dict = NULL; - PyObject *tmp_class_creation_8__metaclass = NULL; - PyObject *tmp_class_creation_8__prepared = NULL; - PyObject *tmp_class_creation_9__bases = NULL; - PyObject *tmp_class_creation_9__bases_orig = NULL; - PyObject *tmp_class_creation_9__class_decl_dict = NULL; - PyObject *tmp_class_creation_9__metaclass = NULL; - PyObject *tmp_class_creation_9__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - PyObject *tmp_import_from_3__module = NULL; - struct Nuitka_FrameObject *frame_0cf8f15b912f59c3df11f1bc1cb3fea0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_2bba83743ec6097e610836f64263d12c_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_2bba83743ec6097e610836f64263d12c_2 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = NULL; - struct Nuitka_FrameObject *frame_ea86a78d4b88f338243492fda90f9024_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_ea86a78d4b88f338243492fda90f9024_3 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = NULL; - struct Nuitka_FrameObject *frame_6a79547a3227bd3687d03320c888a7d5_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_6a79547a3227bd3687d03320c888a7d5_4 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = NULL; - struct Nuitka_FrameObject *frame_8e5ee399b651fc84fb09e0543608ba47_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = NULL; - struct Nuitka_FrameObject *frame_e59924c010f350a33847b7bc37fb8c13_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_e59924c010f350a33847b7bc37fb8c13_6 = NULL; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - PyObject *exception_keeper_type_18; - PyObject *exception_keeper_value_18; - PyTracebackObject *exception_keeper_tb_18; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; - PyObject *locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = NULL; - struct Nuitka_FrameObject *frame_b75ff7e24434e35dfc56d4768e73ec18_7; - NUITKA_MAY_BE_UNUSED char const *type_description_7 = NULL; - static struct Nuitka_FrameObject *cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 = NULL; - PyObject *exception_keeper_type_19; - PyObject *exception_keeper_value_19; - PyTracebackObject *exception_keeper_tb_19; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; - PyObject *exception_keeper_type_20; - PyObject *exception_keeper_value_20; - PyTracebackObject *exception_keeper_tb_20; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; - PyObject *exception_keeper_type_21; - PyObject *exception_keeper_value_21; - PyTracebackObject *exception_keeper_tb_21; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; - PyObject *locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = NULL; - struct Nuitka_FrameObject *frame_e88cbe919e4943422eaca3092583f68c_8; - NUITKA_MAY_BE_UNUSED char const *type_description_8 = NULL; - static struct Nuitka_FrameObject *cache_frame_e88cbe919e4943422eaca3092583f68c_8 = NULL; - PyObject *exception_keeper_type_22; - PyObject *exception_keeper_value_22; - PyTracebackObject *exception_keeper_tb_22; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; - PyObject *exception_keeper_type_23; - PyObject *exception_keeper_value_23; - PyTracebackObject *exception_keeper_tb_23; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23; - PyObject *exception_keeper_type_24; - PyObject *exception_keeper_value_24; - PyTracebackObject *exception_keeper_tb_24; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24; - PyObject *locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = NULL; - struct Nuitka_FrameObject *frame_9dcbcaa61a62b4193359e4eafa1dff12_9; - NUITKA_MAY_BE_UNUSED char const *type_description_9 = NULL; - static struct Nuitka_FrameObject *cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = NULL; - PyObject *exception_keeper_type_25; - PyObject *exception_keeper_value_25; - PyTracebackObject *exception_keeper_tb_25; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25; - PyObject *exception_keeper_type_26; - PyObject *exception_keeper_value_26; - PyTracebackObject *exception_keeper_tb_26; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26; - PyObject *exception_keeper_type_27; - PyObject *exception_keeper_value_27; - PyTracebackObject *exception_keeper_tb_27; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_27; - PyObject *locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = NULL; - struct Nuitka_FrameObject *frame_5fc270cde0051c2eaf563a16fdfd133c_10; - NUITKA_MAY_BE_UNUSED char const *type_description_10 = NULL; - static struct Nuitka_FrameObject *cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 = NULL; - PyObject *exception_keeper_type_28; - PyObject *exception_keeper_value_28; - PyTracebackObject *exception_keeper_tb_28; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_28; - PyObject *exception_keeper_type_29; - PyObject *exception_keeper_value_29; - PyTracebackObject *exception_keeper_tb_29; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_29; - PyObject *exception_keeper_type_30; - PyObject *exception_keeper_value_30; - PyTracebackObject *exception_keeper_tb_30; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_30; - PyObject *locals_models$unet3d$metrics$$$class__10_PSNR_404 = NULL; - struct Nuitka_FrameObject *frame_72a00a732f540edac0bacfbeb9ebea2b_11; - NUITKA_MAY_BE_UNUSED char const *type_description_11 = NULL; - static struct Nuitka_FrameObject *cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 = NULL; - PyObject *exception_keeper_type_31; - PyObject *exception_keeper_value_31; - PyTracebackObject *exception_keeper_tb_31; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_31; - PyObject *exception_keeper_type_32; - PyObject *exception_keeper_value_32; - PyTracebackObject *exception_keeper_tb_32; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_32; - PyObject *exception_keeper_type_33; - PyObject *exception_keeper_value_33; - PyTracebackObject *exception_keeper_tb_33; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_33; - PyObject *locals_models$unet3d$metrics$$$class__11_MSE_417 = NULL; - struct Nuitka_FrameObject *frame_a46b4a5c8a31bf4bad1959b4462967d8_12; - NUITKA_MAY_BE_UNUSED char const *type_description_12 = NULL; - static struct Nuitka_FrameObject *cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = NULL; - PyObject *exception_keeper_type_34; - PyObject *exception_keeper_value_34; - PyTracebackObject *exception_keeper_tb_34; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_34; - PyObject *exception_keeper_type_35; - PyObject *exception_keeper_value_35; - PyTracebackObject *exception_keeper_tb_35; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_35; - PyObject *exception_keeper_type_36; - PyObject *exception_keeper_value_36; - PyTracebackObject *exception_keeper_tb_36; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_36; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[126], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[127], tmp_assign_source_2); - } - // Frame without reuse. - frame_0cf8f15b912f59c3df11f1bc1cb3fea0 = MAKE_MODULE_FRAME(codeobj_0cf8f15b912f59c3df11f1bc1cb3fea0, module_models$unet3d$metrics); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); - assert(Py_REFCNT(frame_0cf8f15b912f59c3df11f1bc1cb3fea0) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[129], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[128]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[128]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[130], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[131], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_HARD_IMPORTLIB(); - assert(!(tmp_assign_source_4 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[123], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[132]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 3; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[51], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[1]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 4; - tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[1], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[133]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[134]; - tmp_level_name_3 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 5; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[83], - mod_consts[20] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[83]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[83], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[135]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[136]; - tmp_level_name_4 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 6; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_8; - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[63], - mod_consts[20] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[63]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[63], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[115], - mod_consts[20] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[115]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[115], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[116], - mod_consts[20] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[116]); - } - - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[116], tmp_assign_source_11); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_5; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[137]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[138]; - tmp_level_name_5 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 8; - tmp_import_name_from_5 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[3], - mod_consts[20] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[3]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[3], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[139]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[140]; - tmp_level_name_6 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 9; - tmp_assign_source_13 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_13; - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_6 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[94], - mod_consts[20] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[94]); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[94], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_7 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[96], - mod_consts[20] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[96]); - } - - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[96], tmp_assign_source_15); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[141]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$unet3d$metrics; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[142]; - tmp_level_name_7 = mod_consts[20]; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 10; - tmp_assign_source_16 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_3__module == NULL); - tmp_import_from_3__module = tmp_assign_source_16; - } - // Tried code: - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_8 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[143], - mod_consts[20] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[143]); - } - - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[143], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_import_name_from_9; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_9 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_18 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[13], - mod_consts[20] - ); - } else { - tmp_assign_source_18 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[13]); - } - - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_import_name_from_10; - CHECK_OBJECT(tmp_import_from_3__module); - tmp_import_name_from_10 = tmp_import_from_3__module; - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$unet3d$metrics, - mod_consts[47], - mod_consts[20] - ); - } else { - tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[47]); - } - - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto try_except_handler_3; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_19); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_import_from_3__module); - Py_DECREF(tmp_import_from_3__module); - tmp_import_from_3__module = NULL; - { - PyObject *tmp_assign_source_20; - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 12; - tmp_assign_source_20 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, mod_consts[144]); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[55], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_21; - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[145]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[146]; - tmp_assign_source_22 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_22; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_1 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[147]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[147]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_args_name_1 = mod_consts[148]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 15; - tmp_assign_source_23 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_23; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_3 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[149]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[151]; - tmp_getattr_default_1 = mod_consts[152]; - tmp_tuple_element_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_4; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_4 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_4 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[151]); - Py_DECREF(tmp_expression_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 15; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_24; - } - branch_end_2:; - { - PyObject *tmp_assign_source_25; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[154]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[155]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_2bba83743ec6097e610836f64263d12c_2)) { - Py_XDECREF(cache_frame_2bba83743ec6097e610836f64263d12c_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2bba83743ec6097e610836f64263d12c_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2bba83743ec6097e610836f64263d12c_2 = MAKE_FUNCTION_FRAME(codeobj_2bba83743ec6097e610836f64263d12c, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2bba83743ec6097e610836f64263d12c_2->m_type_description == NULL); - frame_2bba83743ec6097e610836f64263d12c_2 = cache_frame_2bba83743ec6097e610836f64263d12c_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2bba83743ec6097e610836f64263d12c_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2bba83743ec6097e610836f64263d12c_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[157]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__1___init__(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__2___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bba83743ec6097e610836f64263d12c_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2bba83743ec6097e610836f64263d12c_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2bba83743ec6097e610836f64263d12c_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2bba83743ec6097e610836f64263d12c_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2bba83743ec6097e610836f64263d12c_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2bba83743ec6097e610836f64263d12c_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2bba83743ec6097e610836f64263d12c_2 == cache_frame_2bba83743ec6097e610836f64263d12c_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2bba83743ec6097e610836f64263d12c_2); - cache_frame_2bba83743ec6097e610836f64263d12c_2 = NULL; - } - - assertFrameObject(frame_2bba83743ec6097e610836f64263d12c_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_6; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_3 = tmp_class_creation_1__metaclass; - tmp_tuple_element_2 = mod_consts[155]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 15; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto try_except_handler_6; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_26; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_25 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_25); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15); - locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15); - locals_models$unet3d$metrics$$$class__1_DiceCoefficient_15 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 15; - goto try_except_handler_4; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[155], tmp_assign_source_25); - } - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_27; - } - // Tried code: - { - PyObject *tmp_assign_source_28; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_5; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_5 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[145]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_2:; - tmp_bases_name_2 = mod_consts[146]; - tmp_assign_source_28 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_6 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_5 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[147]); - tmp_condition_result_7 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_3; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_6 = tmp_class_creation_2__metaclass; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[147]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_args_name_3 = mod_consts[161]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 32; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_29; - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_7; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_7 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_7, mod_consts[149]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_condition_result_8 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[151]; - tmp_getattr_default_2 = mod_consts[152]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_8; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_2 = tmp_class_creation_2__prepared; - tmp_expression_name_8 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_8 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[151]); - Py_DECREF(tmp_expression_name_8); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 32; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_6:; - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assign_source_30; - tmp_assign_source_30 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_30; - } - branch_end_5:; - { - PyObject *tmp_assign_source_31; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[162]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[163]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_ea86a78d4b88f338243492fda90f9024_3)) { - Py_XDECREF(cache_frame_ea86a78d4b88f338243492fda90f9024_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ea86a78d4b88f338243492fda90f9024_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ea86a78d4b88f338243492fda90f9024_3 = MAKE_FUNCTION_FRAME(codeobj_ea86a78d4b88f338243492fda90f9024, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ea86a78d4b88f338243492fda90f9024_3->m_type_description == NULL); - frame_ea86a78d4b88f338243492fda90f9024_3 = cache_frame_ea86a78d4b88f338243492fda90f9024_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ea86a78d4b88f338243492fda90f9024_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ea86a78d4b88f338243492fda90f9024_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[164]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__3___init__(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__4___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__5__binarize_predictions(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[18], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__6__jaccard_index(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__2_MeanIoU_32, mod_consts[26], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea86a78d4b88f338243492fda90f9024_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ea86a78d4b88f338243492fda90f9024_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ea86a78d4b88f338243492fda90f9024_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ea86a78d4b88f338243492fda90f9024_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ea86a78d4b88f338243492fda90f9024_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ea86a78d4b88f338243492fda90f9024_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_ea86a78d4b88f338243492fda90f9024_3 == cache_frame_ea86a78d4b88f338243492fda90f9024_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ea86a78d4b88f338243492fda90f9024_3); - cache_frame_ea86a78d4b88f338243492fda90f9024_3 = NULL; - } - - assertFrameObject(frame_ea86a78d4b88f338243492fda90f9024_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_9; - skip_nested_handling_2:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_name_5; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_5 = tmp_class_creation_2__metaclass; - tmp_tuple_element_4 = mod_consts[163]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$metrics$$$class__2_MeanIoU_32; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 32; - tmp_assign_source_32 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - - goto try_except_handler_9; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_32; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_31 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_31); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$unet3d$metrics$$$class__2_MeanIoU_32); - locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__2_MeanIoU_32); - locals_models$unet3d$metrics$$$class__2_MeanIoU_32 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 32; - goto try_except_handler_7; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[163], tmp_assign_source_31); - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_33; - tmp_assign_source_33 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_33; - } - // Tried code: - { - PyObject *tmp_assign_source_34; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[145]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - goto condexpr_end_3; - condexpr_false_3:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_3:; - tmp_bases_name_3 = mod_consts[146]; - tmp_assign_source_34 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - branch_no_7:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_9 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[147]); - tmp_condition_result_11 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_10 = tmp_class_creation_3__metaclass; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[147]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - tmp_args_name_5 = mod_consts[169]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 107; - tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_6); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_11 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[149]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - tmp_condition_result_12 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_5; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[151]; - tmp_getattr_default_3 = mod_consts[152]; - tmp_tuple_element_5 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_3; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_3 = tmp_class_creation_3__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_3); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[151]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_10; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_10; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 107; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_10; - } - branch_no_9:; - goto branch_end_8; - branch_no_8:; - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_36; - } - branch_end_8:; - { - PyObject *tmp_assign_source_37; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[170]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[171]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - if (isFrameUnusable(cache_frame_6a79547a3227bd3687d03320c888a7d5_4)) { - Py_XDECREF(cache_frame_6a79547a3227bd3687d03320c888a7d5_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6a79547a3227bd3687d03320c888a7d5_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6a79547a3227bd3687d03320c888a7d5_4 = MAKE_FUNCTION_FRAME(codeobj_6a79547a3227bd3687d03320c888a7d5, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6a79547a3227bd3687d03320c888a7d5_4->m_type_description == NULL); - frame_6a79547a3227bd3687d03320c888a7d5_4 = cache_frame_6a79547a3227bd3687d03320c888a7d5_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6a79547a3227bd3687d03320c888a7d5_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6a79547a3227bd3687d03320c888a7d5_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[172]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__7___init__(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__8___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__9_input_to_segm(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6a79547a3227bd3687d03320c888a7d5_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6a79547a3227bd3687d03320c888a7d5_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6a79547a3227bd3687d03320c888a7d5_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6a79547a3227bd3687d03320c888a7d5_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6a79547a3227bd3687d03320c888a7d5_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6a79547a3227bd3687d03320c888a7d5_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_6a79547a3227bd3687d03320c888a7d5_4 == cache_frame_6a79547a3227bd3687d03320c888a7d5_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6a79547a3227bd3687d03320c888a7d5_4); - cache_frame_6a79547a3227bd3687d03320c888a7d5_4 = NULL; - } - - assertFrameObject(frame_6a79547a3227bd3687d03320c888a7d5_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_12; - skip_nested_handling_3:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_7 = tmp_class_creation_3__metaclass; - tmp_tuple_element_6 = mod_consts[171]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_tuple_element_6 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_6); - tmp_tuple_element_6 = locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 107; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - - goto try_except_handler_12; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_38; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_37 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_37); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_DECREF(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107); - locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = NULL; - goto try_return_handler_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107); - locals_models$unet3d$metrics$$$class__3_AdaptedRandError_107 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 107; - goto try_except_handler_10; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[171], tmp_assign_source_37); - } - goto try_end_6; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_39; - PyObject *tmp_tuple_element_7; - tmp_tuple_element_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_tuple_element_7 == NULL)) { - tmp_tuple_element_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_assign_source_39 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_39, 0, tmp_tuple_element_7); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_40 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_40; - } - { - PyObject *tmp_assign_source_41; - tmp_assign_source_41 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_41; - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_1; - PyObject *tmp_type_arg_4; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[145]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - goto condexpr_end_4; - condexpr_false_4:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_condition_result_14 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_13 = tmp_class_creation_4__bases; - tmp_subscript_name_1 = mod_consts[20]; - tmp_type_arg_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_1, 0); - if (tmp_type_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_4); - Py_DECREF(tmp_type_arg_4); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - goto condexpr_end_5; - condexpr_false_5:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_5:; - condexpr_end_4:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_42 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_42; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - branch_no_10:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_14; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_14 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_14, mod_consts[147]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_assign_source_43; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_15 = tmp_class_creation_4__metaclass; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[147]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_tuple_element_8 = mod_consts[176]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_8 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 182; - tmp_assign_source_43 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_43; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_16 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_16, mod_consts[149]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_9; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[151]; - tmp_getattr_default_4 = mod_consts[152]; - tmp_tuple_element_9 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_17; - PyObject *tmp_type_arg_5; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_5 = tmp_class_creation_4__prepared; - tmp_expression_name_17 = BUILTIN_TYPE1(tmp_type_arg_5); - assert(!(tmp_expression_name_17 == NULL)); - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[151]); - Py_DECREF(tmp_expression_name_17); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_13; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_13; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 182; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_13; - } - branch_no_12:; - goto branch_end_11; - branch_no_11:; - { - PyObject *tmp_assign_source_44; - tmp_assign_source_44 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_44; - } - branch_end_11:; - { - PyObject *tmp_assign_source_45; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[177]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - tmp_dictset_value = mod_consts[176]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - if (isFrameUnusable(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5)) { - Py_XDECREF(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 = MAKE_FUNCTION_FRAME(codeobj_8e5ee399b651fc84fb09e0543608ba47, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5->m_type_description == NULL); - frame_8e5ee399b651fc84fb09e0543608ba47_5 = cache_frame_8e5ee399b651fc84fb09e0543608ba47_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8e5ee399b651fc84fb09e0543608ba47_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8e5ee399b651fc84fb09e0543608ba47_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_defaults_4 = mod_consts[178]; - Py_INCREF(tmp_defaults_4); - - tmp_closure_1[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__10___init__(tmp_defaults_4, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 188; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__11_input_to_segm(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e5ee399b651fc84fb09e0543608ba47_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8e5ee399b651fc84fb09e0543608ba47_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8e5ee399b651fc84fb09e0543608ba47_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8e5ee399b651fc84fb09e0543608ba47_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8e5ee399b651fc84fb09e0543608ba47_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8e5ee399b651fc84fb09e0543608ba47_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_8e5ee399b651fc84fb09e0543608ba47_5 == cache_frame_8e5ee399b651fc84fb09e0543608ba47_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8e5ee399b651fc84fb09e0543608ba47_5); - cache_frame_8e5ee399b651fc84fb09e0543608ba47_5 = NULL; - } - - assertFrameObject(frame_8e5ee399b651fc84fb09e0543608ba47_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_15; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_1 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_4__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - branch_no_13:; - { - PyObject *tmp_assign_source_46; - PyObject *tmp_called_name_9; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_9 = tmp_class_creation_4__metaclass; - tmp_tuple_element_10 = mod_consts[176]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_10 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_10); - tmp_tuple_element_10 = locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 182; - tmp_assign_source_46 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - - goto try_except_handler_15; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_46); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_45 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_45); - goto try_return_handler_15; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_15:; - Py_DECREF(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182); - locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = NULL; - goto try_return_handler_14; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182); - locals_models$unet3d$metrics$$$class__4_BoundaryAdaptedRandError_182 = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_14; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 182; - goto try_except_handler_13; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[176], tmp_assign_source_45); - } - goto try_end_7; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_47; - PyObject *tmp_tuple_element_11; - tmp_tuple_element_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_tuple_element_11 == NULL)) { - tmp_tuple_element_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_assign_source_47 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_47, 0, tmp_tuple_element_11); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_48 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_48; - } - { - PyObject *tmp_assign_source_49; - tmp_assign_source_49 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_49; - } - { - PyObject *tmp_assign_source_50; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_2; - PyObject *tmp_type_arg_6; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[145]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - goto condexpr_end_6; - condexpr_false_6:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_condition_result_20 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_18 = tmp_class_creation_5__bases; - tmp_subscript_name_2 = mod_consts[20]; - tmp_type_arg_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_18, tmp_subscript_name_2, 0); - if (tmp_type_arg_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_6); - Py_DECREF(tmp_type_arg_6); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - goto condexpr_end_7; - condexpr_false_7:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_7:; - condexpr_end_6:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_50 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_50; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - branch_no_14:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_19 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_19, mod_consts[147]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_assign_source_51; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_20 = tmp_class_creation_5__metaclass; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[147]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_tuple_element_12 = mod_consts[182]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_12 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 223; - tmp_assign_source_51 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_51; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_21; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_21 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_21, mod_consts[149]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - } - branch_yes_16:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_13; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[151]; - tmp_getattr_default_5 = mod_consts[152]; - tmp_tuple_element_13 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_22; - PyObject *tmp_type_arg_7; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_13); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_7 = tmp_class_creation_5__prepared; - tmp_expression_name_22 = BUILTIN_TYPE1(tmp_type_arg_7); - assert(!(tmp_expression_name_22 == NULL)); - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[151]); - Py_DECREF(tmp_expression_name_22); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_13); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_16; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_16; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 223; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_16; - } - branch_no_16:; - goto branch_end_15; - branch_no_15:; - { - PyObject *tmp_assign_source_52; - tmp_assign_source_52 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_52; - } - branch_end_15:; - { - PyObject *tmp_assign_source_53; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - tmp_dictset_value = mod_consts[182]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - if (isFrameUnusable(cache_frame_e59924c010f350a33847b7bc37fb8c13_6)) { - Py_XDECREF(cache_frame_e59924c010f350a33847b7bc37fb8c13_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e59924c010f350a33847b7bc37fb8c13_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e59924c010f350a33847b7bc37fb8c13_6 = MAKE_FUNCTION_FRAME(codeobj_e59924c010f350a33847b7bc37fb8c13, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e59924c010f350a33847b7bc37fb8c13_6->m_type_description == NULL); - frame_e59924c010f350a33847b7bc37fb8c13_6 = cache_frame_e59924c010f350a33847b7bc37fb8c13_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e59924c010f350a33847b7bc37fb8c13_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e59924c010f350a33847b7bc37fb8c13_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_5; - struct Nuitka_CellObject *tmp_closure_2[1]; - tmp_defaults_5 = mod_consts[183]; - Py_INCREF(tmp_defaults_5); - - tmp_closure_2[0] = outline_4_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__12___init__(tmp_defaults_5, tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__13_input_to_segm(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[60], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_2 = "c"; - goto frame_exception_exit_6; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e59924c010f350a33847b7bc37fb8c13_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e59924c010f350a33847b7bc37fb8c13_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e59924c010f350a33847b7bc37fb8c13_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e59924c010f350a33847b7bc37fb8c13_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e59924c010f350a33847b7bc37fb8c13_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e59924c010f350a33847b7bc37fb8c13_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e59924c010f350a33847b7bc37fb8c13_6 == cache_frame_e59924c010f350a33847b7bc37fb8c13_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e59924c010f350a33847b7bc37fb8c13_6); - cache_frame_e59924c010f350a33847b7bc37fb8c13_6 = NULL; - } - - assertFrameObject(frame_e59924c010f350a33847b7bc37fb8c13_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_18; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_2 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_5__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - branch_no_17:; - { - PyObject *tmp_assign_source_54; - PyObject *tmp_called_name_11; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_11 = tmp_class_creation_5__metaclass; - tmp_tuple_element_14 = mod_consts[182]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_14 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_14); - tmp_tuple_element_14 = locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 223; - tmp_assign_source_54 = CALL_FUNCTION(tmp_called_name_11, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - - goto try_except_handler_18; - } - { - PyObject *old = Nuitka_Cell_GET(outline_4_var___class__); - PyCell_SET(outline_4_var___class__, tmp_assign_source_54); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_4_var___class__)); - tmp_assign_source_53 = Nuitka_Cell_GET(outline_4_var___class__); - Py_INCREF(tmp_assign_source_53); - goto try_return_handler_18; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_18:; - Py_DECREF(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223); - locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = NULL; - goto try_return_handler_17; - // Exception handler code: - try_except_handler_18:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223); - locals_models$unet3d$metrics$$$class__5_GenericAdaptedRandError_223 = NULL; - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto try_except_handler_17; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 223; - goto try_except_handler_16; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[182], tmp_assign_source_53); - } - goto try_end_8; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_18 = exception_type; - exception_keeper_value_18 = exception_value; - exception_keeper_tb_18 = exception_tb; - exception_keeper_lineno_18 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_18; - exception_value = exception_keeper_value_18; - exception_tb = exception_keeper_tb_18; - exception_lineno = exception_keeper_lineno_18; - - goto frame_exception_exit_1; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - { - PyObject *tmp_assign_source_55; - tmp_assign_source_55 = PyDict_New(); - assert(tmp_class_creation_6__class_decl_dict == NULL); - tmp_class_creation_6__class_decl_dict = tmp_assign_source_55; - } - // Tried code: - { - PyObject *tmp_assign_source_56; - PyObject *tmp_metaclass_name_6; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_16; - PyObject *tmp_dict_arg_name_16; - PyObject *tmp_dict_arg_name_17; - PyObject *tmp_key_name_17; - PyObject *tmp_bases_name_6; - tmp_key_name_16 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_16 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_16, tmp_key_name_16); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_17 = tmp_class_creation_6__class_decl_dict; - tmp_key_name_17 = mod_consts[145]; - tmp_metaclass_name_6 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_17, tmp_key_name_17); - if (tmp_metaclass_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_6 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_6); - condexpr_end_8:; - tmp_bases_name_6 = mod_consts[146]; - tmp_assign_source_56 = SELECT_METACLASS(tmp_metaclass_name_6, tmp_bases_name_6); - Py_DECREF(tmp_metaclass_name_6); - if (tmp_assign_source_56 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - assert(tmp_class_creation_6__metaclass == NULL); - tmp_class_creation_6__metaclass = tmp_assign_source_56; - } - { - nuitka_bool tmp_condition_result_26; - PyObject *tmp_key_name_18; - PyObject *tmp_dict_arg_name_18; - tmp_key_name_18 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dict_arg_name_18 = tmp_class_creation_6__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_18, tmp_key_name_18); - assert(!(tmp_res == -1)); - tmp_condition_result_26 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - branch_no_18:; - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_expression_name_23; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_23 = tmp_class_creation_6__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_23, mod_consts[147]); - tmp_condition_result_27 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_assign_source_57; - PyObject *tmp_called_name_12; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_11; - PyObject *tmp_kwargs_name_11; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_expression_name_24 = tmp_class_creation_6__metaclass; - tmp_called_name_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[147]); - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - tmp_args_name_11 = mod_consts[186]; - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_11 = tmp_class_creation_6__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 260; - tmp_assign_source_57 = CALL_FUNCTION(tmp_called_name_12, tmp_args_name_11, tmp_kwargs_name_11); - Py_DECREF(tmp_called_name_12); - if (tmp_assign_source_57 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_57; - } - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_operand_name_6; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_expression_name_25 = tmp_class_creation_6__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[149]); - tmp_operand_name_6 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_6); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - tmp_condition_result_28 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - } - branch_yes_20:; - { - PyObject *tmp_raise_type_6; - PyObject *tmp_raise_value_6; - PyObject *tmp_left_name_6; - PyObject *tmp_right_name_6; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_6; - PyObject *tmp_getattr_attr_6; - PyObject *tmp_getattr_default_6; - tmp_raise_type_6 = PyExc_TypeError; - tmp_left_name_6 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_getattr_target_6 = tmp_class_creation_6__metaclass; - tmp_getattr_attr_6 = mod_consts[151]; - tmp_getattr_default_6 = mod_consts[152]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - tmp_right_name_6 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_6, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_type_arg_8 = tmp_class_creation_6__prepared; - tmp_expression_name_26 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_26 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[151]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_right_name_6, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_right_name_6); - goto try_except_handler_19; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_raise_value_6 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_right_name_6); - if (tmp_raise_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_19; - } - exception_type = tmp_raise_type_6; - Py_INCREF(tmp_raise_type_6); - exception_value = tmp_raise_value_6; - exception_lineno = 260; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_19; - } - branch_no_20:; - goto branch_end_19; - branch_no_19:; - { - PyObject *tmp_assign_source_58; - tmp_assign_source_58 = PyDict_New(); - assert(tmp_class_creation_6__prepared == NULL); - tmp_class_creation_6__prepared = tmp_assign_source_58; - } - branch_end_19:; - { - PyObject *tmp_assign_source_59; - { - PyObject *tmp_set_locals_6; - CHECK_OBJECT(tmp_class_creation_6__prepared); - tmp_set_locals_6 = tmp_class_creation_6__prepared; - locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = tmp_set_locals_6; - Py_INCREF(tmp_set_locals_6); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_21; - } - tmp_dictset_value = mod_consts[187]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_21; - } - if (isFrameUnusable(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7)) { - Py_XDECREF(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 = MAKE_FUNCTION_FRAME(codeobj_b75ff7e24434e35dfc56d4768e73ec18, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7->m_type_description == NULL); - frame_b75ff7e24434e35dfc56d4768e73ec18_7 = cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b75ff7e24434e35dfc56d4768e73ec18_7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b75ff7e24434e35dfc56d4768e73ec18_7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_6; - tmp_defaults_6 = mod_consts[188]; - Py_INCREF(tmp_defaults_6); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__14___init__(tmp_defaults_6); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 261; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__15___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__16__filter_instances(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[103], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - { - PyObject *tmp_defaults_7; - tmp_defaults_7 = mod_consts[192]; - Py_INCREF(tmp_defaults_7); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__17_input_to_seg(tmp_defaults_7); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 326; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__18_target_to_seg(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260, mod_consts[101], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 329; - type_description_2 = "o"; - goto frame_exception_exit_7; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b75ff7e24434e35dfc56d4768e73ec18_7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_6; - - frame_exception_exit_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b75ff7e24434e35dfc56d4768e73ec18_7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b75ff7e24434e35dfc56d4768e73ec18_7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b75ff7e24434e35dfc56d4768e73ec18_7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b75ff7e24434e35dfc56d4768e73ec18_7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b75ff7e24434e35dfc56d4768e73ec18_7, - type_description_2, - outline_5_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b75ff7e24434e35dfc56d4768e73ec18_7 == cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7); - cache_frame_b75ff7e24434e35dfc56d4768e73ec18_7 = NULL; - } - - assertFrameObject(frame_b75ff7e24434e35dfc56d4768e73ec18_7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_6; - - frame_no_exception_6:; - goto skip_nested_handling_6; - nested_frame_exit_6:; - - goto try_except_handler_21; - skip_nested_handling_6:; - { - PyObject *tmp_assign_source_60; - PyObject *tmp_called_name_13; - PyObject *tmp_args_name_12; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_12; - CHECK_OBJECT(tmp_class_creation_6__metaclass); - tmp_called_name_13 = tmp_class_creation_6__metaclass; - tmp_tuple_element_16 = mod_consts[187]; - tmp_args_name_12 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_12, 0, tmp_tuple_element_16); - tmp_tuple_element_16 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_12, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260; - PyTuple_SET_ITEM0(tmp_args_name_12, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_6__class_decl_dict); - tmp_kwargs_name_12 = tmp_class_creation_6__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 260; - tmp_assign_source_60 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_12, tmp_kwargs_name_12); - Py_DECREF(tmp_args_name_12); - if (tmp_assign_source_60 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - - goto try_except_handler_21; - } - assert(outline_5_var___class__ == NULL); - outline_5_var___class__ = tmp_assign_source_60; - } - CHECK_OBJECT(outline_5_var___class__); - tmp_assign_source_59 = outline_5_var___class__; - Py_INCREF(tmp_assign_source_59); - goto try_return_handler_21; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_21:; - Py_DECREF(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260); - locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = NULL; - goto try_return_handler_20; - // Exception handler code: - try_except_handler_21:; - exception_keeper_type_19 = exception_type; - exception_keeper_value_19 = exception_value; - exception_keeper_tb_19 = exception_tb; - exception_keeper_lineno_19 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260); - locals_models$unet3d$metrics$$$class__6_GenericAveragePrecision_260 = NULL; - // Re-raise. - exception_type = exception_keeper_type_19; - exception_value = exception_keeper_value_19; - exception_tb = exception_keeper_tb_19; - exception_lineno = exception_keeper_lineno_19; - - goto try_except_handler_20; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_20:; - CHECK_OBJECT(outline_5_var___class__); - Py_DECREF(outline_5_var___class__); - outline_5_var___class__ = NULL; - goto outline_result_6; - // Exception handler code: - try_except_handler_20:; - exception_keeper_type_20 = exception_type; - exception_keeper_value_20 = exception_value; - exception_keeper_tb_20 = exception_tb; - exception_keeper_lineno_20 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_20; - exception_value = exception_keeper_value_20; - exception_tb = exception_keeper_tb_20; - exception_lineno = exception_keeper_lineno_20; - - goto outline_exception_6; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_6:; - exception_lineno = 260; - goto try_except_handler_19; - outline_result_6:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187], tmp_assign_source_59); - } - goto try_end_9; - // Exception handler code: - try_except_handler_19:; - exception_keeper_type_21 = exception_type; - exception_keeper_value_21 = exception_value; - exception_keeper_tb_21 = exception_tb; - exception_keeper_lineno_21 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - Py_XDECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_21; - exception_value = exception_keeper_value_21; - exception_tb = exception_keeper_tb_21; - exception_lineno = exception_keeper_lineno_21; - - goto frame_exception_exit_1; - // End of try: - try_end_9:; - Py_XDECREF(tmp_class_creation_6__class_decl_dict); - tmp_class_creation_6__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_6__metaclass); - tmp_class_creation_6__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_6__prepared); - Py_DECREF(tmp_class_creation_6__prepared); - tmp_class_creation_6__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_61; - PyObject *tmp_tuple_element_17; - tmp_tuple_element_17 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187]); - - if (unlikely(tmp_tuple_element_17 == NULL)) { - tmp_tuple_element_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[187]); - } - - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_assign_source_61 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_61, 0, tmp_tuple_element_17); - assert(tmp_class_creation_7__bases_orig == NULL); - tmp_class_creation_7__bases_orig = tmp_assign_source_61; - } - { - PyObject *tmp_assign_source_62; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_7__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_62 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_62 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - assert(tmp_class_creation_7__bases == NULL); - tmp_class_creation_7__bases = tmp_assign_source_62; - } - { - PyObject *tmp_assign_source_63; - tmp_assign_source_63 = PyDict_New(); - assert(tmp_class_creation_7__class_decl_dict == NULL); - tmp_class_creation_7__class_decl_dict = tmp_assign_source_63; - } - { - PyObject *tmp_assign_source_64; - PyObject *tmp_metaclass_name_7; - nuitka_bool tmp_condition_result_29; - PyObject *tmp_key_name_19; - PyObject *tmp_dict_arg_name_19; - PyObject *tmp_dict_arg_name_20; - PyObject *tmp_key_name_20; - nuitka_bool tmp_condition_result_30; - int tmp_truth_name_3; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_7; - tmp_key_name_19 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_19 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_19, tmp_key_name_19); - assert(!(tmp_res == -1)); - tmp_condition_result_29 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_20 = tmp_class_creation_7__class_decl_dict; - tmp_key_name_20 = mod_consts[145]; - tmp_metaclass_name_7 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_20, tmp_key_name_20); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_7__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_condition_result_30 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_expression_name_27 = tmp_class_creation_7__bases; - tmp_subscript_name_3 = mod_consts[20]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_27, tmp_subscript_name_3, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_metaclass_name_7 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_7 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_7); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_bases_name_7 = tmp_class_creation_7__bases; - tmp_assign_source_64 = SELECT_METACLASS(tmp_metaclass_name_7, tmp_bases_name_7); - Py_DECREF(tmp_metaclass_name_7); - if (tmp_assign_source_64 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - assert(tmp_class_creation_7__metaclass == NULL); - tmp_class_creation_7__metaclass = tmp_assign_source_64; - } - { - nuitka_bool tmp_condition_result_31; - PyObject *tmp_key_name_21; - PyObject *tmp_dict_arg_name_21; - tmp_key_name_21 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dict_arg_name_21 = tmp_class_creation_7__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_21, tmp_key_name_21); - assert(!(tmp_res == -1)); - tmp_condition_result_31 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_31 == NUITKA_BOOL_TRUE) { - goto branch_yes_21; - } else { - goto branch_no_21; - } - } - branch_yes_21:; - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_7__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - branch_no_21:; - { - nuitka_bool tmp_condition_result_32; - PyObject *tmp_expression_name_28; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_28 = tmp_class_creation_7__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_28, mod_consts[147]); - tmp_condition_result_32 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_32 == NUITKA_BOOL_TRUE) { - goto branch_yes_22; - } else { - goto branch_no_22; - } - } - branch_yes_22:; - { - PyObject *tmp_assign_source_65; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_29; - PyObject *tmp_args_name_13; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_13; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_expression_name_29 = tmp_class_creation_7__metaclass; - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[147]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_tuple_element_18 = mod_consts[195]; - tmp_args_name_13 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_13, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_18 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_13, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_13 = tmp_class_creation_7__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 333; - tmp_assign_source_65 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_13, tmp_kwargs_name_13); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_13); - if (tmp_assign_source_65 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_65; - } - { - nuitka_bool tmp_condition_result_33; - PyObject *tmp_operand_name_7; - PyObject *tmp_expression_name_30; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_expression_name_30 = tmp_class_creation_7__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_30, mod_consts[149]); - tmp_operand_name_7 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_7); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_condition_result_33 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_33 == NUITKA_BOOL_TRUE) { - goto branch_yes_23; - } else { - goto branch_no_23; - } - } - branch_yes_23:; - { - PyObject *tmp_raise_type_7; - PyObject *tmp_raise_value_7; - PyObject *tmp_left_name_7; - PyObject *tmp_right_name_7; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_7; - PyObject *tmp_getattr_attr_7; - PyObject *tmp_getattr_default_7; - tmp_raise_type_7 = PyExc_TypeError; - tmp_left_name_7 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_getattr_target_7 = tmp_class_creation_7__metaclass; - tmp_getattr_attr_7 = mod_consts[151]; - tmp_getattr_default_7 = mod_consts[152]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_7, tmp_getattr_attr_7, tmp_getattr_default_7); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - tmp_right_name_7 = PyTuple_New(2); - { - PyObject *tmp_expression_name_31; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_7, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_type_arg_10 = tmp_class_creation_7__prepared; - tmp_expression_name_31 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_31 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[151]); - Py_DECREF(tmp_expression_name_31); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto tuple_build_exception_7; - } - PyTuple_SET_ITEM(tmp_right_name_7, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_7; - // Exception handling pass through code for tuple_build: - tuple_build_exception_7:; - Py_DECREF(tmp_right_name_7); - goto try_except_handler_22; - // Finished with no exception for tuple_build: - tuple_build_noexception_7:; - tmp_raise_value_7 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_7, tmp_right_name_7); - Py_DECREF(tmp_right_name_7); - if (tmp_raise_value_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_22; - } - exception_type = tmp_raise_type_7; - Py_INCREF(tmp_raise_type_7); - exception_value = tmp_raise_value_7; - exception_lineno = 333; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_22; - } - branch_no_23:; - goto branch_end_22; - branch_no_22:; - { - PyObject *tmp_assign_source_66; - tmp_assign_source_66 = PyDict_New(); - assert(tmp_class_creation_7__prepared == NULL); - tmp_class_creation_7__prepared = tmp_assign_source_66; - } - branch_end_22:; - { - PyObject *tmp_assign_source_67; - { - PyObject *tmp_set_locals_7; - CHECK_OBJECT(tmp_class_creation_7__prepared); - tmp_set_locals_7 = tmp_class_creation_7__prepared; - locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = tmp_set_locals_7; - Py_INCREF(tmp_set_locals_7); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - tmp_dictset_value = mod_consts[196]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - tmp_dictset_value = mod_consts[195]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - if (isFrameUnusable(cache_frame_e88cbe919e4943422eaca3092583f68c_8)) { - Py_XDECREF(cache_frame_e88cbe919e4943422eaca3092583f68c_8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e88cbe919e4943422eaca3092583f68c_8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e88cbe919e4943422eaca3092583f68c_8 = MAKE_FUNCTION_FRAME(codeobj_e88cbe919e4943422eaca3092583f68c, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e88cbe919e4943422eaca3092583f68c_8->m_type_description == NULL); - frame_e88cbe919e4943422eaca3092583f68c_8 = cache_frame_e88cbe919e4943422eaca3092583f68c_8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e88cbe919e4943422eaca3092583f68c_8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e88cbe919e4943422eaca3092583f68c_8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_8; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_defaults_8 = mod_consts[197]; - Py_INCREF(tmp_defaults_8); - - tmp_closure_3[0] = outline_6_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__19___init__(tmp_defaults_8, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - { - PyObject *tmp_defaults_9; - tmp_defaults_9 = mod_consts[192]; - Py_INCREF(tmp_defaults_9); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__20_input_to_seg(tmp_defaults_9); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 346; - type_description_2 = "c"; - goto frame_exception_exit_8; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e88cbe919e4943422eaca3092583f68c_8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_7; - - frame_exception_exit_8:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e88cbe919e4943422eaca3092583f68c_8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e88cbe919e4943422eaca3092583f68c_8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e88cbe919e4943422eaca3092583f68c_8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e88cbe919e4943422eaca3092583f68c_8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e88cbe919e4943422eaca3092583f68c_8, - type_description_2, - outline_6_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e88cbe919e4943422eaca3092583f68c_8 == cache_frame_e88cbe919e4943422eaca3092583f68c_8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e88cbe919e4943422eaca3092583f68c_8); - cache_frame_e88cbe919e4943422eaca3092583f68c_8 = NULL; - } - - assertFrameObject(frame_e88cbe919e4943422eaca3092583f68c_8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_7; - - frame_no_exception_7:; - goto skip_nested_handling_7; - nested_frame_exit_7:; - - goto try_except_handler_24; - skip_nested_handling_7:; - { - nuitka_bool tmp_condition_result_34; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_compexpr_left_3 = tmp_class_creation_7__bases; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_7__bases_orig; - tmp_condition_result_34 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_34 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - if (tmp_condition_result_34 == NUITKA_BOOL_TRUE) { - goto branch_yes_24; - } else { - goto branch_no_24; - } - assert(tmp_condition_result_34 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_24:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - tmp_dictset_value = tmp_class_creation_7__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - branch_no_24:; - { - PyObject *tmp_assign_source_68; - PyObject *tmp_called_name_15; - PyObject *tmp_args_name_14; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_14; - CHECK_OBJECT(tmp_class_creation_7__metaclass); - tmp_called_name_15 = tmp_class_creation_7__metaclass; - tmp_tuple_element_20 = mod_consts[195]; - tmp_args_name_14 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_14, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_7__bases); - tmp_tuple_element_20 = tmp_class_creation_7__bases; - PyTuple_SET_ITEM0(tmp_args_name_14, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333; - PyTuple_SET_ITEM0(tmp_args_name_14, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_7__class_decl_dict); - tmp_kwargs_name_14 = tmp_class_creation_7__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 333; - tmp_assign_source_68 = CALL_FUNCTION(tmp_called_name_15, tmp_args_name_14, tmp_kwargs_name_14); - Py_DECREF(tmp_args_name_14); - if (tmp_assign_source_68 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 333; - - goto try_except_handler_24; - } - { - PyObject *old = Nuitka_Cell_GET(outline_6_var___class__); - PyCell_SET(outline_6_var___class__, tmp_assign_source_68); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_6_var___class__)); - tmp_assign_source_67 = Nuitka_Cell_GET(outline_6_var___class__); - Py_INCREF(tmp_assign_source_67); - goto try_return_handler_24; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_24:; - Py_DECREF(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333); - locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = NULL; - goto try_return_handler_23; - // Exception handler code: - try_except_handler_24:; - exception_keeper_type_22 = exception_type; - exception_keeper_value_22 = exception_value; - exception_keeper_tb_22 = exception_tb; - exception_keeper_lineno_22 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333); - locals_models$unet3d$metrics$$$class__7_BlobsAveragePrecision_333 = NULL; - // Re-raise. - exception_type = exception_keeper_type_22; - exception_value = exception_keeper_value_22; - exception_tb = exception_keeper_tb_22; - exception_lineno = exception_keeper_lineno_22; - - goto try_except_handler_23; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_23:; - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - goto outline_result_7; - // Exception handler code: - try_except_handler_23:; - exception_keeper_type_23 = exception_type; - exception_keeper_value_23 = exception_value; - exception_keeper_tb_23 = exception_tb; - exception_keeper_lineno_23 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_6_var___class__); - Py_DECREF(outline_6_var___class__); - outline_6_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_23; - exception_value = exception_keeper_value_23; - exception_tb = exception_keeper_tb_23; - exception_lineno = exception_keeper_lineno_23; - - goto outline_exception_7; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_7:; - exception_lineno = 333; - goto try_except_handler_22; - outline_result_7:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[195], tmp_assign_source_67); - } - goto try_end_10; - // Exception handler code: - try_except_handler_22:; - exception_keeper_type_24 = exception_type; - exception_keeper_value_24 = exception_value; - exception_keeper_tb_24 = exception_tb; - exception_keeper_lineno_24 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - Py_XDECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_24; - exception_value = exception_keeper_value_24; - exception_tb = exception_keeper_tb_24; - exception_lineno = exception_keeper_lineno_24; - - goto frame_exception_exit_1; - // End of try: - try_end_10:; - CHECK_OBJECT(tmp_class_creation_7__bases_orig); - Py_DECREF(tmp_class_creation_7__bases_orig); - tmp_class_creation_7__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_7__bases); - tmp_class_creation_7__bases = NULL; - Py_XDECREF(tmp_class_creation_7__class_decl_dict); - tmp_class_creation_7__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_7__metaclass); - tmp_class_creation_7__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_7__prepared); - Py_DECREF(tmp_class_creation_7__prepared); - tmp_class_creation_7__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_69; - PyObject *tmp_tuple_element_21; - tmp_tuple_element_21 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187]); - - if (unlikely(tmp_tuple_element_21 == NULL)) { - tmp_tuple_element_21 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[187]); - } - - if (tmp_tuple_element_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_assign_source_69 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_69, 0, tmp_tuple_element_21); - assert(tmp_class_creation_8__bases_orig == NULL); - tmp_class_creation_8__bases_orig = tmp_assign_source_69; - } - { - PyObject *tmp_assign_source_70; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_8__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_70 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_70 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - assert(tmp_class_creation_8__bases == NULL); - tmp_class_creation_8__bases = tmp_assign_source_70; - } - { - PyObject *tmp_assign_source_71; - tmp_assign_source_71 = PyDict_New(); - assert(tmp_class_creation_8__class_decl_dict == NULL); - tmp_class_creation_8__class_decl_dict = tmp_assign_source_71; - } - { - PyObject *tmp_assign_source_72; - PyObject *tmp_metaclass_name_8; - nuitka_bool tmp_condition_result_35; - PyObject *tmp_key_name_22; - PyObject *tmp_dict_arg_name_22; - PyObject *tmp_dict_arg_name_23; - PyObject *tmp_key_name_23; - nuitka_bool tmp_condition_result_36; - int tmp_truth_name_4; - PyObject *tmp_type_arg_11; - PyObject *tmp_expression_name_32; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_8; - tmp_key_name_22 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_22 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_22, tmp_key_name_22); - assert(!(tmp_res == -1)); - tmp_condition_result_35 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_35 == NUITKA_BOOL_TRUE) { - goto condexpr_true_11; - } else { - goto condexpr_false_11; - } - condexpr_true_11:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_23 = tmp_class_creation_8__class_decl_dict; - tmp_key_name_23 = mod_consts[145]; - tmp_metaclass_name_8 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_23, tmp_key_name_23); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - goto condexpr_end_11; - condexpr_false_11:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_8__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_condition_result_36 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_36 == NUITKA_BOOL_TRUE) { - goto condexpr_true_12; - } else { - goto condexpr_false_12; - } - condexpr_true_12:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_expression_name_32 = tmp_class_creation_8__bases; - tmp_subscript_name_4 = mod_consts[20]; - tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_32, tmp_subscript_name_4, 0); - if (tmp_type_arg_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_metaclass_name_8 = BUILTIN_TYPE1(tmp_type_arg_11); - Py_DECREF(tmp_type_arg_11); - if (tmp_metaclass_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - goto condexpr_end_12; - condexpr_false_12:; - tmp_metaclass_name_8 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_8); - condexpr_end_12:; - condexpr_end_11:; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_bases_name_8 = tmp_class_creation_8__bases; - tmp_assign_source_72 = SELECT_METACLASS(tmp_metaclass_name_8, tmp_bases_name_8); - Py_DECREF(tmp_metaclass_name_8); - if (tmp_assign_source_72 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - assert(tmp_class_creation_8__metaclass == NULL); - tmp_class_creation_8__metaclass = tmp_assign_source_72; - } - { - nuitka_bool tmp_condition_result_37; - PyObject *tmp_key_name_24; - PyObject *tmp_dict_arg_name_24; - tmp_key_name_24 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dict_arg_name_24 = tmp_class_creation_8__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_24, tmp_key_name_24); - assert(!(tmp_res == -1)); - tmp_condition_result_37 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_37 == NUITKA_BOOL_TRUE) { - goto branch_yes_25; - } else { - goto branch_no_25; - } - } - branch_yes_25:; - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_8__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - branch_no_25:; - { - nuitka_bool tmp_condition_result_38; - PyObject *tmp_expression_name_33; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_33 = tmp_class_creation_8__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_33, mod_consts[147]); - tmp_condition_result_38 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_38 == NUITKA_BOOL_TRUE) { - goto branch_yes_26; - } else { - goto branch_no_26; - } - } - branch_yes_26:; - { - PyObject *tmp_assign_source_73; - PyObject *tmp_called_name_16; - PyObject *tmp_expression_name_34; - PyObject *tmp_args_name_15; - PyObject *tmp_tuple_element_22; - PyObject *tmp_kwargs_name_15; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_expression_name_34 = tmp_class_creation_8__metaclass; - tmp_called_name_16 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[147]); - if (tmp_called_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_tuple_element_22 = mod_consts[200]; - tmp_args_name_15 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_15, 0, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_22 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_15, 1, tmp_tuple_element_22); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_15 = tmp_class_creation_8__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 357; - tmp_assign_source_73 = CALL_FUNCTION(tmp_called_name_16, tmp_args_name_15, tmp_kwargs_name_15); - Py_DECREF(tmp_called_name_16); - Py_DECREF(tmp_args_name_15); - if (tmp_assign_source_73 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_73; - } - { - nuitka_bool tmp_condition_result_39; - PyObject *tmp_operand_name_8; - PyObject *tmp_expression_name_35; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_expression_name_35 = tmp_class_creation_8__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_35, mod_consts[149]); - tmp_operand_name_8 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_8); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_condition_result_39 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_39 == NUITKA_BOOL_TRUE) { - goto branch_yes_27; - } else { - goto branch_no_27; - } - } - branch_yes_27:; - { - PyObject *tmp_raise_type_8; - PyObject *tmp_raise_value_8; - PyObject *tmp_left_name_8; - PyObject *tmp_right_name_8; - PyObject *tmp_tuple_element_23; - PyObject *tmp_getattr_target_8; - PyObject *tmp_getattr_attr_8; - PyObject *tmp_getattr_default_8; - tmp_raise_type_8 = PyExc_TypeError; - tmp_left_name_8 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_getattr_target_8 = tmp_class_creation_8__metaclass; - tmp_getattr_attr_8 = mod_consts[151]; - tmp_getattr_default_8 = mod_consts[152]; - tmp_tuple_element_23 = BUILTIN_GETATTR(tmp_getattr_target_8, tmp_getattr_attr_8, tmp_getattr_default_8); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - tmp_right_name_8 = PyTuple_New(2); - { - PyObject *tmp_expression_name_36; - PyObject *tmp_type_arg_12; - PyTuple_SET_ITEM(tmp_right_name_8, 0, tmp_tuple_element_23); - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_type_arg_12 = tmp_class_creation_8__prepared; - tmp_expression_name_36 = BUILTIN_TYPE1(tmp_type_arg_12); - assert(!(tmp_expression_name_36 == NULL)); - tmp_tuple_element_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_36, mod_consts[151]); - Py_DECREF(tmp_expression_name_36); - if (tmp_tuple_element_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto tuple_build_exception_8; - } - PyTuple_SET_ITEM(tmp_right_name_8, 1, tmp_tuple_element_23); - } - goto tuple_build_noexception_8; - // Exception handling pass through code for tuple_build: - tuple_build_exception_8:; - Py_DECREF(tmp_right_name_8); - goto try_except_handler_25; - // Finished with no exception for tuple_build: - tuple_build_noexception_8:; - tmp_raise_value_8 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_8, tmp_right_name_8); - Py_DECREF(tmp_right_name_8); - if (tmp_raise_value_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_25; - } - exception_type = tmp_raise_type_8; - Py_INCREF(tmp_raise_type_8); - exception_value = tmp_raise_value_8; - exception_lineno = 357; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_25; - } - branch_no_27:; - goto branch_end_26; - branch_no_26:; - { - PyObject *tmp_assign_source_74; - tmp_assign_source_74 = PyDict_New(); - assert(tmp_class_creation_8__prepared == NULL); - tmp_class_creation_8__prepared = tmp_assign_source_74; - } - branch_end_26:; - { - PyObject *tmp_assign_source_75; - { - PyObject *tmp_set_locals_8; - CHECK_OBJECT(tmp_class_creation_8__prepared); - tmp_set_locals_8 = tmp_class_creation_8__prepared; - locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = tmp_set_locals_8; - Py_INCREF(tmp_set_locals_8); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - tmp_dictset_value = mod_consts[201]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - tmp_dictset_value = mod_consts[200]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - if (isFrameUnusable(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9)) { - Py_XDECREF(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = MAKE_FUNCTION_FRAME(codeobj_9dcbcaa61a62b4193359e4eafa1dff12, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9->m_type_description == NULL); - frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9dcbcaa61a62b4193359e4eafa1dff12_9) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_10; - struct Nuitka_CellObject *tmp_closure_4[1]; - tmp_defaults_10 = mod_consts[202]; - Py_INCREF(tmp_defaults_10); - - tmp_closure_4[0] = outline_7_var___class__; - Py_INCREF(tmp_closure_4[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__21___init__(tmp_defaults_10, tmp_closure_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 363; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - { - PyObject *tmp_defaults_11; - tmp_defaults_11 = mod_consts[192]; - Py_INCREF(tmp_defaults_11); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__22_input_to_seg(tmp_defaults_11); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 370; - type_description_2 = "c"; - goto frame_exception_exit_9; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_8; - - frame_exception_exit_9:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9dcbcaa61a62b4193359e4eafa1dff12_9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9dcbcaa61a62b4193359e4eafa1dff12_9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9dcbcaa61a62b4193359e4eafa1dff12_9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9dcbcaa61a62b4193359e4eafa1dff12_9, - type_description_2, - outline_7_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_9dcbcaa61a62b4193359e4eafa1dff12_9 == cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - cache_frame_9dcbcaa61a62b4193359e4eafa1dff12_9 = NULL; - } - - assertFrameObject(frame_9dcbcaa61a62b4193359e4eafa1dff12_9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_8; - - frame_no_exception_8:; - goto skip_nested_handling_8; - nested_frame_exit_8:; - - goto try_except_handler_27; - skip_nested_handling_8:; - { - nuitka_bool tmp_condition_result_40; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_compexpr_left_4 = tmp_class_creation_8__bases; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_8__bases_orig; - tmp_condition_result_40 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_40 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - if (tmp_condition_result_40 == NUITKA_BOOL_TRUE) { - goto branch_yes_28; - } else { - goto branch_no_28; - } - assert(tmp_condition_result_40 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_28:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - tmp_dictset_value = tmp_class_creation_8__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - branch_no_28:; - { - PyObject *tmp_assign_source_76; - PyObject *tmp_called_name_17; - PyObject *tmp_args_name_16; - PyObject *tmp_tuple_element_24; - PyObject *tmp_kwargs_name_16; - CHECK_OBJECT(tmp_class_creation_8__metaclass); - tmp_called_name_17 = tmp_class_creation_8__metaclass; - tmp_tuple_element_24 = mod_consts[200]; - tmp_args_name_16 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_16, 0, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_8__bases); - tmp_tuple_element_24 = tmp_class_creation_8__bases; - PyTuple_SET_ITEM0(tmp_args_name_16, 1, tmp_tuple_element_24); - tmp_tuple_element_24 = locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357; - PyTuple_SET_ITEM0(tmp_args_name_16, 2, tmp_tuple_element_24); - CHECK_OBJECT(tmp_class_creation_8__class_decl_dict); - tmp_kwargs_name_16 = tmp_class_creation_8__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 357; - tmp_assign_source_76 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_16, tmp_kwargs_name_16); - Py_DECREF(tmp_args_name_16); - if (tmp_assign_source_76 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - - goto try_except_handler_27; - } - { - PyObject *old = Nuitka_Cell_GET(outline_7_var___class__); - PyCell_SET(outline_7_var___class__, tmp_assign_source_76); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_7_var___class__)); - tmp_assign_source_75 = Nuitka_Cell_GET(outline_7_var___class__); - Py_INCREF(tmp_assign_source_75); - goto try_return_handler_27; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_27:; - Py_DECREF(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357); - locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = NULL; - goto try_return_handler_26; - // Exception handler code: - try_except_handler_27:; - exception_keeper_type_25 = exception_type; - exception_keeper_value_25 = exception_value; - exception_keeper_tb_25 = exception_tb; - exception_keeper_lineno_25 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357); - locals_models$unet3d$metrics$$$class__8_BlobsBoundaryAveragePrecision_357 = NULL; - // Re-raise. - exception_type = exception_keeper_type_25; - exception_value = exception_keeper_value_25; - exception_tb = exception_keeper_tb_25; - exception_lineno = exception_keeper_lineno_25; - - goto try_except_handler_26; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_26:; - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - goto outline_result_8; - // Exception handler code: - try_except_handler_26:; - exception_keeper_type_26 = exception_type; - exception_keeper_value_26 = exception_value; - exception_keeper_tb_26 = exception_tb; - exception_keeper_lineno_26 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_7_var___class__); - Py_DECREF(outline_7_var___class__); - outline_7_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_26; - exception_value = exception_keeper_value_26; - exception_tb = exception_keeper_tb_26; - exception_lineno = exception_keeper_lineno_26; - - goto outline_exception_8; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_8:; - exception_lineno = 357; - goto try_except_handler_25; - outline_result_8:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[200], tmp_assign_source_75); - } - goto try_end_11; - // Exception handler code: - try_except_handler_25:; - exception_keeper_type_27 = exception_type; - exception_keeper_value_27 = exception_value; - exception_keeper_tb_27 = exception_tb; - exception_keeper_lineno_27 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - Py_XDECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_27; - exception_value = exception_keeper_value_27; - exception_tb = exception_keeper_tb_27; - exception_lineno = exception_keeper_lineno_27; - - goto frame_exception_exit_1; - // End of try: - try_end_11:; - CHECK_OBJECT(tmp_class_creation_8__bases_orig); - Py_DECREF(tmp_class_creation_8__bases_orig); - tmp_class_creation_8__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_8__bases); - tmp_class_creation_8__bases = NULL; - Py_XDECREF(tmp_class_creation_8__class_decl_dict); - tmp_class_creation_8__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_8__metaclass); - tmp_class_creation_8__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_8__prepared); - Py_DECREF(tmp_class_creation_8__prepared); - tmp_class_creation_8__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_77; - PyObject *tmp_tuple_element_25; - tmp_tuple_element_25 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[187]); - - if (unlikely(tmp_tuple_element_25 == NULL)) { - tmp_tuple_element_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[187]); - } - - if (tmp_tuple_element_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_assign_source_77 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_77, 0, tmp_tuple_element_25); - assert(tmp_class_creation_9__bases_orig == NULL); - tmp_class_creation_9__bases_orig = tmp_assign_source_77; - } - { - PyObject *tmp_assign_source_78; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_9__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_78 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_78 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - assert(tmp_class_creation_9__bases == NULL); - tmp_class_creation_9__bases = tmp_assign_source_78; - } - { - PyObject *tmp_assign_source_79; - tmp_assign_source_79 = PyDict_New(); - assert(tmp_class_creation_9__class_decl_dict == NULL); - tmp_class_creation_9__class_decl_dict = tmp_assign_source_79; - } - { - PyObject *tmp_assign_source_80; - PyObject *tmp_metaclass_name_9; - nuitka_bool tmp_condition_result_41; - PyObject *tmp_key_name_25; - PyObject *tmp_dict_arg_name_25; - PyObject *tmp_dict_arg_name_26; - PyObject *tmp_key_name_26; - nuitka_bool tmp_condition_result_42; - int tmp_truth_name_5; - PyObject *tmp_type_arg_13; - PyObject *tmp_expression_name_37; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_9; - tmp_key_name_25 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_25 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_25, tmp_key_name_25); - assert(!(tmp_res == -1)); - tmp_condition_result_41 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_41 == NUITKA_BOOL_TRUE) { - goto condexpr_true_13; - } else { - goto condexpr_false_13; - } - condexpr_true_13:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_26 = tmp_class_creation_9__class_decl_dict; - tmp_key_name_26 = mod_consts[145]; - tmp_metaclass_name_9 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_26, tmp_key_name_26); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - goto condexpr_end_13; - condexpr_false_13:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_9__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_condition_result_42 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_42 == NUITKA_BOOL_TRUE) { - goto condexpr_true_14; - } else { - goto condexpr_false_14; - } - condexpr_true_14:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_expression_name_37 = tmp_class_creation_9__bases; - tmp_subscript_name_5 = mod_consts[20]; - tmp_type_arg_13 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_37, tmp_subscript_name_5, 0); - if (tmp_type_arg_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_metaclass_name_9 = BUILTIN_TYPE1(tmp_type_arg_13); - Py_DECREF(tmp_type_arg_13); - if (tmp_metaclass_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - goto condexpr_end_14; - condexpr_false_14:; - tmp_metaclass_name_9 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_9); - condexpr_end_14:; - condexpr_end_13:; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_bases_name_9 = tmp_class_creation_9__bases; - tmp_assign_source_80 = SELECT_METACLASS(tmp_metaclass_name_9, tmp_bases_name_9); - Py_DECREF(tmp_metaclass_name_9); - if (tmp_assign_source_80 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - assert(tmp_class_creation_9__metaclass == NULL); - tmp_class_creation_9__metaclass = tmp_assign_source_80; - } - { - nuitka_bool tmp_condition_result_43; - PyObject *tmp_key_name_27; - PyObject *tmp_dict_arg_name_27; - tmp_key_name_27 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dict_arg_name_27 = tmp_class_creation_9__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_27, tmp_key_name_27); - assert(!(tmp_res == -1)); - tmp_condition_result_43 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_43 == NUITKA_BOOL_TRUE) { - goto branch_yes_29; - } else { - goto branch_no_29; - } - } - branch_yes_29:; - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_9__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - branch_no_29:; - { - nuitka_bool tmp_condition_result_44; - PyObject *tmp_expression_name_38; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_38 = tmp_class_creation_9__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_38, mod_consts[147]); - tmp_condition_result_44 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_44 == NUITKA_BOOL_TRUE) { - goto branch_yes_30; - } else { - goto branch_no_30; - } - } - branch_yes_30:; - { - PyObject *tmp_assign_source_81; - PyObject *tmp_called_name_18; - PyObject *tmp_expression_name_39; - PyObject *tmp_args_name_17; - PyObject *tmp_tuple_element_26; - PyObject *tmp_kwargs_name_17; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_expression_name_39 = tmp_class_creation_9__metaclass; - tmp_called_name_18 = LOOKUP_ATTRIBUTE(tmp_expression_name_39, mod_consts[147]); - if (tmp_called_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_tuple_element_26 = mod_consts[205]; - tmp_args_name_17 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_17, 0, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_26 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_17, 1, tmp_tuple_element_26); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_17 = tmp_class_creation_9__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 382; - tmp_assign_source_81 = CALL_FUNCTION(tmp_called_name_18, tmp_args_name_17, tmp_kwargs_name_17); - Py_DECREF(tmp_called_name_18); - Py_DECREF(tmp_args_name_17); - if (tmp_assign_source_81 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_81; - } - { - nuitka_bool tmp_condition_result_45; - PyObject *tmp_operand_name_9; - PyObject *tmp_expression_name_40; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_expression_name_40 = tmp_class_creation_9__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_40, mod_consts[149]); - tmp_operand_name_9 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_9); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_condition_result_45 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_45 == NUITKA_BOOL_TRUE) { - goto branch_yes_31; - } else { - goto branch_no_31; - } - } - branch_yes_31:; - { - PyObject *tmp_raise_type_9; - PyObject *tmp_raise_value_9; - PyObject *tmp_left_name_9; - PyObject *tmp_right_name_9; - PyObject *tmp_tuple_element_27; - PyObject *tmp_getattr_target_9; - PyObject *tmp_getattr_attr_9; - PyObject *tmp_getattr_default_9; - tmp_raise_type_9 = PyExc_TypeError; - tmp_left_name_9 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_getattr_target_9 = tmp_class_creation_9__metaclass; - tmp_getattr_attr_9 = mod_consts[151]; - tmp_getattr_default_9 = mod_consts[152]; - tmp_tuple_element_27 = BUILTIN_GETATTR(tmp_getattr_target_9, tmp_getattr_attr_9, tmp_getattr_default_9); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - tmp_right_name_9 = PyTuple_New(2); - { - PyObject *tmp_expression_name_41; - PyObject *tmp_type_arg_14; - PyTuple_SET_ITEM(tmp_right_name_9, 0, tmp_tuple_element_27); - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_type_arg_14 = tmp_class_creation_9__prepared; - tmp_expression_name_41 = BUILTIN_TYPE1(tmp_type_arg_14); - assert(!(tmp_expression_name_41 == NULL)); - tmp_tuple_element_27 = LOOKUP_ATTRIBUTE(tmp_expression_name_41, mod_consts[151]); - Py_DECREF(tmp_expression_name_41); - if (tmp_tuple_element_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto tuple_build_exception_9; - } - PyTuple_SET_ITEM(tmp_right_name_9, 1, tmp_tuple_element_27); - } - goto tuple_build_noexception_9; - // Exception handling pass through code for tuple_build: - tuple_build_exception_9:; - Py_DECREF(tmp_right_name_9); - goto try_except_handler_28; - // Finished with no exception for tuple_build: - tuple_build_noexception_9:; - tmp_raise_value_9 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_9, tmp_right_name_9); - Py_DECREF(tmp_right_name_9); - if (tmp_raise_value_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_28; - } - exception_type = tmp_raise_type_9; - Py_INCREF(tmp_raise_type_9); - exception_value = tmp_raise_value_9; - exception_lineno = 382; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_28; - } - branch_no_31:; - goto branch_end_30; - branch_no_30:; - { - PyObject *tmp_assign_source_82; - tmp_assign_source_82 = PyDict_New(); - assert(tmp_class_creation_9__prepared == NULL); - tmp_class_creation_9__prepared = tmp_assign_source_82; - } - branch_end_30:; - { - PyObject *tmp_assign_source_83; - { - PyObject *tmp_set_locals_9; - CHECK_OBJECT(tmp_class_creation_9__prepared); - tmp_set_locals_9 = tmp_class_creation_9__prepared; - locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = tmp_set_locals_9; - Py_INCREF(tmp_set_locals_9); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - tmp_dictset_value = mod_consts[206]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - tmp_dictset_value = mod_consts[205]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - if (isFrameUnusable(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10)) { - Py_XDECREF(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 = MAKE_FUNCTION_FRAME(codeobj_5fc270cde0051c2eaf563a16fdfd133c, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10->m_type_description == NULL); - frame_5fc270cde0051c2eaf563a16fdfd133c_10 = cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5fc270cde0051c2eaf563a16fdfd133c_10); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5fc270cde0051c2eaf563a16fdfd133c_10) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_12; - struct Nuitka_CellObject *tmp_closure_5[1]; - tmp_defaults_12 = mod_consts[207]; - Py_INCREF(tmp_defaults_12); - - tmp_closure_5[0] = outline_8_var___class__; - Py_INCREF(tmp_closure_5[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__23___init__(tmp_defaults_12, tmp_closure_5); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - { - PyObject *tmp_defaults_13; - tmp_defaults_13 = mod_consts[192]; - Py_INCREF(tmp_defaults_13); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__24_input_to_seg(tmp_defaults_13); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[100], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 395; - type_description_2 = "c"; - goto frame_exception_exit_10; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5fc270cde0051c2eaf563a16fdfd133c_10); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_9; - - frame_exception_exit_10:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5fc270cde0051c2eaf563a16fdfd133c_10); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5fc270cde0051c2eaf563a16fdfd133c_10, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5fc270cde0051c2eaf563a16fdfd133c_10->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5fc270cde0051c2eaf563a16fdfd133c_10, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5fc270cde0051c2eaf563a16fdfd133c_10, - type_description_2, - outline_8_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_5fc270cde0051c2eaf563a16fdfd133c_10 == cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10); - cache_frame_5fc270cde0051c2eaf563a16fdfd133c_10 = NULL; - } - - assertFrameObject(frame_5fc270cde0051c2eaf563a16fdfd133c_10); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_9; - - frame_no_exception_9:; - goto skip_nested_handling_9; - nested_frame_exit_9:; - - goto try_except_handler_30; - skip_nested_handling_9:; - { - nuitka_bool tmp_condition_result_46; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_compexpr_left_5 = tmp_class_creation_9__bases; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_9__bases_orig; - tmp_condition_result_46 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_46 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - if (tmp_condition_result_46 == NUITKA_BOOL_TRUE) { - goto branch_yes_32; - } else { - goto branch_no_32; - } - assert(tmp_condition_result_46 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_32:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - tmp_dictset_value = tmp_class_creation_9__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382, mod_consts[181], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - branch_no_32:; - { - PyObject *tmp_assign_source_84; - PyObject *tmp_called_name_19; - PyObject *tmp_args_name_18; - PyObject *tmp_tuple_element_28; - PyObject *tmp_kwargs_name_18; - CHECK_OBJECT(tmp_class_creation_9__metaclass); - tmp_called_name_19 = tmp_class_creation_9__metaclass; - tmp_tuple_element_28 = mod_consts[205]; - tmp_args_name_18 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_18, 0, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_9__bases); - tmp_tuple_element_28 = tmp_class_creation_9__bases; - PyTuple_SET_ITEM0(tmp_args_name_18, 1, tmp_tuple_element_28); - tmp_tuple_element_28 = locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382; - PyTuple_SET_ITEM0(tmp_args_name_18, 2, tmp_tuple_element_28); - CHECK_OBJECT(tmp_class_creation_9__class_decl_dict); - tmp_kwargs_name_18 = tmp_class_creation_9__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 382; - tmp_assign_source_84 = CALL_FUNCTION(tmp_called_name_19, tmp_args_name_18, tmp_kwargs_name_18); - Py_DECREF(tmp_args_name_18); - if (tmp_assign_source_84 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - - goto try_except_handler_30; - } - { - PyObject *old = Nuitka_Cell_GET(outline_8_var___class__); - PyCell_SET(outline_8_var___class__, tmp_assign_source_84); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_8_var___class__)); - tmp_assign_source_83 = Nuitka_Cell_GET(outline_8_var___class__); - Py_INCREF(tmp_assign_source_83); - goto try_return_handler_30; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_30:; - Py_DECREF(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382); - locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = NULL; - goto try_return_handler_29; - // Exception handler code: - try_except_handler_30:; - exception_keeper_type_28 = exception_type; - exception_keeper_value_28 = exception_value; - exception_keeper_tb_28 = exception_tb; - exception_keeper_lineno_28 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382); - locals_models$unet3d$metrics$$$class__9_BoundaryAveragePrecision_382 = NULL; - // Re-raise. - exception_type = exception_keeper_type_28; - exception_value = exception_keeper_value_28; - exception_tb = exception_keeper_tb_28; - exception_lineno = exception_keeper_lineno_28; - - goto try_except_handler_29; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_29:; - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - goto outline_result_9; - // Exception handler code: - try_except_handler_29:; - exception_keeper_type_29 = exception_type; - exception_keeper_value_29 = exception_value; - exception_keeper_tb_29 = exception_tb; - exception_keeper_lineno_29 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_8_var___class__); - Py_DECREF(outline_8_var___class__); - outline_8_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_29; - exception_value = exception_keeper_value_29; - exception_tb = exception_keeper_tb_29; - exception_lineno = exception_keeper_lineno_29; - - goto outline_exception_9; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_9:; - exception_lineno = 382; - goto try_except_handler_28; - outline_result_9:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[205], tmp_assign_source_83); - } - goto try_end_12; - // Exception handler code: - try_except_handler_28:; - exception_keeper_type_30 = exception_type; - exception_keeper_value_30 = exception_value; - exception_keeper_tb_30 = exception_tb; - exception_keeper_lineno_30 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - Py_XDECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_30; - exception_value = exception_keeper_value_30; - exception_tb = exception_keeper_tb_30; - exception_lineno = exception_keeper_lineno_30; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - CHECK_OBJECT(tmp_class_creation_9__bases_orig); - Py_DECREF(tmp_class_creation_9__bases_orig); - tmp_class_creation_9__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_9__bases); - tmp_class_creation_9__bases = NULL; - Py_XDECREF(tmp_class_creation_9__class_decl_dict); - tmp_class_creation_9__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_9__metaclass); - tmp_class_creation_9__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_9__prepared); - Py_DECREF(tmp_class_creation_9__prepared); - tmp_class_creation_9__prepared = NULL; - { - PyObject *tmp_assign_source_85; - tmp_assign_source_85 = PyDict_New(); - assert(tmp_class_creation_10__class_decl_dict == NULL); - tmp_class_creation_10__class_decl_dict = tmp_assign_source_85; - } - // Tried code: - { - PyObject *tmp_assign_source_86; - PyObject *tmp_metaclass_name_10; - nuitka_bool tmp_condition_result_47; - PyObject *tmp_key_name_28; - PyObject *tmp_dict_arg_name_28; - PyObject *tmp_dict_arg_name_29; - PyObject *tmp_key_name_29; - PyObject *tmp_bases_name_10; - tmp_key_name_28 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_28 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_28, tmp_key_name_28); - assert(!(tmp_res == -1)); - tmp_condition_result_47 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_47 == NUITKA_BOOL_TRUE) { - goto condexpr_true_15; - } else { - goto condexpr_false_15; - } - condexpr_true_15:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_29 = tmp_class_creation_10__class_decl_dict; - tmp_key_name_29 = mod_consts[145]; - tmp_metaclass_name_10 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_29, tmp_key_name_29); - if (tmp_metaclass_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - goto condexpr_end_15; - condexpr_false_15:; - tmp_metaclass_name_10 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_10); - condexpr_end_15:; - tmp_bases_name_10 = mod_consts[146]; - tmp_assign_source_86 = SELECT_METACLASS(tmp_metaclass_name_10, tmp_bases_name_10); - Py_DECREF(tmp_metaclass_name_10); - if (tmp_assign_source_86 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - assert(tmp_class_creation_10__metaclass == NULL); - tmp_class_creation_10__metaclass = tmp_assign_source_86; - } - { - nuitka_bool tmp_condition_result_48; - PyObject *tmp_key_name_30; - PyObject *tmp_dict_arg_name_30; - tmp_key_name_30 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dict_arg_name_30 = tmp_class_creation_10__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_30, tmp_key_name_30); - assert(!(tmp_res == -1)); - tmp_condition_result_48 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_48 == NUITKA_BOOL_TRUE) { - goto branch_yes_33; - } else { - goto branch_no_33; - } - } - branch_yes_33:; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_10__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - branch_no_33:; - { - nuitka_bool tmp_condition_result_49; - PyObject *tmp_expression_name_42; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_42 = tmp_class_creation_10__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_42, mod_consts[147]); - tmp_condition_result_49 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_49 == NUITKA_BOOL_TRUE) { - goto branch_yes_34; - } else { - goto branch_no_34; - } - } - branch_yes_34:; - { - PyObject *tmp_assign_source_87; - PyObject *tmp_called_name_20; - PyObject *tmp_expression_name_43; - PyObject *tmp_args_name_19; - PyObject *tmp_kwargs_name_19; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_expression_name_43 = tmp_class_creation_10__metaclass; - tmp_called_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_43, mod_consts[147]); - if (tmp_called_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - tmp_args_name_19 = mod_consts[210]; - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_19 = tmp_class_creation_10__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 404; - tmp_assign_source_87 = CALL_FUNCTION(tmp_called_name_20, tmp_args_name_19, tmp_kwargs_name_19); - Py_DECREF(tmp_called_name_20); - if (tmp_assign_source_87 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_87; - } - { - nuitka_bool tmp_condition_result_50; - PyObject *tmp_operand_name_10; - PyObject *tmp_expression_name_44; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_expression_name_44 = tmp_class_creation_10__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_44, mod_consts[149]); - tmp_operand_name_10 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_10); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - tmp_condition_result_50 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_50 == NUITKA_BOOL_TRUE) { - goto branch_yes_35; - } else { - goto branch_no_35; - } - } - branch_yes_35:; - { - PyObject *tmp_raise_type_10; - PyObject *tmp_raise_value_10; - PyObject *tmp_left_name_10; - PyObject *tmp_right_name_10; - PyObject *tmp_tuple_element_29; - PyObject *tmp_getattr_target_10; - PyObject *tmp_getattr_attr_10; - PyObject *tmp_getattr_default_10; - tmp_raise_type_10 = PyExc_TypeError; - tmp_left_name_10 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_getattr_target_10 = tmp_class_creation_10__metaclass; - tmp_getattr_attr_10 = mod_consts[151]; - tmp_getattr_default_10 = mod_consts[152]; - tmp_tuple_element_29 = BUILTIN_GETATTR(tmp_getattr_target_10, tmp_getattr_attr_10, tmp_getattr_default_10); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - tmp_right_name_10 = PyTuple_New(2); - { - PyObject *tmp_expression_name_45; - PyObject *tmp_type_arg_15; - PyTuple_SET_ITEM(tmp_right_name_10, 0, tmp_tuple_element_29); - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_type_arg_15 = tmp_class_creation_10__prepared; - tmp_expression_name_45 = BUILTIN_TYPE1(tmp_type_arg_15); - assert(!(tmp_expression_name_45 == NULL)); - tmp_tuple_element_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_45, mod_consts[151]); - Py_DECREF(tmp_expression_name_45); - if (tmp_tuple_element_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto tuple_build_exception_10; - } - PyTuple_SET_ITEM(tmp_right_name_10, 1, tmp_tuple_element_29); - } - goto tuple_build_noexception_10; - // Exception handling pass through code for tuple_build: - tuple_build_exception_10:; - Py_DECREF(tmp_right_name_10); - goto try_except_handler_31; - // Finished with no exception for tuple_build: - tuple_build_noexception_10:; - tmp_raise_value_10 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_10, tmp_right_name_10); - Py_DECREF(tmp_right_name_10); - if (tmp_raise_value_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_31; - } - exception_type = tmp_raise_type_10; - Py_INCREF(tmp_raise_type_10); - exception_value = tmp_raise_value_10; - exception_lineno = 404; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_31; - } - branch_no_35:; - goto branch_end_34; - branch_no_34:; - { - PyObject *tmp_assign_source_88; - tmp_assign_source_88 = PyDict_New(); - assert(tmp_class_creation_10__prepared == NULL); - tmp_class_creation_10__prepared = tmp_assign_source_88; - } - branch_end_34:; - { - PyObject *tmp_assign_source_89; - { - PyObject *tmp_set_locals_10; - CHECK_OBJECT(tmp_class_creation_10__prepared); - tmp_set_locals_10 = tmp_class_creation_10__prepared; - locals_models$unet3d$metrics$$$class__10_PSNR_404 = tmp_set_locals_10; - Py_INCREF(tmp_set_locals_10); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - tmp_dictset_value = mod_consts[211]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - tmp_dictset_value = mod_consts[212]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - if (isFrameUnusable(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11)) { - Py_XDECREF(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11); - -#if _DEBUG_REFCOUNTS - if (cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 = MAKE_FUNCTION_FRAME(codeobj_72a00a732f540edac0bacfbeb9ebea2b, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11->m_type_description == NULL); - frame_72a00a732f540edac0bacfbeb9ebea2b_11 = cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11; - - // Push the new frame as the currently active one. - pushFrameStack(frame_72a00a732f540edac0bacfbeb9ebea2b_11); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_72a00a732f540edac0bacfbeb9ebea2b_11) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__25___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 409; - type_description_2 = "o"; - goto frame_exception_exit_11; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__26___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__10_PSNR_404, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 412; - type_description_2 = "o"; - goto frame_exception_exit_11; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72a00a732f540edac0bacfbeb9ebea2b_11); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_10; - - frame_exception_exit_11:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_72a00a732f540edac0bacfbeb9ebea2b_11); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_72a00a732f540edac0bacfbeb9ebea2b_11, exception_lineno); - } else if (exception_tb->tb_frame != &frame_72a00a732f540edac0bacfbeb9ebea2b_11->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_72a00a732f540edac0bacfbeb9ebea2b_11, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_72a00a732f540edac0bacfbeb9ebea2b_11, - type_description_2, - outline_9_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_72a00a732f540edac0bacfbeb9ebea2b_11 == cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11); - cache_frame_72a00a732f540edac0bacfbeb9ebea2b_11 = NULL; - } - - assertFrameObject(frame_72a00a732f540edac0bacfbeb9ebea2b_11); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_10; - - frame_no_exception_10:; - goto skip_nested_handling_10; - nested_frame_exit_10:; - - goto try_except_handler_33; - skip_nested_handling_10:; - { - PyObject *tmp_assign_source_90; - PyObject *tmp_called_name_21; - PyObject *tmp_args_name_20; - PyObject *tmp_tuple_element_30; - PyObject *tmp_kwargs_name_20; - CHECK_OBJECT(tmp_class_creation_10__metaclass); - tmp_called_name_21 = tmp_class_creation_10__metaclass; - tmp_tuple_element_30 = mod_consts[212]; - tmp_args_name_20 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_20, 0, tmp_tuple_element_30); - tmp_tuple_element_30 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_20, 1, tmp_tuple_element_30); - tmp_tuple_element_30 = locals_models$unet3d$metrics$$$class__10_PSNR_404; - PyTuple_SET_ITEM0(tmp_args_name_20, 2, tmp_tuple_element_30); - CHECK_OBJECT(tmp_class_creation_10__class_decl_dict); - tmp_kwargs_name_20 = tmp_class_creation_10__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 404; - tmp_assign_source_90 = CALL_FUNCTION(tmp_called_name_21, tmp_args_name_20, tmp_kwargs_name_20); - Py_DECREF(tmp_args_name_20); - if (tmp_assign_source_90 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 404; - - goto try_except_handler_33; - } - assert(outline_9_var___class__ == NULL); - outline_9_var___class__ = tmp_assign_source_90; - } - CHECK_OBJECT(outline_9_var___class__); - tmp_assign_source_89 = outline_9_var___class__; - Py_INCREF(tmp_assign_source_89); - goto try_return_handler_33; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_33:; - Py_DECREF(locals_models$unet3d$metrics$$$class__10_PSNR_404); - locals_models$unet3d$metrics$$$class__10_PSNR_404 = NULL; - goto try_return_handler_32; - // Exception handler code: - try_except_handler_33:; - exception_keeper_type_31 = exception_type; - exception_keeper_value_31 = exception_value; - exception_keeper_tb_31 = exception_tb; - exception_keeper_lineno_31 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__10_PSNR_404); - locals_models$unet3d$metrics$$$class__10_PSNR_404 = NULL; - // Re-raise. - exception_type = exception_keeper_type_31; - exception_value = exception_keeper_value_31; - exception_tb = exception_keeper_tb_31; - exception_lineno = exception_keeper_lineno_31; - - goto try_except_handler_32; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_32:; - CHECK_OBJECT(outline_9_var___class__); - Py_DECREF(outline_9_var___class__); - outline_9_var___class__ = NULL; - goto outline_result_10; - // Exception handler code: - try_except_handler_32:; - exception_keeper_type_32 = exception_type; - exception_keeper_value_32 = exception_value; - exception_keeper_tb_32 = exception_tb; - exception_keeper_lineno_32 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_32; - exception_value = exception_keeper_value_32; - exception_tb = exception_keeper_tb_32; - exception_lineno = exception_keeper_lineno_32; - - goto outline_exception_10; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_10:; - exception_lineno = 404; - goto try_except_handler_31; - outline_result_10:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[212], tmp_assign_source_89); - } - goto try_end_13; - // Exception handler code: - try_except_handler_31:; - exception_keeper_type_33 = exception_type; - exception_keeper_value_33 = exception_value; - exception_keeper_tb_33 = exception_tb; - exception_keeper_lineno_33 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - Py_XDECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_33; - exception_value = exception_keeper_value_33; - exception_tb = exception_keeper_tb_33; - exception_lineno = exception_keeper_lineno_33; - - goto frame_exception_exit_1; - // End of try: - try_end_13:; - Py_XDECREF(tmp_class_creation_10__class_decl_dict); - tmp_class_creation_10__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_10__metaclass); - tmp_class_creation_10__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_10__prepared); - Py_DECREF(tmp_class_creation_10__prepared); - tmp_class_creation_10__prepared = NULL; - { - PyObject *tmp_assign_source_91; - tmp_assign_source_91 = PyDict_New(); - assert(tmp_class_creation_11__class_decl_dict == NULL); - tmp_class_creation_11__class_decl_dict = tmp_assign_source_91; - } - // Tried code: - { - PyObject *tmp_assign_source_92; - PyObject *tmp_metaclass_name_11; - nuitka_bool tmp_condition_result_51; - PyObject *tmp_key_name_31; - PyObject *tmp_dict_arg_name_31; - PyObject *tmp_dict_arg_name_32; - PyObject *tmp_key_name_32; - PyObject *tmp_bases_name_11; - tmp_key_name_31 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_31 = tmp_class_creation_11__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_31, tmp_key_name_31); - assert(!(tmp_res == -1)); - tmp_condition_result_51 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_51 == NUITKA_BOOL_TRUE) { - goto condexpr_true_16; - } else { - goto condexpr_false_16; - } - condexpr_true_16:; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_32 = tmp_class_creation_11__class_decl_dict; - tmp_key_name_32 = mod_consts[145]; - tmp_metaclass_name_11 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_32, tmp_key_name_32); - if (tmp_metaclass_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - goto condexpr_end_16; - condexpr_false_16:; - tmp_metaclass_name_11 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_11); - condexpr_end_16:; - tmp_bases_name_11 = mod_consts[146]; - tmp_assign_source_92 = SELECT_METACLASS(tmp_metaclass_name_11, tmp_bases_name_11); - Py_DECREF(tmp_metaclass_name_11); - if (tmp_assign_source_92 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - assert(tmp_class_creation_11__metaclass == NULL); - tmp_class_creation_11__metaclass = tmp_assign_source_92; - } - { - nuitka_bool tmp_condition_result_52; - PyObject *tmp_key_name_33; - PyObject *tmp_dict_arg_name_33; - tmp_key_name_33 = mod_consts[145]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dict_arg_name_33 = tmp_class_creation_11__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_33, tmp_key_name_33); - assert(!(tmp_res == -1)); - tmp_condition_result_52 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_52 == NUITKA_BOOL_TRUE) { - goto branch_yes_36; - } else { - goto branch_no_36; - } - } - branch_yes_36:; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_11__class_decl_dict; - tmp_dictdel_key = mod_consts[145]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - branch_no_36:; - { - nuitka_bool tmp_condition_result_53; - PyObject *tmp_expression_name_46; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_expression_name_46 = tmp_class_creation_11__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_46, mod_consts[147]); - tmp_condition_result_53 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_53 == NUITKA_BOOL_TRUE) { - goto branch_yes_37; - } else { - goto branch_no_37; - } - } - branch_yes_37:; - { - PyObject *tmp_assign_source_93; - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_47; - PyObject *tmp_args_name_21; - PyObject *tmp_kwargs_name_21; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_expression_name_47 = tmp_class_creation_11__metaclass; - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_47, mod_consts[147]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - tmp_args_name_21 = mod_consts[215]; - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_kwargs_name_21 = tmp_class_creation_11__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 417; - tmp_assign_source_93 = CALL_FUNCTION(tmp_called_name_22, tmp_args_name_21, tmp_kwargs_name_21); - Py_DECREF(tmp_called_name_22); - if (tmp_assign_source_93 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - assert(tmp_class_creation_11__prepared == NULL); - tmp_class_creation_11__prepared = tmp_assign_source_93; - } - { - nuitka_bool tmp_condition_result_54; - PyObject *tmp_operand_name_11; - PyObject *tmp_expression_name_48; - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_expression_name_48 = tmp_class_creation_11__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_48, mod_consts[149]); - tmp_operand_name_11 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_11); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - tmp_condition_result_54 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_54 == NUITKA_BOOL_TRUE) { - goto branch_yes_38; - } else { - goto branch_no_38; - } - } - branch_yes_38:; - { - PyObject *tmp_raise_type_11; - PyObject *tmp_raise_value_11; - PyObject *tmp_left_name_11; - PyObject *tmp_right_name_11; - PyObject *tmp_tuple_element_31; - PyObject *tmp_getattr_target_11; - PyObject *tmp_getattr_attr_11; - PyObject *tmp_getattr_default_11; - tmp_raise_type_11 = PyExc_TypeError; - tmp_left_name_11 = mod_consts[150]; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_getattr_target_11 = tmp_class_creation_11__metaclass; - tmp_getattr_attr_11 = mod_consts[151]; - tmp_getattr_default_11 = mod_consts[152]; - tmp_tuple_element_31 = BUILTIN_GETATTR(tmp_getattr_target_11, tmp_getattr_attr_11, tmp_getattr_default_11); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - tmp_right_name_11 = PyTuple_New(2); - { - PyObject *tmp_expression_name_49; - PyObject *tmp_type_arg_16; - PyTuple_SET_ITEM(tmp_right_name_11, 0, tmp_tuple_element_31); - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_type_arg_16 = tmp_class_creation_11__prepared; - tmp_expression_name_49 = BUILTIN_TYPE1(tmp_type_arg_16); - assert(!(tmp_expression_name_49 == NULL)); - tmp_tuple_element_31 = LOOKUP_ATTRIBUTE(tmp_expression_name_49, mod_consts[151]); - Py_DECREF(tmp_expression_name_49); - if (tmp_tuple_element_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto tuple_build_exception_11; - } - PyTuple_SET_ITEM(tmp_right_name_11, 1, tmp_tuple_element_31); - } - goto tuple_build_noexception_11; - // Exception handling pass through code for tuple_build: - tuple_build_exception_11:; - Py_DECREF(tmp_right_name_11); - goto try_except_handler_34; - // Finished with no exception for tuple_build: - tuple_build_noexception_11:; - tmp_raise_value_11 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_11, tmp_right_name_11); - Py_DECREF(tmp_right_name_11); - if (tmp_raise_value_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_34; - } - exception_type = tmp_raise_type_11; - Py_INCREF(tmp_raise_type_11); - exception_value = tmp_raise_value_11; - exception_lineno = 417; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_34; - } - branch_no_38:; - goto branch_end_37; - branch_no_37:; - { - PyObject *tmp_assign_source_94; - tmp_assign_source_94 = PyDict_New(); - assert(tmp_class_creation_11__prepared == NULL); - tmp_class_creation_11__prepared = tmp_assign_source_94; - } - branch_end_37:; - { - PyObject *tmp_assign_source_95; - { - PyObject *tmp_set_locals_11; - CHECK_OBJECT(tmp_class_creation_11__prepared); - tmp_set_locals_11 = tmp_class_creation_11__prepared; - locals_models$unet3d$metrics$$$class__11_MSE_417 = tmp_set_locals_11; - Py_INCREF(tmp_set_locals_11); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[151]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[151]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[153], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - tmp_dictset_value = mod_consts[216]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[126], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - tmp_dictset_value = mod_consts[217]; - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[156], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - if (isFrameUnusable(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12)) { - Py_XDECREF(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = MAKE_FUNCTION_FRAME(codeobj_a46b4a5c8a31bf4bad1959b4462967d8, module_models$unet3d$metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12->m_type_description == NULL); - frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a46b4a5c8a31bf4bad1959b4462967d8_12) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__27___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 422; - type_description_2 = "o"; - goto frame_exception_exit_12; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$metrics$$$function__28___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$metrics$$$class__11_MSE_417, mod_consts[159], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 425; - type_description_2 = "o"; - goto frame_exception_exit_12; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_11; - - frame_exception_exit_12:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a46b4a5c8a31bf4bad1959b4462967d8_12, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a46b4a5c8a31bf4bad1959b4462967d8_12->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a46b4a5c8a31bf4bad1959b4462967d8_12, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a46b4a5c8a31bf4bad1959b4462967d8_12, - type_description_2, - outline_10_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_a46b4a5c8a31bf4bad1959b4462967d8_12 == cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - cache_frame_a46b4a5c8a31bf4bad1959b4462967d8_12 = NULL; - } - - assertFrameObject(frame_a46b4a5c8a31bf4bad1959b4462967d8_12); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_11; - - frame_no_exception_11:; - goto skip_nested_handling_11; - nested_frame_exit_11:; - - goto try_except_handler_36; - skip_nested_handling_11:; - { - PyObject *tmp_assign_source_96; - PyObject *tmp_called_name_23; - PyObject *tmp_args_name_22; - PyObject *tmp_tuple_element_32; - PyObject *tmp_kwargs_name_22; - CHECK_OBJECT(tmp_class_creation_11__metaclass); - tmp_called_name_23 = tmp_class_creation_11__metaclass; - tmp_tuple_element_32 = mod_consts[217]; - tmp_args_name_22 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_22, 0, tmp_tuple_element_32); - tmp_tuple_element_32 = mod_consts[146]; - PyTuple_SET_ITEM0(tmp_args_name_22, 1, tmp_tuple_element_32); - tmp_tuple_element_32 = locals_models$unet3d$metrics$$$class__11_MSE_417; - PyTuple_SET_ITEM0(tmp_args_name_22, 2, tmp_tuple_element_32); - CHECK_OBJECT(tmp_class_creation_11__class_decl_dict); - tmp_kwargs_name_22 = tmp_class_creation_11__class_decl_dict; - frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame.f_lineno = 417; - tmp_assign_source_96 = CALL_FUNCTION(tmp_called_name_23, tmp_args_name_22, tmp_kwargs_name_22); - Py_DECREF(tmp_args_name_22); - if (tmp_assign_source_96 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 417; - - goto try_except_handler_36; - } - assert(outline_10_var___class__ == NULL); - outline_10_var___class__ = tmp_assign_source_96; - } - CHECK_OBJECT(outline_10_var___class__); - tmp_assign_source_95 = outline_10_var___class__; - Py_INCREF(tmp_assign_source_95); - goto try_return_handler_36; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_36:; - Py_DECREF(locals_models$unet3d$metrics$$$class__11_MSE_417); - locals_models$unet3d$metrics$$$class__11_MSE_417 = NULL; - goto try_return_handler_35; - // Exception handler code: - try_except_handler_36:; - exception_keeper_type_34 = exception_type; - exception_keeper_value_34 = exception_value; - exception_keeper_tb_34 = exception_tb; - exception_keeper_lineno_34 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$metrics$$$class__11_MSE_417); - locals_models$unet3d$metrics$$$class__11_MSE_417 = NULL; - // Re-raise. - exception_type = exception_keeper_type_34; - exception_value = exception_keeper_value_34; - exception_tb = exception_keeper_tb_34; - exception_lineno = exception_keeper_lineno_34; - - goto try_except_handler_35; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_35:; - CHECK_OBJECT(outline_10_var___class__); - Py_DECREF(outline_10_var___class__); - outline_10_var___class__ = NULL; - goto outline_result_11; - // Exception handler code: - try_except_handler_35:; - exception_keeper_type_35 = exception_type; - exception_keeper_value_35 = exception_value; - exception_keeper_tb_35 = exception_tb; - exception_keeper_lineno_35 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_35; - exception_value = exception_keeper_value_35; - exception_tb = exception_keeper_tb_35; - exception_lineno = exception_keeper_lineno_35; - - goto outline_exception_11; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_11:; - exception_lineno = 417; - goto try_except_handler_34; - outline_result_11:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[217], tmp_assign_source_95); - } - goto try_end_14; - // Exception handler code: - try_except_handler_34:; - exception_keeper_type_36 = exception_type; - exception_keeper_value_36 = exception_value; - exception_keeper_tb_36 = exception_tb; - exception_keeper_lineno_36 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_11__class_decl_dict); - tmp_class_creation_11__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_11__metaclass); - tmp_class_creation_11__metaclass = NULL; - Py_XDECREF(tmp_class_creation_11__prepared); - tmp_class_creation_11__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_36; - exception_value = exception_keeper_value_36; - exception_tb = exception_keeper_tb_36; - exception_lineno = exception_keeper_lineno_36; - - goto frame_exception_exit_1; - // End of try: - try_end_14:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); -#endif - popFrameStack(); - - assertFrameObject(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); - - goto frame_no_exception_12; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0cf8f15b912f59c3df11f1bc1cb3fea0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0cf8f15b912f59c3df11f1bc1cb3fea0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0cf8f15b912f59c3df11f1bc1cb3fea0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0cf8f15b912f59c3df11f1bc1cb3fea0, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_12:; - Py_XDECREF(tmp_class_creation_11__class_decl_dict); - tmp_class_creation_11__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_11__metaclass); - tmp_class_creation_11__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_11__prepared); - Py_DECREF(tmp_class_creation_11__prepared); - tmp_class_creation_11__prepared = NULL; - { - PyObject *tmp_assign_source_97; - - - tmp_assign_source_97 = MAKE_FUNCTION_models$unet3d$metrics$$$function__29_get_evaluation_metric(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$metrics, (Nuitka_StringObject *)mod_consts[220], tmp_assign_source_97); - } - - return module_models$unet3d$metrics; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.model.const b/medomni/models.build/module.models.unet3d.model.const deleted file mode 100644 index 5973b276463195c137b4710556e4a825d7a1e471..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.model.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.model.cpp b/medomni/models.build/module.models.unet3d.model.cpp deleted file mode 100644 index dda0923b3e5226422eaf2aea28ab73c412298469..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.model.cpp +++ /dev/null @@ -1,8758 +0,0 @@ -/* Generated code for Python module 'models.unet3d.model' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$model" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$model; -PyDictObject *moduledict_models$unet3d$model; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[93]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.model")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$model(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.model"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_538bf138f16ddd30bd4432efc7d5498a; -static PyCodeObject *codeobj_b5da0c44f22792dfa8a94b4b1fe8119b; -static PyCodeObject *codeobj_438d3b3c3982ede956dae212fa0b4596; -static PyCodeObject *codeobj_66dcfe6c36e3c070fdf25ab6c2a0819a; -static PyCodeObject *codeobj_c371277ecadaa6cb8a18001c7c4d4b3e; -static PyCodeObject *codeobj_f44960d4216ed8d0e937c723e3b8d8d4; -static PyCodeObject *codeobj_51da46b11dde7fe87fa78ae11e571319; -static PyCodeObject *codeobj_9de03121238718fe61005599f38a044f; -static PyCodeObject *codeobj_3116fec32f6a5f4e31d5d3e585bd3333; -static PyCodeObject *codeobj_9b298f490523c36773ed9783dc1c23cf; -static PyCodeObject *codeobj_7934fa0ecb71b0b58d81131b301d2c27; -static PyCodeObject *codeobj_95451eaf439dd4fb0254dd53bb5f4c7d; -static PyCodeObject *codeobj_e9e7131d00b24773e6e44e82c425f784; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[86]); CHECK_OBJECT(module_filename_obj); - codeobj_538bf138f16ddd30bd4432efc7d5498a = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[87], NULL, NULL, 0, 0, 0); - codeobj_b5da0c44f22792dfa8a94b4b1fe8119b = MAKE_CODEOBJECT(module_filename_obj, 9, CO_NOFREE, mod_consts[0], mod_consts[88], NULL, 0, 0, 0); - codeobj_438d3b3c3982ede956dae212fa0b4596 = MAKE_CODEOBJECT(module_filename_obj, 128, CO_NOFREE, mod_consts[40], mod_consts[88], NULL, 0, 0, 0); - codeobj_66dcfe6c36e3c070fdf25ab6c2a0819a = MAKE_CODEOBJECT(module_filename_obj, 151, CO_NOFREE, mod_consts[42], mod_consts[88], NULL, 0, 0, 0); - codeobj_c371277ecadaa6cb8a18001c7c4d4b3e = MAKE_CODEOBJECT(module_filename_obj, 176, CO_NOFREE, mod_consts[44], mod_consts[88], NULL, 0, 0, 0); - codeobj_f44960d4216ed8d0e937c723e3b8d8d4 = MAKE_CODEOBJECT(module_filename_obj, 104, CO_NOFREE, mod_consts[29], mod_consts[88], NULL, 0, 0, 0); - codeobj_51da46b11dde7fe87fa78ae11e571319 = MAKE_CODEOBJECT(module_filename_obj, 39, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[1], mod_consts[89], NULL, 14, 0, 0); - codeobj_9de03121238718fe61005599f38a044f = MAKE_CODEOBJECT(module_filename_obj, 113, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[1], mod_consts[90], NULL, 10, 0, 0); - codeobj_3116fec32f6a5f4e31d5d3e585bd3333 = MAKE_CODEOBJECT(module_filename_obj, 136, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[1], mod_consts[90], NULL, 10, 0, 0); - codeobj_9b298f490523c36773ed9783dc1c23cf = MAKE_CODEOBJECT(module_filename_obj, 161, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[1], mod_consts[90], NULL, 10, 0, 0); - codeobj_7934fa0ecb71b0b58d81131b301d2c27 = MAKE_CODEOBJECT(module_filename_obj, 182, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[1], mod_consts[90], NULL, 10, 0, 0); - codeobj_95451eaf439dd4fb0254dd53bb5f4c7d = MAKE_CODEOBJECT(module_filename_obj, 76, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[72], mod_consts[91], NULL, 2, 0, 0); - codeobj_e9e7131d00b24773e6e44e82c425f784 = MAKE_CODEOBJECT(module_filename_obj, 197, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[85], mod_consts[92], NULL, 1, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__8_complex_call_helper_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__1___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__2_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__3___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__4___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__5___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__6___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__7_get_model(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$model$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_final_sigmoid = python_pars[3]; - PyObject *par_basic_module = python_pars[4]; - PyObject *par_f_maps = python_pars[5]; - PyObject *par_layer_order = python_pars[6]; - PyObject *par_num_groups = python_pars[7]; - PyObject *par_num_levels = python_pars[8]; - PyObject *par_is_segmentation = python_pars[9]; - PyObject *par_conv_kernel_size = python_pars[10]; - PyObject *par_pool_kernel_size = python_pars[11]; - PyObject *par_conv_padding = python_pars[12]; - PyObject *par_is3d = python_pars[13]; - struct Nuitka_FrameObject *frame_51da46b11dde7fe87fa78ae11e571319; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_51da46b11dde7fe87fa78ae11e571319 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_51da46b11dde7fe87fa78ae11e571319)) { - Py_XDECREF(cache_frame_51da46b11dde7fe87fa78ae11e571319); - -#if _DEBUG_REFCOUNTS - if (cache_frame_51da46b11dde7fe87fa78ae11e571319 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_51da46b11dde7fe87fa78ae11e571319 = MAKE_FUNCTION_FRAME(codeobj_51da46b11dde7fe87fa78ae11e571319, module_models$unet3d$model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_51da46b11dde7fe87fa78ae11e571319->m_type_description == NULL); - frame_51da46b11dde7fe87fa78ae11e571319 = cache_frame_51da46b11dde7fe87fa78ae11e571319; - - // Push the new frame as the currently active one. - pushFrameStack(frame_51da46b11dde7fe87fa78ae11e571319); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_51da46b11dde7fe87fa78ae11e571319) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 42; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - CHECK_OBJECT(par_f_maps); - tmp_isinstance_inst_1 = par_f_maps; - tmp_isinstance_cls_1 = (PyObject *)&PyLong_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_f_maps); - tmp_tuple_element_1 = par_f_maps; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[3]; - CHECK_OBJECT(par_num_levels); - tmp_dict_value_1 = par_num_levels; - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 45; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_f_maps; - assert(old != NULL); - par_f_maps = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - PyObject *tmp_isinstance_inst_3; - PyObject *tmp_isinstance_cls_3; - CHECK_OBJECT(par_f_maps); - tmp_isinstance_inst_2 = par_f_maps; - tmp_isinstance_cls_2 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_f_maps); - tmp_isinstance_inst_3 = par_f_maps; - tmp_isinstance_cls_3 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_3, tmp_isinstance_cls_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_operand_name_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_operand_name_1 = tmp_or_left_value_1; - or_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 47; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_len_arg_1; - PyObject *tmp_tmp_condition_result_3_object_1; - CHECK_OBJECT(par_f_maps); - tmp_len_arg_1 = par_f_maps; - tmp_compexpr_left_1 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[4]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_LE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - assert(!(tmp_tmp_condition_result_3_object_1 == NULL)); - tmp_condition_result_3 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1) == 1; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_1; - tmp_raise_type_2 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[5]; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 48; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - branch_no_3:; - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = mod_consts[6]; - CHECK_OBJECT(par_layer_order); - tmp_compexpr_right_2 = par_layer_order; - tmp_res = PySequence_Contains(tmp_compexpr_right_2, tmp_compexpr_left_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = (tmp_res == 1) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(par_num_groups); - tmp_compexpr_left_3 = par_num_groups; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_5 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_2; - tmp_raise_type_3 = PyExc_AssertionError; - tmp_raise_value_2 = mod_consts[7]; - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_2; - Py_INCREF(tmp_raise_value_2); - exception_lineno = 50; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - branch_no_5:; - branch_no_4:; - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_assattr_target_1; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_in_channels); - tmp_args_element_name_1 = par_in_channels; - if (par_f_maps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 53; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_f_maps; - CHECK_OBJECT(par_basic_module); - tmp_args_element_name_3 = par_basic_module; - CHECK_OBJECT(par_conv_kernel_size); - tmp_args_element_name_4 = par_conv_kernel_size; - CHECK_OBJECT(par_conv_padding); - tmp_args_element_name_5 = par_conv_padding; - CHECK_OBJECT(par_layer_order); - tmp_args_element_name_6 = par_layer_order; - CHECK_OBJECT(par_num_groups); - tmp_args_element_name_7 = par_num_groups; - CHECK_OBJECT(par_pool_kernel_size); - tmp_args_element_name_8 = par_pool_kernel_size; - CHECK_OBJECT(par_is3d); - tmp_args_element_name_9 = par_is3d; - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 53; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS9(tmp_called_name_2, call_args); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[10], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - PyObject *tmp_args_element_name_16; - PyObject *tmp_assattr_target_2; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[11]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[11]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_f_maps == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 57; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_10 = par_f_maps; - CHECK_OBJECT(par_basic_module); - tmp_args_element_name_11 = par_basic_module; - CHECK_OBJECT(par_conv_kernel_size); - tmp_args_element_name_12 = par_conv_kernel_size; - CHECK_OBJECT(par_conv_padding); - tmp_args_element_name_13 = par_conv_padding; - CHECK_OBJECT(par_layer_order); - tmp_args_element_name_14 = par_layer_order; - CHECK_OBJECT(par_num_groups); - tmp_args_element_name_15 = par_num_groups; - CHECK_OBJECT(par_is3d); - tmp_args_element_name_16 = par_is3d; - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 57; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15, tmp_args_element_name_16}; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS7(tmp_called_name_3, call_args); - } - - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[12], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - { - nuitka_bool tmp_condition_result_6; - int tmp_truth_name_1; - CHECK_OBJECT(par_is3d); - tmp_truth_name_1 = CHECK_IF_TRUE(par_is3d); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_6 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_17; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_args_element_name_18; - PyObject *tmp_args_element_name_19; - PyObject *tmp_assattr_target_3; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[14]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_f_maps == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 62; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_f_maps; - tmp_subscript_name_1 = mod_consts[15]; - tmp_args_element_name_17 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 62; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_18 = par_out_channels; - tmp_args_element_name_19 = mod_consts[4]; - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 62; - { - PyObject *call_args[] = {tmp_args_element_name_17, tmp_args_element_name_18, tmp_args_element_name_19}; - tmp_assattr_name_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_17); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[16], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_20; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_2; - PyObject *tmp_args_element_name_21; - PyObject *tmp_args_element_name_22; - PyObject *tmp_assattr_target_4; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[17]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - if (par_f_maps == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[9]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 64; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_f_maps; - tmp_subscript_name_2 = mod_consts[15]; - tmp_args_element_name_20 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_2, 0); - if (tmp_args_element_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 64; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_out_channels); - tmp_args_element_name_21 = par_out_channels; - tmp_args_element_name_22 = mod_consts[4]; - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 64; - { - PyObject *call_args[] = {tmp_args_element_name_20, tmp_args_element_name_21, tmp_args_element_name_22}; - tmp_assattr_name_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_20); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[16], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_6:; - { - nuitka_bool tmp_condition_result_7; - int tmp_truth_name_2; - CHECK_OBJECT(par_is_segmentation); - tmp_truth_name_2 = CHECK_IF_TRUE(par_is_segmentation); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_7 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_3; - CHECK_OBJECT(par_final_sigmoid); - tmp_truth_name_3 = CHECK_IF_TRUE(par_final_sigmoid); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_condition_result_8 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_5; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 69; - tmp_assattr_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[18]); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[19], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - goto branch_end_8; - branch_no_8:; - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_5; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_6; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[20]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[21]); - frame_51da46b11dde7fe87fa78ae11e571319->m_frame.f_lineno = 71; - tmp_assattr_name_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_6, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[19], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_8:; - goto branch_end_7; - branch_no_7:; - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_assattr_target_7; - tmp_assattr_name_7 = Py_None; - CHECK_OBJECT(par_self); - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[19], tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "ooooooooooooooN"; - goto frame_exception_exit_1; - } - } - branch_end_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_51da46b11dde7fe87fa78ae11e571319); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_51da46b11dde7fe87fa78ae11e571319); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_51da46b11dde7fe87fa78ae11e571319, exception_lineno); - } else if (exception_tb->tb_frame != &frame_51da46b11dde7fe87fa78ae11e571319->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_51da46b11dde7fe87fa78ae11e571319, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_51da46b11dde7fe87fa78ae11e571319, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_final_sigmoid, - par_basic_module, - par_f_maps, - par_layer_order, - par_num_groups, - par_num_levels, - par_is_segmentation, - par_conv_kernel_size, - par_pool_kernel_size, - par_conv_padding, - par_is3d, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_51da46b11dde7fe87fa78ae11e571319 == cache_frame_51da46b11dde7fe87fa78ae11e571319) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_51da46b11dde7fe87fa78ae11e571319); - cache_frame_51da46b11dde7fe87fa78ae11e571319 = NULL; - } - - assertFrameObject(frame_51da46b11dde7fe87fa78ae11e571319); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_final_sigmoid); - Py_DECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - CHECK_OBJECT(par_basic_module); - Py_DECREF(par_basic_module); - par_basic_module = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - CHECK_OBJECT(par_layer_order); - Py_DECREF(par_layer_order); - par_layer_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_num_levels); - Py_DECREF(par_num_levels); - par_num_levels = NULL; - CHECK_OBJECT(par_is_segmentation); - Py_DECREF(par_is_segmentation); - par_is_segmentation = NULL; - CHECK_OBJECT(par_conv_kernel_size); - Py_DECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - CHECK_OBJECT(par_pool_kernel_size); - Py_DECREF(par_pool_kernel_size); - par_pool_kernel_size = NULL; - CHECK_OBJECT(par_conv_padding); - Py_DECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_in_channels); - Py_DECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - CHECK_OBJECT(par_final_sigmoid); - Py_DECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - CHECK_OBJECT(par_basic_module); - Py_DECREF(par_basic_module); - par_basic_module = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - CHECK_OBJECT(par_layer_order); - Py_DECREF(par_layer_order); - par_layer_order = NULL; - CHECK_OBJECT(par_num_groups); - Py_DECREF(par_num_groups); - par_num_groups = NULL; - CHECK_OBJECT(par_num_levels); - Py_DECREF(par_num_levels); - par_num_levels = NULL; - CHECK_OBJECT(par_is_segmentation); - Py_DECREF(par_is_segmentation); - par_is_segmentation = NULL; - CHECK_OBJECT(par_conv_kernel_size); - Py_DECREF(par_conv_kernel_size); - par_conv_kernel_size = NULL; - CHECK_OBJECT(par_pool_kernel_size); - Py_DECREF(par_pool_kernel_size); - par_pool_kernel_size = NULL; - CHECK_OBJECT(par_conv_padding); - Py_DECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_is3d); - Py_DECREF(par_is3d); - par_is3d = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$model$$$function__2_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_encoders_features = NULL; - PyObject *var_encoder = NULL; - PyObject *var_decoder = NULL; - PyObject *var_encoder_features = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_95451eaf439dd4fb0254dd53bb5f4c7d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_encoders_features == NULL); - var_encoders_features = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d)) { - Py_XDECREF(cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d = MAKE_FUNCTION_FRAME(codeobj_95451eaf439dd4fb0254dd53bb5f4c7d, module_models$unet3d$model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_type_description == NULL); - frame_95451eaf439dd4fb0254dd53bb5f4c7d = cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_95451eaf439dd4fb0254dd53bb5f4c7d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_95451eaf439dd4fb0254dd53bb5f4c7d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[10]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 79; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_encoder; - var_encoder = tmp_assign_source_4; - Py_INCREF(var_encoder); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(var_encoder); - tmp_called_name_1 = var_encoder; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 80; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_1 = par_x; - frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame.f_lineno = 80; - tmp_assign_source_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - if (var_encoders_features == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = var_encoders_features; - tmp_args_element_name_2 = mod_consts[15]; - CHECK_OBJECT(par_x); - tmp_args_element_name_3 = par_x; - frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame.f_lineno = 82; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[24], - call_args - ); - } - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - if (var_encoders_features == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[23]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 86; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = var_encoders_features; - tmp_subscript_name_1 = mod_consts[25]; - tmp_assign_source_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_encoders_features; - var_encoders_features = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_5; - tmp_called_name_2 = (PyObject *)&PyZip_Type; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 89; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[12]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_encoders_features); - tmp_args_element_name_5 = var_encoders_features; - frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame.f_lineno = 89; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_args_element_name_4); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_2__for_iterator == NULL); - tmp_for_loop_2__for_iterator = tmp_assign_source_7; - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 89; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_3 = tmp_for_loop_2__iter_value; - tmp_assign_source_9 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 89; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 89; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 89; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[27]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 89; - goto try_except_handler_5; - } - } - goto try_end_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_4; - // End of try: - try_end_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_3; - // End of try: - try_end_3:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_12 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_decoder; - var_decoder = tmp_assign_source_12; - Py_INCREF(var_decoder); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_13 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_encoder_features; - var_encoder_features = tmp_assign_source_13; - Py_INCREF(var_encoder_features); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - CHECK_OBJECT(var_decoder); - tmp_called_name_3 = var_decoder; - CHECK_OBJECT(var_encoder_features); - tmp_args_element_name_6 = var_encoder_features; - if (par_x == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_7 = par_x; - frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame.f_lineno = 92; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_14 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 89; - type_description_1 = "oooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_4; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[16]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[22]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_8 = par_x; - frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame.f_lineno = 94; - tmp_assign_source_15 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_operand_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[28]); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[19]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_and_right_value_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - Py_DECREF(tmp_compexpr_left_1); - tmp_condition_result_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_1 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_x); - tmp_args_element_name_9 = par_x; - frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame.f_lineno = 99; - tmp_assign_source_16 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[19], tmp_args_element_name_9); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_x; - par_x = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - branch_no_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_95451eaf439dd4fb0254dd53bb5f4c7d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_95451eaf439dd4fb0254dd53bb5f4c7d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_95451eaf439dd4fb0254dd53bb5f4c7d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_95451eaf439dd4fb0254dd53bb5f4c7d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_95451eaf439dd4fb0254dd53bb5f4c7d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_95451eaf439dd4fb0254dd53bb5f4c7d, - type_description_1, - par_self, - par_x, - var_encoders_features, - var_encoder, - var_decoder, - var_encoder_features - ); - - - // Release cached frame if used for exception. - if (frame_95451eaf439dd4fb0254dd53bb5f4c7d == cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d); - cache_frame_95451eaf439dd4fb0254dd53bb5f4c7d = NULL; - } - - assertFrameObject(frame_95451eaf439dd4fb0254dd53bb5f4c7d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_x); - tmp_return_value = par_x; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_x); - Py_DECREF(par_x); - par_x = NULL; - CHECK_OBJECT(var_encoders_features); - Py_DECREF(var_encoders_features); - var_encoders_features = NULL; - Py_XDECREF(var_encoder); - var_encoder = NULL; - Py_XDECREF(var_decoder); - var_decoder = NULL; - Py_XDECREF(var_encoder_features); - var_encoder_features = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_encoders_features); - var_encoders_features = NULL; - Py_XDECREF(var_encoder); - var_encoder = NULL; - Py_XDECREF(var_decoder); - var_decoder = NULL; - Py_XDECREF(var_encoder_features); - var_encoder_features = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$model$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_final_sigmoid = python_pars[3]; - PyObject *par_f_maps = python_pars[4]; - PyObject *par_layer_order = python_pars[5]; - PyObject *par_num_groups = python_pars[6]; - PyObject *par_num_levels = python_pars[7]; - PyObject *par_is_segmentation = python_pars[8]; - PyObject *par_conv_padding = python_pars[9]; - PyObject *par_kwargs = python_pars[10]; - struct Nuitka_FrameObject *frame_9de03121238718fe61005599f38a044f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_9de03121238718fe61005599f38a044f = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9de03121238718fe61005599f38a044f)) { - Py_XDECREF(cache_frame_9de03121238718fe61005599f38a044f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9de03121238718fe61005599f38a044f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9de03121238718fe61005599f38a044f = MAKE_FUNCTION_FRAME(codeobj_9de03121238718fe61005599f38a044f, module_models$unet3d$model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9de03121238718fe61005599f38a044f->m_type_description == NULL); - frame_9de03121238718fe61005599f38a044f = cache_frame_9de03121238718fe61005599f38a044f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9de03121238718fe61005599f38a044f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9de03121238718fe61005599f38a044f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[29]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[29]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[30]; - CHECK_OBJECT(par_in_channels); - tmp_dict_value_1 = par_in_channels; - tmp_kwargs_name_1 = _PyDict_NewPresized( 11 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[31]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_1 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[32]; - CHECK_OBJECT(par_final_sigmoid); - tmp_dict_value_1 = par_final_sigmoid; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[33]; - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooN"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[9]; - CHECK_OBJECT(par_f_maps); - tmp_dict_value_1 = par_f_maps; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[35]; - CHECK_OBJECT(par_layer_order); - tmp_dict_value_1 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[36]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[3]; - CHECK_OBJECT(par_num_levels); - tmp_dict_value_1 = par_num_levels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[37]; - CHECK_OBJECT(par_is_segmentation); - tmp_dict_value_1 = par_is_segmentation; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[38]; - CHECK_OBJECT(par_conv_padding); - tmp_dict_value_1 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[39]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_9de03121238718fe61005599f38a044f->m_frame.f_lineno = 115; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9de03121238718fe61005599f38a044f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9de03121238718fe61005599f38a044f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9de03121238718fe61005599f38a044f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9de03121238718fe61005599f38a044f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9de03121238718fe61005599f38a044f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9de03121238718fe61005599f38a044f, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_final_sigmoid, - par_f_maps, - par_layer_order, - par_num_groups, - par_num_levels, - par_is_segmentation, - par_conv_padding, - par_kwargs, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_9de03121238718fe61005599f38a044f == cache_frame_9de03121238718fe61005599f38a044f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9de03121238718fe61005599f38a044f); - cache_frame_9de03121238718fe61005599f38a044f = NULL; - } - - assertFrameObject(frame_9de03121238718fe61005599f38a044f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$model$$$function__4___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_final_sigmoid = python_pars[3]; - PyObject *par_f_maps = python_pars[4]; - PyObject *par_layer_order = python_pars[5]; - PyObject *par_num_groups = python_pars[6]; - PyObject *par_num_levels = python_pars[7]; - PyObject *par_is_segmentation = python_pars[8]; - PyObject *par_conv_padding = python_pars[9]; - PyObject *par_kwargs = python_pars[10]; - struct Nuitka_FrameObject *frame_3116fec32f6a5f4e31d5d3e585bd3333; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_3116fec32f6a5f4e31d5d3e585bd3333 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3116fec32f6a5f4e31d5d3e585bd3333)) { - Py_XDECREF(cache_frame_3116fec32f6a5f4e31d5d3e585bd3333); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3116fec32f6a5f4e31d5d3e585bd3333 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3116fec32f6a5f4e31d5d3e585bd3333 = MAKE_FUNCTION_FRAME(codeobj_3116fec32f6a5f4e31d5d3e585bd3333, module_models$unet3d$model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3116fec32f6a5f4e31d5d3e585bd3333->m_type_description == NULL); - frame_3116fec32f6a5f4e31d5d3e585bd3333 = cache_frame_3116fec32f6a5f4e31d5d3e585bd3333; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3116fec32f6a5f4e31d5d3e585bd3333); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3116fec32f6a5f4e31d5d3e585bd3333) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[40]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[40]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[30]; - CHECK_OBJECT(par_in_channels); - tmp_dict_value_1 = par_in_channels; - tmp_kwargs_name_1 = _PyDict_NewPresized( 11 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[31]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_1 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[32]; - CHECK_OBJECT(par_final_sigmoid); - tmp_dict_value_1 = par_final_sigmoid; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[33]; - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[41]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[41]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooooooooooN"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[9]; - CHECK_OBJECT(par_f_maps); - tmp_dict_value_1 = par_f_maps; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[35]; - CHECK_OBJECT(par_layer_order); - tmp_dict_value_1 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[36]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[3]; - CHECK_OBJECT(par_num_levels); - tmp_dict_value_1 = par_num_levels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[37]; - CHECK_OBJECT(par_is_segmentation); - tmp_dict_value_1 = par_is_segmentation; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[38]; - CHECK_OBJECT(par_conv_padding); - tmp_dict_value_1 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[39]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_3116fec32f6a5f4e31d5d3e585bd3333->m_frame.f_lineno = 138; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3116fec32f6a5f4e31d5d3e585bd3333); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3116fec32f6a5f4e31d5d3e585bd3333); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3116fec32f6a5f4e31d5d3e585bd3333, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3116fec32f6a5f4e31d5d3e585bd3333->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3116fec32f6a5f4e31d5d3e585bd3333, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3116fec32f6a5f4e31d5d3e585bd3333, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_final_sigmoid, - par_f_maps, - par_layer_order, - par_num_groups, - par_num_levels, - par_is_segmentation, - par_conv_padding, - par_kwargs, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_3116fec32f6a5f4e31d5d3e585bd3333 == cache_frame_3116fec32f6a5f4e31d5d3e585bd3333) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3116fec32f6a5f4e31d5d3e585bd3333); - cache_frame_3116fec32f6a5f4e31d5d3e585bd3333 = NULL; - } - - assertFrameObject(frame_3116fec32f6a5f4e31d5d3e585bd3333); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$model$$$function__5___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_final_sigmoid = python_pars[3]; - PyObject *par_f_maps = python_pars[4]; - PyObject *par_layer_order = python_pars[5]; - PyObject *par_num_groups = python_pars[6]; - PyObject *par_num_levels = python_pars[7]; - PyObject *par_is_segmentation = python_pars[8]; - PyObject *par_conv_padding = python_pars[9]; - PyObject *par_kwargs = python_pars[10]; - struct Nuitka_FrameObject *frame_9b298f490523c36773ed9783dc1c23cf; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_9b298f490523c36773ed9783dc1c23cf = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9b298f490523c36773ed9783dc1c23cf)) { - Py_XDECREF(cache_frame_9b298f490523c36773ed9783dc1c23cf); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9b298f490523c36773ed9783dc1c23cf == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9b298f490523c36773ed9783dc1c23cf = MAKE_FUNCTION_FRAME(codeobj_9b298f490523c36773ed9783dc1c23cf, module_models$unet3d$model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9b298f490523c36773ed9783dc1c23cf->m_type_description == NULL); - frame_9b298f490523c36773ed9783dc1c23cf = cache_frame_9b298f490523c36773ed9783dc1c23cf; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9b298f490523c36773ed9783dc1c23cf); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9b298f490523c36773ed9783dc1c23cf) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[30]; - CHECK_OBJECT(par_in_channels); - tmp_dict_value_1 = par_in_channels; - tmp_kwargs_name_1 = _PyDict_NewPresized( 11 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[31]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_1 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[32]; - CHECK_OBJECT(par_final_sigmoid); - tmp_dict_value_1 = par_final_sigmoid; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[33]; - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[43]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[43]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "oooooooooooN"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[9]; - CHECK_OBJECT(par_f_maps); - tmp_dict_value_1 = par_f_maps; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[35]; - CHECK_OBJECT(par_layer_order); - tmp_dict_value_1 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[36]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[3]; - CHECK_OBJECT(par_num_levels); - tmp_dict_value_1 = par_num_levels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[37]; - CHECK_OBJECT(par_is_segmentation); - tmp_dict_value_1 = par_is_segmentation; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[38]; - CHECK_OBJECT(par_conv_padding); - tmp_dict_value_1 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[39]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_9b298f490523c36773ed9783dc1c23cf->m_frame.f_lineno = 163; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9b298f490523c36773ed9783dc1c23cf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9b298f490523c36773ed9783dc1c23cf); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9b298f490523c36773ed9783dc1c23cf, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9b298f490523c36773ed9783dc1c23cf->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9b298f490523c36773ed9783dc1c23cf, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9b298f490523c36773ed9783dc1c23cf, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_final_sigmoid, - par_f_maps, - par_layer_order, - par_num_groups, - par_num_levels, - par_is_segmentation, - par_conv_padding, - par_kwargs, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_9b298f490523c36773ed9783dc1c23cf == cache_frame_9b298f490523c36773ed9783dc1c23cf) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9b298f490523c36773ed9783dc1c23cf); - cache_frame_9b298f490523c36773ed9783dc1c23cf = NULL; - } - - assertFrameObject(frame_9b298f490523c36773ed9783dc1c23cf); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$model$$$function__6___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_in_channels = python_pars[1]; - PyObject *par_out_channels = python_pars[2]; - PyObject *par_final_sigmoid = python_pars[3]; - PyObject *par_f_maps = python_pars[4]; - PyObject *par_layer_order = python_pars[5]; - PyObject *par_num_groups = python_pars[6]; - PyObject *par_num_levels = python_pars[7]; - PyObject *par_is_segmentation = python_pars[8]; - PyObject *par_conv_padding = python_pars[9]; - PyObject *par_kwargs = python_pars[10]; - struct Nuitka_FrameObject *frame_7934fa0ecb71b0b58d81131b301d2c27; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_7934fa0ecb71b0b58d81131b301d2c27 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7934fa0ecb71b0b58d81131b301d2c27)) { - Py_XDECREF(cache_frame_7934fa0ecb71b0b58d81131b301d2c27); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7934fa0ecb71b0b58d81131b301d2c27 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7934fa0ecb71b0b58d81131b301d2c27 = MAKE_FUNCTION_FRAME(codeobj_7934fa0ecb71b0b58d81131b301d2c27, module_models$unet3d$model, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7934fa0ecb71b0b58d81131b301d2c27->m_type_description == NULL); - frame_7934fa0ecb71b0b58d81131b301d2c27 = cache_frame_7934fa0ecb71b0b58d81131b301d2c27; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7934fa0ecb71b0b58d81131b301d2c27); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7934fa0ecb71b0b58d81131b301d2c27) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[44]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[44]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[30]; - CHECK_OBJECT(par_in_channels); - tmp_dict_value_1 = par_in_channels; - tmp_kwargs_name_1 = _PyDict_NewPresized( 11 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[31]; - CHECK_OBJECT(par_out_channels); - tmp_dict_value_1 = par_out_channels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[32]; - CHECK_OBJECT(par_final_sigmoid); - tmp_dict_value_1 = par_final_sigmoid; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[33]; - tmp_dict_value_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_dict_value_1 == NULL)) { - tmp_dict_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "oooooooooooN"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[9]; - CHECK_OBJECT(par_f_maps); - tmp_dict_value_1 = par_f_maps; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[35]; - CHECK_OBJECT(par_layer_order); - tmp_dict_value_1 = par_layer_order; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[36]; - CHECK_OBJECT(par_num_groups); - tmp_dict_value_1 = par_num_groups; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[3]; - CHECK_OBJECT(par_num_levels); - tmp_dict_value_1 = par_num_levels; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[37]; - CHECK_OBJECT(par_is_segmentation); - tmp_dict_value_1 = par_is_segmentation; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[38]; - CHECK_OBJECT(par_conv_padding); - tmp_dict_value_1 = par_conv_padding; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[39]; - tmp_dict_value_1 = Py_False; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_7934fa0ecb71b0b58d81131b301d2c27->m_frame.f_lineno = 184; - tmp_call_result_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "oooooooooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7934fa0ecb71b0b58d81131b301d2c27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7934fa0ecb71b0b58d81131b301d2c27); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7934fa0ecb71b0b58d81131b301d2c27, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7934fa0ecb71b0b58d81131b301d2c27->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7934fa0ecb71b0b58d81131b301d2c27, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7934fa0ecb71b0b58d81131b301d2c27, - type_description_1, - par_self, - par_in_channels, - par_out_channels, - par_final_sigmoid, - par_f_maps, - par_layer_order, - par_num_groups, - par_num_levels, - par_is_segmentation, - par_conv_padding, - par_kwargs, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_7934fa0ecb71b0b58d81131b301d2c27 == cache_frame_7934fa0ecb71b0b58d81131b301d2c27) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7934fa0ecb71b0b58d81131b301d2c27); - cache_frame_7934fa0ecb71b0b58d81131b301d2c27 = NULL; - } - - assertFrameObject(frame_7934fa0ecb71b0b58d81131b301d2c27); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_in_channels); - par_in_channels = NULL; - Py_XDECREF(par_out_channels); - par_out_channels = NULL; - Py_XDECREF(par_final_sigmoid); - par_final_sigmoid = NULL; - Py_XDECREF(par_f_maps); - par_f_maps = NULL; - Py_XDECREF(par_layer_order); - par_layer_order = NULL; - Py_XDECREF(par_num_groups); - par_num_groups = NULL; - Py_XDECREF(par_num_levels); - par_num_levels = NULL; - Py_XDECREF(par_is_segmentation); - par_is_segmentation = NULL; - Py_XDECREF(par_conv_padding); - par_conv_padding = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$model$$$function__7_get_model(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model_config = python_pars[0]; - PyObject *var_model_class = NULL; - struct Nuitka_FrameObject *frame_e9e7131d00b24773e6e44e82c425f784; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e9e7131d00b24773e6e44e82c425f784 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e9e7131d00b24773e6e44e82c425f784)) { - Py_XDECREF(cache_frame_e9e7131d00b24773e6e44e82c425f784); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e9e7131d00b24773e6e44e82c425f784 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e9e7131d00b24773e6e44e82c425f784 = MAKE_FUNCTION_FRAME(codeobj_e9e7131d00b24773e6e44e82c425f784, module_models$unet3d$model, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e9e7131d00b24773e6e44e82c425f784->m_type_description == NULL); - frame_e9e7131d00b24773e6e44e82c425f784 = cache_frame_e9e7131d00b24773e6e44e82c425f784; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e9e7131d00b24773e6e44e82c425f784); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e9e7131d00b24773e6e44e82c425f784) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_kwargs_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[45]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[45]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model_config); - tmp_expression_name_1 = par_model_config; - tmp_subscript_name_1 = mod_consts[46]; - tmp_tuple_element_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = DEEP_COPY(mod_consts[47]); - frame_e9e7131d00b24773e6e44e82c425f784->m_frame.f_lineno = 198; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - assert(var_model_class == NULL); - var_model_class = tmp_assign_source_1; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - CHECK_OBJECT(var_model_class); - tmp_dircall_arg1_1 = var_model_class; - CHECK_OBJECT(par_model_config); - tmp_dircall_arg2_1 = par_model_config; - Py_INCREF(tmp_dircall_arg1_1); - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__8_complex_call_helper_star_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e9e7131d00b24773e6e44e82c425f784); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e9e7131d00b24773e6e44e82c425f784); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e9e7131d00b24773e6e44e82c425f784); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e9e7131d00b24773e6e44e82c425f784, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e9e7131d00b24773e6e44e82c425f784->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e9e7131d00b24773e6e44e82c425f784, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e9e7131d00b24773e6e44e82c425f784, - type_description_1, - par_model_config, - var_model_class - ); - - - // Release cached frame if used for exception. - if (frame_e9e7131d00b24773e6e44e82c425f784 == cache_frame_e9e7131d00b24773e6e44e82c425f784) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e9e7131d00b24773e6e44e82c425f784); - cache_frame_e9e7131d00b24773e6e44e82c425f784 = NULL; - } - - assertFrameObject(frame_e9e7131d00b24773e6e44e82c425f784); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_model_config); - Py_DECREF(par_model_config); - par_model_config = NULL; - CHECK_OBJECT(var_model_class); - Py_DECREF(var_model_class); - var_model_class = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_model_config); - Py_DECREF(par_model_config); - par_model_config = NULL; - Py_XDECREF(var_model_class); - var_model_class = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__1___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__1___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[71], -#endif - codeobj_51da46b11dde7fe87fa78ae11e571319, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__2_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__2_forward, - mod_consts[72], -#if PYTHON_VERSION >= 0x300 - mod_consts[73], -#endif - codeobj_95451eaf439dd4fb0254dd53bb5f4c7d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__3___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__3___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[77], -#endif - codeobj_9de03121238718fe61005599f38a044f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__4___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__4___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[80], -#endif - codeobj_3116fec32f6a5f4e31d5d3e585bd3333, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__5___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__5___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[82], -#endif - codeobj_9b298f490523c36773ed9783dc1c23cf, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__6___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__6___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[84], -#endif - codeobj_7934fa0ecb71b0b58d81131b301d2c27, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$model$$$function__7_get_model() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$model$$$function__7_get_model, - mod_consts[85], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_e9e7131d00b24773e6e44e82c425f784, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$model, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$model[] = { - impl_models$unet3d$model$$$function__1___init__, - impl_models$unet3d$model$$$function__2_forward, - impl_models$unet3d$model$$$function__3___init__, - impl_models$unet3d$model$$$function__4___init__, - impl_models$unet3d$model$$$function__5___init__, - impl_models$unet3d$model$$$function__6___init__, - impl_models$unet3d$model$$$function__7_get_model, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$model; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$model) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$model[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$model, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$model(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$model = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.model: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.model: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.model: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$model\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$model = MODULE_DICT(module_models$unet3d$model); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$model, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$model, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$model, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$model, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$model, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$model); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$model); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - PyObject *outline_3_var___class__ = NULL; - PyObject *outline_4_var___class__ = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - PyObject *tmp_class_creation_5__bases = NULL; - PyObject *tmp_class_creation_5__bases_orig = NULL; - PyObject *tmp_class_creation_5__class_decl_dict = NULL; - PyObject *tmp_class_creation_5__metaclass = NULL; - PyObject *tmp_class_creation_5__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - struct Nuitka_FrameObject *frame_538bf138f16ddd30bd4432efc7d5498a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$model$$$class__1_AbstractUNet_9 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_b5da0c44f22792dfa8a94b4b1fe8119b_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *locals_models$unet3d$model$$$class__2_UNet3D_104 = NULL; - struct Nuitka_FrameObject *frame_f44960d4216ed8d0e937c723e3b8d8d4_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3 = NULL; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *locals_models$unet3d$model$$$class__3_ResidualUNet3D_128 = NULL; - struct Nuitka_FrameObject *frame_438d3b3c3982ede956dae212fa0b4596_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_438d3b3c3982ede956dae212fa0b4596_4 = NULL; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151 = NULL; - struct Nuitka_FrameObject *frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5 = NULL; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - PyObject *locals_models$unet3d$model$$$class__5_UNet2D_176 = NULL; - struct Nuitka_FrameObject *frame_c371277ecadaa6cb8a18001c7c4d4b3e_6; - NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; - static struct Nuitka_FrameObject *cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6 = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - PyObject *exception_keeper_type_16; - PyObject *exception_keeper_value_16; - PyTracebackObject *exception_keeper_tb_16; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; - PyObject *exception_keeper_type_17; - PyObject *exception_keeper_value_17; - PyTracebackObject *exception_keeper_tb_17; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[48], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[49], tmp_assign_source_2); - } - // Frame without reuse. - frame_538bf138f16ddd30bd4432efc7d5498a = MAKE_MODULE_FRAME(codeobj_538bf138f16ddd30bd4432efc7d5498a, module_models$unet3d$model); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_538bf138f16ddd30bd4432efc7d5498a); - assert(Py_REFCNT(frame_538bf138f16ddd30bd4432efc7d5498a) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[50]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[50]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[51], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[50]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[50]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[52], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[53], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[54]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$model; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[15]; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 1; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_4 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[13], - mod_consts[15] - ); - } else { - tmp_assign_source_4 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[13]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[13], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[55]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$model; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[56]; - tmp_level_name_2 = mod_consts[15]; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 3; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_5; - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_2; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_2 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[34], - mod_consts[15] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[34]); - } - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[34], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_3; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_3 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[41], - mod_consts[15] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[41]); - } - - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[41], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_4; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_4 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[43], - mod_consts[15] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[43]); - } - - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[43], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_5; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_5 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[11], - mod_consts[15] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[11]); - } - - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_6; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_6 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[8], - mod_consts[15] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[8]); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_10); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[57]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$model; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[58]; - tmp_level_name_3 = mod_consts[15]; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 5; - tmp_assign_source_11 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_11; - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_7 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[45], - mod_consts[15] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[45]); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[45], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_8 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$unet3d$model, - mod_consts[2], - mod_consts[15] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[2]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_13); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[59]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$model; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[15]; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 6; - tmp_assign_source_14 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[59], tmp_assign_source_14); - } - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[13]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[13]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[60]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_assign_source_15 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_15, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_16 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - tmp_assign_source_17 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[61]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[15]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_18 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_18; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[61]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[62]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[62]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_tuple_element_2 = mod_consts[0]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 9; - tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_19; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[63]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[64]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[65]; - tmp_getattr_default_1 = mod_consts[66]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[65]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_3; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 9; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_3; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_20; - } - branch_end_2:; - { - PyObject *tmp_assign_source_21; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$model$$$class__1_AbstractUNet_9 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[65]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[65]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__1_AbstractUNet_9, mod_consts[67], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[68]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__1_AbstractUNet_9, mod_consts[48], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[0]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__1_AbstractUNet_9, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_5; - } - if (isFrameUnusable(cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2)) { - Py_XDECREF(cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2 = MAKE_FUNCTION_FRAME(codeobj_b5da0c44f22792dfa8a94b4b1fe8119b, module_models$unet3d$model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2->m_type_description == NULL); - frame_b5da0c44f22792dfa8a94b4b1fe8119b_2 = cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b5da0c44f22792dfa8a94b4b1fe8119b_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b5da0c44f22792dfa8a94b4b1fe8119b_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[70]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$model$$$function__1___init__(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__1_AbstractUNet_9, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$model$$$function__2_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__1_AbstractUNet_9, mod_consts[72], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b5da0c44f22792dfa8a94b4b1fe8119b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b5da0c44f22792dfa8a94b4b1fe8119b_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b5da0c44f22792dfa8a94b4b1fe8119b_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b5da0c44f22792dfa8a94b4b1fe8119b_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b5da0c44f22792dfa8a94b4b1fe8119b_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b5da0c44f22792dfa8a94b4b1fe8119b_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b5da0c44f22792dfa8a94b4b1fe8119b_2 == cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2); - cache_frame_b5da0c44f22792dfa8a94b4b1fe8119b_2 = NULL; - } - - assertFrameObject(frame_b5da0c44f22792dfa8a94b4b1fe8119b_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_5; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_5; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__1_AbstractUNet_9, mod_consts[74], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_5; - } - branch_no_4:; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[0]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$model$$$class__1_AbstractUNet_9; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 9; - tmp_assign_source_22 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto try_except_handler_5; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_22; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_21 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_21); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_DECREF(locals_models$unet3d$model$$$class__1_AbstractUNet_9); - locals_models$unet3d$model$$$class__1_AbstractUNet_9 = NULL; - goto try_return_handler_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$model$$$class__1_AbstractUNet_9); - locals_models$unet3d$model$$$class__1_AbstractUNet_9 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 9; - goto try_except_handler_3; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_21); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_tuple_element_5; - tmp_tuple_element_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_tuple_element_5 == NULL)) { - tmp_tuple_element_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - tmp_assign_source_23 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_23, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_24 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_24; - } - { - PyObject *tmp_assign_source_25; - tmp_assign_source_25 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[61]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_7 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[15]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_7, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_26 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[61]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_8 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_8, mod_consts[62]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[62]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - tmp_tuple_element_6 = mod_consts[29]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 104; - tmp_assign_source_27 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_27; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_10; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_10 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_10, mod_consts[63]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[64]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[65]; - tmp_getattr_default_2 = mod_consts[66]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_11; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_11 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_11 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[65]); - Py_DECREF(tmp_expression_name_11); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_6; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_6; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 104; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_6; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_28; - tmp_assign_source_28 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_28; - } - branch_end_6:; - { - PyObject *tmp_assign_source_29; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$model$$$class__2_UNet3D_104 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[65]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[65]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__2_UNet3D_104, mod_consts[67], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[75]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__2_UNet3D_104, mod_consts[48], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_8; - } - tmp_dictset_value = mod_consts[29]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__2_UNet3D_104, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_8; - } - if (isFrameUnusable(cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3)) { - Py_XDECREF(cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3 = MAKE_FUNCTION_FRAME(codeobj_f44960d4216ed8d0e937c723e3b8d8d4, module_models$unet3d$model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3->m_type_description == NULL); - frame_f44960d4216ed8d0e937c723e3b8d8d4_3 = cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f44960d4216ed8d0e937c723e3b8d8d4_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f44960d4216ed8d0e937c723e3b8d8d4_3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[76]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$model$$$function__3___init__(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__2_UNet3D_104, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f44960d4216ed8d0e937c723e3b8d8d4_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f44960d4216ed8d0e937c723e3b8d8d4_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f44960d4216ed8d0e937c723e3b8d8d4_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f44960d4216ed8d0e937c723e3b8d8d4_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f44960d4216ed8d0e937c723e3b8d8d4_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f44960d4216ed8d0e937c723e3b8d8d4_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_f44960d4216ed8d0e937c723e3b8d8d4_3 == cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3); - cache_frame_f44960d4216ed8d0e937c723e3b8d8d4_3 = NULL; - } - - assertFrameObject(frame_f44960d4216ed8d0e937c723e3b8d8d4_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_8; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_8; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__2_UNet3D_104, mod_consts[74], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_8; - } - branch_no_8:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[29]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$unet3d$model$$$class__2_UNet3D_104; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 104; - tmp_assign_source_30 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - - goto try_except_handler_8; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_30; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_29 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_29); - goto try_return_handler_8; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - Py_DECREF(locals_models$unet3d$model$$$class__2_UNet3D_104); - locals_models$unet3d$model$$$class__2_UNet3D_104 = NULL; - goto try_return_handler_7; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$model$$$class__2_UNet3D_104); - locals_models$unet3d$model$$$class__2_UNet3D_104 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_7; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_7:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 104; - goto try_except_handler_6; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[29], tmp_assign_source_29); - } - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_31; - PyObject *tmp_tuple_element_9; - tmp_tuple_element_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_tuple_element_9 == NULL)) { - tmp_tuple_element_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - tmp_assign_source_31 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_31, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_31; - } - { - PyObject *tmp_assign_source_32; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_32 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - tmp_assign_source_33 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[61]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_12 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[15]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_12, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_34 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_34; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[61]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_13 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_13, mod_consts[62]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_35; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_14 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[62]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - tmp_tuple_element_10 = mod_consts[40]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 128; - tmp_assign_source_35 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_15 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_15, mod_consts[63]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[64]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[65]; - tmp_getattr_default_3 = mod_consts[66]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_16; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_16 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_16 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[65]); - Py_DECREF(tmp_expression_name_16); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_9; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_9; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 128; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_9; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_36; - tmp_assign_source_36 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_36; - } - branch_end_10:; - { - PyObject *tmp_assign_source_37; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$model$$$class__3_ResidualUNet3D_128 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[65]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[65]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128, mod_consts[67], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_11; - } - tmp_dictset_value = mod_consts[78]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128, mod_consts[48], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_11; - } - tmp_dictset_value = mod_consts[40]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_11; - } - if (isFrameUnusable(cache_frame_438d3b3c3982ede956dae212fa0b4596_4)) { - Py_XDECREF(cache_frame_438d3b3c3982ede956dae212fa0b4596_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_438d3b3c3982ede956dae212fa0b4596_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_438d3b3c3982ede956dae212fa0b4596_4 = MAKE_FUNCTION_FRAME(codeobj_438d3b3c3982ede956dae212fa0b4596, module_models$unet3d$model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_438d3b3c3982ede956dae212fa0b4596_4->m_type_description == NULL); - frame_438d3b3c3982ede956dae212fa0b4596_4 = cache_frame_438d3b3c3982ede956dae212fa0b4596_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_438d3b3c3982ede956dae212fa0b4596_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_438d3b3c3982ede956dae212fa0b4596_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[79]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$model$$$function__4___init__(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_438d3b3c3982ede956dae212fa0b4596_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_438d3b3c3982ede956dae212fa0b4596_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_438d3b3c3982ede956dae212fa0b4596_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_438d3b3c3982ede956dae212fa0b4596_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_438d3b3c3982ede956dae212fa0b4596_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_438d3b3c3982ede956dae212fa0b4596_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_438d3b3c3982ede956dae212fa0b4596_4 == cache_frame_438d3b3c3982ede956dae212fa0b4596_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_438d3b3c3982ede956dae212fa0b4596_4); - cache_frame_438d3b3c3982ede956dae212fa0b4596_4 = NULL; - } - - assertFrameObject(frame_438d3b3c3982ede956dae212fa0b4596_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_11; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_11; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128, mod_consts[74], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_11; - } - branch_no_12:; - { - PyObject *tmp_assign_source_38; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[40]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$unet3d$model$$$class__3_ResidualUNet3D_128; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 128; - tmp_assign_source_38 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - - goto try_except_handler_11; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_38; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_37 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_37); - goto try_return_handler_11; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - Py_DECREF(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128); - locals_models$unet3d$model$$$class__3_ResidualUNet3D_128 = NULL; - goto try_return_handler_10; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$model$$$class__3_ResidualUNet3D_128); - locals_models$unet3d$model$$$class__3_ResidualUNet3D_128 = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_10; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_10:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 128; - goto try_except_handler_9; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[40], tmp_assign_source_37); - } - goto try_end_5; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto frame_exception_exit_1; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_39; - PyObject *tmp_tuple_element_13; - tmp_tuple_element_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_tuple_element_13 == NULL)) { - tmp_tuple_element_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - tmp_assign_source_39 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_39, 0, tmp_tuple_element_13); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_dircall_arg1_4; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_4); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; - tmp_assign_source_40 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_40; - } - { - PyObject *tmp_assign_source_41; - tmp_assign_source_41 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_41; - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_19; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_20; - int tmp_truth_name_4; - PyObject *tmp_type_arg_7; - PyObject *tmp_expression_name_17; - PyObject *tmp_subscript_name_4; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_19 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[61]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_4 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_4 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - tmp_condition_result_20 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_17 = tmp_class_creation_4__bases; - tmp_subscript_name_4 = mod_consts[15]; - tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_17, tmp_subscript_name_4, 0); - if (tmp_type_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_7); - Py_DECREF(tmp_type_arg_7); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_42 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_42 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_42; - } - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_21 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[61]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - branch_no_13:; - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_expression_name_18; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_18 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_18, mod_consts[62]); - tmp_condition_result_22 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_assign_source_43; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_19 = tmp_class_creation_4__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[62]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - tmp_tuple_element_14 = mod_consts[42]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 151; - tmp_assign_source_43 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_43 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_43; - } - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_20; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_20 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_20, mod_consts[63]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - tmp_condition_result_23 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - } - branch_yes_15:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_15; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[64]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[65]; - tmp_getattr_default_4 = mod_consts[66]; - tmp_tuple_element_15 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_21; - PyObject *tmp_type_arg_8; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_15); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_8 = tmp_class_creation_4__prepared; - tmp_expression_name_21 = BUILTIN_TYPE1(tmp_type_arg_8); - assert(!(tmp_expression_name_21 == NULL)); - tmp_tuple_element_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[65]); - Py_DECREF(tmp_expression_name_21); - if (tmp_tuple_element_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_15); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_12; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_12; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 151; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_12; - } - branch_no_15:; - goto branch_end_14; - branch_no_14:; - { - PyObject *tmp_assign_source_44; - tmp_assign_source_44 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_44; - } - branch_end_14:; - { - PyObject *tmp_assign_source_45; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[65]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[65]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151, mod_consts[67], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_14; - } - tmp_dictset_value = mod_consts[81]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151, mod_consts[48], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_14; - } - tmp_dictset_value = mod_consts[42]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_14; - } - if (isFrameUnusable(cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5)) { - Py_XDECREF(cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5 = MAKE_FUNCTION_FRAME(codeobj_66dcfe6c36e3c070fdf25ab6c2a0819a, module_models$unet3d$model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5->m_type_description == NULL); - frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5 = cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_4; - tmp_defaults_4 = mod_consts[79]; - Py_INCREF(tmp_defaults_4); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$model$$$function__5___init__(tmp_defaults_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_2 = "o"; - goto frame_exception_exit_5; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5 == cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5); - cache_frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5 = NULL; - } - - assertFrameObject(frame_66dcfe6c36e3c070fdf25ab6c2a0819a_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_14; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_24; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_4 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_4 = tmp_class_creation_4__bases_orig; - tmp_condition_result_24 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_condition_result_24 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_14; - } - if (tmp_condition_result_24 == NUITKA_BOOL_TRUE) { - goto branch_yes_16; - } else { - goto branch_no_16; - } - assert(tmp_condition_result_24 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_16:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151, mod_consts[74], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_14; - } - branch_no_16:; - { - PyObject *tmp_assign_source_46; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_16; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_8 = tmp_class_creation_4__metaclass; - tmp_tuple_element_16 = mod_consts[42]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_16 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_16); - tmp_tuple_element_16 = locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_16); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 151; - tmp_assign_source_46 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 151; - - goto try_except_handler_14; - } - assert(outline_3_var___class__ == NULL); - outline_3_var___class__ = tmp_assign_source_46; - } - CHECK_OBJECT(outline_3_var___class__); - tmp_assign_source_45 = outline_3_var___class__; - Py_INCREF(tmp_assign_source_45); - goto try_return_handler_14; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_14:; - Py_DECREF(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151); - locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151 = NULL; - goto try_return_handler_13; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151); - locals_models$unet3d$model$$$class__4_ResidualUNetSE3D_151 = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto try_except_handler_13; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_13:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 151; - goto try_except_handler_12; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[42], tmp_assign_source_45); - } - goto try_end_6; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_47; - PyObject *tmp_tuple_element_17; - tmp_tuple_element_17 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_tuple_element_17 == NULL)) { - tmp_tuple_element_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_tuple_element_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - tmp_assign_source_47 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_47, 0, tmp_tuple_element_17); - assert(tmp_class_creation_5__bases_orig == NULL); - tmp_class_creation_5__bases_orig = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_dircall_arg1_5; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; - Py_INCREF(tmp_dircall_arg1_5); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; - tmp_assign_source_48 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__bases == NULL); - tmp_class_creation_5__bases = tmp_assign_source_48; - } - { - PyObject *tmp_assign_source_49; - tmp_assign_source_49 = PyDict_New(); - assert(tmp_class_creation_5__class_decl_dict == NULL); - tmp_class_creation_5__class_decl_dict = tmp_assign_source_49; - } - { - PyObject *tmp_assign_source_50; - PyObject *tmp_metaclass_name_5; - nuitka_bool tmp_condition_result_25; - PyObject *tmp_key_name_13; - PyObject *tmp_dict_arg_name_13; - PyObject *tmp_dict_arg_name_14; - PyObject *tmp_key_name_14; - nuitka_bool tmp_condition_result_26; - int tmp_truth_name_5; - PyObject *tmp_type_arg_9; - PyObject *tmp_expression_name_22; - PyObject *tmp_subscript_name_5; - PyObject *tmp_bases_name_5; - tmp_key_name_13 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_13 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_13, tmp_key_name_13); - assert(!(tmp_res == -1)); - tmp_condition_result_25 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_25 == NUITKA_BOOL_TRUE) { - goto condexpr_true_9; - } else { - goto condexpr_false_9; - } - condexpr_true_9:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_14 = tmp_class_creation_5__class_decl_dict; - tmp_key_name_14 = mod_consts[61]; - tmp_metaclass_name_5 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_14, tmp_key_name_14); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - goto condexpr_end_9; - condexpr_false_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_truth_name_5 = CHECK_IF_TRUE(tmp_class_creation_5__bases); - if (tmp_truth_name_5 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - tmp_condition_result_26 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_26 == NUITKA_BOOL_TRUE) { - goto condexpr_true_10; - } else { - goto condexpr_false_10; - } - condexpr_true_10:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_expression_name_22 = tmp_class_creation_5__bases; - tmp_subscript_name_5 = mod_consts[15]; - tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_22, tmp_subscript_name_5, 0); - if (tmp_type_arg_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - tmp_metaclass_name_5 = BUILTIN_TYPE1(tmp_type_arg_9); - Py_DECREF(tmp_type_arg_9); - if (tmp_metaclass_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - goto condexpr_end_10; - condexpr_false_10:; - tmp_metaclass_name_5 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_5); - condexpr_end_10:; - condexpr_end_9:; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_bases_name_5 = tmp_class_creation_5__bases; - tmp_assign_source_50 = SELECT_METACLASS(tmp_metaclass_name_5, tmp_bases_name_5); - Py_DECREF(tmp_metaclass_name_5); - if (tmp_assign_source_50 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__metaclass == NULL); - tmp_class_creation_5__metaclass = tmp_assign_source_50; - } - { - nuitka_bool tmp_condition_result_27; - PyObject *tmp_key_name_15; - PyObject *tmp_dict_arg_name_15; - tmp_key_name_15 = mod_consts[61]; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dict_arg_name_15 = tmp_class_creation_5__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_15, tmp_key_name_15); - assert(!(tmp_res == -1)); - tmp_condition_result_27 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_27 == NUITKA_BOOL_TRUE) { - goto branch_yes_17; - } else { - goto branch_no_17; - } - } - branch_yes_17:; - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; - tmp_dictdel_key = mod_consts[61]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - branch_no_17:; - { - nuitka_bool tmp_condition_result_28; - PyObject *tmp_expression_name_23; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_23 = tmp_class_creation_5__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_23, mod_consts[62]); - tmp_condition_result_28 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_28 == NUITKA_BOOL_TRUE) { - goto branch_yes_18; - } else { - goto branch_no_18; - } - } - branch_yes_18:; - { - PyObject *tmp_assign_source_51; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_9; - PyObject *tmp_tuple_element_18; - PyObject *tmp_kwargs_name_9; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_expression_name_24 = tmp_class_creation_5__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[62]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - tmp_tuple_element_18 = mod_consts[44]; - tmp_args_name_9 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_9, 0, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_18 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_9, 1, tmp_tuple_element_18); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_9 = tmp_class_creation_5__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 176; - tmp_assign_source_51 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_9, tmp_kwargs_name_9); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_9); - if (tmp_assign_source_51 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_51; - } - { - nuitka_bool tmp_condition_result_29; - PyObject *tmp_operand_name_5; - PyObject *tmp_expression_name_25; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_expression_name_25 = tmp_class_creation_5__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_25, mod_consts[63]); - tmp_operand_name_5 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_5); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - tmp_condition_result_29 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_29 == NUITKA_BOOL_TRUE) { - goto branch_yes_19; - } else { - goto branch_no_19; - } - } - branch_yes_19:; - { - PyObject *tmp_raise_type_5; - PyObject *tmp_raise_value_5; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - PyObject *tmp_tuple_element_19; - PyObject *tmp_getattr_target_5; - PyObject *tmp_getattr_attr_5; - PyObject *tmp_getattr_default_5; - tmp_raise_type_5 = PyExc_TypeError; - tmp_left_name_5 = mod_consts[64]; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_getattr_target_5 = tmp_class_creation_5__metaclass; - tmp_getattr_attr_5 = mod_consts[65]; - tmp_getattr_default_5 = mod_consts[66]; - tmp_tuple_element_19 = BUILTIN_GETATTR(tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - tmp_right_name_5 = PyTuple_New(2); - { - PyObject *tmp_expression_name_26; - PyObject *tmp_type_arg_10; - PyTuple_SET_ITEM(tmp_right_name_5, 0, tmp_tuple_element_19); - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_type_arg_10 = tmp_class_creation_5__prepared; - tmp_expression_name_26 = BUILTIN_TYPE1(tmp_type_arg_10); - assert(!(tmp_expression_name_26 == NULL)); - tmp_tuple_element_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[65]); - Py_DECREF(tmp_expression_name_26); - if (tmp_tuple_element_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_right_name_5, 1, tmp_tuple_element_19); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_right_name_5); - goto try_except_handler_15; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_raise_value_5 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_5, tmp_right_name_5); - Py_DECREF(tmp_right_name_5); - if (tmp_raise_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_15; - } - exception_type = tmp_raise_type_5; - Py_INCREF(tmp_raise_type_5); - exception_value = tmp_raise_value_5; - exception_lineno = 176; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_15; - } - branch_no_19:; - goto branch_end_18; - branch_no_18:; - { - PyObject *tmp_assign_source_52; - tmp_assign_source_52 = PyDict_New(); - assert(tmp_class_creation_5__prepared == NULL); - tmp_class_creation_5__prepared = tmp_assign_source_52; - } - branch_end_18:; - { - PyObject *tmp_assign_source_53; - { - PyObject *tmp_set_locals_5; - CHECK_OBJECT(tmp_class_creation_5__prepared); - tmp_set_locals_5 = tmp_class_creation_5__prepared; - locals_models$unet3d$model$$$class__5_UNet2D_176 = tmp_set_locals_5; - Py_INCREF(tmp_set_locals_5); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[65]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[65]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__5_UNet2D_176, mod_consts[67], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[83]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__5_UNet2D_176, mod_consts[48], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_17; - } - tmp_dictset_value = mod_consts[44]; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__5_UNet2D_176, mod_consts[69], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_17; - } - if (isFrameUnusable(cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6)) { - Py_XDECREF(cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6 = MAKE_FUNCTION_FRAME(codeobj_c371277ecadaa6cb8a18001c7c4d4b3e, module_models$unet3d$model, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6->m_type_description == NULL); - frame_c371277ecadaa6cb8a18001c7c4d4b3e_6 = cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c371277ecadaa6cb8a18001c7c4d4b3e_6); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c371277ecadaa6cb8a18001c7c4d4b3e_6) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_5; - tmp_defaults_5 = mod_consts[76]; - Py_INCREF(tmp_defaults_5); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$model$$$function__6___init__(tmp_defaults_5); - - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__5_UNet2D_176, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 182; - type_description_2 = "o"; - goto frame_exception_exit_6; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c371277ecadaa6cb8a18001c7c4d4b3e_6); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_5; - - frame_exception_exit_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c371277ecadaa6cb8a18001c7c4d4b3e_6); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c371277ecadaa6cb8a18001c7c4d4b3e_6, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c371277ecadaa6cb8a18001c7c4d4b3e_6->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c371277ecadaa6cb8a18001c7c4d4b3e_6, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c371277ecadaa6cb8a18001c7c4d4b3e_6, - type_description_2, - outline_4_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_c371277ecadaa6cb8a18001c7c4d4b3e_6 == cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6); - cache_frame_c371277ecadaa6cb8a18001c7c4d4b3e_6 = NULL; - } - - assertFrameObject(frame_c371277ecadaa6cb8a18001c7c4d4b3e_6); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_5; - - frame_no_exception_5:; - goto skip_nested_handling_5; - nested_frame_exit_5:; - - goto try_except_handler_17; - skip_nested_handling_5:; - { - nuitka_bool tmp_condition_result_30; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_compexpr_left_5 = tmp_class_creation_5__bases; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_compexpr_right_5 = tmp_class_creation_5__bases_orig; - tmp_condition_result_30 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_condition_result_30 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_17; - } - if (tmp_condition_result_30 == NUITKA_BOOL_TRUE) { - goto branch_yes_20; - } else { - goto branch_no_20; - } - assert(tmp_condition_result_30 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_20:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - tmp_dictset_value = tmp_class_creation_5__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$model$$$class__5_UNet2D_176, mod_consts[74], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_17; - } - branch_no_20:; - { - PyObject *tmp_assign_source_54; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_10; - PyObject *tmp_tuple_element_20; - PyObject *tmp_kwargs_name_10; - CHECK_OBJECT(tmp_class_creation_5__metaclass); - tmp_called_name_10 = tmp_class_creation_5__metaclass; - tmp_tuple_element_20 = mod_consts[44]; - tmp_args_name_10 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_10, 0, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__bases); - tmp_tuple_element_20 = tmp_class_creation_5__bases; - PyTuple_SET_ITEM0(tmp_args_name_10, 1, tmp_tuple_element_20); - tmp_tuple_element_20 = locals_models$unet3d$model$$$class__5_UNet2D_176; - PyTuple_SET_ITEM0(tmp_args_name_10, 2, tmp_tuple_element_20); - CHECK_OBJECT(tmp_class_creation_5__class_decl_dict); - tmp_kwargs_name_10 = tmp_class_creation_5__class_decl_dict; - frame_538bf138f16ddd30bd4432efc7d5498a->m_frame.f_lineno = 176; - tmp_assign_source_54 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_10, tmp_kwargs_name_10); - Py_DECREF(tmp_args_name_10); - if (tmp_assign_source_54 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - - goto try_except_handler_17; - } - assert(outline_4_var___class__ == NULL); - outline_4_var___class__ = tmp_assign_source_54; - } - CHECK_OBJECT(outline_4_var___class__); - tmp_assign_source_53 = outline_4_var___class__; - Py_INCREF(tmp_assign_source_53); - goto try_return_handler_17; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_17:; - Py_DECREF(locals_models$unet3d$model$$$class__5_UNet2D_176); - locals_models$unet3d$model$$$class__5_UNet2D_176 = NULL; - goto try_return_handler_16; - // Exception handler code: - try_except_handler_17:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$model$$$class__5_UNet2D_176); - locals_models$unet3d$model$$$class__5_UNet2D_176 = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto try_except_handler_16; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_16:; - CHECK_OBJECT(outline_4_var___class__); - Py_DECREF(outline_4_var___class__); - outline_4_var___class__ = NULL; - goto outline_result_5; - // Exception handler code: - try_except_handler_16:; - exception_keeper_type_16 = exception_type; - exception_keeper_value_16 = exception_value; - exception_keeper_tb_16 = exception_tb; - exception_keeper_lineno_16 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_16; - exception_value = exception_keeper_value_16; - exception_tb = exception_keeper_tb_16; - exception_lineno = exception_keeper_lineno_16; - - goto outline_exception_5; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_5:; - exception_lineno = 176; - goto try_except_handler_15; - outline_result_5:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[44], tmp_assign_source_53); - } - goto try_end_7; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_17 = exception_type; - exception_keeper_value_17 = exception_value; - exception_keeper_tb_17 = exception_tb; - exception_keeper_lineno_17 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - Py_XDECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_17; - exception_value = exception_keeper_value_17; - exception_tb = exception_keeper_tb_17; - exception_lineno = exception_keeper_lineno_17; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_538bf138f16ddd30bd4432efc7d5498a); -#endif - popFrameStack(); - - assertFrameObject(frame_538bf138f16ddd30bd4432efc7d5498a); - - goto frame_no_exception_6; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_538bf138f16ddd30bd4432efc7d5498a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_538bf138f16ddd30bd4432efc7d5498a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_538bf138f16ddd30bd4432efc7d5498a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_538bf138f16ddd30bd4432efc7d5498a, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_6:; - CHECK_OBJECT(tmp_class_creation_5__bases_orig); - Py_DECREF(tmp_class_creation_5__bases_orig); - tmp_class_creation_5__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_5__bases); - tmp_class_creation_5__bases = NULL; - Py_XDECREF(tmp_class_creation_5__class_decl_dict); - tmp_class_creation_5__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_5__metaclass); - tmp_class_creation_5__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_5__prepared); - Py_DECREF(tmp_class_creation_5__prepared); - tmp_class_creation_5__prepared = NULL; - { - PyObject *tmp_assign_source_55; - - - tmp_assign_source_55 = MAKE_FUNCTION_models$unet3d$model$$$function__7_get_model(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$model, (Nuitka_StringObject *)mod_consts[85], tmp_assign_source_55); - } - - return module_models$unet3d$model; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.predictor.const b/medomni/models.build/module.models.unet3d.predictor.const deleted file mode 100644 index b1a44d8fba24636da378a2fc170b98bd0950bf8d..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.predictor.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.predictor.cpp b/medomni/models.build/module.models.unet3d.predictor.cpp deleted file mode 100644 index 5977f6b1b80bd26782737f5db67d008559fa5c40..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.predictor.cpp +++ /dev/null @@ -1,18169 +0,0 @@ -/* Generated code for Python module 'models.unet3d.predictor' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$predictor" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$predictor; -PyDictObject *moduledict_models$unet3d$predictor; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[216]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.predictor")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$predictor(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.predictor"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_63b960195e39bc165f63de7fa2cab847; -static PyCodeObject *codeobj_5e0c7d03dd4bae0660fe38f64d474d39; -static PyCodeObject *codeobj_fe4d8960e59865f68d63911a210b309b; -static PyCodeObject *codeobj_654ac4e36b1ceb797e7f7b084a3adade; -static PyCodeObject *codeobj_c4266b88ebda23201522fdf805d2c1a0; -static PyCodeObject *codeobj_d22562c3c8d13a87206feda6eb48d1fb; -static PyCodeObject *codeobj_f6cc4d43175142ef596c007b051512dc; -static PyCodeObject *codeobj_12e22a3ebd81123517bf550395e990d0; -static PyCodeObject *codeobj_e6cb236fb3fdabaf9c6ffb55bc474219; -static PyCodeObject *codeobj_80a71c310d45263d95d2a410d98e469a; -static PyCodeObject *codeobj_705bda7d6673d7b7394952127174c725; -static PyCodeObject *codeobj_dcd17f5afd82ae6840c9b24712bd4189; -static PyCodeObject *codeobj_1f99e51ff5df2510c2b0ace52698561d; -static PyCodeObject *codeobj_9acb737f0b5b77657e415d5b3f608a87; -static PyCodeObject *codeobj_f2b89732675bda34182075fd0575336f; -static PyCodeObject *codeobj_68e1784c45ce56b7a898263ca3d286b3; -static PyCodeObject *codeobj_7298cf55343e2cf941e7ce2ab35cccff; -static PyCodeObject *codeobj_989443e4e43d7438067f39a09157b360; -static PyCodeObject *codeobj_99c2b4b393370469d449fa5be8ea39af; -static PyCodeObject *codeobj_e718675254b06885e1aa7656b16dec34; -static PyCodeObject *codeobj_22cdd3268e91283d209035484befb961; -static PyCodeObject *codeobj_930c7addf8d4e8ab57ac0d86a59b45e9; -static PyCodeObject *codeobj_07cbe57c14d20fc9570d667e537912d9; -static PyCodeObject *codeobj_1205504d193825f9e92bff64879ca97f; -static PyCodeObject *codeobj_46d152c9497b774acdf337c98dc16053; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[194]); CHECK_OBJECT(module_filename_obj); - codeobj_63b960195e39bc165f63de7fa2cab847 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[195], NULL, NULL, 0, 0, 0); - codeobj_5e0c7d03dd4bae0660fe38f64d474d39 = MAKE_CODEOBJECT(module_filename_obj, 233, CO_NOFREE, mod_consts[188], mod_consts[196], NULL, 0, 0, 0); - codeobj_fe4d8960e59865f68d63911a210b309b = MAKE_CODEOBJECT(module_filename_obj, 191, CO_NOFREE, mod_consts[183], mod_consts[196], NULL, 0, 0, 0); - codeobj_654ac4e36b1ceb797e7f7b084a3adade = MAKE_CODEOBJECT(module_filename_obj, 57, CO_NOFREE, mod_consts[176], mod_consts[196], NULL, 0, 0, 0); - codeobj_c4266b88ebda23201522fdf805d2c1a0 = MAKE_CODEOBJECT(module_filename_obj, 38, CO_NOFREE, mod_consts[169], mod_consts[196], NULL, 0, 0, 0); - codeobj_d22562c3c8d13a87206feda6eb48d1fb = MAKE_CODEOBJECT(module_filename_obj, 53, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[174], mod_consts[197], NULL, 2, 0, 0); - codeobj_f6cc4d43175142ef596c007b051512dc = MAKE_CODEOBJECT(module_filename_obj, 245, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[174], mod_consts[198], NULL, 2, 0, 0); - codeobj_12e22a3ebd81123517bf550395e990d0 = MAKE_CODEOBJECT(module_filename_obj, 75, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[174], mod_consts[199], NULL, 2, 0, 0); - codeobj_e6cb236fb3fdabaf9c6ffb55bc474219 = MAKE_CODEOBJECT(module_filename_obj, 39, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[25], mod_consts[200], NULL, 4, 0, 0); - codeobj_80a71c310d45263d95d2a410d98e469a = MAKE_CODEOBJECT(module_filename_obj, 72, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[25], mod_consts[201], mod_consts[196], 4, 0, 0); - codeobj_705bda7d6673d7b7394952127174c725 = MAKE_CODEOBJECT(module_filename_obj, 207, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[25], mod_consts[201], mod_consts[196], 4, 0, 0); - codeobj_dcd17f5afd82ae6840c9b24712bd4189 = MAKE_CODEOBJECT(module_filename_obj, 234, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[25], mod_consts[202], mod_consts[196], 6, 0, 0); - codeobj_1f99e51ff5df2510c2b0ace52698561d = MAKE_CODEOBJECT(module_filename_obj, 210, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[52], mod_consts[203], NULL, 3, 0, 0); - codeobj_9acb737f0b5b77657e415d5b3f608a87 = MAKE_CODEOBJECT(module_filename_obj, 161, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[52], mod_consts[204], NULL, 3, 0, 0); - codeobj_f2b89732675bda34182075fd0575336f = MAKE_CODEOBJECT(module_filename_obj, 28, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[92], mod_consts[205], NULL, 2, 0, 0); - codeobj_68e1784c45ce56b7a898263ca3d286b3 = MAKE_CODEOBJECT(module_filename_obj, 20, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[47], mod_consts[206], NULL, 3, 0, 0); - codeobj_7298cf55343e2cf941e7ce2ab35cccff = MAKE_CODEOBJECT(module_filename_obj, 32, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[46], mod_consts[207], NULL, 1, 0, 0); - codeobj_989443e4e43d7438067f39a09157b360 = MAKE_CODEOBJECT(module_filename_obj, 174, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[62], mod_consts[208], NULL, 2, 0, 0); - codeobj_99c2b4b393370469d449fa5be8ea39af = MAKE_CODEOBJECT(module_filename_obj, 270, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[125], mod_consts[209], mod_consts[210], 1, 0, 0); - codeobj_e718675254b06885e1aa7656b16dec34 = MAKE_CODEOBJECT(module_filename_obj, 168, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[85], mod_consts[211], NULL, 5, 0, 0); - codeobj_22cdd3268e91283d209035484befb961 = MAKE_CODEOBJECT(module_filename_obj, 220, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[85], mod_consts[212], NULL, 5, 0, 0); - codeobj_930c7addf8d4e8ab57ac0d86a59b45e9 = MAKE_CODEOBJECT(module_filename_obj, 239, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[191], mod_consts[213], NULL, 2, 0, 0); - codeobj_07cbe57c14d20fc9570d667e537912d9 = MAKE_CODEOBJECT(module_filename_obj, 181, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[67], mod_consts[208], NULL, 2, 0, 0); - codeobj_1205504d193825f9e92bff64879ca97f = MAKE_CODEOBJECT(module_filename_obj, 269, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[120], mod_consts[214], NULL, 5, 0, 0); - codeobj_46d152c9497b774acdf337c98dc16053 = MAKE_CODEOBJECT(module_filename_obj, 46, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[41], mod_consts[215], NULL, 1, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__9_complex_call_helper_pos_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__10__save_results(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__11__pad(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__12__unpad(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__13___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__14__allocate_prediction_maps(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__15__save_results(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__16___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__17__slice_from_pad(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__18___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__19_dsb_save_batch(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__19_dsb_save_batch$$$function__1__pmaps_to_seg(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__1__get_output_file(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__2__get_dataset_name(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__3__is_2d_model(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__4___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__5_volume_shape(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__6___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__7___init__(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__8___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__9__allocate_prediction_maps(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$predictor$$$function__1__get_output_file(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_dataset = python_pars[0]; - PyObject *par_suffix = python_pars[1]; - PyObject *par_output_dir = python_pars[2]; - PyObject *var_input_dir = NULL; - PyObject *var_file_name = NULL; - PyObject *var_output_file = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_68e1784c45ce56b7a898263ca3d286b3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_68e1784c45ce56b7a898263ca3d286b3 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_68e1784c45ce56b7a898263ca3d286b3)) { - Py_XDECREF(cache_frame_68e1784c45ce56b7a898263ca3d286b3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_68e1784c45ce56b7a898263ca3d286b3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_68e1784c45ce56b7a898263ca3d286b3 = MAKE_FUNCTION_FRAME(codeobj_68e1784c45ce56b7a898263ca3d286b3, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_68e1784c45ce56b7a898263ca3d286b3->m_type_description == NULL); - frame_68e1784c45ce56b7a898263ca3d286b3 = cache_frame_68e1784c45ce56b7a898263ca3d286b3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_68e1784c45ce56b7a898263ca3d286b3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_68e1784c45ce56b7a898263ca3d286b3) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_3; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[1]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[2]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_dataset); - tmp_expression_name_3 = par_dataset; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[3]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 21; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_68e1784c45ce56b7a898263ca3d286b3->m_frame.f_lineno = 21; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 21; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 21; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 21; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[4]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 21; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var_input_dir == NULL); - Py_INCREF(tmp_assign_source_4); - var_input_dir = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_file_name == NULL); - Py_INCREF(tmp_assign_source_5); - var_file_name = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_output_dir); - tmp_compexpr_left_1 = par_output_dir; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(var_input_dir); - tmp_assign_source_6 = var_input_dir; - { - PyObject *old = par_output_dir; - assert(old != NULL); - par_output_dir = tmp_assign_source_6; - Py_INCREF(par_output_dir); - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_4; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_right_name_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[1]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[5]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_output_dir); - tmp_args_element_name_2 = par_output_dir; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[1]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_file_name); - tmp_args_element_name_4 = var_file_name; - frame_68e1784c45ce56b7a898263ca3d286b3->m_frame.f_lineno = 24; - tmp_expression_name_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[6], tmp_args_element_name_4); - Py_DECREF(tmp_called_instance_1); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[7]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_6); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_suffix); - tmp_right_name_1 = par_suffix; - tmp_left_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_left_name_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = mod_consts[8]; - tmp_args_element_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_68e1784c45ce56b7a898263ca3d286b3->m_frame.f_lineno = 24; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_7 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_output_file == NULL); - var_output_file = tmp_assign_source_7; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_68e1784c45ce56b7a898263ca3d286b3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_68e1784c45ce56b7a898263ca3d286b3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_68e1784c45ce56b7a898263ca3d286b3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_68e1784c45ce56b7a898263ca3d286b3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_68e1784c45ce56b7a898263ca3d286b3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_68e1784c45ce56b7a898263ca3d286b3, - type_description_1, - par_dataset, - par_suffix, - par_output_dir, - var_input_dir, - var_file_name, - var_output_file - ); - - - // Release cached frame if used for exception. - if (frame_68e1784c45ce56b7a898263ca3d286b3 == cache_frame_68e1784c45ce56b7a898263ca3d286b3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_68e1784c45ce56b7a898263ca3d286b3); - cache_frame_68e1784c45ce56b7a898263ca3d286b3 = NULL; - } - - assertFrameObject(frame_68e1784c45ce56b7a898263ca3d286b3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_output_file); - tmp_return_value = var_output_file; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(par_suffix); - par_suffix = NULL; - Py_XDECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(var_input_dir); - Py_DECREF(var_input_dir); - var_input_dir = NULL; - Py_XDECREF(var_file_name); - var_file_name = NULL; - CHECK_OBJECT(var_output_file); - Py_DECREF(var_output_file); - var_output_file = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(par_suffix); - par_suffix = NULL; - Py_XDECREF(par_output_dir); - par_output_dir = NULL; - Py_XDECREF(var_input_dir); - var_input_dir = NULL; - Py_XDECREF(var_file_name); - var_file_name = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__2__get_dataset_name(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config = python_pars[0]; - PyObject *par_prefix = python_pars[1]; - struct Nuitka_FrameObject *frame_f2b89732675bda34182075fd0575336f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_f2b89732675bda34182075fd0575336f = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f2b89732675bda34182075fd0575336f)) { - Py_XDECREF(cache_frame_f2b89732675bda34182075fd0575336f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f2b89732675bda34182075fd0575336f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f2b89732675bda34182075fd0575336f = MAKE_FUNCTION_FRAME(codeobj_f2b89732675bda34182075fd0575336f, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f2b89732675bda34182075fd0575336f->m_type_description == NULL); - frame_f2b89732675bda34182075fd0575336f = cache_frame_f2b89732675bda34182075fd0575336f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f2b89732675bda34182075fd0575336f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f2b89732675bda34182075fd0575336f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_config); - tmp_called_instance_1 = par_config; - frame_f2b89732675bda34182075fd0575336f->m_frame.f_lineno = 29; - tmp_return_value = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[9], - &PyTuple_GET_ITEM(mod_consts[10], 0) - ); - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2b89732675bda34182075fd0575336f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2b89732675bda34182075fd0575336f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f2b89732675bda34182075fd0575336f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f2b89732675bda34182075fd0575336f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f2b89732675bda34182075fd0575336f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f2b89732675bda34182075fd0575336f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f2b89732675bda34182075fd0575336f, - type_description_1, - par_config, - par_prefix - ); - - - // Release cached frame if used for exception. - if (frame_f2b89732675bda34182075fd0575336f == cache_frame_f2b89732675bda34182075fd0575336f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f2b89732675bda34182075fd0575336f); - cache_frame_f2b89732675bda34182075fd0575336f = NULL; - } - - assertFrameObject(frame_f2b89732675bda34182075fd0575336f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_prefix); - Py_DECREF(par_prefix); - par_prefix = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_prefix); - Py_DECREF(par_prefix); - par_prefix = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__3__is_2d_model(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - struct Nuitka_FrameObject *frame_7298cf55343e2cf941e7ce2ab35cccff; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_7298cf55343e2cf941e7ce2ab35cccff = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7298cf55343e2cf941e7ce2ab35cccff)) { - Py_XDECREF(cache_frame_7298cf55343e2cf941e7ce2ab35cccff); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7298cf55343e2cf941e7ce2ab35cccff == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7298cf55343e2cf941e7ce2ab35cccff = MAKE_FUNCTION_FRAME(codeobj_7298cf55343e2cf941e7ce2ab35cccff, module_models$unet3d$predictor, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7298cf55343e2cf941e7ce2ab35cccff->m_type_description == NULL); - frame_7298cf55343e2cf941e7ce2ab35cccff = cache_frame_7298cf55343e2cf941e7ce2ab35cccff; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7298cf55343e2cf941e7ce2ab35cccff); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7298cf55343e2cf941e7ce2ab35cccff) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_model); - tmp_isinstance_inst_1 = par_model; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[11]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[11]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_model); - tmp_expression_name_2 = par_model; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[13]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_model; - par_model = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - CHECK_OBJECT(par_model); - tmp_isinstance_inst_2 = par_model; - tmp_isinstance_cls_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[14]); - - if (unlikely(tmp_isinstance_cls_2 == NULL)) { - tmp_isinstance_cls_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[14]); - } - - if (tmp_isinstance_cls_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_return_value = (tmp_res != 0) ? Py_True : Py_False; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7298cf55343e2cf941e7ce2ab35cccff); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7298cf55343e2cf941e7ce2ab35cccff); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7298cf55343e2cf941e7ce2ab35cccff); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7298cf55343e2cf941e7ce2ab35cccff, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7298cf55343e2cf941e7ce2ab35cccff->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7298cf55343e2cf941e7ce2ab35cccff, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7298cf55343e2cf941e7ce2ab35cccff, - type_description_1, - par_model - ); - - - // Release cached frame if used for exception. - if (frame_7298cf55343e2cf941e7ce2ab35cccff == cache_frame_7298cf55343e2cf941e7ce2ab35cccff) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7298cf55343e2cf941e7ce2ab35cccff); - cache_frame_7298cf55343e2cf941e7ce2ab35cccff = NULL; - } - - assertFrameObject(frame_7298cf55343e2cf941e7ce2ab35cccff); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__4___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *par_output_dir = python_pars[2]; - PyObject *par_config = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_e6cb236fb3fdabaf9c6ffb55bc474219; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219)) { - Py_XDECREF(cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219 = MAKE_FUNCTION_FRAME(codeobj_e6cb236fb3fdabaf9c6ffb55bc474219, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219->m_type_description == NULL); - frame_e6cb236fb3fdabaf9c6ffb55bc474219 = cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e6cb236fb3fdabaf9c6ffb55bc474219); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e6cb236fb3fdabaf9c6ffb55bc474219) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_model); - tmp_assattr_name_1 = par_model; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[15], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_output_dir); - tmp_assattr_name_2 = par_output_dir; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[16], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_config); - tmp_assattr_name_3 = par_config; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[17], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_kwargs); - tmp_assattr_name_4 = par_kwargs; - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[18], tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e6cb236fb3fdabaf9c6ffb55bc474219); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e6cb236fb3fdabaf9c6ffb55bc474219); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e6cb236fb3fdabaf9c6ffb55bc474219, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e6cb236fb3fdabaf9c6ffb55bc474219->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e6cb236fb3fdabaf9c6ffb55bc474219, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e6cb236fb3fdabaf9c6ffb55bc474219, - type_description_1, - par_self, - par_model, - par_output_dir, - par_config, - par_kwargs - ); - - - // Release cached frame if used for exception. - if (frame_e6cb236fb3fdabaf9c6ffb55bc474219 == cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219); - cache_frame_e6cb236fb3fdabaf9c6ffb55bc474219 = NULL; - } - - assertFrameObject(frame_e6cb236fb3fdabaf9c6ffb55bc474219); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__5_volume_shape(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_dataset = python_pars[0]; - PyObject *var_raw = NULL; - struct Nuitka_FrameObject *frame_46d152c9497b774acdf337c98dc16053; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_46d152c9497b774acdf337c98dc16053 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_46d152c9497b774acdf337c98dc16053)) { - Py_XDECREF(cache_frame_46d152c9497b774acdf337c98dc16053); - -#if _DEBUG_REFCOUNTS - if (cache_frame_46d152c9497b774acdf337c98dc16053 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_46d152c9497b774acdf337c98dc16053 = MAKE_FUNCTION_FRAME(codeobj_46d152c9497b774acdf337c98dc16053, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_46d152c9497b774acdf337c98dc16053->m_type_description == NULL); - frame_46d152c9497b774acdf337c98dc16053 = cache_frame_46d152c9497b774acdf337c98dc16053; - - // Push the new frame as the currently active one. - pushFrameStack(frame_46d152c9497b774acdf337c98dc16053); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_46d152c9497b774acdf337c98dc16053) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_dataset); - tmp_expression_name_1 = par_dataset; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[19]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - assert(var_raw == NULL); - var_raw = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_raw); - tmp_expression_name_2 = var_raw; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[20]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[21]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 48; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_expression_name_3; - if (var_raw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = var_raw; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[22]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_1; - if (var_raw == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 51; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = var_raw; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[22]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[23]; - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_46d152c9497b774acdf337c98dc16053); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_46d152c9497b774acdf337c98dc16053); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_46d152c9497b774acdf337c98dc16053); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_46d152c9497b774acdf337c98dc16053, exception_lineno); - } else if (exception_tb->tb_frame != &frame_46d152c9497b774acdf337c98dc16053->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_46d152c9497b774acdf337c98dc16053, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_46d152c9497b774acdf337c98dc16053, - type_description_1, - par_dataset, - var_raw - ); - - - // Release cached frame if used for exception. - if (frame_46d152c9497b774acdf337c98dc16053 == cache_frame_46d152c9497b774acdf337c98dc16053) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_46d152c9497b774acdf337c98dc16053); - cache_frame_46d152c9497b774acdf337c98dc16053 = NULL; - } - - assertFrameObject(frame_46d152c9497b774acdf337c98dc16053); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(var_raw); - var_raw = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(var_raw); - var_raw = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__6___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_test_loader = python_pars[1]; - struct Nuitka_FrameObject *frame_d22562c3c8d13a87206feda6eb48d1fb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_d22562c3c8d13a87206feda6eb48d1fb = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d22562c3c8d13a87206feda6eb48d1fb)) { - Py_XDECREF(cache_frame_d22562c3c8d13a87206feda6eb48d1fb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d22562c3c8d13a87206feda6eb48d1fb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d22562c3c8d13a87206feda6eb48d1fb = MAKE_FUNCTION_FRAME(codeobj_d22562c3c8d13a87206feda6eb48d1fb, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d22562c3c8d13a87206feda6eb48d1fb->m_type_description == NULL); - frame_d22562c3c8d13a87206feda6eb48d1fb = cache_frame_d22562c3c8d13a87206feda6eb48d1fb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d22562c3c8d13a87206feda6eb48d1fb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d22562c3c8d13a87206feda6eb48d1fb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 54; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d22562c3c8d13a87206feda6eb48d1fb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d22562c3c8d13a87206feda6eb48d1fb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d22562c3c8d13a87206feda6eb48d1fb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d22562c3c8d13a87206feda6eb48d1fb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d22562c3c8d13a87206feda6eb48d1fb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d22562c3c8d13a87206feda6eb48d1fb, - type_description_1, - par_self, - par_test_loader - ); - - - // Release cached frame if used for exception. - if (frame_d22562c3c8d13a87206feda6eb48d1fb == cache_frame_d22562c3c8d13a87206feda6eb48d1fb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d22562c3c8d13a87206feda6eb48d1fb); - cache_frame_d22562c3c8d13a87206feda6eb48d1fb = NULL; - } - - assertFrameObject(frame_d22562c3c8d13a87206feda6eb48d1fb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_test_loader); - Py_DECREF(par_test_loader); - par_test_loader = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$unet3d$predictor$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *par_output_dir = python_pars[2]; - PyObject *par_config = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_80a71c310d45263d95d2a410d98e469a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_80a71c310d45263d95d2a410d98e469a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_80a71c310d45263d95d2a410d98e469a)) { - Py_XDECREF(cache_frame_80a71c310d45263d95d2a410d98e469a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_80a71c310d45263d95d2a410d98e469a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_80a71c310d45263d95d2a410d98e469a = MAKE_FUNCTION_FRAME(codeobj_80a71c310d45263d95d2a410d98e469a, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_80a71c310d45263d95d2a410d98e469a->m_type_description == NULL); - frame_80a71c310d45263d95d2a410d98e469a = cache_frame_80a71c310d45263d95d2a410d98e469a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_80a71c310d45263d95d2a410d98e469a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_80a71c310d45263d95d2a410d98e469a) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[25]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model); - tmp_tuple_element_1 = par_model; - tmp_dircall_arg2_1 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_output_dir); - tmp_tuple_element_1 = par_output_dir; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 1, tmp_tuple_element_1); - CHECK_OBJECT(par_config); - tmp_tuple_element_1 = par_config; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 2, tmp_tuple_element_1); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__9_complex_call_helper_pos_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80a71c310d45263d95d2a410d98e469a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80a71c310d45263d95d2a410d98e469a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_80a71c310d45263d95d2a410d98e469a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_80a71c310d45263d95d2a410d98e469a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_80a71c310d45263d95d2a410d98e469a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_80a71c310d45263d95d2a410d98e469a, - type_description_1, - par_self, - par_model, - par_output_dir, - par_config, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_80a71c310d45263d95d2a410d98e469a == cache_frame_80a71c310d45263d95d2a410d98e469a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_80a71c310d45263d95d2a410d98e469a); - cache_frame_80a71c310d45263d95d2a410d98e469a = NULL; - } - - assertFrameObject(frame_80a71c310d45263d95d2a410d98e469a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__8___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_test_loader = python_pars[1]; - PyObject *var_start = NULL; - PyObject *var_prediction_channel = NULL; - PyObject *var_volume_shape = NULL; - PyObject *var_out_channels = NULL; - PyObject *var_prediction_maps_shape = NULL; - PyObject *var_patch_halo = NULL; - PyObject *var_output_file = NULL; - PyObject *var_h5_output_file = NULL; - PyObject *var_prediction_map = NULL; - PyObject *var_normalization_mask = NULL; - PyObject *var_input = NULL; - PyObject *var_indices = NULL; - PyObject *var_prediction = NULL; - PyObject *var_pred = NULL; - PyObject *var_index = NULL; - PyObject *var_channel_slice = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_inplace_assign_subscr_1__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_1__target = NULL; - PyObject *tmp_inplace_assign_subscr_1__value = NULL; - PyObject *tmp_inplace_assign_subscr_2__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_2__target = NULL; - PyObject *tmp_inplace_assign_subscr_2__value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_12e22a3ebd81123517bf550395e990d0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - bool tmp_result; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - PyObject *exception_keeper_type_14; - PyObject *exception_keeper_value_14; - PyTracebackObject *exception_keeper_tb_14; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; - static struct Nuitka_FrameObject *cache_frame_12e22a3ebd81123517bf550395e990d0 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_15; - PyObject *exception_keeper_value_15; - PyTracebackObject *exception_keeper_tb_15; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_12e22a3ebd81123517bf550395e990d0)) { - Py_XDECREF(cache_frame_12e22a3ebd81123517bf550395e990d0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_12e22a3ebd81123517bf550395e990d0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_12e22a3ebd81123517bf550395e990d0 = MAKE_FUNCTION_FRAME(codeobj_12e22a3ebd81123517bf550395e990d0, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_12e22a3ebd81123517bf550395e990d0->m_type_description == NULL); - frame_12e22a3ebd81123517bf550395e990d0 = cache_frame_12e22a3ebd81123517bf550395e990d0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_12e22a3ebd81123517bf550395e990d0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_12e22a3ebd81123517bf550395e990d0) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_test_loader); - tmp_expression_name_1 = par_test_loader; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[26]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[27]); - - if (unlikely(tmp_isinstance_cls_1 == NULL)) { - tmp_isinstance_cls_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[27]); - } - - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 76; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[29]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[30]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_test_loader == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_4 = par_test_loader; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[26]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[3]); - Py_DECREF(tmp_expression_name_3); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[32]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[33]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 77; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 78; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[34]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_start == NULL); - var_start = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[17]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 80; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[9], - &PyTuple_GET_ITEM(mod_consts[35], 0) - ); - - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_channel == NULL); - var_prediction_channel = tmp_assign_source_2; - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_prediction_channel); - tmp_compexpr_left_1 = var_prediction_channel; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[29]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[36]; - tmp_string_concat_values_2 = PyTuple_New(3); - { - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_prediction_channel); - tmp_format_value_2 = var_prediction_channel; - tmp_format_spec_2 = mod_consts[32]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[37]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_string_concat_values_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_2 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 82; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 82; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_2:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_string_concat_values_3; - PyObject *tmp_tuple_element_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[29]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = mod_consts[38]; - tmp_string_concat_values_3 = PyTuple_New(3); - { - PyObject *tmp_format_value_3; - PyObject *tmp_len_arg_1; - PyObject *tmp_format_spec_3; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 0, tmp_tuple_element_3); - if (par_test_loader == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_len_arg_1 = par_test_loader; - tmp_format_value_3 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_format_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_format_spec_3 = mod_consts[32]; - tmp_tuple_element_3 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - Py_DECREF(tmp_format_value_3); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 1, tmp_tuple_element_3); - tmp_tuple_element_3 = mod_consts[39]; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 2, tmp_tuple_element_3); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_string_concat_values_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_args_element_name_3 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_3); - Py_DECREF(tmp_string_concat_values_3); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 84; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 84; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[41]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_test_loader == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_test_loader; - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[26]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 87; - tmp_assign_source_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_volume_shape == NULL); - var_volume_shape = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_expression_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[17]); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[15]; - tmp_called_instance_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_10); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 88; - tmp_assign_source_4 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[9], - &PyTuple_GET_ITEM(mod_consts[42], 0) - ); - - Py_DECREF(tmp_called_instance_3); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_out_channels == NULL); - var_out_channels = tmp_assign_source_4; - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(var_prediction_channel); - tmp_compexpr_left_2 = var_prediction_channel; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_left_name_1; - PyObject *tmp_tuple_element_4; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_out_channels); - tmp_tuple_element_4 = var_out_channels; - tmp_left_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_1, 0, tmp_tuple_element_4); - CHECK_OBJECT(var_volume_shape); - tmp_right_name_1 = var_volume_shape; - tmp_assign_source_5 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_maps_shape == NULL); - var_prediction_maps_shape = tmp_assign_source_5; - } - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - tmp_left_name_2 = mod_consts[43]; - CHECK_OBJECT(var_volume_shape); - tmp_right_name_2 = var_volume_shape; - tmp_assign_source_6 = BINARY_OPERATION_ADD_OBJECT_TUPLE_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 93; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_maps_shape == NULL); - var_prediction_maps_shape = tmp_assign_source_6; - } - branch_end_3:; - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_string_concat_values_4; - PyObject *tmp_tuple_element_5; - tmp_expression_name_12 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_12 == NULL)) { - tmp_expression_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[29]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_5 = mod_consts[44]; - tmp_string_concat_values_4 = PyTuple_New(2); - { - PyObject *tmp_format_value_4; - PyObject *tmp_format_spec_4; - PyTuple_SET_ITEM0(tmp_string_concat_values_4, 0, tmp_tuple_element_5); - CHECK_OBJECT(var_prediction_maps_shape); - tmp_format_value_4 = var_prediction_maps_shape; - tmp_format_spec_4 = mod_consts[32]; - tmp_tuple_element_5 = BUILTIN_FORMAT(tmp_format_value_4, tmp_format_spec_4); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_string_concat_values_4, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_string_concat_values_4); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_args_element_name_5 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_4); - Py_DECREF(tmp_string_concat_values_4); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 95; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_13 = par_self; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[18]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 98; - tmp_assign_source_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[9], - &PyTuple_GET_ITEM(mod_consts[45], 0) - ); - - Py_DECREF(tmp_called_instance_4); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_patch_halo == NULL); - var_patch_halo = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_called_name_6; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_14; - int tmp_truth_name_1; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[46]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[46]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_self; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[15]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 99; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_5); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_5); - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_4 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_5); - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_list_arg_1; - CHECK_OBJECT(var_patch_halo); - tmp_list_arg_1 = var_patch_halo; - tmp_assign_source_8 = MAKE_LIST(tmp_list_arg_1); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_patch_halo; - assert(old != NULL); - var_patch_halo = tmp_assign_source_8; - Py_DECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - int tmp_ass_subscript_res_1; - tmp_ass_subvalue_1 = mod_consts[7]; - CHECK_OBJECT(var_patch_halo); - tmp_ass_subscribed_1 = var_patch_halo; - tmp_ass_subscript_1 = mod_consts[7]; - tmp_ass_subscript_res_1 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_1, tmp_ass_subscript_1, 0, tmp_ass_subvalue_1); - if (tmp_ass_subscript_res_1 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_4:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_7; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_expression_name_15; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[47]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[47]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[26]; - if (par_test_loader == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_test_loader; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[26]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_expression_name_16; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[16]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_16 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[16]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_kwargs_name_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 104; - tmp_assign_source_9 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_7, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_output_file == NULL); - var_output_file = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - tmp_called_instance_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[48]); - - if (unlikely(tmp_called_instance_5 == NULL)) { - tmp_called_instance_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[48]); - } - - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_output_file); - tmp_args_element_name_7 = var_output_file; - tmp_args_element_name_8 = mod_consts[50]; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 105; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_10 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_5, - mod_consts[49], - call_args - ); - } - - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_h5_output_file == NULL); - var_h5_output_file = tmp_assign_source_10; - } - { - PyObject *tmp_called_instance_6; - PyObject *tmp_call_result_6; - tmp_called_instance_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_called_instance_6 == NULL)) { - tmp_called_instance_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 107; - tmp_call_result_6 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_6, - mod_consts[29], - &PyTuple_GET_ITEM(mod_consts[51], 0) - ); - - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_6); - } - // Tried code: - { - PyObject *tmp_assign_source_11; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_7 = par_self; - CHECK_OBJECT(var_prediction_maps_shape); - tmp_args_element_name_9 = var_prediction_maps_shape; - CHECK_OBJECT(var_h5_output_file); - tmp_args_element_name_10 = var_h5_output_file; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 108; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_iter_arg_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_7, - mod_consts[52], - call_args - ); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_11 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_11; - } - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_12 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_12 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 108; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_13 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_13 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 108; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_13; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 108; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[4]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 108; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_14 = tmp_tuple_unpack_1__element_1; - assert(var_prediction_map == NULL); - Py_INCREF(tmp_assign_source_14); - var_prediction_map = tmp_assign_source_14; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_15 = tmp_tuple_unpack_1__element_2; - assert(var_normalization_mask == NULL); - Py_INCREF(tmp_assign_source_15); - var_normalization_mask = tmp_assign_source_15; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_instance_8; - PyObject *tmp_expression_name_17; - PyObject *tmp_call_result_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 112; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_17 = par_self; - tmp_called_instance_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[15]); - if (tmp_called_instance_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 112; - tmp_call_result_7 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[53]); - Py_DECREF(tmp_called_instance_8); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_7); - } - // Tried code: - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_instance_9; - tmp_called_instance_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_called_instance_9 == NULL)) { - tmp_called_instance_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 114; - tmp_assign_source_16 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[55]); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_18; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_18 = tmp_with_1__source; - tmp_called_name_8 = LOOKUP_SPECIAL(tmp_expression_name_18, mod_consts[56]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 114; - tmp_assign_source_17 = CALL_FUNCTION_NO_ARGS(tmp_called_name_8); - Py_DECREF(tmp_called_name_8); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_expression_name_19; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_19 = tmp_with_1__source; - tmp_assign_source_18 = LOOKUP_SPECIAL(tmp_expression_name_19, mod_consts[57]); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_18; - } - { - nuitka_bool tmp_assign_source_19; - tmp_assign_source_19 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_19; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_20; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_11; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[58]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[58]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - if (par_test_loader == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - - tmp_args_element_name_11 = par_test_loader; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 115; - tmp_iter_arg_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_11); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - tmp_assign_source_20 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_6; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_20; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_21 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_21 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 115; - goto try_except_handler_7; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_21; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_iter_arg_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_3 = tmp_for_loop_1__iter_value; - tmp_assign_source_22 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_23 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_23 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 115; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_24 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_24 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 115; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 115; - goto try_except_handler_9; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[4]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 115; - goto try_except_handler_9; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_8; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_7; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_25; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_25 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_input; - var_input = tmp_assign_source_25; - Py_INCREF(var_input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_26; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_26 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_indices; - var_indices = tmp_assign_source_26; - Py_INCREF(var_indices); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_called_instance_10; - PyObject *tmp_expression_name_20; - PyObject *tmp_call_result_8; - int tmp_truth_name_2; - tmp_expression_name_20 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_expression_name_20 == NULL)) { - tmp_expression_name_20 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_called_instance_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[59]); - if (tmp_called_instance_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 117; - tmp_call_result_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[60]); - Py_DECREF(tmp_called_instance_10); - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_8); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_8); - - exception_lineno = 117; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_condition_result_5 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_8); - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_21; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(var_input); - tmp_expression_name_21 = var_input; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[59]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[61]); - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 118; - tmp_assign_source_27 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_10, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_input; - var_input = tmp_assign_source_27; - Py_XDECREF(old); - } - - } - branch_no_5:; - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - tmp_called_name_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[62]); - - if (unlikely(tmp_called_name_11 == NULL)) { - tmp_called_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[62]); - } - - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - CHECK_OBJECT(var_input); - tmp_args_element_name_12 = var_input; - if (var_patch_halo == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 120; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_args_element_name_13 = var_patch_halo; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 120; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_assign_source_28 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_11, call_args); - } - - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_input; - assert(old != NULL); - var_input = tmp_assign_source_28; - Py_DECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_called_name_12; - PyObject *tmp_call_result_9; - PyObject *tmp_args_element_name_14; - PyObject *tmp_expression_name_22; - int tmp_truth_name_3; - tmp_called_name_12 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[46]); - - if (unlikely(tmp_called_name_12 == NULL)) { - tmp_called_name_12 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[46]); - } - - if (tmp_called_name_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 122; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_expression_name_22 = par_self; - tmp_args_element_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[15]); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 122; - tmp_call_result_9 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_12, tmp_args_element_name_14); - Py_DECREF(tmp_args_element_name_14); - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 122; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_call_result_9); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_9); - - exception_lineno = 122; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_condition_result_6 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_9); - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_13; - PyObject *tmp_expression_name_23; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - tmp_expression_name_23 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_expression_name_23 == NULL)) { - tmp_expression_name_23 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_expression_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_called_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[64]); - if (tmp_called_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - CHECK_OBJECT(var_input); - tmp_tuple_element_6 = var_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_6); - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[65]); - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 124; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_13, tmp_args_name_1, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_13); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_input; - var_input = tmp_assign_source_29; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_instance_11; - PyObject *tmp_args_element_name_15; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 126; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_called_instance_11 = par_self; - CHECK_OBJECT(var_input); - tmp_args_element_name_15 = var_input; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 126; - tmp_assign_source_30 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_11, mod_consts[15], tmp_args_element_name_15); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 126; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_prediction; - var_prediction = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_name_14; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_4; - tmp_expression_name_24 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_expression_name_24 == NULL)) { - tmp_expression_name_24 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_expression_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_called_name_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[66]); - if (tmp_called_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - CHECK_OBJECT(var_prediction); - tmp_tuple_element_7 = var_prediction; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_7); - tmp_kwargs_name_4 = PyDict_Copy(mod_consts[65]); - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 128; - tmp_assign_source_31 = CALL_FUNCTION(tmp_called_name_14, tmp_args_name_2, tmp_kwargs_name_4); - Py_DECREF(tmp_called_name_14); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_4); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_prediction; - var_prediction = tmp_assign_source_31; - Py_XDECREF(old); - } - - } - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_32; - PyObject *tmp_called_instance_12; - PyObject *tmp_args_element_name_16; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_called_instance_12 = par_self; - CHECK_OBJECT(var_input); - tmp_args_element_name_16 = var_input; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 131; - tmp_assign_source_32 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_12, mod_consts[15], tmp_args_element_name_16); - if (tmp_assign_source_32 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_prediction; - var_prediction = tmp_assign_source_32; - Py_XDECREF(old); - } - - } - branch_end_6:; - { - PyObject *tmp_assign_source_33; - PyObject *tmp_called_name_15; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - tmp_called_name_15 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_called_name_15 == NULL)) { - tmp_called_name_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_called_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - CHECK_OBJECT(var_prediction); - tmp_args_element_name_17 = var_prediction; - if (var_patch_halo == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 134; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - - tmp_args_element_name_18 = var_patch_halo; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 134; - { - PyObject *call_args[] = {tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_assign_source_33 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_15, call_args); - } - - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_prediction; - assert(old != NULL); - var_prediction = tmp_assign_source_33; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_instance_13; - PyObject *tmp_called_instance_14; - CHECK_OBJECT(var_prediction); - tmp_called_instance_14 = var_prediction; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 136; - tmp_called_instance_13 = CALL_METHOD_NO_ARGS(tmp_called_instance_14, mod_consts[68]); - if (tmp_called_instance_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 136; - tmp_assign_source_34 = CALL_METHOD_NO_ARGS(tmp_called_instance_13, mod_consts[69]); - Py_DECREF(tmp_called_instance_13); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = var_prediction; - var_prediction = tmp_assign_source_34; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_iter_arg_4; - PyObject *tmp_called_name_16; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - tmp_called_name_16 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(var_prediction); - tmp_args_element_name_19 = var_prediction; - CHECK_OBJECT(var_indices); - tmp_args_element_name_20 = var_indices; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 138; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_iter_arg_4 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_16, call_args); - } - - if (tmp_iter_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - tmp_assign_source_35 = MAKE_ITERATOR(tmp_iter_arg_4); - Py_DECREF(tmp_iter_arg_4); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_35; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_36; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_36 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_36 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 138; - goto try_except_handler_10; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_36; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_37; - PyObject *tmp_iter_arg_5; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_5 = tmp_for_loop_2__iter_value; - tmp_assign_source_37 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_5); - if (tmp_assign_source_37 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_11; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_37; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_38; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_38 = UNPACK_NEXT(tmp_unpack_5, 0, 2); - if (tmp_assign_source_38 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 138; - goto try_except_handler_12; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_38; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_39; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_39 = UNPACK_NEXT(tmp_unpack_6, 1, 2); - if (tmp_assign_source_39 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 138; - goto try_except_handler_12; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_39; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 138; - goto try_except_handler_12; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[4]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooooooo"; - exception_lineno = 138; - goto try_except_handler_12; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_11; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_10; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_40; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_40 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_pred; - var_pred = tmp_assign_source_40; - Py_INCREF(var_pred); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_41; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_41 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_index; - var_index = tmp_assign_source_41; - Py_INCREF(var_index); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - bool tmp_condition_result_7; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - if (var_prediction_channel == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 140; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - - tmp_compexpr_left_3 = var_prediction_channel; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_7 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_assign_source_42; - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - tmp_start_name_1 = mod_consts[7]; - if (var_out_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[71]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - - tmp_stop_name_1 = var_out_channels; - tmp_assign_source_42 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - assert(!(tmp_assign_source_42 == NULL)); - { - PyObject *old = var_channel_slice; - var_channel_slice = tmp_assign_source_42; - Py_XDECREF(old); - } - - } - goto branch_end_7; - branch_no_7:; - { - PyObject *tmp_assign_source_43; - tmp_assign_source_43 = mod_consts[72]; - { - PyObject *old = var_channel_slice; - var_channel_slice = tmp_assign_source_43; - Py_INCREF(var_channel_slice); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_44; - PyObject *tmp_called_name_17; - PyObject *tmp_expression_name_25; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_8; - PyObject *tmp_expression_name_26; - PyObject *tmp_subscript_name_2; - PyObject *tmp_kwargs_name_5; - tmp_expression_name_25 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_expression_name_25 == NULL)) { - tmp_expression_name_25 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_expression_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - tmp_called_name_17 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[74]); - if (tmp_called_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - CHECK_OBJECT(var_pred); - tmp_expression_name_26 = var_pred; - if (var_prediction_channel == NULL) { - Py_DECREF(tmp_called_name_17); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[70]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - - tmp_subscript_name_2 = var_prediction_channel; - tmp_tuple_element_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_26, tmp_subscript_name_2); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_17); - - exception_lineno = 145; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - tmp_args_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_3, 0, tmp_tuple_element_8); - tmp_kwargs_name_5 = PyDict_Copy(mod_consts[75]); - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 145; - tmp_assign_source_44 = CALL_FUNCTION(tmp_called_name_17, tmp_args_name_3, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_17); - Py_DECREF(tmp_args_name_3); - Py_DECREF(tmp_kwargs_name_5); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - { - PyObject *old = var_pred; - assert(old != NULL); - var_pred = tmp_assign_source_44; - Py_DECREF(old); - } - - } - branch_end_7:; - { - PyObject *tmp_assign_source_45; - PyObject *tmp_left_name_3; - PyObject *tmp_tuple_element_9; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_arg_1; - CHECK_OBJECT(var_channel_slice); - tmp_tuple_element_9 = var_channel_slice; - tmp_left_name_3 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_left_name_3, 0, tmp_tuple_element_9); - CHECK_OBJECT(var_index); - tmp_tuple_arg_1 = var_index; - tmp_right_name_3 = PySequence_Tuple(tmp_tuple_arg_1); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 148; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - tmp_assign_source_45 = BINARY_OPERATION_ADD_OBJECT_TUPLE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - assert(!(tmp_assign_source_45 == NULL)); - { - PyObject *old = var_index; - assert(old != NULL); - var_index = tmp_assign_source_45; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_46; - if (var_prediction_map == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[76]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 150; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - - tmp_assign_source_46 = var_prediction_map; - { - PyObject *old = tmp_inplace_assign_subscr_1__target; - tmp_inplace_assign_subscr_1__target = tmp_assign_source_46; - Py_INCREF(tmp_inplace_assign_subscr_1__target); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_47; - CHECK_OBJECT(var_index); - tmp_assign_source_47 = var_index; - { - PyObject *old = tmp_inplace_assign_subscr_1__subscript; - tmp_inplace_assign_subscr_1__subscript = tmp_assign_source_47; - Py_INCREF(tmp_inplace_assign_subscr_1__subscript); - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_48; - PyObject *tmp_expression_name_27; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_expression_name_27 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_subscript_name_3 = tmp_inplace_assign_subscr_1__subscript; - tmp_assign_source_48 = LOOKUP_SUBSCRIPT(tmp_expression_name_27, tmp_subscript_name_3); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_13; - } - { - PyObject *old = tmp_inplace_assign_subscr_1__value; - tmp_inplace_assign_subscr_1__value = tmp_assign_source_48; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_49; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_left_name_4 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(var_pred); - tmp_right_name_4 = var_pred; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_4, tmp_right_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_13; - } - tmp_assign_source_49 = tmp_left_name_4; - tmp_inplace_assign_subscr_1__value = tmp_assign_source_49; - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_ass_subvalue_2 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_ass_subscribed_2 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_ass_subscript_2 = tmp_inplace_assign_subscr_1__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_13; - } - } - goto try_end_7; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_10; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - Py_DECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - { - PyObject *tmp_assign_source_50; - if (var_normalization_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[77]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 152; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - - tmp_assign_source_50 = var_normalization_mask; - { - PyObject *old = tmp_inplace_assign_subscr_2__target; - tmp_inplace_assign_subscr_2__target = tmp_assign_source_50; - Py_INCREF(tmp_inplace_assign_subscr_2__target); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_51; - CHECK_OBJECT(var_index); - tmp_assign_source_51 = var_index; - { - PyObject *old = tmp_inplace_assign_subscr_2__subscript; - tmp_inplace_assign_subscr_2__subscript = tmp_assign_source_51; - Py_INCREF(tmp_inplace_assign_subscr_2__subscript); - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_52; - PyObject *tmp_expression_name_28; - PyObject *tmp_subscript_name_4; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - tmp_expression_name_28 = tmp_inplace_assign_subscr_2__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - tmp_subscript_name_4 = tmp_inplace_assign_subscr_2__subscript; - tmp_assign_source_52 = LOOKUP_SUBSCRIPT(tmp_expression_name_28, tmp_subscript_name_4); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_14; - } - { - PyObject *old = tmp_inplace_assign_subscr_2__value; - tmp_inplace_assign_subscr_2__value = tmp_assign_source_52; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_53; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_5; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - tmp_left_name_5 = tmp_inplace_assign_subscr_2__value; - tmp_right_name_5 = mod_consts[78]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_5, tmp_right_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_14; - } - tmp_assign_source_53 = tmp_left_name_5; - tmp_inplace_assign_subscr_2__value = tmp_assign_source_53; - - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - tmp_ass_subvalue_3 = tmp_inplace_assign_subscr_2__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - tmp_ass_subscribed_3 = tmp_inplace_assign_subscr_2__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - tmp_ass_subscript_3 = tmp_inplace_assign_subscr_2__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 152; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_14; - } - } - goto try_end_8; - // Exception handler code: - try_except_handler_14:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - Py_DECREF(tmp_inplace_assign_subscr_2__target); - tmp_inplace_assign_subscr_2__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - Py_DECREF(tmp_inplace_assign_subscr_2__subscript); - tmp_inplace_assign_subscr_2__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_2__value); - tmp_inplace_assign_subscr_2__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_10; - // End of try: - try_end_8:; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__target); - Py_DECREF(tmp_inplace_assign_subscr_2__target); - tmp_inplace_assign_subscr_2__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__subscript); - Py_DECREF(tmp_inplace_assign_subscr_2__subscript); - tmp_inplace_assign_subscr_2__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_2__value); - Py_DECREF(tmp_inplace_assign_subscr_2__value); - tmp_inplace_assign_subscr_2__value = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_10; - } - goto loop_start_2; - loop_end_2:; - goto try_end_9; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_7; - // End of try: - try_end_9:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_7; - } - goto loop_start_1; - loop_end_1:; - goto try_end_10; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_6; - // End of try: - try_end_10:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - goto try_end_11; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_11 == NULL) { - exception_keeper_tb_11 = MAKE_TRACEBACK(frame_12e22a3ebd81123517bf550395e990d0, exception_keeper_lineno_11); - } else if (exception_keeper_lineno_11 != 0) { - exception_keeper_tb_11 = ADD_TRACEBACK(exception_keeper_tb_11, frame_12e22a3ebd81123517bf550395e990d0, exception_keeper_lineno_11); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_11, &exception_keeper_value_11, &exception_keeper_tb_11); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_11, exception_keeper_tb_11); - PUBLISH_EXCEPTION(&exception_keeper_type_11, &exception_keeper_value_11, &exception_keeper_tb_11); - // Tried code: - { - bool tmp_condition_result_8; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - tmp_compexpr_left_4 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_4 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_4, tmp_compexpr_right_4); - assert(!(tmp_res == -1)); - tmp_condition_result_8 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_8 != false) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - nuitka_bool tmp_assign_source_54; - tmp_assign_source_54 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_54; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_operand_name_2; - PyObject *tmp_called_name_18; - PyObject *tmp_args_element_name_21; - PyObject *tmp_args_element_name_22; - PyObject *tmp_args_element_name_23; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_18 = tmp_with_1__exit; - tmp_args_element_name_21 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_22 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_23 = EXC_TRACEBACK(PyThreadState_GET()); - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 115; - { - PyObject *call_args[] = {tmp_args_element_name_21, tmp_args_element_name_22, tmp_args_element_name_23}; - tmp_operand_name_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_18, call_args); - } - - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_15; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_15; - } - tmp_condition_result_9 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 115; - } - - if (exception_tb && exception_tb->tb_frame == &frame_12e22a3ebd81123517bf550395e990d0->m_frame) frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_15; - branch_no_9:; - goto branch_end_8; - branch_no_8:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 114; - } - - if (exception_tb && exception_tb->tb_frame == &frame_12e22a3ebd81123517bf550395e990d0->m_frame) frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_15; - branch_end_8:; - goto try_end_12; - // Exception handler code: - try_except_handler_15:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto try_except_handler_5; - // End of try: - try_end_12:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_11; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_11:; - goto try_end_13; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_10; - nuitka_bool tmp_compexpr_left_5; - nuitka_bool tmp_compexpr_right_5; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_5 = tmp_with_1__indicator; - tmp_compexpr_right_5 = NUITKA_BOOL_TRUE; - tmp_condition_result_10 = (tmp_compexpr_left_5 == tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_10 != false) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_called_name_19; - PyObject *tmp_call_result_10; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_19 = tmp_with_1__exit; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 115; - tmp_call_result_10 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_19, &PyTuple_GET_ITEM(mod_consts[79], 0)); - - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_13); - Py_XDECREF(exception_keeper_value_13); - Py_XDECREF(exception_keeper_tb_13); - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_10); - } - branch_no_10:; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto try_except_handler_4; - // End of try: - try_end_13:; - { - bool tmp_condition_result_11; - nuitka_bool tmp_compexpr_left_6; - nuitka_bool tmp_compexpr_right_6; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_6 = tmp_with_1__indicator; - tmp_compexpr_right_6 = NUITKA_BOOL_TRUE; - tmp_condition_result_11 = (tmp_compexpr_left_6 == tmp_compexpr_right_6) ? true : false; - if (tmp_condition_result_11 != false) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_called_name_20; - PyObject *tmp_call_result_11; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_20 = tmp_with_1__exit; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 115; - tmp_call_result_11 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_20, &PyTuple_GET_ITEM(mod_consts[79], 0)); - - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "oooooooooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_11); - } - branch_no_11:; - goto try_end_14; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_14 = exception_type; - exception_keeper_value_14 = exception_value; - exception_keeper_tb_14 = exception_tb; - exception_keeper_lineno_14 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_14; - exception_value = exception_keeper_value_14; - exception_tb = exception_keeper_tb_14; - exception_lineno = exception_keeper_lineno_14; - - goto frame_exception_exit_1; - // End of try: - try_end_14:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - { - PyObject *tmp_called_name_21; - PyObject *tmp_expression_name_29; - PyObject *tmp_call_result_12; - PyObject *tmp_args_element_name_24; - PyObject *tmp_string_concat_values_5; - PyObject *tmp_tuple_element_10; - tmp_expression_name_29 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_29 == NULL)) { - tmp_expression_name_29 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[29]); - if (tmp_called_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_10 = mod_consts[80]; - tmp_string_concat_values_5 = PyTuple_New(3); - { - PyObject *tmp_format_value_5; - PyObject *tmp_left_name_6; - PyObject *tmp_called_instance_15; - PyObject *tmp_right_name_6; - PyObject *tmp_format_spec_5; - PyTuple_SET_ITEM0(tmp_string_concat_values_5, 0, tmp_tuple_element_10); - tmp_called_instance_15 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_called_instance_15 == NULL)) { - tmp_called_instance_15 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_called_instance_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_5; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 154; - tmp_left_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_15, mod_consts[34]); - if (tmp_left_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_5; - } - CHECK_OBJECT(var_start); - tmp_right_name_6 = var_start; - tmp_format_value_5 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_6, tmp_right_name_6); - Py_DECREF(tmp_left_name_6); - if (tmp_format_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_5; - } - tmp_format_spec_5 = mod_consts[81]; - tmp_tuple_element_10 = BUILTIN_FORMAT(tmp_format_value_5, tmp_format_spec_5); - Py_DECREF(tmp_format_value_5); - if (tmp_tuple_element_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_5; - } - PyTuple_SET_ITEM(tmp_string_concat_values_5, 1, tmp_tuple_element_10); - tmp_tuple_element_10 = mod_consts[82]; - PyTuple_SET_ITEM0(tmp_string_concat_values_5, 2, tmp_tuple_element_10); - } - goto tuple_build_noexception_5; - // Exception handling pass through code for tuple_build: - tuple_build_exception_5:; - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_string_concat_values_5); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_5:; - tmp_args_element_name_24 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_5); - Py_DECREF(tmp_string_concat_values_5); - if (tmp_args_element_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_21); - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 154; - tmp_call_result_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_21, tmp_args_element_name_24); - Py_DECREF(tmp_called_name_21); - Py_DECREF(tmp_args_element_name_24); - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_12); - } - { - PyObject *tmp_called_name_22; - PyObject *tmp_expression_name_30; - PyObject *tmp_call_result_13; - PyObject *tmp_args_element_name_25; - PyObject *tmp_string_concat_values_6; - PyObject *tmp_tuple_element_11; - tmp_expression_name_30 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_30 == NULL)) { - tmp_expression_name_30 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_22 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[29]); - if (tmp_called_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_11 = mod_consts[83]; - tmp_string_concat_values_6 = PyTuple_New(2); - { - PyObject *tmp_format_value_6; - PyObject *tmp_format_spec_6; - PyTuple_SET_ITEM0(tmp_string_concat_values_6, 0, tmp_tuple_element_11); - if (var_output_file == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[84]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 156; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - - tmp_format_value_6 = var_output_file; - tmp_format_spec_6 = mod_consts[32]; - tmp_tuple_element_11 = BUILTIN_FORMAT(tmp_format_value_6, tmp_format_spec_6); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooooo"; - goto tuple_build_exception_6; - } - PyTuple_SET_ITEM(tmp_string_concat_values_6, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_6; - // Exception handling pass through code for tuple_build: - tuple_build_exception_6:; - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_string_concat_values_6); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_6:; - tmp_args_element_name_25 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_6); - Py_DECREF(tmp_string_concat_values_6); - if (tmp_args_element_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_22); - - exception_lineno = 156; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 156; - tmp_call_result_13 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_22, tmp_args_element_name_25); - Py_DECREF(tmp_called_name_22); - Py_DECREF(tmp_args_element_name_25); - if (tmp_call_result_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_13); - } - { - PyObject *tmp_called_name_23; - PyObject *tmp_expression_name_31; - PyObject *tmp_call_result_14; - PyObject *tmp_args_element_name_26; - PyObject *tmp_args_element_name_27; - PyObject *tmp_args_element_name_28; - PyObject *tmp_args_element_name_29; - PyObject *tmp_expression_name_32; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_31 = par_self; - tmp_called_name_23 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[85]); - if (tmp_called_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (var_prediction_map == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[76]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_26 = var_prediction_map; - if (var_normalization_mask == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[77]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_27 = var_normalization_mask; - if (var_h5_output_file == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_28 = var_h5_output_file; - if (par_test_loader == NULL) { - Py_DECREF(tmp_called_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_32 = par_test_loader; - tmp_args_element_name_29 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[26]); - if (tmp_args_element_name_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_23); - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 157; - { - PyObject *call_args[] = {tmp_args_element_name_26, tmp_args_element_name_27, tmp_args_element_name_28, tmp_args_element_name_29}; - tmp_call_result_14 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_23, call_args); - } - - Py_DECREF(tmp_called_name_23); - Py_DECREF(tmp_args_element_name_29); - if (tmp_call_result_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_14); - } - { - PyObject *tmp_called_instance_16; - PyObject *tmp_call_result_15; - if (var_h5_output_file == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[86]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 159; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_16 = var_h5_output_file; - frame_12e22a3ebd81123517bf550395e990d0->m_frame.f_lineno = 159; - tmp_call_result_15 = CALL_METHOD_NO_ARGS(tmp_called_instance_16, mod_consts[87]); - if (tmp_call_result_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_1 = "oooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_15); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_12e22a3ebd81123517bf550395e990d0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_12e22a3ebd81123517bf550395e990d0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_12e22a3ebd81123517bf550395e990d0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_12e22a3ebd81123517bf550395e990d0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_12e22a3ebd81123517bf550395e990d0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_12e22a3ebd81123517bf550395e990d0, - type_description_1, - par_self, - par_test_loader, - var_start, - var_prediction_channel, - var_volume_shape, - var_out_channels, - var_prediction_maps_shape, - var_patch_halo, - var_output_file, - var_h5_output_file, - var_prediction_map, - var_normalization_mask, - var_input, - var_indices, - var_prediction, - var_pred, - var_index, - var_channel_slice - ); - - - // Release cached frame if used for exception. - if (frame_12e22a3ebd81123517bf550395e990d0 == cache_frame_12e22a3ebd81123517bf550395e990d0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_12e22a3ebd81123517bf550395e990d0); - cache_frame_12e22a3ebd81123517bf550395e990d0 = NULL; - } - - assertFrameObject(frame_12e22a3ebd81123517bf550395e990d0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_test_loader); - par_test_loader = NULL; - Py_XDECREF(var_start); - var_start = NULL; - Py_XDECREF(var_prediction_channel); - var_prediction_channel = NULL; - Py_XDECREF(var_volume_shape); - var_volume_shape = NULL; - Py_XDECREF(var_out_channels); - var_out_channels = NULL; - Py_XDECREF(var_prediction_maps_shape); - var_prediction_maps_shape = NULL; - Py_XDECREF(var_patch_halo); - var_patch_halo = NULL; - Py_XDECREF(var_output_file); - var_output_file = NULL; - Py_XDECREF(var_h5_output_file); - var_h5_output_file = NULL; - Py_XDECREF(var_prediction_map); - var_prediction_map = NULL; - Py_XDECREF(var_normalization_mask); - var_normalization_mask = NULL; - Py_XDECREF(var_input); - var_input = NULL; - Py_XDECREF(var_indices); - var_indices = NULL; - Py_XDECREF(var_prediction); - var_prediction = NULL; - Py_XDECREF(var_pred); - var_pred = NULL; - Py_XDECREF(var_index); - var_index = NULL; - Py_XDECREF(var_channel_slice); - var_channel_slice = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_15 = exception_type; - exception_keeper_value_15 = exception_value; - exception_keeper_tb_15 = exception_tb; - exception_keeper_lineno_15 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_test_loader); - par_test_loader = NULL; - Py_XDECREF(var_start); - var_start = NULL; - Py_XDECREF(var_prediction_channel); - var_prediction_channel = NULL; - Py_XDECREF(var_volume_shape); - var_volume_shape = NULL; - Py_XDECREF(var_out_channels); - var_out_channels = NULL; - Py_XDECREF(var_prediction_maps_shape); - var_prediction_maps_shape = NULL; - Py_XDECREF(var_patch_halo); - var_patch_halo = NULL; - Py_XDECREF(var_output_file); - var_output_file = NULL; - Py_XDECREF(var_h5_output_file); - var_h5_output_file = NULL; - Py_XDECREF(var_prediction_map); - var_prediction_map = NULL; - Py_XDECREF(var_normalization_mask); - var_normalization_mask = NULL; - Py_XDECREF(var_input); - var_input = NULL; - Py_XDECREF(var_indices); - var_indices = NULL; - Py_XDECREF(var_prediction); - var_prediction = NULL; - Py_XDECREF(var_pred); - var_pred = NULL; - Py_XDECREF(var_index); - var_index = NULL; - Py_XDECREF(var_channel_slice); - var_channel_slice = NULL; - // Re-raise. - exception_type = exception_keeper_type_15; - exception_value = exception_keeper_value_15; - exception_tb = exception_keeper_tb_15; - exception_lineno = exception_keeper_lineno_15; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__9__allocate_prediction_maps(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_output_shape = python_pars[1]; - PyObject *par_output_file = python_pars[2]; - PyObject *var_prediction_map = NULL; - PyObject *var_normalization_mask = NULL; - struct Nuitka_FrameObject *frame_9acb737f0b5b77657e415d5b3f608a87; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_9acb737f0b5b77657e415d5b3f608a87 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9acb737f0b5b77657e415d5b3f608a87)) { - Py_XDECREF(cache_frame_9acb737f0b5b77657e415d5b3f608a87); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9acb737f0b5b77657e415d5b3f608a87 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9acb737f0b5b77657e415d5b3f608a87 = MAKE_FUNCTION_FRAME(codeobj_9acb737f0b5b77657e415d5b3f608a87, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9acb737f0b5b77657e415d5b3f608a87->m_type_description == NULL); - frame_9acb737f0b5b77657e415d5b3f608a87 = cache_frame_9acb737f0b5b77657e415d5b3f608a87; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9acb737f0b5b77657e415d5b3f608a87); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9acb737f0b5b77657e415d5b3f608a87) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[88]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_output_shape); - tmp_tuple_element_1 = par_output_shape; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[89]); - frame_9acb737f0b5b77657e415d5b3f608a87->m_frame.f_lineno = 163; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_map == NULL); - var_prediction_map = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[73]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[88]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_output_shape == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 165; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_output_shape; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[91]); - frame_9acb737f0b5b77657e415d5b3f608a87->m_frame.f_lineno = 165; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 165; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_normalization_mask == NULL); - var_normalization_mask = tmp_assign_source_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9acb737f0b5b77657e415d5b3f608a87); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9acb737f0b5b77657e415d5b3f608a87); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9acb737f0b5b77657e415d5b3f608a87, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9acb737f0b5b77657e415d5b3f608a87->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9acb737f0b5b77657e415d5b3f608a87, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9acb737f0b5b77657e415d5b3f608a87, - type_description_1, - par_self, - par_output_shape, - par_output_file, - var_prediction_map, - var_normalization_mask - ); - - - // Release cached frame if used for exception. - if (frame_9acb737f0b5b77657e415d5b3f608a87 == cache_frame_9acb737f0b5b77657e415d5b3f608a87) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9acb737f0b5b77657e415d5b3f608a87); - cache_frame_9acb737f0b5b77657e415d5b3f608a87 = NULL; - } - - assertFrameObject(frame_9acb737f0b5b77657e415d5b3f608a87); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - { - PyObject *tmp_tuple_element_3; - CHECK_OBJECT(var_prediction_map); - tmp_tuple_element_3 = var_prediction_map; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_normalization_mask); - tmp_tuple_element_3 = var_normalization_mask; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_3); - goto try_return_handler_1; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_output_shape); - par_output_shape = NULL; - CHECK_OBJECT(par_output_file); - Py_DECREF(par_output_file); - par_output_file = NULL; - CHECK_OBJECT(var_prediction_map); - Py_DECREF(var_prediction_map); - var_prediction_map = NULL; - CHECK_OBJECT(var_normalization_mask); - Py_DECREF(var_normalization_mask); - var_normalization_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_output_shape); - par_output_shape = NULL; - CHECK_OBJECT(par_output_file); - Py_DECREF(par_output_file); - par_output_file = NULL; - Py_XDECREF(var_prediction_map); - var_prediction_map = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__10__save_results(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_prediction_map = python_pars[1]; - PyObject *par_normalization_mask = python_pars[2]; - PyObject *par_output_file = python_pars[3]; - PyObject *par_dataset = python_pars[4]; - PyObject *var_dataset_name = NULL; - struct Nuitka_FrameObject *frame_e718675254b06885e1aa7656b16dec34; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_e718675254b06885e1aa7656b16dec34 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e718675254b06885e1aa7656b16dec34)) { - Py_XDECREF(cache_frame_e718675254b06885e1aa7656b16dec34); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e718675254b06885e1aa7656b16dec34 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e718675254b06885e1aa7656b16dec34 = MAKE_FUNCTION_FRAME(codeobj_e718675254b06885e1aa7656b16dec34, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e718675254b06885e1aa7656b16dec34->m_type_description == NULL); - frame_e718675254b06885e1aa7656b16dec34 = cache_frame_e718675254b06885e1aa7656b16dec34; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e718675254b06885e1aa7656b16dec34); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e718675254b06885e1aa7656b16dec34) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[92]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[92]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[17]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_e718675254b06885e1aa7656b16dec34->m_frame.f_lineno = 169; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_dataset_name == NULL); - var_dataset_name = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_prediction_map); - tmp_left_name_1 = par_prediction_map; - CHECK_OBJECT(par_normalization_mask); - tmp_right_name_1 = par_normalization_mask; - tmp_assign_source_2 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_prediction_map; - par_prediction_map = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_output_file); - tmp_expression_name_2 = par_output_file; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[93]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_dataset_name); - tmp_tuple_element_1 = var_dataset_name; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[94]; - CHECK_OBJECT(par_prediction_map); - tmp_dict_value_1 = par_prediction_map; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - tmp_dict_value_1 = mod_consts[96]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_e718675254b06885e1aa7656b16dec34->m_frame.f_lineno = 171; - tmp_call_result_1 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e718675254b06885e1aa7656b16dec34); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e718675254b06885e1aa7656b16dec34); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e718675254b06885e1aa7656b16dec34, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e718675254b06885e1aa7656b16dec34->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e718675254b06885e1aa7656b16dec34, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e718675254b06885e1aa7656b16dec34, - type_description_1, - par_self, - par_prediction_map, - par_normalization_mask, - par_output_file, - par_dataset, - var_dataset_name - ); - - - // Release cached frame if used for exception. - if (frame_e718675254b06885e1aa7656b16dec34 == cache_frame_e718675254b06885e1aa7656b16dec34) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e718675254b06885e1aa7656b16dec34); - cache_frame_e718675254b06885e1aa7656b16dec34 = NULL; - } - - assertFrameObject(frame_e718675254b06885e1aa7656b16dec34); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction_map); - par_prediction_map = NULL; - Py_XDECREF(par_normalization_mask); - par_normalization_mask = NULL; - Py_XDECREF(par_output_file); - par_output_file = NULL; - CHECK_OBJECT(par_dataset); - Py_DECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(var_dataset_name); - var_dataset_name = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction_map); - par_prediction_map = NULL; - Py_XDECREF(par_normalization_mask); - par_normalization_mask = NULL; - Py_XDECREF(par_output_file); - par_output_file = NULL; - CHECK_OBJECT(par_dataset); - Py_DECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(var_dataset_name); - var_dataset_name = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__11__pad(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_m = python_pars[0]; - PyObject *par_patch_halo = python_pars[1]; - PyObject *var_z = NULL; - PyObject *var_y = NULL; - PyObject *var_x = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_989443e4e43d7438067f39a09157b360; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_989443e4e43d7438067f39a09157b360 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_989443e4e43d7438067f39a09157b360)) { - Py_XDECREF(cache_frame_989443e4e43d7438067f39a09157b360); - -#if _DEBUG_REFCOUNTS - if (cache_frame_989443e4e43d7438067f39a09157b360 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_989443e4e43d7438067f39a09157b360 = MAKE_FUNCTION_FRAME(codeobj_989443e4e43d7438067f39a09157b360, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_989443e4e43d7438067f39a09157b360->m_type_description == NULL); - frame_989443e4e43d7438067f39a09157b360 = cache_frame_989443e4e43d7438067f39a09157b360; - - // Push the new frame as the currently active one. - pushFrameStack(frame_989443e4e43d7438067f39a09157b360); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_989443e4e43d7438067f39a09157b360) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_patch_halo); - tmp_compexpr_left_1 = par_patch_halo; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_patch_halo); - tmp_iter_arg_1 = par_patch_halo; - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooo"; - exception_lineno = 176; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooo"; - exception_lineno = 176; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooo"; - exception_lineno = 176; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooo"; - exception_lineno = 176; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooo"; - exception_lineno = 176; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var_z == NULL); - Py_INCREF(tmp_assign_source_5); - var_z = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_y == NULL); - Py_INCREF(tmp_assign_source_6); - var_y = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_3; - assert(var_x == NULL); - Py_INCREF(tmp_assign_source_7); - var_x = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[11]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[11]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[98]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[99]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_m); - tmp_tuple_element_1 = par_m; - tmp_args_name_1 = PyTuple_New(2); - { - PyObject *tmp_tuple_element_2; - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_x); - tmp_tuple_element_2 = var_x; - tmp_tuple_element_1 = PyTuple_New(6); - PyTuple_SET_ITEM0(tmp_tuple_element_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_x); - tmp_tuple_element_2 = var_x; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(var_y); - tmp_tuple_element_2 = var_y; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 2, tmp_tuple_element_2); - CHECK_OBJECT(var_y); - tmp_tuple_element_2 = var_y; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 3, tmp_tuple_element_2); - CHECK_OBJECT(var_z); - tmp_tuple_element_2 = var_z; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 4, tmp_tuple_element_2); - CHECK_OBJECT(var_z); - tmp_tuple_element_2 = var_z; - PyTuple_SET_ITEM0(tmp_tuple_element_1, 5, tmp_tuple_element_2); - PyTuple_SET_ITEM(tmp_args_name_1, 1, tmp_tuple_element_1); - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[100]); - frame_989443e4e43d7438067f39a09157b360->m_frame.f_lineno = 177; - tmp_return_value = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_989443e4e43d7438067f39a09157b360); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_989443e4e43d7438067f39a09157b360); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_989443e4e43d7438067f39a09157b360); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_989443e4e43d7438067f39a09157b360, exception_lineno); - } else if (exception_tb->tb_frame != &frame_989443e4e43d7438067f39a09157b360->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_989443e4e43d7438067f39a09157b360, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_989443e4e43d7438067f39a09157b360, - type_description_1, - par_m, - par_patch_halo, - var_z, - var_y, - var_x - ); - - - // Release cached frame if used for exception. - if (frame_989443e4e43d7438067f39a09157b360 == cache_frame_989443e4e43d7438067f39a09157b360) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_989443e4e43d7438067f39a09157b360); - cache_frame_989443e4e43d7438067f39a09157b360 = NULL; - } - - assertFrameObject(frame_989443e4e43d7438067f39a09157b360); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_m); - tmp_return_value = par_m; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_m); - par_m = NULL; - Py_XDECREF(par_patch_halo); - par_patch_halo = NULL; - Py_XDECREF(var_z); - var_z = NULL; - Py_XDECREF(var_y); - var_y = NULL; - Py_XDECREF(var_x); - var_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_m); - par_m = NULL; - Py_XDECREF(par_patch_halo); - par_patch_halo = NULL; - Py_XDECREF(var_z); - var_z = NULL; - Py_XDECREF(var_y); - var_y = NULL; - Py_XDECREF(var_x); - var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__12__unpad(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_m = python_pars[0]; - PyObject *par_patch_halo = python_pars[1]; - PyObject *var_z = NULL; - PyObject *var_y = NULL; - PyObject *var_x = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_07cbe57c14d20fc9570d667e537912d9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_07cbe57c14d20fc9570d667e537912d9 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_07cbe57c14d20fc9570d667e537912d9)) { - Py_XDECREF(cache_frame_07cbe57c14d20fc9570d667e537912d9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_07cbe57c14d20fc9570d667e537912d9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_07cbe57c14d20fc9570d667e537912d9 = MAKE_FUNCTION_FRAME(codeobj_07cbe57c14d20fc9570d667e537912d9, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_07cbe57c14d20fc9570d667e537912d9->m_type_description == NULL); - frame_07cbe57c14d20fc9570d667e537912d9 = cache_frame_07cbe57c14d20fc9570d667e537912d9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_07cbe57c14d20fc9570d667e537912d9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_07cbe57c14d20fc9570d667e537912d9) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_patch_halo); - tmp_compexpr_left_1 = par_patch_halo; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_patch_halo); - tmp_iter_arg_1 = par_patch_halo; - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 183; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooo"; - exception_lineno = 183; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooo"; - exception_lineno = 183; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooo"; - exception_lineno = 183; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooo"; - exception_lineno = 183; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooo"; - exception_lineno = 183; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var_z == NULL); - Py_INCREF(tmp_assign_source_5); - var_z = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_y == NULL); - Py_INCREF(tmp_assign_source_6); - var_y = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_3; - assert(var_x == NULL); - Py_INCREF(tmp_assign_source_7); - var_x = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_z); - tmp_compexpr_left_2 = var_z; - tmp_compexpr_right_2 = mod_consts[7]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 184; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 184; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(par_m); - tmp_expression_name_1 = par_m; - tmp_tuple_element_1 = Py_Ellipsis; - tmp_subscript_name_1 = PyTuple_New(3); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_start_name_2; - PyObject *tmp_stop_name_2; - PyObject *tmp_operand_name_2; - PyTuple_SET_ITEM0(tmp_subscript_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_y); - tmp_start_name_1 = var_y; - CHECK_OBJECT(var_y); - tmp_operand_name_1 = var_y; - tmp_stop_name_1 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_1); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_1, 1, tmp_tuple_element_1); - CHECK_OBJECT(var_x); - tmp_start_name_2 = var_x; - CHECK_OBJECT(var_x); - tmp_operand_name_2 = var_x; - tmp_stop_name_2 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_2); - if (tmp_stop_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ2(tmp_start_name_2, tmp_stop_name_2); - Py_DECREF(tmp_stop_name_2); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_subscript_name_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_subscript_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_2; - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(par_m); - tmp_expression_name_2 = par_m; - tmp_tuple_element_2 = Py_Ellipsis; - tmp_subscript_name_2 = PyTuple_New(4); - { - PyObject *tmp_start_name_3; - PyObject *tmp_stop_name_3; - PyObject *tmp_operand_name_3; - PyObject *tmp_start_name_4; - PyObject *tmp_stop_name_4; - PyObject *tmp_operand_name_4; - PyObject *tmp_start_name_5; - PyObject *tmp_stop_name_5; - PyObject *tmp_operand_name_5; - PyTuple_SET_ITEM0(tmp_subscript_name_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_z); - tmp_start_name_3 = var_z; - CHECK_OBJECT(var_z); - tmp_operand_name_3 = var_z; - tmp_stop_name_3 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_3); - if (tmp_stop_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_3, tmp_stop_name_3); - Py_DECREF(tmp_stop_name_3); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_2, 1, tmp_tuple_element_2); - CHECK_OBJECT(var_y); - tmp_start_name_4 = var_y; - CHECK_OBJECT(var_y); - tmp_operand_name_4 = var_y; - tmp_stop_name_4 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_4); - if (tmp_stop_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_4, tmp_stop_name_4); - Py_DECREF(tmp_stop_name_4); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(var_x); - tmp_start_name_5 = var_x; - CHECK_OBJECT(var_x); - tmp_operand_name_5 = var_x; - tmp_stop_name_5 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_5); - if (tmp_stop_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_5, tmp_stop_name_5); - Py_DECREF(tmp_stop_name_5); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_2, 3, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_subscript_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_2); - Py_DECREF(tmp_subscript_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_2:; - branch_no_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_07cbe57c14d20fc9570d667e537912d9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_07cbe57c14d20fc9570d667e537912d9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_07cbe57c14d20fc9570d667e537912d9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_07cbe57c14d20fc9570d667e537912d9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_07cbe57c14d20fc9570d667e537912d9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_07cbe57c14d20fc9570d667e537912d9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_07cbe57c14d20fc9570d667e537912d9, - type_description_1, - par_m, - par_patch_halo, - var_z, - var_y, - var_x - ); - - - // Release cached frame if used for exception. - if (frame_07cbe57c14d20fc9570d667e537912d9 == cache_frame_07cbe57c14d20fc9570d667e537912d9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_07cbe57c14d20fc9570d667e537912d9); - cache_frame_07cbe57c14d20fc9570d667e537912d9 = NULL; - } - - assertFrameObject(frame_07cbe57c14d20fc9570d667e537912d9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(par_m); - tmp_return_value = par_m; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_m); - Py_DECREF(par_m); - par_m = NULL; - Py_XDECREF(par_patch_halo); - par_patch_halo = NULL; - Py_XDECREF(var_z); - var_z = NULL; - Py_XDECREF(var_y); - var_y = NULL; - Py_XDECREF(var_x); - var_x = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_m); - Py_DECREF(par_m); - par_m = NULL; - Py_XDECREF(par_patch_halo); - par_patch_halo = NULL; - Py_XDECREF(var_z); - var_z = NULL; - Py_XDECREF(var_y); - var_y = NULL; - Py_XDECREF(var_x); - var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__13___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *par_output_dir = python_pars[2]; - PyObject *par_config = python_pars[3]; - PyObject *par_kwargs = python_pars[4]; - struct Nuitka_FrameObject *frame_705bda7d6673d7b7394952127174c725; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_705bda7d6673d7b7394952127174c725 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_705bda7d6673d7b7394952127174c725)) { - Py_XDECREF(cache_frame_705bda7d6673d7b7394952127174c725); - -#if _DEBUG_REFCOUNTS - if (cache_frame_705bda7d6673d7b7394952127174c725 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_705bda7d6673d7b7394952127174c725 = MAKE_FUNCTION_FRAME(codeobj_705bda7d6673d7b7394952127174c725, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_705bda7d6673d7b7394952127174c725->m_type_description == NULL); - frame_705bda7d6673d7b7394952127174c725 = cache_frame_705bda7d6673d7b7394952127174c725; - - // Push the new frame as the currently active one. - pushFrameStack(frame_705bda7d6673d7b7394952127174c725); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_705bda7d6673d7b7394952127174c725) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[25]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model); - tmp_tuple_element_1 = par_model; - tmp_dircall_arg2_1 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_output_dir); - tmp_tuple_element_1 = par_output_dir; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 1, tmp_tuple_element_1); - CHECK_OBJECT(par_config); - tmp_tuple_element_1 = par_config; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 2, tmp_tuple_element_1); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__9_complex_call_helper_pos_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "oooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_705bda7d6673d7b7394952127174c725); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_705bda7d6673d7b7394952127174c725); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_705bda7d6673d7b7394952127174c725, exception_lineno); - } else if (exception_tb->tb_frame != &frame_705bda7d6673d7b7394952127174c725->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_705bda7d6673d7b7394952127174c725, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_705bda7d6673d7b7394952127174c725, - type_description_1, - par_self, - par_model, - par_output_dir, - par_config, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_705bda7d6673d7b7394952127174c725 == cache_frame_705bda7d6673d7b7394952127174c725) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_705bda7d6673d7b7394952127174c725); - cache_frame_705bda7d6673d7b7394952127174c725 = NULL; - } - - assertFrameObject(frame_705bda7d6673d7b7394952127174c725); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__14__allocate_prediction_maps(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_output_shape = python_pars[1]; - PyObject *par_output_file = python_pars[2]; - PyObject *var_dataset_name = NULL; - PyObject *var_prediction_map = NULL; - PyObject *var_normalization_mask = NULL; - struct Nuitka_FrameObject *frame_1f99e51ff5df2510c2b0ace52698561d; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_1f99e51ff5df2510c2b0ace52698561d = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1f99e51ff5df2510c2b0ace52698561d)) { - Py_XDECREF(cache_frame_1f99e51ff5df2510c2b0ace52698561d); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1f99e51ff5df2510c2b0ace52698561d == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1f99e51ff5df2510c2b0ace52698561d = MAKE_FUNCTION_FRAME(codeobj_1f99e51ff5df2510c2b0ace52698561d, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1f99e51ff5df2510c2b0ace52698561d->m_type_description == NULL); - frame_1f99e51ff5df2510c2b0ace52698561d = cache_frame_1f99e51ff5df2510c2b0ace52698561d; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1f99e51ff5df2510c2b0ace52698561d); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1f99e51ff5df2510c2b0ace52698561d) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[92]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[92]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[17]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_1f99e51ff5df2510c2b0ace52698561d->m_frame.f_lineno = 211; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_dataset_name == NULL); - var_dataset_name = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(par_output_file); - tmp_expression_name_2 = par_output_file; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[93]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_dataset_name); - tmp_tuple_element_1 = var_dataset_name; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[22]; - CHECK_OBJECT(par_output_shape); - tmp_dict_value_1 = par_output_shape; - tmp_kwargs_name_1 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[101]; - tmp_dict_value_1 = mod_consts[102]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[103]; - tmp_dict_value_1 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - tmp_dict_value_1 = mod_consts[96]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_1f99e51ff5df2510c2b0ace52698561d->m_frame.f_lineno = 213; - tmp_assign_source_2 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_prediction_map == NULL); - var_prediction_map = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - if (par_output_file == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[84]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_output_file; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[93]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_2 = mod_consts[104]; - tmp_dict_key_2 = mod_consts[22]; - if (par_output_shape == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 216; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_2 = par_output_shape; - tmp_kwargs_name_2 = _PyDict_NewPresized( 4 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[101]; - tmp_dict_value_2 = mod_consts[105]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[103]; - tmp_dict_value_2 = Py_True; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[95]; - tmp_dict_value_2 = mod_consts[96]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_1f99e51ff5df2510c2b0ace52698561d->m_frame.f_lineno = 216; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_normalization_mask == NULL); - var_normalization_mask = tmp_assign_source_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1f99e51ff5df2510c2b0ace52698561d); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1f99e51ff5df2510c2b0ace52698561d); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1f99e51ff5df2510c2b0ace52698561d, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1f99e51ff5df2510c2b0ace52698561d->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1f99e51ff5df2510c2b0ace52698561d, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1f99e51ff5df2510c2b0ace52698561d, - type_description_1, - par_self, - par_output_shape, - par_output_file, - var_dataset_name, - var_prediction_map, - var_normalization_mask - ); - - - // Release cached frame if used for exception. - if (frame_1f99e51ff5df2510c2b0ace52698561d == cache_frame_1f99e51ff5df2510c2b0ace52698561d) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1f99e51ff5df2510c2b0ace52698561d); - cache_frame_1f99e51ff5df2510c2b0ace52698561d = NULL; - } - - assertFrameObject(frame_1f99e51ff5df2510c2b0ace52698561d); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - { - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_prediction_map); - tmp_tuple_element_2 = var_prediction_map; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_normalization_mask); - tmp_tuple_element_2 = var_normalization_mask; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - goto try_return_handler_1; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_output_shape); - par_output_shape = NULL; - Py_XDECREF(par_output_file); - par_output_file = NULL; - Py_XDECREF(var_dataset_name); - var_dataset_name = NULL; - CHECK_OBJECT(var_prediction_map); - Py_DECREF(var_prediction_map); - var_prediction_map = NULL; - CHECK_OBJECT(var_normalization_mask); - Py_DECREF(var_normalization_mask); - var_normalization_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_output_shape); - par_output_shape = NULL; - Py_XDECREF(par_output_file); - par_output_file = NULL; - Py_XDECREF(var_dataset_name); - var_dataset_name = NULL; - Py_XDECREF(var_prediction_map); - var_prediction_map = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__15__save_results(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_prediction_map = python_pars[1]; - PyObject *par_normalization_mask = python_pars[2]; - PyObject *par_output_file = python_pars[3]; - PyObject *par_dataset = python_pars[4]; - PyObject *var_z = NULL; - PyObject *var_y = NULL; - PyObject *var_x = NULL; - PyObject *var_patch_shape = NULL; - PyObject *var_index = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_inplace_assign_subscr_1__subscript = NULL; - PyObject *tmp_inplace_assign_subscr_1__target = NULL; - PyObject *tmp_inplace_assign_subscr_1__value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_22cdd3268e91283d209035484befb961; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_22cdd3268e91283d209035484befb961 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_22cdd3268e91283d209035484befb961)) { - Py_XDECREF(cache_frame_22cdd3268e91283d209035484befb961); - -#if _DEBUG_REFCOUNTS - if (cache_frame_22cdd3268e91283d209035484befb961 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_22cdd3268e91283d209035484befb961 = MAKE_FUNCTION_FRAME(codeobj_22cdd3268e91283d209035484befb961, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_22cdd3268e91283d209035484befb961->m_type_description == NULL); - frame_22cdd3268e91283d209035484befb961 = cache_frame_22cdd3268e91283d209035484befb961; - - // Push the new frame as the currently active one. - pushFrameStack(frame_22cdd3268e91283d209035484befb961); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_22cdd3268e91283d209035484befb961) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_prediction_map); - tmp_expression_name_2 = par_prediction_map; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[22]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_1 = mod_consts[23]; - tmp_iter_arg_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 221; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 221; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 221; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 221; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooo"; - exception_lineno = 221; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[97]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooo"; - exception_lineno = 221; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_1; - assert(var_z == NULL); - Py_INCREF(tmp_assign_source_5); - var_z = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_2; - assert(var_y == NULL); - Py_INCREF(tmp_assign_source_6); - var_y = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_3; - assert(var_x == NULL); - Py_INCREF(tmp_assign_source_7); - var_x = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_tuple_element_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_z); - tmp_left_name_1 = var_z; - tmp_right_name_1 = mod_consts[21]; - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = PyTuple_New(3); - { - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyTuple_SET_ITEM(tmp_assign_source_8, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_y); - tmp_left_name_2 = var_y; - tmp_right_name_2 = mod_consts[21]; - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_assign_source_8, 1, tmp_tuple_element_1); - CHECK_OBJECT(var_x); - tmp_left_name_3 = var_x; - tmp_right_name_3 = mod_consts[21]; - tmp_tuple_element_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_3); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 223; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_assign_source_8, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_assign_source_8); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - assert(var_patch_shape == NULL); - var_patch_shape = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[106]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[106]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[107]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (par_prediction_map == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[76]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 224; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_prediction_map; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - tmp_dict_key_1 = mod_consts[108]; - CHECK_OBJECT(var_patch_shape); - tmp_dict_value_1 = var_patch_shape; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[109]; - CHECK_OBJECT(var_patch_shape); - tmp_dict_value_1 = var_patch_shape; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_22cdd3268e91283d209035484befb961->m_frame.f_lineno = 224; - tmp_iter_arg_2 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_9 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_9; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_10 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_10 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooo"; - exception_lineno = 224; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_11 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_index; - var_index = tmp_assign_source_11; - Py_INCREF(var_index); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_3; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[29]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - tmp_tuple_element_3 = mod_consts[110]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_index); - tmp_format_value_1 = var_index; - tmp_format_spec_1 = mod_consts[32]; - tmp_tuple_element_3 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 225; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - frame_22cdd3268e91283d209035484befb961->m_frame.f_lineno = 225; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 225; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_12; - if (par_prediction_map == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[76]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_assign_source_12 = par_prediction_map; - { - PyObject *old = tmp_inplace_assign_subscr_1__target; - tmp_inplace_assign_subscr_1__target = tmp_assign_source_12; - Py_INCREF(tmp_inplace_assign_subscr_1__target); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(var_index); - tmp_assign_source_13 = var_index; - { - PyObject *old = tmp_inplace_assign_subscr_1__subscript; - tmp_inplace_assign_subscr_1__subscript = tmp_assign_source_13; - Py_INCREF(tmp_inplace_assign_subscr_1__subscript); - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_expression_name_5 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_subscript_name_2 = tmp_inplace_assign_subscr_1__subscript; - tmp_assign_source_14 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_inplace_assign_subscr_1__value; - tmp_inplace_assign_subscr_1__value = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_3; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_left_name_4 = tmp_inplace_assign_subscr_1__value; - if (par_normalization_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[77]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 226; - type_description_1 = "oooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_6 = par_normalization_mask; - CHECK_OBJECT(var_index); - tmp_subscript_name_3 = var_index; - tmp_right_name_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_3); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooo"; - goto try_except_handler_5; - } - tmp_result = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_INPLACE(&tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooo"; - goto try_except_handler_5; - } - tmp_assign_source_15 = tmp_left_name_4; - tmp_inplace_assign_subscr_1__value = tmp_assign_source_15; - - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - tmp_ass_subvalue_1 = tmp_inplace_assign_subscr_1__value; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - tmp_ass_subscribed_1 = tmp_inplace_assign_subscr_1__target; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - tmp_ass_subscript_1 = tmp_inplace_assign_subscr_1__subscript; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 226; - type_description_1 = "oooooooooo"; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - Py_XDECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__target); - Py_DECREF(tmp_inplace_assign_subscr_1__target); - tmp_inplace_assign_subscr_1__target = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__subscript); - Py_DECREF(tmp_inplace_assign_subscr_1__subscript); - tmp_inplace_assign_subscr_1__subscript = NULL; - CHECK_OBJECT(tmp_inplace_assign_subscr_1__value); - Py_DECREF(tmp_inplace_assign_subscr_1__value); - tmp_inplace_assign_subscr_1__value = NULL; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - tmp_ass_subvalue_2 = mod_consts[78]; - if (par_normalization_mask == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[77]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 229; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_ass_subscribed_2 = par_normalization_mask; - CHECK_OBJECT(var_index); - tmp_ass_subscript_2 = var_index; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - goto loop_start_1; - loop_end_1:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_delsubscr_target_1; - PyObject *tmp_delsubscr_subscript_1; - CHECK_OBJECT(par_output_file); - tmp_delsubscr_target_1 = par_output_file; - tmp_delsubscr_subscript_1 = mod_consts[111]; - tmp_result = DEL_SUBSCRIPT(tmp_delsubscr_target_1, tmp_delsubscr_subscript_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_22cdd3268e91283d209035484befb961); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_22cdd3268e91283d209035484befb961); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_22cdd3268e91283d209035484befb961, exception_lineno); - } else if (exception_tb->tb_frame != &frame_22cdd3268e91283d209035484befb961->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_22cdd3268e91283d209035484befb961, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_22cdd3268e91283d209035484befb961, - type_description_1, - par_self, - par_prediction_map, - par_normalization_mask, - par_output_file, - par_dataset, - var_z, - var_y, - var_x, - var_patch_shape, - var_index - ); - - - // Release cached frame if used for exception. - if (frame_22cdd3268e91283d209035484befb961 == cache_frame_22cdd3268e91283d209035484befb961) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_22cdd3268e91283d209035484befb961); - cache_frame_22cdd3268e91283d209035484befb961 = NULL; - } - - assertFrameObject(frame_22cdd3268e91283d209035484befb961); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction_map); - par_prediction_map = NULL; - Py_XDECREF(par_normalization_mask); - par_normalization_mask = NULL; - CHECK_OBJECT(par_output_file); - Py_DECREF(par_output_file); - par_output_file = NULL; - CHECK_OBJECT(par_dataset); - Py_DECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(var_z); - var_z = NULL; - Py_XDECREF(var_y); - var_y = NULL; - Py_XDECREF(var_x); - var_x = NULL; - Py_XDECREF(var_patch_shape); - var_patch_shape = NULL; - Py_XDECREF(var_index); - var_index = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_prediction_map); - par_prediction_map = NULL; - Py_XDECREF(par_normalization_mask); - par_normalization_mask = NULL; - CHECK_OBJECT(par_output_file); - Py_DECREF(par_output_file); - par_output_file = NULL; - CHECK_OBJECT(par_dataset); - Py_DECREF(par_dataset); - par_dataset = NULL; - Py_XDECREF(var_z); - var_z = NULL; - Py_XDECREF(var_y); - var_y = NULL; - Py_XDECREF(var_x); - var_x = NULL; - Py_XDECREF(var_patch_shape); - var_patch_shape = NULL; - Py_XDECREF(var_index); - var_index = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__16___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *par_output_dir = python_pars[2]; - PyObject *par_config = python_pars[3]; - PyObject *par_save_segmentation = python_pars[4]; - PyObject *par_pmaps_thershold = python_pars[5]; - PyObject *par_kwargs = python_pars[6]; - struct Nuitka_FrameObject *frame_dcd17f5afd82ae6840c9b24712bd4189; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_dcd17f5afd82ae6840c9b24712bd4189 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_dcd17f5afd82ae6840c9b24712bd4189)) { - Py_XDECREF(cache_frame_dcd17f5afd82ae6840c9b24712bd4189); - -#if _DEBUG_REFCOUNTS - if (cache_frame_dcd17f5afd82ae6840c9b24712bd4189 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_dcd17f5afd82ae6840c9b24712bd4189 = MAKE_FUNCTION_FRAME(codeobj_dcd17f5afd82ae6840c9b24712bd4189, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_dcd17f5afd82ae6840c9b24712bd4189->m_type_description == NULL); - frame_dcd17f5afd82ae6840c9b24712bd4189 = cache_frame_dcd17f5afd82ae6840c9b24712bd4189; - - // Push the new frame as the currently active one. - pushFrameStack(frame_dcd17f5afd82ae6840c9b24712bd4189); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_dcd17f5afd82ae6840c9b24712bd4189) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_dircall_arg3_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[24]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 235; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[25]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model); - tmp_tuple_element_1 = par_model; - tmp_dircall_arg2_1 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_output_dir); - tmp_tuple_element_1 = par_output_dir; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 1, tmp_tuple_element_1); - CHECK_OBJECT(par_config); - tmp_tuple_element_1 = par_config; - PyTuple_SET_ITEM0(tmp_dircall_arg2_1, 2, tmp_tuple_element_1); - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg3_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_call_result_1 = impl_models$$$function__9_complex_call_helper_pos_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_pmaps_thershold); - tmp_assattr_name_1 = par_pmaps_thershold; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[112], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_save_segmentation); - tmp_assattr_name_2 = par_save_segmentation; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[113], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 237; - type_description_1 = "oooooooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dcd17f5afd82ae6840c9b24712bd4189); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dcd17f5afd82ae6840c9b24712bd4189); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_dcd17f5afd82ae6840c9b24712bd4189, exception_lineno); - } else if (exception_tb->tb_frame != &frame_dcd17f5afd82ae6840c9b24712bd4189->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_dcd17f5afd82ae6840c9b24712bd4189, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_dcd17f5afd82ae6840c9b24712bd4189, - type_description_1, - par_self, - par_model, - par_output_dir, - par_config, - par_save_segmentation, - par_pmaps_thershold, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_dcd17f5afd82ae6840c9b24712bd4189 == cache_frame_dcd17f5afd82ae6840c9b24712bd4189) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_dcd17f5afd82ae6840c9b24712bd4189); - cache_frame_dcd17f5afd82ae6840c9b24712bd4189 = NULL; - } - - assertFrameObject(frame_dcd17f5afd82ae6840c9b24712bd4189); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_save_segmentation); - Py_DECREF(par_save_segmentation); - par_save_segmentation = NULL; - CHECK_OBJECT(par_pmaps_thershold); - Py_DECREF(par_pmaps_thershold); - par_pmaps_thershold = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_model); - Py_DECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_output_dir); - Py_DECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_config); - Py_DECREF(par_config); - par_config = NULL; - CHECK_OBJECT(par_save_segmentation); - Py_DECREF(par_save_segmentation); - par_save_segmentation = NULL; - CHECK_OBJECT(par_pmaps_thershold); - Py_DECREF(par_pmaps_thershold); - par_pmaps_thershold = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__17__slice_from_pad(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_pad = python_pars[1]; - struct Nuitka_FrameObject *frame_930c7addf8d4e8ab57ac0d86a59b45e9; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9)) { - Py_XDECREF(cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9); - -#if _DEBUG_REFCOUNTS - if (cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9 = MAKE_FUNCTION_FRAME(codeobj_930c7addf8d4e8ab57ac0d86a59b45e9, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9->m_type_description == NULL); - frame_930c7addf8d4e8ab57ac0d86a59b45e9 = cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9; - - // Push the new frame as the currently active one. - pushFrameStack(frame_930c7addf8d4e8ab57ac0d86a59b45e9); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_930c7addf8d4e8ab57ac0d86a59b45e9) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_pad); - tmp_compexpr_left_1 = par_pad; - tmp_compexpr_right_1 = mod_consts[7]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 240; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 240; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - tmp_return_value = mod_consts[114]; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_operand_name_1; - CHECK_OBJECT(par_pad); - tmp_start_name_1 = par_pad; - CHECK_OBJECT(par_pad); - tmp_operand_name_1 = par_pad; - tmp_stop_name_1 = UNARY_OPERATION(PyNumber_Negative, tmp_operand_name_1); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_return_value = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_return_value == NULL)); - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_930c7addf8d4e8ab57ac0d86a59b45e9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_930c7addf8d4e8ab57ac0d86a59b45e9); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_930c7addf8d4e8ab57ac0d86a59b45e9); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_930c7addf8d4e8ab57ac0d86a59b45e9, exception_lineno); - } else if (exception_tb->tb_frame != &frame_930c7addf8d4e8ab57ac0d86a59b45e9->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_930c7addf8d4e8ab57ac0d86a59b45e9, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_930c7addf8d4e8ab57ac0d86a59b45e9, - type_description_1, - par_self, - par_pad - ); - - - // Release cached frame if used for exception. - if (frame_930c7addf8d4e8ab57ac0d86a59b45e9 == cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9); - cache_frame_930c7addf8d4e8ab57ac0d86a59b45e9 = NULL; - } - - assertFrameObject(frame_930c7addf8d4e8ab57ac0d86a59b45e9); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_pad); - Py_DECREF(par_pad); - par_pad = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_pad); - Py_DECREF(par_pad); - par_pad = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__18___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_test_loader = python_pars[1]; - PyObject *var_executor = NULL; - PyObject *var_img = NULL; - PyObject *var_path = NULL; - PyObject *var_pred = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_f6cc4d43175142ef596c007b051512dc; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - int tmp_res; - bool tmp_result; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - static struct Nuitka_FrameObject *cache_frame_f6cc4d43175142ef596c007b051512dc = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f6cc4d43175142ef596c007b051512dc)) { - Py_XDECREF(cache_frame_f6cc4d43175142ef596c007b051512dc); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f6cc4d43175142ef596c007b051512dc == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f6cc4d43175142ef596c007b051512dc = MAKE_FUNCTION_FRAME(codeobj_f6cc4d43175142ef596c007b051512dc, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f6cc4d43175142ef596c007b051512dc->m_type_description == NULL); - frame_f6cc4d43175142ef596c007b051512dc = cache_frame_f6cc4d43175142ef596c007b051512dc; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f6cc4d43175142ef596c007b051512dc); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f6cc4d43175142ef596c007b051512dc) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[15]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 247; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[53]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[115]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[115]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[116]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[117]); - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 249; - tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_executor == NULL); - var_executor = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 251; - tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[55]); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_3 = tmp_with_1__source; - tmp_called_name_2 = LOOKUP_SPECIAL(tmp_expression_name_3, mod_consts[56]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 251; - tmp_assign_source_3 = CALL_FUNCTION_NO_ARGS(tmp_called_name_2); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_4 = tmp_with_1__source; - tmp_assign_source_4 = LOOKUP_SPECIAL(tmp_expression_name_4, mod_consts[57]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_4; - } - { - nuitka_bool tmp_assign_source_5; - tmp_assign_source_5 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_5; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_test_loader); - tmp_iter_arg_1 = par_test_loader; - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_4; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_6; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - exception_lineno = 252; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_8 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 252; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooo"; - exception_lineno = 252; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooo"; - exception_lineno = 252; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[4]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooo"; - exception_lineno = 252; - goto try_except_handler_7; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_6; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_5; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_img; - var_img = tmp_assign_source_11; - Py_INCREF(var_img); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_12 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_path; - var_path = tmp_assign_source_12; - Py_INCREF(var_path); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_2; - int tmp_truth_name_1; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[59]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 254; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[60]); - Py_DECREF(tmp_called_instance_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_2); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_2); - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_2); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(var_img); - tmp_expression_name_6 = var_img; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[59]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[61]); - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 255; - tmp_assign_source_13 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_3, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 255; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - { - PyObject *old = var_img; - var_img = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_img); - tmp_args_element_name_1 = var_img; - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 257; - tmp_assign_source_14 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[15], tmp_args_element_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - { - PyObject *old = var_pred; - var_pred = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_4; - if (var_executor == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[118]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 259; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_7 = var_executor; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[119]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - tmp_args_element_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[120]); - - if (unlikely(tmp_args_element_name_2 == NULL)) { - tmp_args_element_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[120]); - } - - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 260; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 261; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_8 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[16]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 261; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - CHECK_OBJECT(var_path); - tmp_args_element_name_4 = var_path; - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 259; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_3); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_5; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_4 == NULL) { - exception_keeper_tb_4 = MAKE_TRACEBACK(frame_f6cc4d43175142ef596c007b051512dc, exception_keeper_lineno_4); - } else if (exception_keeper_lineno_4 != 0) { - exception_keeper_tb_4 = ADD_TRACEBACK(exception_keeper_tb_4, frame_f6cc4d43175142ef596c007b051512dc, exception_keeper_lineno_4); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_4, &exception_keeper_value_4, &exception_keeper_tb_4); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_4, exception_keeper_tb_4); - PUBLISH_EXCEPTION(&exception_keeper_type_4, &exception_keeper_value_4, &exception_keeper_tb_4); - // Tried code: - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_1 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_1, tmp_compexpr_right_1); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - nuitka_bool tmp_assign_source_15; - tmp_assign_source_15 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_15; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_5 = tmp_with_1__exit; - tmp_args_element_name_5 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_6 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_7 = EXC_TRACEBACK(PyThreadState_GET()); - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 252; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_5, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_8; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_8; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 252; - } - - if (exception_tb && exception_tb->tb_frame == &frame_f6cc4d43175142ef596c007b051512dc->m_frame) frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooooo"; - goto try_except_handler_8; - branch_no_3:; - goto branch_end_2; - branch_no_2:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 251; - } - - if (exception_tb && exception_tb->tb_frame == &frame_f6cc4d43175142ef596c007b051512dc->m_frame) frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooooo"; - goto try_except_handler_8; - branch_end_2:; - goto try_end_5; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_3; - // End of try: - try_end_5:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_4; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_4:; - goto try_end_6; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_4; - nuitka_bool tmp_compexpr_left_2; - nuitka_bool tmp_compexpr_right_2; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_2 = tmp_with_1__indicator; - tmp_compexpr_right_2 = NUITKA_BOOL_TRUE; - tmp_condition_result_4 = (tmp_compexpr_left_2 == tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_call_result_4; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_6 = tmp_with_1__exit; - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 252; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_6, &PyTuple_GET_ITEM(mod_consts[79], 0)); - - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_6); - Py_XDECREF(exception_keeper_value_6); - Py_XDECREF(exception_keeper_tb_6); - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_4:; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_2; - // End of try: - try_end_6:; - { - bool tmp_condition_result_5; - nuitka_bool tmp_compexpr_left_3; - nuitka_bool tmp_compexpr_right_3; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_3 = tmp_with_1__indicator; - tmp_compexpr_right_3 = NUITKA_BOOL_TRUE; - tmp_condition_result_5 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_7; - PyObject *tmp_call_result_5; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_7 = tmp_with_1__exit; - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 252; - tmp_call_result_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_7, &PyTuple_GET_ITEM(mod_consts[79], 0)); - - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 252; - type_description_1 = "oooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_5); - } - branch_no_5:; - goto try_end_7; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - { - PyObject *tmp_called_name_8; - PyObject *tmp_call_result_6; - tmp_called_name_8 = LOOKUP_BUILTIN(mod_consts[121]); - assert(tmp_called_name_8 != NULL); - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 265; - tmp_call_result_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, mod_consts[122]); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 265; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_6); - } - { - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_7; - PyObject *tmp_kwargs_name_3; - if (var_executor == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[118]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 266; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = var_executor; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[123]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_3 = PyDict_Copy(mod_consts[124]); - frame_f6cc4d43175142ef596c007b051512dc->m_frame.f_lineno = 266; - tmp_call_result_7 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_9, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_kwargs_name_3); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_7); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f6cc4d43175142ef596c007b051512dc); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f6cc4d43175142ef596c007b051512dc); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f6cc4d43175142ef596c007b051512dc, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f6cc4d43175142ef596c007b051512dc->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f6cc4d43175142ef596c007b051512dc, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f6cc4d43175142ef596c007b051512dc, - type_description_1, - par_self, - par_test_loader, - var_executor, - var_img, - var_path, - var_pred - ); - - - // Release cached frame if used for exception. - if (frame_f6cc4d43175142ef596c007b051512dc == cache_frame_f6cc4d43175142ef596c007b051512dc) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f6cc4d43175142ef596c007b051512dc); - cache_frame_f6cc4d43175142ef596c007b051512dc = NULL; - } - - assertFrameObject(frame_f6cc4d43175142ef596c007b051512dc); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_test_loader); - par_test_loader = NULL; - Py_XDECREF(var_executor); - var_executor = NULL; - Py_XDECREF(var_img); - var_img = NULL; - Py_XDECREF(var_path); - var_path = NULL; - Py_XDECREF(var_pred); - var_pred = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_test_loader); - par_test_loader = NULL; - Py_XDECREF(var_executor); - var_executor = NULL; - Py_XDECREF(var_img); - var_img = NULL; - Py_XDECREF(var_path); - var_path = NULL; - Py_XDECREF(var_pred); - var_pred = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__19_dsb_save_batch(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_output_dir = python_pars[0]; - PyObject *par_path = python_pars[1]; - PyObject *par_pred = python_pars[2]; - PyObject *par_save_segmentation = python_pars[3]; - struct Nuitka_CellObject *par_pmaps_thershold = Nuitka_Cell_New1(python_pars[4]); - PyObject *var__pmaps_to_seg = NULL; - PyObject *var_single_pred = NULL; - PyObject *var_single_path = NULL; - PyObject *var_out_file = NULL; - PyObject *var_f = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_1205504d193825f9e92bff64879ca97f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - bool tmp_result; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - static struct Nuitka_FrameObject *cache_frame_1205504d193825f9e92bff64879ca97f = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = par_pmaps_thershold; - Py_INCREF(tmp_closure_1[0]); - - tmp_assign_source_1 = MAKE_FUNCTION_models$unet3d$predictor$$$function__19_dsb_save_batch$$$function__1__pmaps_to_seg(tmp_closure_1); - - assert(var__pmaps_to_seg == NULL); - var__pmaps_to_seg = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_1205504d193825f9e92bff64879ca97f)) { - Py_XDECREF(cache_frame_1205504d193825f9e92bff64879ca97f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1205504d193825f9e92bff64879ca97f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1205504d193825f9e92bff64879ca97f = MAKE_FUNCTION_FRAME(codeobj_1205504d193825f9e92bff64879ca97f, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1205504d193825f9e92bff64879ca97f->m_type_description == NULL); - frame_1205504d193825f9e92bff64879ca97f = cache_frame_1205504d193825f9e92bff64879ca97f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1205504d193825f9e92bff64879ca97f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1205504d193825f9e92bff64879ca97f) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = (PyObject *)&PyZip_Type; - CHECK_OBJECT(par_pred); - tmp_args_element_name_1 = par_pred; - CHECK_OBJECT(par_path); - tmp_args_element_name_2 = par_path; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 275; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oooocooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oooocooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooocooooo"; - exception_lineno = 275; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oooocooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooocooooo"; - exception_lineno = 275; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooocooooo"; - exception_lineno = 275; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooocooooo"; - exception_lineno = 275; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[4]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooocooooo"; - exception_lineno = 275; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_single_pred; - var_single_pred = tmp_assign_source_7; - Py_INCREF(var_single_pred); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_single_path; - var_single_path = tmp_assign_source_8; - Py_INCREF(var_single_path); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[29]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_1 = mod_consts[127]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_single_path); - tmp_format_value_1 = var_single_path; - tmp_format_spec_1 = mod_consts[32]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oooocooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_3 = PyUnicode_Join(mod_consts[32], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 276; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 276; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(var_single_pred); - tmp_called_instance_1 = var_single_pred; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 277; - tmp_assign_source_9 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[64]); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 277; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_single_pred; - var_single_pred = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_subscript_name_1; - PyObject *tmp_right_name_1; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[1]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_single_path); - tmp_args_element_name_4 = var_single_path; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 280; - tmp_expression_name_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[6], tmp_args_element_name_4); - Py_DECREF(tmp_called_instance_2); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_1 = mod_consts[7]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_right_name_1 = mod_consts[128]; - tmp_assign_source_10 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 280; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_out_file; - var_out_file = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - if (par_output_dir == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 281; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_left_1 = par_output_dir; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_7; - PyObject *tmp_subscript_name_2; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[1]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[5]); - Py_DECREF(tmp_expression_name_4); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - if (par_output_dir == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[16]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_5 = par_output_dir; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[1]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_out_file); - tmp_args_element_name_7 = var_out_file; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 282; - tmp_expression_name_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[2], tmp_args_element_name_7); - Py_DECREF(tmp_called_instance_3); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_2 = mod_consts[78]; - tmp_args_element_name_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_2, 1); - Py_DECREF(tmp_expression_name_6); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 282; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_out_file; - var_out_file = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[48]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[48]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - CHECK_OBJECT(var_out_file); - tmp_args_element_name_8 = var_out_file; - tmp_args_element_name_9 = mod_consts[50]; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 284; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_12 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_4, - mod_consts[49], - call_args - ); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_with_1__source; - tmp_with_1__source = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_8 = tmp_with_1__source; - tmp_called_name_4 = LOOKUP_SPECIAL(tmp_expression_name_8, mod_consts[56]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 284; - tmp_assign_source_13 = CALL_FUNCTION_NO_ARGS(tmp_called_name_4); - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_with_1__enter; - tmp_with_1__enter = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_9 = tmp_with_1__source; - tmp_assign_source_14 = LOOKUP_SPECIAL(tmp_expression_name_9, mod_consts[57]); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_with_1__exit; - tmp_with_1__exit = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_assign_source_15; - tmp_assign_source_15 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_with_1__enter); - tmp_assign_source_16 = tmp_with_1__enter; - { - PyObject *old = var_f; - var_f = tmp_assign_source_16; - Py_INCREF(var_f); - Py_XDECREF(old); - } - - } - // Tried code: - // Tried code: - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(var_f); - tmp_expression_name_10 = var_f; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[93]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - tmp_args_name_1 = mod_consts[129]; - tmp_dict_key_1 = mod_consts[94]; - CHECK_OBJECT(var_single_pred); - tmp_dict_value_1 = var_single_pred; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[95]; - tmp_dict_value_1 = mod_consts[96]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 286; - tmp_call_result_2 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - Py_DECREF(tmp_call_result_2); - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - if (par_save_segmentation == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[113]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 287; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - - tmp_truth_name_1 = CHECK_IF_TRUE(par_save_segmentation); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_11; - PyObject *tmp_call_result_3; - PyObject *tmp_args_name_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_called_name_7; - PyObject *tmp_args_element_name_10; - if (var_f == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[130]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - - tmp_expression_name_11 = var_f; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[93]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - tmp_args_name_2 = mod_consts[131]; - tmp_dict_key_2 = mod_consts[94]; - if (var__pmaps_to_seg == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[125]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - - tmp_called_name_7 = var__pmaps_to_seg; - if (var_single_pred == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[132]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - - tmp_args_element_name_10 = var_single_pred; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 288; - tmp_dict_value_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_10); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - tmp_kwargs_name_2 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - tmp_dict_key_2 = mod_consts[95]; - tmp_dict_value_2 = mod_consts[96]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_2, tmp_dict_key_2, tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 288; - tmp_call_result_3 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_7; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_2:; - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_3 == NULL) { - exception_keeper_tb_3 = MAKE_TRACEBACK(frame_1205504d193825f9e92bff64879ca97f, exception_keeper_lineno_3); - } else if (exception_keeper_lineno_3 != 0) { - exception_keeper_tb_3 = ADD_TRACEBACK(exception_keeper_tb_3, frame_1205504d193825f9e92bff64879ca97f, exception_keeper_lineno_3); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_3, &exception_keeper_value_3, &exception_keeper_tb_3); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_3, exception_keeper_tb_3); - PUBLISH_EXCEPTION(&exception_keeper_type_3, &exception_keeper_value_3, &exception_keeper_tb_3); - // Tried code: - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_2 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_2, tmp_compexpr_right_2); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_assign_source_17; - tmp_assign_source_17 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_17; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_8 = tmp_with_1__exit; - tmp_args_element_name_11 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_12 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_13 = EXC_TRACEBACK(PyThreadState_GET()); - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 288; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_8, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_8; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_8; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 288; - } - - if (exception_tb && exception_tb->tb_frame == &frame_1205504d193825f9e92bff64879ca97f->m_frame) frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooocooooo"; - goto try_except_handler_8; - branch_no_4:; - goto branch_end_3; - branch_no_3:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 284; - } - - if (exception_tb && exception_tb->tb_frame == &frame_1205504d193825f9e92bff64879ca97f->m_frame) frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooocooooo"; - goto try_except_handler_8; - branch_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_6; - // End of try: - try_end_4:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_3; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_3:; - goto try_end_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_5; - nuitka_bool tmp_compexpr_left_3; - nuitka_bool tmp_compexpr_right_3; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_3 = tmp_with_1__indicator; - tmp_compexpr_right_3 = NUITKA_BOOL_TRUE; - tmp_condition_result_5 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_9; - PyObject *tmp_call_result_4; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_9 = tmp_with_1__exit; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 288; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_9, &PyTuple_GET_ITEM(mod_consts[79], 0)); - - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_5); - Py_XDECREF(exception_keeper_value_5); - Py_XDECREF(exception_keeper_tb_5); - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_5:; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_5; - // End of try: - try_end_5:; - { - bool tmp_condition_result_6; - nuitka_bool tmp_compexpr_left_4; - nuitka_bool tmp_compexpr_right_4; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_4 = tmp_with_1__indicator; - tmp_compexpr_right_4 = NUITKA_BOOL_TRUE; - tmp_condition_result_6 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_called_name_10; - PyObject *tmp_call_result_5; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_10 = tmp_with_1__exit; - frame_1205504d193825f9e92bff64879ca97f->m_frame.f_lineno = 288; - tmp_call_result_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_10, &PyTuple_GET_ITEM(mod_consts[79], 0)); - - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooocooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_5); - } - branch_no_6:; - goto try_end_6; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_2; - // End of try: - try_end_6:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oooocooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_7; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto frame_exception_exit_1; - // End of try: - try_end_7:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1205504d193825f9e92bff64879ca97f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1205504d193825f9e92bff64879ca97f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1205504d193825f9e92bff64879ca97f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1205504d193825f9e92bff64879ca97f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1205504d193825f9e92bff64879ca97f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1205504d193825f9e92bff64879ca97f, - type_description_1, - par_output_dir, - par_path, - par_pred, - par_save_segmentation, - par_pmaps_thershold, - var__pmaps_to_seg, - var_single_pred, - var_single_path, - var_out_file, - var_f - ); - - - // Release cached frame if used for exception. - if (frame_1205504d193825f9e92bff64879ca97f == cache_frame_1205504d193825f9e92bff64879ca97f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1205504d193825f9e92bff64879ca97f); - cache_frame_1205504d193825f9e92bff64879ca97f = NULL; - } - - assertFrameObject(frame_1205504d193825f9e92bff64879ca97f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_path); - Py_DECREF(par_path); - par_path = NULL; - CHECK_OBJECT(par_pred); - Py_DECREF(par_pred); - par_pred = NULL; - Py_XDECREF(par_save_segmentation); - par_save_segmentation = NULL; - CHECK_OBJECT(par_pmaps_thershold); - Py_DECREF(par_pmaps_thershold); - par_pmaps_thershold = NULL; - Py_XDECREF(var__pmaps_to_seg); - var__pmaps_to_seg = NULL; - Py_XDECREF(var_single_pred); - var_single_pred = NULL; - Py_XDECREF(var_single_path); - var_single_path = NULL; - Py_XDECREF(var_out_file); - var_out_file = NULL; - Py_XDECREF(var_f); - var_f = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_output_dir); - par_output_dir = NULL; - CHECK_OBJECT(par_path); - Py_DECREF(par_path); - par_path = NULL; - CHECK_OBJECT(par_pred); - Py_DECREF(par_pred); - par_pred = NULL; - Py_XDECREF(par_save_segmentation); - par_save_segmentation = NULL; - CHECK_OBJECT(par_pmaps_thershold); - Py_DECREF(par_pmaps_thershold); - par_pmaps_thershold = NULL; - Py_XDECREF(var__pmaps_to_seg); - var__pmaps_to_seg = NULL; - Py_XDECREF(var_single_pred); - var_single_pred = NULL; - Py_XDECREF(var_single_path); - var_single_path = NULL; - Py_XDECREF(var_out_file); - var_out_file = NULL; - Py_XDECREF(var_f); - var_f = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$predictor$$$function__19_dsb_save_batch$$$function__1__pmaps_to_seg(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_pred = python_pars[0]; - PyObject *var_mask = NULL; - struct Nuitka_FrameObject *frame_99c2b4b393370469d449fa5be8ea39af; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_99c2b4b393370469d449fa5be8ea39af = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_99c2b4b393370469d449fa5be8ea39af)) { - Py_XDECREF(cache_frame_99c2b4b393370469d449fa5be8ea39af); - -#if _DEBUG_REFCOUNTS - if (cache_frame_99c2b4b393370469d449fa5be8ea39af == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_99c2b4b393370469d449fa5be8ea39af = MAKE_FUNCTION_FRAME(codeobj_99c2b4b393370469d449fa5be8ea39af, module_models$unet3d$predictor, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_99c2b4b393370469d449fa5be8ea39af->m_type_description == NULL); - frame_99c2b4b393370469d449fa5be8ea39af = cache_frame_99c2b4b393370469d449fa5be8ea39af; - - // Push the new frame as the currently active one. - pushFrameStack(frame_99c2b4b393370469d449fa5be8ea39af); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_99c2b4b393370469d449fa5be8ea39af) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_pred); - tmp_compexpr_left_1 = par_pred; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[112]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 271; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - - tmp_compexpr_right_1 = Nuitka_Cell_GET(self->m_closure[0]); - tmp_assign_source_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 271; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - assert(var_mask == NULL); - var_mask = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[133]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[133]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_mask); - tmp_args_element_name_1 = var_mask; - frame_99c2b4b393370469d449fa5be8ea39af->m_frame.f_lineno = 272; - tmp_called_instance_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[134], tmp_args_element_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - frame_99c2b4b393370469d449fa5be8ea39af->m_frame.f_lineno = 272; - tmp_return_value = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[135], - &PyTuple_GET_ITEM(mod_consts[136], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "ooc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_99c2b4b393370469d449fa5be8ea39af); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_99c2b4b393370469d449fa5be8ea39af); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_99c2b4b393370469d449fa5be8ea39af); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_99c2b4b393370469d449fa5be8ea39af, exception_lineno); - } else if (exception_tb->tb_frame != &frame_99c2b4b393370469d449fa5be8ea39af->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_99c2b4b393370469d449fa5be8ea39af, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_99c2b4b393370469d449fa5be8ea39af, - type_description_1, - par_pred, - var_mask, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_99c2b4b393370469d449fa5be8ea39af == cache_frame_99c2b4b393370469d449fa5be8ea39af) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_99c2b4b393370469d449fa5be8ea39af); - cache_frame_99c2b4b393370469d449fa5be8ea39af = NULL; - } - - assertFrameObject(frame_99c2b4b393370469d449fa5be8ea39af); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_pred); - Py_DECREF(par_pred); - par_pred = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_pred); - Py_DECREF(par_pred); - par_pred = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__10__save_results() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__10__save_results, - mod_consts[85], -#if PYTHON_VERSION >= 0x300 - mod_consts[181], -#endif - codeobj_e718675254b06885e1aa7656b16dec34, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__11__pad() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__11__pad, - mod_consts[62], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_989443e4e43d7438067f39a09157b360, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__12__unpad() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__12__unpad, - mod_consts[67], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_07cbe57c14d20fc9570d667e537912d9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__13___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__13___init__, - mod_consts[25], -#if PYTHON_VERSION >= 0x300 - mod_consts[185], -#endif - codeobj_705bda7d6673d7b7394952127174c725, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__14__allocate_prediction_maps() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__14__allocate_prediction_maps, - mod_consts[52], -#if PYTHON_VERSION >= 0x300 - mod_consts[186], -#endif - codeobj_1f99e51ff5df2510c2b0ace52698561d, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__15__save_results() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__15__save_results, - mod_consts[85], -#if PYTHON_VERSION >= 0x300 - mod_consts[187], -#endif - codeobj_22cdd3268e91283d209035484befb961, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__16___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__16___init__, - mod_consts[25], -#if PYTHON_VERSION >= 0x300 - mod_consts[190], -#endif - codeobj_dcd17f5afd82ae6840c9b24712bd4189, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__17__slice_from_pad() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__17__slice_from_pad, - mod_consts[191], -#if PYTHON_VERSION >= 0x300 - mod_consts[192], -#endif - codeobj_930c7addf8d4e8ab57ac0d86a59b45e9, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__18___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__18___call__, - mod_consts[174], -#if PYTHON_VERSION >= 0x300 - mod_consts[193], -#endif - codeobj_f6cc4d43175142ef596c007b051512dc, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__19_dsb_save_batch(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__19_dsb_save_batch, - mod_consts[120], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_1205504d193825f9e92bff64879ca97f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__19_dsb_save_batch$$$function__1__pmaps_to_seg(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__19_dsb_save_batch$$$function__1__pmaps_to_seg, - mod_consts[125], -#if PYTHON_VERSION >= 0x300 - mod_consts[126], -#endif - codeobj_99c2b4b393370469d449fa5be8ea39af, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__1__get_output_file(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__1__get_output_file, - mod_consts[47], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_68e1784c45ce56b7a898263ca3d286b3, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__2__get_dataset_name(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__2__get_dataset_name, - mod_consts[92], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_f2b89732675bda34182075fd0575336f, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__3__is_2d_model() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__3__is_2d_model, - mod_consts[46], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_7298cf55343e2cf941e7ce2ab35cccff, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__4___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__4___init__, - mod_consts[25], -#if PYTHON_VERSION >= 0x300 - mod_consts[171], -#endif - codeobj_e6cb236fb3fdabaf9c6ffb55bc474219, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__5_volume_shape() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__5_volume_shape, - mod_consts[41], -#if PYTHON_VERSION >= 0x300 - mod_consts[173], -#endif - codeobj_46d152c9497b774acdf337c98dc16053, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__6___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__6___call__, - mod_consts[174], -#if PYTHON_VERSION >= 0x300 - mod_consts[175], -#endif - codeobj_d22562c3c8d13a87206feda6eb48d1fb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__7___init__(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__7___init__, - mod_consts[25], -#if PYTHON_VERSION >= 0x300 - mod_consts[178], -#endif - codeobj_80a71c310d45263d95d2a410d98e469a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__8___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__8___call__, - mod_consts[174], -#if PYTHON_VERSION >= 0x300 - mod_consts[179], -#endif - codeobj_12e22a3ebd81123517bf550395e990d0, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$predictor$$$function__9__allocate_prediction_maps() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$predictor$$$function__9__allocate_prediction_maps, - mod_consts[52], -#if PYTHON_VERSION >= 0x300 - mod_consts[180], -#endif - codeobj_9acb737f0b5b77657e415d5b3f608a87, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$predictor, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$predictor[] = { - impl_models$unet3d$predictor$$$function__19_dsb_save_batch$$$function__1__pmaps_to_seg, - impl_models$unet3d$predictor$$$function__1__get_output_file, - impl_models$unet3d$predictor$$$function__2__get_dataset_name, - impl_models$unet3d$predictor$$$function__3__is_2d_model, - impl_models$unet3d$predictor$$$function__4___init__, - impl_models$unet3d$predictor$$$function__5_volume_shape, - impl_models$unet3d$predictor$$$function__6___call__, - impl_models$unet3d$predictor$$$function__7___init__, - impl_models$unet3d$predictor$$$function__8___call__, - impl_models$unet3d$predictor$$$function__9__allocate_prediction_maps, - impl_models$unet3d$predictor$$$function__10__save_results, - impl_models$unet3d$predictor$$$function__11__pad, - impl_models$unet3d$predictor$$$function__12__unpad, - impl_models$unet3d$predictor$$$function__13___init__, - impl_models$unet3d$predictor$$$function__14__allocate_prediction_maps, - impl_models$unet3d$predictor$$$function__15__save_results, - impl_models$unet3d$predictor$$$function__16___init__, - impl_models$unet3d$predictor$$$function__17__slice_from_pad, - impl_models$unet3d$predictor$$$function__18___call__, - impl_models$unet3d$predictor$$$function__19_dsb_save_batch, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$predictor; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$predictor) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$predictor[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$predictor, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$predictor(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$predictor = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.predictor: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.predictor: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.predictor: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$predictor\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$predictor = MODULE_DICT(module_models$unet3d$predictor); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$predictor, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$predictor, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$predictor, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$predictor, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$predictor, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$predictor); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$predictor); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - struct Nuitka_CellObject *outline_1_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - struct Nuitka_CellObject *outline_3_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - PyObject *tmp_class_creation_4__bases = NULL; - PyObject *tmp_class_creation_4__bases_orig = NULL; - PyObject *tmp_class_creation_4__class_decl_dict = NULL; - PyObject *tmp_class_creation_4__metaclass = NULL; - PyObject *tmp_class_creation_4__prepared = NULL; - struct Nuitka_FrameObject *frame_63b960195e39bc165f63de7fa2cab847; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_c4266b88ebda23201522fdf805d2c1a0_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_c4266b88ebda23201522fdf805d2c1a0_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *locals_models$unet3d$predictor$$$class__2_StandardPredictor_57 = NULL; - struct Nuitka_FrameObject *frame_654ac4e36b1ceb797e7f7b084a3adade_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$unet3d$predictor$$$class__3_LazyPredictor_191 = NULL; - struct Nuitka_FrameObject *frame_fe4d8960e59865f68d63911a210b309b_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_fe4d8960e59865f68d63911a210b309b_4 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233 = NULL; - struct Nuitka_FrameObject *frame_5e0c7d03dd4bae0660fe38f64d474d39_5; - NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; - static struct Nuitka_FrameObject *cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5 = NULL; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[137], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[138], tmp_assign_source_2); - } - // Frame without reuse. - frame_63b960195e39bc165f63de7fa2cab847 = MAKE_MODULE_FRAME(codeobj_63b960195e39bc165f63de7fa2cab847, module_models$unet3d$predictor); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_63b960195e39bc165f63de7fa2cab847); - assert(Py_REFCNT(frame_63b960195e39bc165f63de7fa2cab847) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[139]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[139]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[140], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[139]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[139]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[141], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[142], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_4 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[34]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 2; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - assert(!(tmp_assign_source_5 == NULL)); - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[34], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[143]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[144]; - tmp_level_name_2 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 3; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[115], - mod_consts[7] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[115]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[115], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[48]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 5; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[48], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[69]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 6; - tmp_assign_source_8 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[73], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[54]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = Py_None; - tmp_level_name_5 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 7; - tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[54], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[145]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[146]; - tmp_level_name_6 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 8; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[133], - mod_consts[7] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[133]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[133], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[54]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[147]; - tmp_level_name_7 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 9; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[11], - mod_consts[7] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[11]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[58]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[148]; - tmp_level_name_8 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 10; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[58], - mod_consts[7] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[58]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[58], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_5; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[149]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[150]; - tmp_level_name_9 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 12; - tmp_import_name_from_5 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[27], - mod_consts[7] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[27]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[27], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[151]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = mod_consts[152]; - tmp_level_name_10 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 13; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[106], - mod_consts[7] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[106]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[106], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_import_name_from_7; - PyObject *tmp_name_name_11; - PyObject *tmp_globals_arg_name_11; - PyObject *tmp_locals_arg_name_11; - PyObject *tmp_fromlist_name_11; - PyObject *tmp_level_name_11; - tmp_name_name_11 = mod_consts[153]; - tmp_globals_arg_name_11 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_11 = Py_None; - tmp_fromlist_name_11 = mod_consts[154]; - tmp_level_name_11 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 14; - tmp_import_name_from_7 = IMPORT_MODULE5(tmp_name_name_11, tmp_globals_arg_name_11, tmp_locals_arg_name_11, tmp_fromlist_name_11, tmp_level_name_11); - if (tmp_import_name_from_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_15 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[14], - mod_consts[7] - ); - } else { - tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[14]); - } - - Py_DECREF(tmp_import_name_from_7); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[14], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_8; - PyObject *tmp_name_name_12; - PyObject *tmp_globals_arg_name_12; - PyObject *tmp_locals_arg_name_12; - PyObject *tmp_fromlist_name_12; - PyObject *tmp_level_name_12; - tmp_name_name_12 = mod_consts[155]; - tmp_globals_arg_name_12 = (PyObject *)moduledict_models$unet3d$predictor; - tmp_locals_arg_name_12 = Py_None; - tmp_fromlist_name_12 = mod_consts[156]; - tmp_level_name_12 = mod_consts[7]; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 15; - tmp_import_name_from_8 = IMPORT_MODULE5(tmp_name_name_12, tmp_globals_arg_name_12, tmp_locals_arg_name_12, tmp_fromlist_name_12, tmp_level_name_12); - if (tmp_import_name_from_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$unet3d$predictor, - mod_consts[157], - mod_consts[7] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[157]); - } - - Py_DECREF(tmp_import_name_from_8); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[157], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[157]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[157]); - } - - assert(!(tmp_called_name_1 == NULL)); - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 17; - tmp_assign_source_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, mod_consts[158]); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 17; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[159]; - Py_INCREF(tmp_defaults_1); - - - tmp_assign_source_18 = MAKE_FUNCTION_models$unet3d$predictor$$$function__1__get_output_file(tmp_defaults_1); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[47], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[129]; - Py_INCREF(tmp_defaults_2); - - - tmp_assign_source_19 = MAKE_FUNCTION_models$unet3d$predictor$$$function__2__get_dataset_name(tmp_defaults_2); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[92], tmp_assign_source_19); - } - { - PyObject *tmp_assign_source_20; - - - tmp_assign_source_20 = MAKE_FUNCTION_models$unet3d$predictor$$$function__3__is_2d_model(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[46], tmp_assign_source_20); - } - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_21; - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[160]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[161]; - tmp_assign_source_22 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_22; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[160]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_1 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[162]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[162]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - tmp_args_name_1 = mod_consts[163]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 38; - tmp_assign_source_23 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_23; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_3 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[164]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[166]; - tmp_getattr_default_1 = mod_consts[167]; - tmp_tuple_element_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_4; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_4 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_4 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[166]); - Py_DECREF(tmp_expression_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_1; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 38; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_24; - } - branch_end_2:; - { - PyObject *tmp_assign_source_25; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[166]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[166]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[168], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[169]; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[170], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_3; - } - if (isFrameUnusable(cache_frame_c4266b88ebda23201522fdf805d2c1a0_2)) { - Py_XDECREF(cache_frame_c4266b88ebda23201522fdf805d2c1a0_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_c4266b88ebda23201522fdf805d2c1a0_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_c4266b88ebda23201522fdf805d2c1a0_2 = MAKE_FUNCTION_FRAME(codeobj_c4266b88ebda23201522fdf805d2c1a0, module_models$unet3d$predictor, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_c4266b88ebda23201522fdf805d2c1a0_2->m_type_description == NULL); - frame_c4266b88ebda23201522fdf805d2c1a0_2 = cache_frame_c4266b88ebda23201522fdf805d2c1a0_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_c4266b88ebda23201522fdf805d2c1a0_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_c4266b88ebda23201522fdf805d2c1a0_2) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__4___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[25], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[172]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_condition_result_5 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - tmp_called_name_3 = PyObject_GetItem(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[172]); - - if (unlikely(tmp_called_name_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[172]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$unet3d$predictor$$$function__5_volume_shape(); - - frame_c4266b88ebda23201522fdf805d2c1a0_2->m_frame.f_lineno = 45; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - goto condexpr_end_2; - condexpr_false_2:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$unet3d$predictor$$$function__5_volume_shape(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_2:; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[41], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__6___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38, mod_consts[174], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 53; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c4266b88ebda23201522fdf805d2c1a0_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_c4266b88ebda23201522fdf805d2c1a0_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_c4266b88ebda23201522fdf805d2c1a0_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_c4266b88ebda23201522fdf805d2c1a0_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_c4266b88ebda23201522fdf805d2c1a0_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_c4266b88ebda23201522fdf805d2c1a0_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_c4266b88ebda23201522fdf805d2c1a0_2 == cache_frame_c4266b88ebda23201522fdf805d2c1a0_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_c4266b88ebda23201522fdf805d2c1a0_2); - cache_frame_c4266b88ebda23201522fdf805d2c1a0_2 = NULL; - } - - assertFrameObject(frame_c4266b88ebda23201522fdf805d2c1a0_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_3; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_4 = tmp_class_creation_1__metaclass; - tmp_tuple_element_2 = mod_consts[169]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[161]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 38; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - - goto try_except_handler_3; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_26; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_25 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_25); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_DECREF(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38); - locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38 = NULL; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38); - locals_models$unet3d$predictor$$$class__1__AbstractPredictor_38 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 38; - goto try_except_handler_1; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[169], tmp_assign_source_25); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_27; - PyObject *tmp_tuple_element_3; - tmp_tuple_element_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[169]); - - if (unlikely(tmp_tuple_element_3 == NULL)) { - tmp_tuple_element_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[169]); - } - - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - tmp_assign_source_27 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_27, 0, tmp_tuple_element_3); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_27; - } - { - PyObject *tmp_assign_source_28; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_28 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_28; - } - { - PyObject *tmp_assign_source_29; - tmp_assign_source_29 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_29; - } - { - PyObject *tmp_assign_source_30; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_6; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_7; - int tmp_truth_name_1; - PyObject *tmp_type_arg_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_6 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[160]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - tmp_condition_result_7 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_5 = tmp_class_creation_2__bases; - tmp_subscript_name_1 = mod_consts[7]; - tmp_type_arg_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_1, 0); - if (tmp_type_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_2); - Py_DECREF(tmp_type_arg_2); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_30 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_30; - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_8 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[160]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_6 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_6, mod_consts[162]); - tmp_condition_result_9 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_7 = tmp_class_creation_2__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[162]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - tmp_tuple_element_4 = mod_consts[176]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_4 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 57; - tmp_assign_source_31 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_31; - } - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_8 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_8, mod_consts[164]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - tmp_condition_result_10 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_5; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[166]; - tmp_getattr_default_2 = mod_consts[167]; - tmp_tuple_element_5 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_9; - PyObject *tmp_type_arg_3; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_3 = tmp_class_creation_2__prepared; - tmp_expression_name_9 = BUILTIN_TYPE1(tmp_type_arg_3); - assert(!(tmp_expression_name_9 == NULL)); - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[166]); - Py_DECREF(tmp_expression_name_9); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 57; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_6:; - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assign_source_32; - tmp_assign_source_32 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_32; - } - branch_end_5:; - { - PyObject *tmp_assign_source_33; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$predictor$$$class__2_StandardPredictor_57 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[166]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[166]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[168], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[177]; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[176]; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[170], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3)) { - Py_XDECREF(cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3 = MAKE_FUNCTION_FRAME(codeobj_654ac4e36b1ceb797e7f7b084a3adade, module_models$unet3d$predictor, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3->m_type_description == NULL); - frame_654ac4e36b1ceb797e7f7b084a3adade_3 = cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_654ac4e36b1ceb797e7f7b084a3adade_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_654ac4e36b1ceb797e7f7b084a3adade_3) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = outline_1_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__7___init__(tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[25], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 72; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__8___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[174], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 75; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__9__allocate_prediction_maps(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[52], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__10__save_results(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[85], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_2 = "c"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_654ac4e36b1ceb797e7f7b084a3adade_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_654ac4e36b1ceb797e7f7b084a3adade_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_654ac4e36b1ceb797e7f7b084a3adade_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_654ac4e36b1ceb797e7f7b084a3adade_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_654ac4e36b1ceb797e7f7b084a3adade_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_654ac4e36b1ceb797e7f7b084a3adade_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_654ac4e36b1ceb797e7f7b084a3adade_3 == cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3); - cache_frame_654ac4e36b1ceb797e7f7b084a3adade_3 = NULL; - } - - assertFrameObject(frame_654ac4e36b1ceb797e7f7b084a3adade_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_6; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_1 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_2__bases_orig; - tmp_condition_result_11 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_11 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_6; - } - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - assert(tmp_condition_result_11 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_7:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57, mod_consts[182], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_6; - } - branch_no_7:; - { - PyObject *tmp_assign_source_34; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_6 = tmp_class_creation_2__metaclass; - tmp_tuple_element_6 = mod_consts[176]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_6); - tmp_tuple_element_6 = locals_models$unet3d$predictor$$$class__2_StandardPredictor_57; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 57; - tmp_assign_source_34 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_34 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 57; - - goto try_except_handler_6; - } - { - PyObject *old = Nuitka_Cell_GET(outline_1_var___class__); - PyCell_SET(outline_1_var___class__, tmp_assign_source_34); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_1_var___class__)); - tmp_assign_source_33 = Nuitka_Cell_GET(outline_1_var___class__); - Py_INCREF(tmp_assign_source_33); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57); - locals_models$unet3d$predictor$$$class__2_StandardPredictor_57 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$predictor$$$class__2_StandardPredictor_57); - locals_models$unet3d$predictor$$$class__2_StandardPredictor_57 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 57; - goto try_except_handler_4; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[176], tmp_assign_source_33); - } - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_35; - - - tmp_assign_source_35 = MAKE_FUNCTION_models$unet3d$predictor$$$function__11__pad(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[62], tmp_assign_source_35); - } - { - PyObject *tmp_assign_source_36; - - - tmp_assign_source_36 = MAKE_FUNCTION_models$unet3d$predictor$$$function__12__unpad(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[67], tmp_assign_source_36); - } - // Tried code: - { - PyObject *tmp_assign_source_37; - PyObject *tmp_tuple_element_7; - tmp_tuple_element_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[176]); - - if (unlikely(tmp_tuple_element_7 == NULL)) { - tmp_tuple_element_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[176]); - } - - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - tmp_assign_source_37 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_37, 0, tmp_tuple_element_7); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_37; - } - { - PyObject *tmp_assign_source_38; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_38 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_38 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_38; - } - { - PyObject *tmp_assign_source_39; - tmp_assign_source_39 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_39; - } - { - PyObject *tmp_assign_source_40; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_12; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_13; - int tmp_truth_name_2; - PyObject *tmp_type_arg_4; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_12 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[160]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - tmp_condition_result_13 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_10 = tmp_class_creation_3__bases; - tmp_subscript_name_2 = mod_consts[7]; - tmp_type_arg_4 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_2, 0); - if (tmp_type_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_4); - Py_DECREF(tmp_type_arg_4); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_40 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_40 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_40; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_14 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[160]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - branch_no_8:; - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_11 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[162]); - tmp_condition_result_15 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_assign_source_41; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_12 = tmp_class_creation_3__metaclass; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[162]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - tmp_tuple_element_8 = mod_consts[183]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_8 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 191; - tmp_assign_source_41 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_41 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_41; - } - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_13 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_13, mod_consts[164]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - tmp_condition_result_16 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_9; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[166]; - tmp_getattr_default_3 = mod_consts[167]; - tmp_tuple_element_9 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_14; - PyObject *tmp_type_arg_5; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_5 = tmp_class_creation_3__prepared; - tmp_expression_name_14 = BUILTIN_TYPE1(tmp_type_arg_5); - assert(!(tmp_expression_name_14 == NULL)); - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[166]); - Py_DECREF(tmp_expression_name_14); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_9); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 191; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_10:; - goto branch_end_9; - branch_no_9:; - { - PyObject *tmp_assign_source_42; - tmp_assign_source_42 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_42; - } - branch_end_9:; - { - PyObject *tmp_assign_source_43; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$predictor$$$class__3_LazyPredictor_191 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[166]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[166]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[168], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[184]; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[137], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[183]; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[170], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_fe4d8960e59865f68d63911a210b309b_4)) { - Py_XDECREF(cache_frame_fe4d8960e59865f68d63911a210b309b_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_fe4d8960e59865f68d63911a210b309b_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_fe4d8960e59865f68d63911a210b309b_4 = MAKE_FUNCTION_FRAME(codeobj_fe4d8960e59865f68d63911a210b309b, module_models$unet3d$predictor, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_fe4d8960e59865f68d63911a210b309b_4->m_type_description == NULL); - frame_fe4d8960e59865f68d63911a210b309b_4 = cache_frame_fe4d8960e59865f68d63911a210b309b_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_fe4d8960e59865f68d63911a210b309b_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_fe4d8960e59865f68d63911a210b309b_4) == 2); // Frame stack - - // Framed code: - { - struct Nuitka_CellObject *tmp_closure_2[1]; - - tmp_closure_2[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_2[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__13___init__(tmp_closure_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[25], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__14__allocate_prediction_maps(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[52], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 210; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__15__save_results(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[85], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe4d8960e59865f68d63911a210b309b_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_fe4d8960e59865f68d63911a210b309b_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_fe4d8960e59865f68d63911a210b309b_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_fe4d8960e59865f68d63911a210b309b_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_fe4d8960e59865f68d63911a210b309b_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_fe4d8960e59865f68d63911a210b309b_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_fe4d8960e59865f68d63911a210b309b_4 == cache_frame_fe4d8960e59865f68d63911a210b309b_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_fe4d8960e59865f68d63911a210b309b_4); - cache_frame_fe4d8960e59865f68d63911a210b309b_4 = NULL; - } - - assertFrameObject(frame_fe4d8960e59865f68d63911a210b309b_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_9; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_2 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_3__bases_orig; - tmp_condition_result_17 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_17 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_9; - } - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - assert(tmp_condition_result_17 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_11:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191, mod_consts[182], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_9; - } - branch_no_11:; - { - PyObject *tmp_assign_source_44; - PyObject *tmp_called_name_8; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_8 = tmp_class_creation_3__metaclass; - tmp_tuple_element_10 = mod_consts[183]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_10); - tmp_tuple_element_10 = locals_models$unet3d$predictor$$$class__3_LazyPredictor_191; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 191; - tmp_assign_source_44 = CALL_FUNCTION(tmp_called_name_8, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_44 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 191; - - goto try_except_handler_9; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_44); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_43 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_43); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191); - locals_models$unet3d$predictor$$$class__3_LazyPredictor_191 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$predictor$$$class__3_LazyPredictor_191); - locals_models$unet3d$predictor$$$class__3_LazyPredictor_191 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 191; - goto try_except_handler_7; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[183], tmp_assign_source_43); - } - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_45; - PyObject *tmp_tuple_element_11; - tmp_tuple_element_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[169]); - - if (unlikely(tmp_tuple_element_11 == NULL)) { - tmp_tuple_element_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[169]); - } - - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - tmp_assign_source_45 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_45, 0, tmp_tuple_element_11); - assert(tmp_class_creation_4__bases_orig == NULL); - tmp_class_creation_4__bases_orig = tmp_assign_source_45; - } - { - PyObject *tmp_assign_source_46; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_4__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_46 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_46 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - assert(tmp_class_creation_4__bases == NULL); - tmp_class_creation_4__bases = tmp_assign_source_46; - } - { - PyObject *tmp_assign_source_47; - tmp_assign_source_47 = PyDict_New(); - assert(tmp_class_creation_4__class_decl_dict == NULL); - tmp_class_creation_4__class_decl_dict = tmp_assign_source_47; - } - { - PyObject *tmp_assign_source_48; - PyObject *tmp_metaclass_name_4; - nuitka_bool tmp_condition_result_18; - PyObject *tmp_key_name_10; - PyObject *tmp_dict_arg_name_10; - PyObject *tmp_dict_arg_name_11; - PyObject *tmp_key_name_11; - nuitka_bool tmp_condition_result_19; - int tmp_truth_name_3; - PyObject *tmp_type_arg_6; - PyObject *tmp_expression_name_15; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_4; - tmp_key_name_10 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_10 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_10, tmp_key_name_10); - assert(!(tmp_res == -1)); - tmp_condition_result_18 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto condexpr_true_7; - } else { - goto condexpr_false_7; - } - condexpr_true_7:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_11 = tmp_class_creation_4__class_decl_dict; - tmp_key_name_11 = mod_consts[160]; - tmp_metaclass_name_4 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_11, tmp_key_name_11); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - goto condexpr_end_7; - condexpr_false_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_4__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - tmp_condition_result_19 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_19 == NUITKA_BOOL_TRUE) { - goto condexpr_true_8; - } else { - goto condexpr_false_8; - } - condexpr_true_8:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_expression_name_15 = tmp_class_creation_4__bases; - tmp_subscript_name_3 = mod_consts[7]; - tmp_type_arg_6 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_3, 0); - if (tmp_type_arg_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - tmp_metaclass_name_4 = BUILTIN_TYPE1(tmp_type_arg_6); - Py_DECREF(tmp_type_arg_6); - if (tmp_metaclass_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - goto condexpr_end_8; - condexpr_false_8:; - tmp_metaclass_name_4 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_4); - condexpr_end_8:; - condexpr_end_7:; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_bases_name_4 = tmp_class_creation_4__bases; - tmp_assign_source_48 = SELECT_METACLASS(tmp_metaclass_name_4, tmp_bases_name_4); - Py_DECREF(tmp_metaclass_name_4); - if (tmp_assign_source_48 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - assert(tmp_class_creation_4__metaclass == NULL); - tmp_class_creation_4__metaclass = tmp_assign_source_48; - } - { - nuitka_bool tmp_condition_result_20; - PyObject *tmp_key_name_12; - PyObject *tmp_dict_arg_name_12; - tmp_key_name_12 = mod_consts[160]; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dict_arg_name_12 = tmp_class_creation_4__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_12, tmp_key_name_12); - assert(!(tmp_res == -1)); - tmp_condition_result_20 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_20 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; - tmp_dictdel_key = mod_consts[160]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - branch_no_12:; - { - nuitka_bool tmp_condition_result_21; - PyObject *tmp_expression_name_16; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_16 = tmp_class_creation_4__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_16, mod_consts[162]); - tmp_condition_result_21 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_21 == NUITKA_BOOL_TRUE) { - goto branch_yes_13; - } else { - goto branch_no_13; - } - } - branch_yes_13:; - { - PyObject *tmp_assign_source_49; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_name_7; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_7; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_expression_name_17 = tmp_class_creation_4__metaclass; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[162]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - tmp_tuple_element_12 = mod_consts[188]; - tmp_args_name_7 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_7, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_12 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_7, 1, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_7 = tmp_class_creation_4__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 233; - tmp_assign_source_49 = CALL_FUNCTION(tmp_called_name_9, tmp_args_name_7, tmp_kwargs_name_7); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_name_7); - if (tmp_assign_source_49 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_49; - } - { - nuitka_bool tmp_condition_result_22; - PyObject *tmp_operand_name_4; - PyObject *tmp_expression_name_18; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_expression_name_18 = tmp_class_creation_4__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_18, mod_consts[164]); - tmp_operand_name_4 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - tmp_condition_result_22 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_22 == NUITKA_BOOL_TRUE) { - goto branch_yes_14; - } else { - goto branch_no_14; - } - } - branch_yes_14:; - { - PyObject *tmp_raise_type_4; - PyObject *tmp_raise_value_4; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyObject *tmp_tuple_element_13; - PyObject *tmp_getattr_target_4; - PyObject *tmp_getattr_attr_4; - PyObject *tmp_getattr_default_4; - tmp_raise_type_4 = PyExc_TypeError; - tmp_left_name_4 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_getattr_target_4 = tmp_class_creation_4__metaclass; - tmp_getattr_attr_4 = mod_consts[166]; - tmp_getattr_default_4 = mod_consts[167]; - tmp_tuple_element_13 = BUILTIN_GETATTR(tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - tmp_right_name_4 = PyTuple_New(2); - { - PyObject *tmp_expression_name_19; - PyObject *tmp_type_arg_7; - PyTuple_SET_ITEM(tmp_right_name_4, 0, tmp_tuple_element_13); - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_type_arg_7 = tmp_class_creation_4__prepared; - tmp_expression_name_19 = BUILTIN_TYPE1(tmp_type_arg_7); - assert(!(tmp_expression_name_19 == NULL)); - tmp_tuple_element_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[166]); - Py_DECREF(tmp_expression_name_19); - if (tmp_tuple_element_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_right_name_4, 1, tmp_tuple_element_13); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_right_name_4); - goto try_except_handler_10; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_raise_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_raise_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_10; - } - exception_type = tmp_raise_type_4; - Py_INCREF(tmp_raise_type_4); - exception_value = tmp_raise_value_4; - exception_lineno = 233; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_10; - } - branch_no_14:; - goto branch_end_13; - branch_no_13:; - { - PyObject *tmp_assign_source_50; - tmp_assign_source_50 = PyDict_New(); - assert(tmp_class_creation_4__prepared == NULL); - tmp_class_creation_4__prepared = tmp_assign_source_50; - } - branch_end_13:; - { - PyObject *tmp_assign_source_51; - { - PyObject *tmp_set_locals_4; - CHECK_OBJECT(tmp_class_creation_4__prepared); - tmp_set_locals_4 = tmp_class_creation_4__prepared; - locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233 = tmp_set_locals_4; - Py_INCREF(tmp_set_locals_4); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[166]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[166]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233, mod_consts[168], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_12; - } - tmp_dictset_value = mod_consts[188]; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233, mod_consts[170], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_12; - } - if (isFrameUnusable(cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5)) { - Py_XDECREF(cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5 = MAKE_FUNCTION_FRAME(codeobj_5e0c7d03dd4bae0660fe38f64d474d39, module_models$unet3d$predictor, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5->m_type_description == NULL); - frame_5e0c7d03dd4bae0660fe38f64d474d39_5 = cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5e0c7d03dd4bae0660fe38f64d474d39_5); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5e0c7d03dd4bae0660fe38f64d474d39_5) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - struct Nuitka_CellObject *tmp_closure_3[1]; - tmp_defaults_3 = mod_consts[189]; - Py_INCREF(tmp_defaults_3); - - tmp_closure_3[0] = outline_3_var___class__; - Py_INCREF(tmp_closure_3[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__16___init__(tmp_defaults_3, tmp_closure_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233, mod_consts[25], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__17__slice_from_pad(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233, mod_consts[191], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$predictor$$$function__18___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233, mod_consts[174], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_2 = "c"; - goto frame_exception_exit_5; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5e0c7d03dd4bae0660fe38f64d474d39_5); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_4; - - frame_exception_exit_5:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5e0c7d03dd4bae0660fe38f64d474d39_5); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5e0c7d03dd4bae0660fe38f64d474d39_5, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5e0c7d03dd4bae0660fe38f64d474d39_5->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5e0c7d03dd4bae0660fe38f64d474d39_5, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5e0c7d03dd4bae0660fe38f64d474d39_5, - type_description_2, - outline_3_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_5e0c7d03dd4bae0660fe38f64d474d39_5 == cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5); - cache_frame_5e0c7d03dd4bae0660fe38f64d474d39_5 = NULL; - } - - assertFrameObject(frame_5e0c7d03dd4bae0660fe38f64d474d39_5); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_4; - - frame_no_exception_4:; - goto skip_nested_handling_4; - nested_frame_exit_4:; - - goto try_except_handler_12; - skip_nested_handling_4:; - { - nuitka_bool tmp_condition_result_23; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_compexpr_left_3 = tmp_class_creation_4__bases; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_4__bases_orig; - tmp_condition_result_23 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_23 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_12; - } - if (tmp_condition_result_23 == NUITKA_BOOL_TRUE) { - goto branch_yes_15; - } else { - goto branch_no_15; - } - assert(tmp_condition_result_23 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_15:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - tmp_dictset_value = tmp_class_creation_4__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233, mod_consts[182], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_12; - } - branch_no_15:; - { - PyObject *tmp_assign_source_52; - PyObject *tmp_called_name_10; - PyObject *tmp_args_name_8; - PyObject *tmp_tuple_element_14; - PyObject *tmp_kwargs_name_8; - CHECK_OBJECT(tmp_class_creation_4__metaclass); - tmp_called_name_10 = tmp_class_creation_4__metaclass; - tmp_tuple_element_14 = mod_consts[188]; - tmp_args_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_8, 0, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__bases); - tmp_tuple_element_14 = tmp_class_creation_4__bases; - PyTuple_SET_ITEM0(tmp_args_name_8, 1, tmp_tuple_element_14); - tmp_tuple_element_14 = locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233; - PyTuple_SET_ITEM0(tmp_args_name_8, 2, tmp_tuple_element_14); - CHECK_OBJECT(tmp_class_creation_4__class_decl_dict); - tmp_kwargs_name_8 = tmp_class_creation_4__class_decl_dict; - frame_63b960195e39bc165f63de7fa2cab847->m_frame.f_lineno = 233; - tmp_assign_source_52 = CALL_FUNCTION(tmp_called_name_10, tmp_args_name_8, tmp_kwargs_name_8); - Py_DECREF(tmp_args_name_8); - if (tmp_assign_source_52 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - - goto try_except_handler_12; - } - { - PyObject *old = Nuitka_Cell_GET(outline_3_var___class__); - PyCell_SET(outline_3_var___class__, tmp_assign_source_52); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_3_var___class__)); - tmp_assign_source_51 = Nuitka_Cell_GET(outline_3_var___class__); - Py_INCREF(tmp_assign_source_51); - goto try_return_handler_12; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_12:; - Py_DECREF(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233); - locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233 = NULL; - goto try_return_handler_11; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233); - locals_models$unet3d$predictor$$$class__4_DSB2018Predictor_233 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_11:; - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - goto outline_result_4; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_3_var___class__); - Py_DECREF(outline_3_var___class__); - outline_3_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto outline_exception_4; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_4:; - exception_lineno = 233; - goto try_except_handler_10; - outline_result_4:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[188], tmp_assign_source_51); - } - goto try_end_4; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - Py_XDECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_63b960195e39bc165f63de7fa2cab847); -#endif - popFrameStack(); - - assertFrameObject(frame_63b960195e39bc165f63de7fa2cab847); - - goto frame_no_exception_5; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_63b960195e39bc165f63de7fa2cab847); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_63b960195e39bc165f63de7fa2cab847, exception_lineno); - } else if (exception_tb->tb_frame != &frame_63b960195e39bc165f63de7fa2cab847->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_63b960195e39bc165f63de7fa2cab847, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_5:; - CHECK_OBJECT(tmp_class_creation_4__bases_orig); - Py_DECREF(tmp_class_creation_4__bases_orig); - tmp_class_creation_4__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_4__bases); - tmp_class_creation_4__bases = NULL; - Py_XDECREF(tmp_class_creation_4__class_decl_dict); - tmp_class_creation_4__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_4__metaclass); - tmp_class_creation_4__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_4__prepared); - Py_DECREF(tmp_class_creation_4__prepared); - tmp_class_creation_4__prepared = NULL; - { - PyObject *tmp_assign_source_53; - PyObject *tmp_defaults_4; - tmp_defaults_4 = mod_consts[189]; - Py_INCREF(tmp_defaults_4); - - - tmp_assign_source_53 = MAKE_FUNCTION_models$unet3d$predictor$$$function__19_dsb_save_batch(tmp_defaults_4); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$predictor, (Nuitka_StringObject *)mod_consts[120], tmp_assign_source_53); - } - - return module_models$unet3d$predictor; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.se.const b/medomni/models.build/module.models.unet3d.se.const deleted file mode 100644 index 15651ac8fe77ef38b5085f818ddfd7fb23ff5e9c..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.se.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.se.cpp b/medomni/models.build/module.models.unet3d.se.cpp deleted file mode 100644 index b32b3e3eb9a89f1ef47a0f5ec1e6a671178580a9..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.se.cpp +++ /dev/null @@ -1,6474 +0,0 @@ -/* Generated code for Python module 'models.unet3d.se' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$se" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$se; -PyDictObject *moduledict_models$unet3d$se; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[82]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.se")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$se(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.se"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_8f9bcae1b55bc9989f46b635ddf6300f; -static PyCodeObject *codeobj_d9405506eafcd7377610a2a6fd6d4fae; -static PyCodeObject *codeobj_06e2900f8efa733ac997cf95a2fda169; -static PyCodeObject *codeobj_196c5e090b60c1b3ff10dc41db15d528; -static PyCodeObject *codeobj_120f20ad756593900b80ec882802cd34; -static PyCodeObject *codeobj_eaf682339e1a6960bbdca2407288ec4b; -static PyCodeObject *codeobj_7a6986d2e6047cbf36d8440f322388dd; -static PyCodeObject *codeobj_14ce6a0933482d8487f0c3205545eab1; -static PyCodeObject *codeobj_3df7c6395a876d4815e03fafa07de95a; -static PyCodeObject *codeobj_83b13f4adc3d75e2260bac1c212553ca; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[73]); CHECK_OBJECT(module_filename_obj); - codeobj_8f9bcae1b55bc9989f46b635ddf6300f = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[74], NULL, NULL, 0, 0, 0); - codeobj_d9405506eafcd7377610a2a6fd6d4fae = MAKE_CODEOBJECT(module_filename_obj, 18, CO_NOFREE, mod_consts[0], mod_consts[75], NULL, 0, 0, 0); - codeobj_06e2900f8efa733ac997cf95a2fda169 = MAKE_CODEOBJECT(module_filename_obj, 95, CO_NOFREE, mod_consts[34], mod_consts[75], NULL, 0, 0, 0); - codeobj_196c5e090b60c1b3ff10dc41db15d528 = MAKE_CODEOBJECT(module_filename_obj, 54, CO_NOFREE, mod_consts[27], mod_consts[75], NULL, 0, 0, 0); - codeobj_120f20ad756593900b80ec882802cd34 = MAKE_CODEOBJECT(module_filename_obj, 60, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[1], mod_consts[76], NULL, 2, 0, 0); - codeobj_eaf682339e1a6960bbdca2407288ec4b = MAKE_CODEOBJECT(module_filename_obj, 101, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[1], mod_consts[77], NULL, 3, 0, 0); - codeobj_7a6986d2e6047cbf36d8440f322388dd = MAKE_CODEOBJECT(module_filename_obj, 25, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[1], mod_consts[78], NULL, 3, 0, 0); - codeobj_14ce6a0933482d8487f0c3205545eab1 = MAKE_CODEOBJECT(module_filename_obj, 111, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[63], mod_consts[79], NULL, 2, 0, 0); - codeobj_3df7c6395a876d4815e03fafa07de95a = MAKE_CODEOBJECT(module_filename_obj, 40, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[63], mod_consts[80], NULL, 2, 0, 0); - codeobj_83b13f4adc3d75e2260bac1c212553ca = MAKE_CODEOBJECT(module_filename_obj, 69, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[63], mod_consts[81], NULL, 3, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__1___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__2_forward(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__3___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__4_forward(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__5___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__6_forward(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$se$$$function__1___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_num_channels = python_pars[1]; - PyObject *par_reduction_ratio = python_pars[2]; - PyObject *var_num_channels_reduced = NULL; - struct Nuitka_FrameObject *frame_7a6986d2e6047cbf36d8440f322388dd; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_7a6986d2e6047cbf36d8440f322388dd = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7a6986d2e6047cbf36d8440f322388dd)) { - Py_XDECREF(cache_frame_7a6986d2e6047cbf36d8440f322388dd); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7a6986d2e6047cbf36d8440f322388dd == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7a6986d2e6047cbf36d8440f322388dd = MAKE_FUNCTION_FRAME(codeobj_7a6986d2e6047cbf36d8440f322388dd, module_models$unet3d$se, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7a6986d2e6047cbf36d8440f322388dd->m_type_description == NULL); - frame_7a6986d2e6047cbf36d8440f322388dd = cache_frame_7a6986d2e6047cbf36d8440f322388dd; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7a6986d2e6047cbf36d8440f322388dd); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7a6986d2e6047cbf36d8440f322388dd) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - frame_7a6986d2e6047cbf36d8440f322388dd->m_frame.f_lineno = 31; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_assattr_target_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - frame_7a6986d2e6047cbf36d8440f322388dd->m_frame.f_lineno = 32; - tmp_assattr_name_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[3], - &PyTuple_GET_ITEM(mod_consts[4], 0) - ); - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[5], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(par_num_channels); - tmp_left_name_1 = par_num_channels; - CHECK_OBJECT(par_reduction_ratio); - tmp_right_name_1 = par_reduction_ratio; - tmp_assign_source_1 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 33; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - assert(var_num_channels_reduced == NULL); - var_num_channels_reduced = tmp_assign_source_1; - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - if (par_reduction_ratio == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[6]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 34; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - - tmp_assattr_name_2 = par_reduction_ratio; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[6], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_assattr_target_3; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[7]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - if (par_num_channels == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 35; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = par_num_channels; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_num_channels_reduced); - tmp_tuple_element_1 = var_num_channels_reduced; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[9]); - frame_7a6986d2e6047cbf36d8440f322388dd->m_frame.f_lineno = 35; - tmp_assattr_name_3 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[10], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - PyObject *tmp_assattr_target_4; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[7]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - if (var_num_channels_reduced == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[11]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = var_num_channels_reduced; - tmp_args_name_2 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - if (par_num_channels == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 36; - type_description_1 = "ooooN"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = par_num_channels; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[9]); - frame_7a6986d2e6047cbf36d8440f322388dd->m_frame.f_lineno = 36; - tmp_assattr_name_4 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assattr_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[12], tmp_assattr_name_4); - Py_DECREF(tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_called_instance_3; - PyObject *tmp_assattr_target_5; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - frame_7a6986d2e6047cbf36d8440f322388dd->m_frame.f_lineno = 37; - tmp_assattr_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[13]); - if (tmp_assattr_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[14], tmp_assattr_name_5); - Py_DECREF(tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_called_instance_4; - PyObject *tmp_assattr_target_6; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - frame_7a6986d2e6047cbf36d8440f322388dd->m_frame.f_lineno = 38; - tmp_assattr_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[15]); - if (tmp_assattr_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[16], tmp_assattr_name_6); - Py_DECREF(tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 38; - type_description_1 = "ooooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a6986d2e6047cbf36d8440f322388dd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7a6986d2e6047cbf36d8440f322388dd); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7a6986d2e6047cbf36d8440f322388dd, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7a6986d2e6047cbf36d8440f322388dd->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7a6986d2e6047cbf36d8440f322388dd, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7a6986d2e6047cbf36d8440f322388dd, - type_description_1, - par_self, - par_num_channels, - par_reduction_ratio, - var_num_channels_reduced, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_7a6986d2e6047cbf36d8440f322388dd == cache_frame_7a6986d2e6047cbf36d8440f322388dd) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7a6986d2e6047cbf36d8440f322388dd); - cache_frame_7a6986d2e6047cbf36d8440f322388dd = NULL; - } - - assertFrameObject(frame_7a6986d2e6047cbf36d8440f322388dd); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_num_channels); - par_num_channels = NULL; - Py_XDECREF(par_reduction_ratio); - par_reduction_ratio = NULL; - Py_XDECREF(var_num_channels_reduced); - var_num_channels_reduced = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_num_channels); - par_num_channels = NULL; - Py_XDECREF(par_reduction_ratio); - par_reduction_ratio = NULL; - Py_XDECREF(var_num_channels_reduced); - var_num_channels_reduced = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$se$$$function__2_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *var_batch_size = NULL; - PyObject *var_num_channels = NULL; - PyObject *var_D = NULL; - PyObject *var_H = NULL; - PyObject *var_W = NULL; - PyObject *var_squeeze_tensor = NULL; - PyObject *var_fc_out_1 = NULL; - PyObject *var_fc_out_2 = NULL; - PyObject *var_output_tensor = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__element_4 = NULL; - PyObject *tmp_tuple_unpack_1__element_5 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_3df7c6395a876d4815e03fafa07de95a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_3df7c6395a876d4815e03fafa07de95a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3df7c6395a876d4815e03fafa07de95a)) { - Py_XDECREF(cache_frame_3df7c6395a876d4815e03fafa07de95a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3df7c6395a876d4815e03fafa07de95a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3df7c6395a876d4815e03fafa07de95a = MAKE_FUNCTION_FRAME(codeobj_3df7c6395a876d4815e03fafa07de95a, module_models$unet3d$se, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3df7c6395a876d4815e03fafa07de95a->m_type_description == NULL); - frame_3df7c6395a876d4815e03fafa07de95a = cache_frame_3df7c6395a876d4815e03fafa07de95a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3df7c6395a876d4815e03fafa07de95a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3df7c6395a876d4815e03fafa07de95a) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_x); - tmp_called_instance_1 = par_x; - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 41; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[18]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 41; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 5); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 5); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 5); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_4, 3, 5); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_4 == NULL); - tmp_tuple_unpack_1__element_4 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_5, 4, 5); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_5 == NULL); - tmp_tuple_unpack_1__element_5 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[19]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 41; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_7); - var_batch_size = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_num_channels == NULL); - Py_INCREF(tmp_assign_source_8); - var_num_channels = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var_D == NULL); - Py_INCREF(tmp_assign_source_9); - var_D = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_4); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_4; - assert(var_H == NULL); - Py_INCREF(tmp_assign_source_10); - var_H = tmp_assign_source_10; - } - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_5); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_5; - assert(var_W == NULL); - Py_INCREF(tmp_assign_source_11); - var_W = tmp_assign_source_11; - } - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[5]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[20]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 43; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = par_x; - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 43; - tmp_assign_source_12 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 43; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_squeeze_tensor == NULL); - var_squeeze_tensor = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[14]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[10]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_squeeze_tensor); - tmp_called_instance_2 = var_squeeze_tensor; - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_4 = var_batch_size; - CHECK_OBJECT(var_num_channels); - tmp_args_element_name_5 = var_num_channels; - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 46; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_args_element_name_3 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[22], - call_args - ); - } - - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 46; - tmp_args_element_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 46; - tmp_assign_source_13 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 46; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_fc_out_1 == NULL); - var_fc_out_1 = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[16]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_fc_out_1); - tmp_args_element_name_7 = var_fc_out_1; - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 47; - tmp_args_element_name_6 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[12], tmp_args_element_name_7); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 47; - tmp_assign_source_14 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_6); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_fc_out_2 == NULL); - var_fc_out_2 = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[23]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[23]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[24]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[20]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_8 = par_x; - CHECK_OBJECT(var_fc_out_2); - tmp_expression_name_6 = var_fc_out_2; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[22]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (var_batch_size == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[25]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_10 = var_batch_size; - if (var_num_channels == NULL) { - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_11 = var_num_channels; - tmp_args_element_name_12 = mod_consts[26]; - tmp_args_element_name_13 = mod_consts[26]; - tmp_args_element_name_14 = mod_consts[26]; - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 49; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13, tmp_args_element_name_14}; - tmp_args_element_name_9 = CALL_FUNCTION_WITH_ARGS5(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_called_name_6); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3df7c6395a876d4815e03fafa07de95a->m_frame.f_lineno = 49; - { - PyObject *call_args[] = {tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_assign_source_15 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_output_tensor == NULL); - var_output_tensor = tmp_assign_source_15; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3df7c6395a876d4815e03fafa07de95a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3df7c6395a876d4815e03fafa07de95a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3df7c6395a876d4815e03fafa07de95a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3df7c6395a876d4815e03fafa07de95a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3df7c6395a876d4815e03fafa07de95a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3df7c6395a876d4815e03fafa07de95a, - type_description_1, - par_self, - par_x, - var_batch_size, - var_num_channels, - var_D, - var_H, - var_W, - var_squeeze_tensor, - var_fc_out_1, - var_fc_out_2, - var_output_tensor - ); - - - // Release cached frame if used for exception. - if (frame_3df7c6395a876d4815e03fafa07de95a == cache_frame_3df7c6395a876d4815e03fafa07de95a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3df7c6395a876d4815e03fafa07de95a); - cache_frame_3df7c6395a876d4815e03fafa07de95a = NULL; - } - - assertFrameObject(frame_3df7c6395a876d4815e03fafa07de95a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_output_tensor); - tmp_return_value = var_output_tensor; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_num_channels); - var_num_channels = NULL; - CHECK_OBJECT(var_D); - Py_DECREF(var_D); - var_D = NULL; - CHECK_OBJECT(var_H); - Py_DECREF(var_H); - var_H = NULL; - CHECK_OBJECT(var_W); - Py_DECREF(var_W); - var_W = NULL; - Py_XDECREF(var_squeeze_tensor); - var_squeeze_tensor = NULL; - Py_XDECREF(var_fc_out_1); - var_fc_out_1 = NULL; - Py_XDECREF(var_fc_out_2); - var_fc_out_2 = NULL; - CHECK_OBJECT(var_output_tensor); - Py_DECREF(var_output_tensor); - var_output_tensor = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_num_channels); - var_num_channels = NULL; - Py_XDECREF(var_D); - var_D = NULL; - Py_XDECREF(var_H); - var_H = NULL; - Py_XDECREF(var_W); - var_W = NULL; - Py_XDECREF(var_squeeze_tensor); - var_squeeze_tensor = NULL; - Py_XDECREF(var_fc_out_1); - var_fc_out_1 = NULL; - Py_XDECREF(var_fc_out_2); - var_fc_out_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$se$$$function__3___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_num_channels = python_pars[1]; - struct Nuitka_FrameObject *frame_120f20ad756593900b80ec882802cd34; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_120f20ad756593900b80ec882802cd34 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_120f20ad756593900b80ec882802cd34)) { - Py_XDECREF(cache_frame_120f20ad756593900b80ec882802cd34); - -#if _DEBUG_REFCOUNTS - if (cache_frame_120f20ad756593900b80ec882802cd34 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_120f20ad756593900b80ec882802cd34 = MAKE_FUNCTION_FRAME(codeobj_120f20ad756593900b80ec882802cd34, module_models$unet3d$se, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_120f20ad756593900b80ec882802cd34->m_type_description == NULL); - frame_120f20ad756593900b80ec882802cd34 = cache_frame_120f20ad756593900b80ec882802cd34; - - // Push the new frame as the currently active one. - pushFrameStack(frame_120f20ad756593900b80ec882802cd34); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_120f20ad756593900b80ec882802cd34) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[27]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[27]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - frame_120f20ad756593900b80ec882802cd34->m_frame.f_lineno = 65; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_num_channels); - tmp_args_element_name_1 = par_num_channels; - tmp_args_element_name_2 = mod_consts[26]; - tmp_args_element_name_3 = mod_consts[26]; - frame_120f20ad756593900b80ec882802cd34->m_frame.f_lineno = 66; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assattr_name_1 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_2, - mod_consts[28], - call_args - ); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[29], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 66; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_assattr_target_2; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - frame_120f20ad756593900b80ec882802cd34->m_frame.f_lineno = 67; - tmp_assattr_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[15]); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[16], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 67; - type_description_1 = "ooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_120f20ad756593900b80ec882802cd34); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_120f20ad756593900b80ec882802cd34); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_120f20ad756593900b80ec882802cd34, exception_lineno); - } else if (exception_tb->tb_frame != &frame_120f20ad756593900b80ec882802cd34->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_120f20ad756593900b80ec882802cd34, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_120f20ad756593900b80ec882802cd34, - type_description_1, - par_self, - par_num_channels, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_120f20ad756593900b80ec882802cd34 == cache_frame_120f20ad756593900b80ec882802cd34) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_120f20ad756593900b80ec882802cd34); - cache_frame_120f20ad756593900b80ec882802cd34 = NULL; - } - - assertFrameObject(frame_120f20ad756593900b80ec882802cd34); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_num_channels); - par_num_channels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_num_channels); - par_num_channels = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$se$$$function__4_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_x = python_pars[1]; - PyObject *par_weights = python_pars[2]; - PyObject *var_batch_size = NULL; - PyObject *var_channel = NULL; - PyObject *var_D = NULL; - PyObject *var_H = NULL; - PyObject *var_W = NULL; - PyObject *var_out = NULL; - PyObject *var_squeeze_tensor = NULL; - PyObject *var_output_tensor = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__element_4 = NULL; - PyObject *tmp_tuple_unpack_1__element_5 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_83b13f4adc3d75e2260bac1c212553ca; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_83b13f4adc3d75e2260bac1c212553ca = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_83b13f4adc3d75e2260bac1c212553ca)) { - Py_XDECREF(cache_frame_83b13f4adc3d75e2260bac1c212553ca); - -#if _DEBUG_REFCOUNTS - if (cache_frame_83b13f4adc3d75e2260bac1c212553ca == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_83b13f4adc3d75e2260bac1c212553ca = MAKE_FUNCTION_FRAME(codeobj_83b13f4adc3d75e2260bac1c212553ca, module_models$unet3d$se, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_83b13f4adc3d75e2260bac1c212553ca->m_type_description == NULL); - frame_83b13f4adc3d75e2260bac1c212553ca = cache_frame_83b13f4adc3d75e2260bac1c212553ca; - - // Push the new frame as the currently active one. - pushFrameStack(frame_83b13f4adc3d75e2260bac1c212553ca); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_83b13f4adc3d75e2260bac1c212553ca) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_x); - tmp_called_instance_1 = par_x; - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 79; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[18]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 5); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 5); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_3, 2, 5); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_3 == NULL); - tmp_tuple_unpack_1__element_3 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_4, 3, 5); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_4 == NULL); - tmp_tuple_unpack_1__element_4 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_5, 4, 5); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_5 == NULL); - tmp_tuple_unpack_1__element_5 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[19]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 79; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_batch_size == NULL); - Py_INCREF(tmp_assign_source_7); - var_batch_size = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_channel == NULL); - Py_INCREF(tmp_assign_source_8); - var_channel = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_9 = tmp_tuple_unpack_1__element_3; - assert(var_D == NULL); - Py_INCREF(tmp_assign_source_9); - var_D = tmp_assign_source_9; - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_4); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_4; - assert(var_H == NULL); - Py_INCREF(tmp_assign_source_10); - var_H = tmp_assign_source_10; - } - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_5); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_5; - assert(var_W == NULL); - Py_INCREF(tmp_assign_source_11); - var_W = tmp_assign_source_11; - } - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_4); - tmp_tuple_unpack_1__element_4 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_5); - tmp_tuple_unpack_1__element_5 = NULL; - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_weights); - tmp_truth_name_1 = CHECK_IF_TRUE(par_weights); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 81; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - CHECK_OBJECT(par_weights); - tmp_called_instance_2 = par_weights; - tmp_args_element_name_1 = mod_consts[26]; - CHECK_OBJECT(var_channel); - tmp_args_element_name_2 = var_channel; - tmp_args_element_name_3 = mod_consts[26]; - tmp_args_element_name_4 = mod_consts[26]; - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 82; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_12 = CALL_METHOD_WITH_ARGS4( - tmp_called_instance_2, - mod_consts[22], - call_args - ); - } - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_weights; - par_weights = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[31]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[31]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[32]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[20]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_x; - CHECK_OBJECT(par_weights); - tmp_args_element_name_6 = par_weights; - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 83; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assign_source_13 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_out == NULL); - var_out = tmp_assign_source_13; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_7; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[29]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[20]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_7 = par_x; - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 85; - tmp_assign_source_14 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_out == NULL); - var_out = tmp_assign_source_14; - } - branch_end_1:; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_out); - tmp_args_element_name_8 = var_out; - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 87; - tmp_assign_source_15 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[16], tmp_args_element_name_8); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_squeeze_tensor == NULL); - var_squeeze_tensor = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[23]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[23]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[24]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (par_x == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[20]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 90; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_9 = par_x; - CHECK_OBJECT(var_squeeze_tensor); - tmp_called_instance_4 = var_squeeze_tensor; - CHECK_OBJECT(var_batch_size); - tmp_args_element_name_11 = var_batch_size; - tmp_args_element_name_12 = mod_consts[26]; - CHECK_OBJECT(var_D); - tmp_args_element_name_13 = var_D; - CHECK_OBJECT(var_H); - tmp_args_element_name_14 = var_H; - CHECK_OBJECT(var_W); - tmp_args_element_name_15 = var_W; - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 90; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_args_element_name_10 = CALL_METHOD_WITH_ARGS5( - tmp_called_instance_4, - mod_consts[22], - call_args - ); - } - - if (tmp_args_element_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 90; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_83b13f4adc3d75e2260bac1c212553ca->m_frame.f_lineno = 90; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assign_source_16 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_10); - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_output_tensor == NULL); - var_output_tensor = tmp_assign_source_16; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_83b13f4adc3d75e2260bac1c212553ca); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_83b13f4adc3d75e2260bac1c212553ca); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_83b13f4adc3d75e2260bac1c212553ca, exception_lineno); - } else if (exception_tb->tb_frame != &frame_83b13f4adc3d75e2260bac1c212553ca->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_83b13f4adc3d75e2260bac1c212553ca, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_83b13f4adc3d75e2260bac1c212553ca, - type_description_1, - par_self, - par_x, - par_weights, - var_batch_size, - var_channel, - var_D, - var_H, - var_W, - var_out, - var_squeeze_tensor, - var_output_tensor - ); - - - // Release cached frame if used for exception. - if (frame_83b13f4adc3d75e2260bac1c212553ca == cache_frame_83b13f4adc3d75e2260bac1c212553ca) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_83b13f4adc3d75e2260bac1c212553ca); - cache_frame_83b13f4adc3d75e2260bac1c212553ca = NULL; - } - - assertFrameObject(frame_83b13f4adc3d75e2260bac1c212553ca); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_output_tensor); - tmp_return_value = var_output_tensor; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_weights); - par_weights = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_channel); - var_channel = NULL; - Py_XDECREF(var_D); - var_D = NULL; - Py_XDECREF(var_H); - var_H = NULL; - Py_XDECREF(var_W); - var_W = NULL; - Py_XDECREF(var_out); - var_out = NULL; - Py_XDECREF(var_squeeze_tensor); - var_squeeze_tensor = NULL; - CHECK_OBJECT(var_output_tensor); - Py_DECREF(var_output_tensor); - var_output_tensor = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_x); - par_x = NULL; - Py_XDECREF(par_weights); - par_weights = NULL; - Py_XDECREF(var_batch_size); - var_batch_size = NULL; - Py_XDECREF(var_channel); - var_channel = NULL; - Py_XDECREF(var_D); - var_D = NULL; - Py_XDECREF(var_H); - var_H = NULL; - Py_XDECREF(var_W); - var_W = NULL; - Py_XDECREF(var_out); - var_out = NULL; - Py_XDECREF(var_squeeze_tensor); - var_squeeze_tensor = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$se$$$function__5___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_num_channels = python_pars[1]; - PyObject *par_reduction_ratio = python_pars[2]; - struct Nuitka_FrameObject *frame_eaf682339e1a6960bbdca2407288ec4b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_eaf682339e1a6960bbdca2407288ec4b = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_eaf682339e1a6960bbdca2407288ec4b)) { - Py_XDECREF(cache_frame_eaf682339e1a6960bbdca2407288ec4b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_eaf682339e1a6960bbdca2407288ec4b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_eaf682339e1a6960bbdca2407288ec4b = MAKE_FUNCTION_FRAME(codeobj_eaf682339e1a6960bbdca2407288ec4b, module_models$unet3d$se, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_eaf682339e1a6960bbdca2407288ec4b->m_type_description == NULL); - frame_eaf682339e1a6960bbdca2407288ec4b = cache_frame_eaf682339e1a6960bbdca2407288ec4b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_eaf682339e1a6960bbdca2407288ec4b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_eaf682339e1a6960bbdca2407288ec4b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_call_result_1; - tmp_type_arg_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_type_arg_name_1 == NULL)) { - tmp_type_arg_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_type_arg_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_called_instance_1 = BUILTIN_SUPER2(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - frame_eaf682339e1a6960bbdca2407288ec4b->m_frame.f_lineno = 107; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[1]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_num_channels); - tmp_args_element_name_1 = par_num_channels; - CHECK_OBJECT(par_reduction_ratio); - tmp_args_element_name_2 = par_reduction_ratio; - frame_eaf682339e1a6960bbdca2407288ec4b->m_frame.f_lineno = 108; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[35], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_assattr_target_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[27]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[27]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_num_channels); - tmp_args_element_name_3 = par_num_channels; - frame_eaf682339e1a6960bbdca2407288ec4b->m_frame.f_lineno = 109; - tmp_assattr_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - if (tmp_assattr_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[36], tmp_assattr_name_2); - Py_DECREF(tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooN"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_eaf682339e1a6960bbdca2407288ec4b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_eaf682339e1a6960bbdca2407288ec4b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_eaf682339e1a6960bbdca2407288ec4b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_eaf682339e1a6960bbdca2407288ec4b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_eaf682339e1a6960bbdca2407288ec4b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_eaf682339e1a6960bbdca2407288ec4b, - type_description_1, - par_self, - par_num_channels, - par_reduction_ratio, - NULL - ); - - - // Release cached frame if used for exception. - if (frame_eaf682339e1a6960bbdca2407288ec4b == cache_frame_eaf682339e1a6960bbdca2407288ec4b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_eaf682339e1a6960bbdca2407288ec4b); - cache_frame_eaf682339e1a6960bbdca2407288ec4b = NULL; - } - - assertFrameObject(frame_eaf682339e1a6960bbdca2407288ec4b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_num_channels); - Py_DECREF(par_num_channels); - par_num_channels = NULL; - CHECK_OBJECT(par_reduction_ratio); - Py_DECREF(par_reduction_ratio); - par_reduction_ratio = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_num_channels); - Py_DECREF(par_num_channels); - par_num_channels = NULL; - CHECK_OBJECT(par_reduction_ratio); - Py_DECREF(par_reduction_ratio); - par_reduction_ratio = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$se$$$function__6_forward(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_tensor = python_pars[1]; - PyObject *var_output_tensor = NULL; - struct Nuitka_FrameObject *frame_14ce6a0933482d8487f0c3205545eab1; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_14ce6a0933482d8487f0c3205545eab1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_14ce6a0933482d8487f0c3205545eab1)) { - Py_XDECREF(cache_frame_14ce6a0933482d8487f0c3205545eab1); - -#if _DEBUG_REFCOUNTS - if (cache_frame_14ce6a0933482d8487f0c3205545eab1 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_14ce6a0933482d8487f0c3205545eab1 = MAKE_FUNCTION_FRAME(codeobj_14ce6a0933482d8487f0c3205545eab1, module_models$unet3d$se, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_14ce6a0933482d8487f0c3205545eab1->m_type_description == NULL); - frame_14ce6a0933482d8487f0c3205545eab1 = cache_frame_14ce6a0933482d8487f0c3205545eab1; - - // Push the new frame as the currently active one. - pushFrameStack(frame_14ce6a0933482d8487f0c3205545eab1); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_14ce6a0933482d8487f0c3205545eab1) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_4; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[23]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[23]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[37]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input_tensor); - tmp_args_element_name_2 = par_input_tensor; - frame_14ce6a0933482d8487f0c3205545eab1->m_frame.f_lineno = 112; - tmp_args_element_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[35], tmp_args_element_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[21]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[36]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_input_tensor == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[38]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_4 = par_input_tensor; - frame_14ce6a0933482d8487f0c3205545eab1->m_frame.f_lineno = 112; - tmp_args_element_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_2); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_14ce6a0933482d8487f0c3205545eab1->m_frame.f_lineno = 112; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_3}; - tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 112; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_output_tensor == NULL); - var_output_tensor = tmp_assign_source_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_14ce6a0933482d8487f0c3205545eab1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_14ce6a0933482d8487f0c3205545eab1); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_14ce6a0933482d8487f0c3205545eab1, exception_lineno); - } else if (exception_tb->tb_frame != &frame_14ce6a0933482d8487f0c3205545eab1->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_14ce6a0933482d8487f0c3205545eab1, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_14ce6a0933482d8487f0c3205545eab1, - type_description_1, - par_self, - par_input_tensor, - var_output_tensor - ); - - - // Release cached frame if used for exception. - if (frame_14ce6a0933482d8487f0c3205545eab1 == cache_frame_14ce6a0933482d8487f0c3205545eab1) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_14ce6a0933482d8487f0c3205545eab1); - cache_frame_14ce6a0933482d8487f0c3205545eab1 = NULL; - } - - assertFrameObject(frame_14ce6a0933482d8487f0c3205545eab1); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_output_tensor); - tmp_return_value = var_output_tensor; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_tensor); - par_input_tensor = NULL; - CHECK_OBJECT(var_output_tensor); - Py_DECREF(var_output_tensor); - var_output_tensor = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input_tensor); - par_input_tensor = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__1___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$se$$$function__1___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[62], -#endif - codeobj_7a6986d2e6047cbf36d8440f322388dd, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$se, - mod_consts[17], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__2_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$se$$$function__2_forward, - mod_consts[63], -#if PYTHON_VERSION >= 0x300 - mod_consts[64], -#endif - codeobj_3df7c6395a876d4815e03fafa07de95a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$se, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__3___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$se$$$function__3___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[67], -#endif - codeobj_120f20ad756593900b80ec882802cd34, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$se, - mod_consts[30], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__4_forward(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$se$$$function__4_forward, - mod_consts[63], -#if PYTHON_VERSION >= 0x300 - mod_consts[69], -#endif - codeobj_83b13f4adc3d75e2260bac1c212553ca, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$se, - mod_consts[33], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__5___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$se$$$function__5___init__, - mod_consts[1], -#if PYTHON_VERSION >= 0x300 - mod_consts[71], -#endif - codeobj_eaf682339e1a6960bbdca2407288ec4b, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$se, - mod_consts[17], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$se$$$function__6_forward() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$se$$$function__6_forward, - mod_consts[63], -#if PYTHON_VERSION >= 0x300 - mod_consts[72], -#endif - codeobj_14ce6a0933482d8487f0c3205545eab1, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$se, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$se[] = { - impl_models$unet3d$se$$$function__1___init__, - impl_models$unet3d$se$$$function__2_forward, - impl_models$unet3d$se$$$function__3___init__, - impl_models$unet3d$se$$$function__4_forward, - impl_models$unet3d$se$$$function__5___init__, - impl_models$unet3d$se$$$function__6_forward, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$se; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$se) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$se[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$se, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$se(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$se = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.se: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.se: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.se: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$se\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$se = MODULE_DICT(module_models$unet3d$se); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$se, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$se, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$se, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$se, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$se, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$se); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$se); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - PyObject *tmp_class_creation_1__bases = NULL; - PyObject *tmp_class_creation_1__bases_orig = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__bases = NULL; - PyObject *tmp_class_creation_2__bases_orig = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - struct Nuitka_FrameObject *frame_8f9bcae1b55bc9989f46b635ddf6300f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_d9405506eafcd7377610a2a6fd6d4fae_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54 = NULL; - struct Nuitka_FrameObject *frame_196c5e090b60c1b3ff10dc41db15d528_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_196c5e090b60c1b3ff10dc41db15d528_3 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95 = NULL; - struct Nuitka_FrameObject *frame_06e2900f8efa733ac997cf95a2fda169_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_06e2900f8efa733ac997cf95a2fda169_4 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[39]; - UPDATE_STRING_DICT0(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[40], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[41], tmp_assign_source_2); - } - // Frame without reuse. - frame_8f9bcae1b55bc9989f46b635ddf6300f = MAKE_MODULE_FRAME(codeobj_8f9bcae1b55bc9989f46b635ddf6300f, module_models$unet3d$se); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_8f9bcae1b55bc9989f46b635ddf6300f); - assert(Py_REFCNT(frame_8f9bcae1b55bc9989f46b635ddf6300f) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[43], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[44], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[45], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[23]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$se; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[46]; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 13; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 13; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[23], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[23]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$se; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[47]; - tmp_level_name_2 = mod_consts[46]; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 14; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$se, - mod_consts[2], - mod_consts[46] - ); - } else { - tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[2]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[48]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$se; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[49]; - tmp_level_name_3 = mod_consts[46]; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 15; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$se, - mod_consts[50], - mod_consts[46] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[50]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 15; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[31], tmp_assign_source_6); - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[51]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_assign_source_7 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_7, 0, tmp_tuple_element_1); - assert(tmp_class_creation_1__bases_orig == NULL); - tmp_class_creation_1__bases_orig = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_8 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__bases == NULL); - tmp_class_creation_1__bases = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - PyObject *tmp_type_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[52]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - goto condexpr_end_1; - condexpr_false_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_1__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_expression_name_2 = tmp_class_creation_1__bases; - tmp_subscript_name_1 = mod_consts[46]; - tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - if (tmp_type_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_metaclass_name_1 = BUILTIN_TYPE1(tmp_type_arg_1); - Py_DECREF(tmp_type_arg_1); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_2:; - condexpr_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_bases_name_1 = tmp_class_creation_1__bases; - tmp_assign_source_10 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_10; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[52]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[53]); - tmp_condition_result_4 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_4 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[53]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_tuple_element_2 = mod_consts[0]; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_2 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 18; - tmp_assign_source_11 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_11; - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_5 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[54]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_condition_result_5 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[55]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[56]; - tmp_getattr_default_1 = mod_consts[57]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_6; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_2 = tmp_class_creation_1__prepared; - tmp_expression_name_6 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_6 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[56]); - Py_DECREF(tmp_expression_name_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_1; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 18; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_12; - tmp_assign_source_12 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_12; - } - branch_end_2:; - { - PyObject *tmp_assign_source_13; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18, mod_consts[58], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[59]; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18, mod_consts[40], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[0]; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_3; - } - if (isFrameUnusable(cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2)) { - Py_XDECREF(cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2 = MAKE_FUNCTION_FRAME(codeobj_d9405506eafcd7377610a2a6fd6d4fae, module_models$unet3d$se, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2->m_type_description == NULL); - frame_d9405506eafcd7377610a2a6fd6d4fae_2 = cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d9405506eafcd7377610a2a6fd6d4fae_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d9405506eafcd7377610a2a6fd6d4fae_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[61]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$se$$$function__1___init__(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$se$$$function__2_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18, mod_consts[63], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d9405506eafcd7377610a2a6fd6d4fae_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d9405506eafcd7377610a2a6fd6d4fae_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d9405506eafcd7377610a2a6fd6d4fae_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d9405506eafcd7377610a2a6fd6d4fae_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d9405506eafcd7377610a2a6fd6d4fae_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d9405506eafcd7377610a2a6fd6d4fae_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_d9405506eafcd7377610a2a6fd6d4fae_2 == cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2); - cache_frame_d9405506eafcd7377610a2a6fd6d4fae_2 = NULL; - } - - assertFrameObject(frame_d9405506eafcd7377610a2a6fd6d4fae_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_3; - skip_nested_handling_1:; - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_compexpr_left_1 = tmp_class_creation_1__bases; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig; - tmp_condition_result_6 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_6 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_3; - } - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - assert(tmp_condition_result_6 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - tmp_dictset_value = tmp_class_creation_1__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18, mod_consts[65], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_3; - } - branch_no_4:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_4 = mod_consts[0]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__bases); - tmp_tuple_element_4 = tmp_class_creation_1__bases; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 18; - tmp_assign_source_14 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - - goto try_except_handler_3; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_14; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_13 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_13); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_DECREF(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18); - locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18 = NULL; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18); - locals_models$unet3d$se$$$class__1_ChannelSELayer3D_18 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 18; - goto try_except_handler_1; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_13); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_class_creation_1__bases_orig); - Py_DECREF(tmp_class_creation_1__bases_orig); - tmp_class_creation_1__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_1__bases); - tmp_class_creation_1__bases = NULL; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_tuple_element_5; - PyObject *tmp_expression_name_7; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[51]); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_assign_source_15 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_15, 0, tmp_tuple_element_5); - assert(tmp_class_creation_2__bases_orig == NULL); - tmp_class_creation_2__bases_orig = tmp_assign_source_15; - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_dircall_arg1_2; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; - Py_INCREF(tmp_dircall_arg1_2); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; - tmp_assign_source_16 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__bases == NULL); - tmp_class_creation_2__bases = tmp_assign_source_16; - } - { - PyObject *tmp_assign_source_17; - tmp_assign_source_17 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_17; - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_7; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - nuitka_bool tmp_condition_result_8; - int tmp_truth_name_2; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_2; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_7 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[52]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_class_creation_2__bases); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_condition_result_8 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_expression_name_8 = tmp_class_creation_2__bases; - tmp_subscript_name_2 = mod_consts[46]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_2, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_metaclass_name_2 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_bases_name_2 = tmp_class_creation_2__bases; - tmp_assign_source_18 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_18; - } - { - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[52]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - branch_no_5:; - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_9 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[53]); - tmp_condition_result_10 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_3; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_10 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[53]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_tuple_element_6 = mod_consts[27]; - tmp_args_name_3 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_3, 0, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_6 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_3, 1, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 54; - tmp_assign_source_19 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_3); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_19; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_11 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[54]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_condition_result_11 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_7; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[55]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[56]; - tmp_getattr_default_2 = mod_consts[57]; - tmp_tuple_element_7 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_4 = tmp_class_creation_2__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[56]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_7); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 54; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_7:; - goto branch_end_6; - branch_no_6:; - { - PyObject *tmp_assign_source_20; - tmp_assign_source_20 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_20; - } - branch_end_6:; - { - PyObject *tmp_assign_source_21; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54, mod_consts[58], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[66]; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54, mod_consts[40], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[27]; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_196c5e090b60c1b3ff10dc41db15d528_3)) { - Py_XDECREF(cache_frame_196c5e090b60c1b3ff10dc41db15d528_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_196c5e090b60c1b3ff10dc41db15d528_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_196c5e090b60c1b3ff10dc41db15d528_3 = MAKE_FUNCTION_FRAME(codeobj_196c5e090b60c1b3ff10dc41db15d528, module_models$unet3d$se, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_196c5e090b60c1b3ff10dc41db15d528_3->m_type_description == NULL); - frame_196c5e090b60c1b3ff10dc41db15d528_3 = cache_frame_196c5e090b60c1b3ff10dc41db15d528_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_196c5e090b60c1b3ff10dc41db15d528_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_196c5e090b60c1b3ff10dc41db15d528_3) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$se$$$function__3___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[68]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$se$$$function__4_forward(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54, mod_consts[63], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_196c5e090b60c1b3ff10dc41db15d528_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_196c5e090b60c1b3ff10dc41db15d528_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_196c5e090b60c1b3ff10dc41db15d528_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_196c5e090b60c1b3ff10dc41db15d528_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_196c5e090b60c1b3ff10dc41db15d528_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_196c5e090b60c1b3ff10dc41db15d528_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_196c5e090b60c1b3ff10dc41db15d528_3 == cache_frame_196c5e090b60c1b3ff10dc41db15d528_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_196c5e090b60c1b3ff10dc41db15d528_3); - cache_frame_196c5e090b60c1b3ff10dc41db15d528_3 = NULL; - } - - assertFrameObject(frame_196c5e090b60c1b3ff10dc41db15d528_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_6; - skip_nested_handling_2:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_compexpr_left_2 = tmp_class_creation_2__bases; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig; - tmp_condition_result_12 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_12 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_6; - } - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - assert(tmp_condition_result_12 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_8:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - tmp_dictset_value = tmp_class_creation_2__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54, mod_consts[65], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_6; - } - branch_no_8:; - { - PyObject *tmp_assign_source_22; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_8; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_8 = mod_consts[27]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__bases); - tmp_tuple_element_8 = tmp_class_creation_2__bases; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_8); - tmp_tuple_element_8 = locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 54; - tmp_assign_source_22 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - - goto try_except_handler_6; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_22; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_21 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_21); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54); - locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54); - locals_models$unet3d$se$$$class__2_SpatialSELayer3D_54 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 54; - goto try_except_handler_4; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[27], tmp_assign_source_21); - } - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_class_creation_2__bases_orig); - Py_DECREF(tmp_class_creation_2__bases_orig); - tmp_class_creation_2__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_2__bases); - tmp_class_creation_2__bases = NULL; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_tuple_element_9; - PyObject *tmp_expression_name_13; - tmp_expression_name_13 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_13 == NULL)) { - tmp_expression_name_13 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_tuple_element_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[51]); - if (tmp_tuple_element_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_assign_source_23 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_assign_source_23, 0, tmp_tuple_element_9); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_23; - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_dircall_arg1_3; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_3); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; - tmp_assign_source_24 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_24; - } - { - PyObject *tmp_assign_source_25; - tmp_assign_source_25 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_25; - } - { - PyObject *tmp_assign_source_26; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_13; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_14; - int tmp_truth_name_3; - PyObject *tmp_type_arg_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_3; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_13 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[52]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - goto condexpr_end_5; - condexpr_false_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_condition_result_14 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_6; - } else { - goto condexpr_false_6; - } - condexpr_true_6:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_14 = tmp_class_creation_3__bases; - tmp_subscript_name_3 = mod_consts[46]; - tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_3, 0); - if (tmp_type_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_5); - Py_DECREF(tmp_type_arg_5); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - goto condexpr_end_6; - condexpr_false_6:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_6:; - condexpr_end_5:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_26 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_15 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[52]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - branch_no_9:; - { - nuitka_bool tmp_condition_result_16; - PyObject *tmp_expression_name_15; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_15 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_15, mod_consts[53]); - tmp_condition_result_16 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_16 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - } - branch_yes_10:; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_10; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_16 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[53]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_tuple_element_10 = mod_consts[34]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_10 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_10); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 95; - tmp_assign_source_27 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_27; - } - { - nuitka_bool tmp_condition_result_17; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_17; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_17 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_17, mod_consts[54]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_condition_result_17 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_17 == NUITKA_BOOL_TRUE) { - goto branch_yes_11; - } else { - goto branch_no_11; - } - } - branch_yes_11:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_11; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[55]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[56]; - tmp_getattr_default_3 = mod_consts[57]; - tmp_tuple_element_11 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_18; - PyObject *tmp_type_arg_6; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_11); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_6 = tmp_class_creation_3__prepared; - tmp_expression_name_18 = BUILTIN_TYPE1(tmp_type_arg_6); - assert(!(tmp_expression_name_18 == NULL)); - tmp_tuple_element_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[56]); - Py_DECREF(tmp_expression_name_18); - if (tmp_tuple_element_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_11); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 95; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_11:; - goto branch_end_10; - branch_no_10:; - { - PyObject *tmp_assign_source_28; - tmp_assign_source_28 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_28; - } - branch_end_10:; - { - PyObject *tmp_assign_source_29; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95, mod_consts[58], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[70]; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95, mod_consts[40], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[34]; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_06e2900f8efa733ac997cf95a2fda169_4)) { - Py_XDECREF(cache_frame_06e2900f8efa733ac997cf95a2fda169_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_06e2900f8efa733ac997cf95a2fda169_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_06e2900f8efa733ac997cf95a2fda169_4 = MAKE_FUNCTION_FRAME(codeobj_06e2900f8efa733ac997cf95a2fda169, module_models$unet3d$se, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_06e2900f8efa733ac997cf95a2fda169_4->m_type_description == NULL); - frame_06e2900f8efa733ac997cf95a2fda169_4 = cache_frame_06e2900f8efa733ac997cf95a2fda169_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_06e2900f8efa733ac997cf95a2fda169_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_06e2900f8efa733ac997cf95a2fda169_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[61]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$se$$$function__5___init__(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95, mod_consts[1], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$se$$$function__6_forward(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95, mod_consts[63], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 111; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_06e2900f8efa733ac997cf95a2fda169_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_06e2900f8efa733ac997cf95a2fda169_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_06e2900f8efa733ac997cf95a2fda169_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_06e2900f8efa733ac997cf95a2fda169_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_06e2900f8efa733ac997cf95a2fda169_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_06e2900f8efa733ac997cf95a2fda169_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_06e2900f8efa733ac997cf95a2fda169_4 == cache_frame_06e2900f8efa733ac997cf95a2fda169_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_06e2900f8efa733ac997cf95a2fda169_4); - cache_frame_06e2900f8efa733ac997cf95a2fda169_4 = NULL; - } - - assertFrameObject(frame_06e2900f8efa733ac997cf95a2fda169_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_9; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_18; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_3 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig; - tmp_condition_result_18 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_condition_result_18 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_9; - } - if (tmp_condition_result_18 == NUITKA_BOOL_TRUE) { - goto branch_yes_12; - } else { - goto branch_no_12; - } - assert(tmp_condition_result_18 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_12:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95, mod_consts[65], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_9; - } - branch_no_12:; - { - PyObject *tmp_assign_source_30; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_12; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_12 = mod_consts[34]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_12 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_12); - tmp_tuple_element_12 = locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_12); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame.f_lineno = 95; - tmp_assign_source_30 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_30 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - - goto try_except_handler_9; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_30; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_29 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_29); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95); - locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95); - locals_models$unet3d$se$$$class__3_ChannelSpatialSELayer3D_95 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 95; - goto try_except_handler_7; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$se, (Nuitka_StringObject *)mod_consts[34], tmp_assign_source_29); - } - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8f9bcae1b55bc9989f46b635ddf6300f); -#endif - popFrameStack(); - - assertFrameObject(frame_8f9bcae1b55bc9989f46b635ddf6300f); - - goto frame_no_exception_4; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8f9bcae1b55bc9989f46b635ddf6300f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8f9bcae1b55bc9989f46b635ddf6300f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8f9bcae1b55bc9989f46b635ddf6300f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8f9bcae1b55bc9989f46b635ddf6300f, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_4:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - - return module_models$unet3d$se; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.seg_metrics.const b/medomni/models.build/module.models.unet3d.seg_metrics.const deleted file mode 100644 index 86ef695441bd7da965b6987514565b8e26b955cb..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.seg_metrics.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.seg_metrics.cpp b/medomni/models.build/module.models.unet3d.seg_metrics.cpp deleted file mode 100644 index cab26d526e12cf6d163b62cc87e0f00c43732c3b..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.seg_metrics.cpp +++ /dev/null @@ -1,7895 +0,0 @@ -/* Generated code for Python module 'models.unet3d.seg_metrics' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$seg_metrics" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$seg_metrics; -PyDictObject *moduledict_models$unet3d$seg_metrics; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[91]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.seg_metrics")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$seg_metrics(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.seg_metrics"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_7ce711679e74763389bda4d3f90c48b8; -static PyCodeObject *codeobj_87980619fc658c51602396b2b40f261e; -static PyCodeObject *codeobj_a7531531806f1d06874ac6ce2048e9f2; -static PyCodeObject *codeobj_b32104a110983f80580b15f0f8b1034d; -static PyCodeObject *codeobj_2255aac60ad40303044db677edaa996c; -static PyCodeObject *codeobj_70fdad61b1ace9f870d34f82b2f3b336; -static PyCodeObject *codeobj_0be6b5c7d3353581136089aab06f7f3b; -static PyCodeObject *codeobj_af603eb4091b3a40a9ad615ab2e4fde7; -static PyCodeObject *codeobj_d5b84adf0fe9fbc1a3ee285e9ee6635c; -static PyCodeObject *codeobj_9b9e40633ffe263a2187d84a16ae8a01; -static PyCodeObject *codeobj_3643fa1774eff884c600275237666db2; -static PyCodeObject *codeobj_8d842ff568ddbb916ccfddfc328b8223; -static PyCodeObject *codeobj_dd6a0cba4396bbfee9af5dbcd573cc41; -static PyCodeObject *codeobj_e0dc1a6968b0b2a6959b9111dd93972e; -static PyCodeObject *codeobj_788a37b0acefd5789d86b1b0b23057f8; -static PyCodeObject *codeobj_ce988eb676d5eadcda88db87dc2cdce7; -static PyCodeObject *codeobj_119ce03ea0d2c02f08ad86041bcad4aa; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[77]); CHECK_OBJECT(module_filename_obj); - codeobj_7ce711679e74763389bda4d3f90c48b8 = MAKE_CODEOBJECT(module_filename_obj, 121, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[78], mod_consts[79], NULL, 1, 0, 0); - codeobj_87980619fc658c51602396b2b40f261e = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[80], NULL, NULL, 0, 0, 0); - codeobj_a7531531806f1d06874ac6ce2048e9f2 = MAKE_CODEOBJECT(module_filename_obj, 92, CO_NOFREE, mod_consts[68], mod_consts[81], NULL, 0, 0, 0); - codeobj_b32104a110983f80580b15f0f8b1034d = MAKE_CODEOBJECT(module_filename_obj, 108, CO_NOFREE, mod_consts[74], mod_consts[81], NULL, 0, 0, 0); - codeobj_2255aac60ad40303044db677edaa996c = MAKE_CODEOBJECT(module_filename_obj, 49, CO_NOFREE, mod_consts[36], mod_consts[81], NULL, 0, 0, 0); - codeobj_70fdad61b1ace9f870d34f82b2f3b336 = MAKE_CODEOBJECT(module_filename_obj, 103, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[70], mod_consts[82], NULL, 3, 0, 0); - codeobj_0be6b5c7d3353581136089aab06f7f3b = MAKE_CODEOBJECT(module_filename_obj, 117, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[70], mod_consts[83], NULL, 3, 0, 0); - codeobj_af603eb4091b3a40a9ad615ab2e4fde7 = MAKE_CODEOBJECT(module_filename_obj, 114, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[63], mod_consts[84], NULL, 1, 0, 0); - codeobj_d5b84adf0fe9fbc1a3ee285e9ee6635c = MAKE_CODEOBJECT(module_filename_obj, 60, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[63], mod_consts[85], NULL, 3, 0, 0); - codeobj_9b9e40633ffe263a2187d84a16ae8a01 = MAKE_CODEOBJECT(module_filename_obj, 100, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[63], mod_consts[86], NULL, 2, 0, 0); - codeobj_3643fa1774eff884c600275237666db2 = MAKE_CODEOBJECT(module_filename_obj, 26, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[21], mod_consts[87], NULL, 2, 0, 0); - codeobj_8d842ff568ddbb916ccfddfc328b8223 = MAKE_CODEOBJECT(module_filename_obj, 21, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[10], mod_consts[88], NULL, 1, 0, 0); - codeobj_dd6a0cba4396bbfee9af5dbcd573cc41 = MAKE_CODEOBJECT(module_filename_obj, 13, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[32], mod_consts[89], NULL, 3, 0, 0); - codeobj_e0dc1a6968b0b2a6959b9111dd93972e = MAKE_CODEOBJECT(module_filename_obj, 17, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[33], mod_consts[89], NULL, 3, 0, 0); - codeobj_788a37b0acefd5789d86b1b0b23057f8 = MAKE_CODEOBJECT(module_filename_obj, 63, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[37], mod_consts[90], NULL, 2, 0, 0); - codeobj_ce988eb676d5eadcda88db87dc2cdce7 = MAKE_CODEOBJECT(module_filename_obj, 5, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[30], mod_consts[89], NULL, 3, 0, 0); - codeobj_119ce03ea0d2c02f08ad86041bcad4aa = MAKE_CODEOBJECT(module_filename_obj, 9, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[31], mod_consts[89], NULL, 3, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__10___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__11___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__12___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__1_precision(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__2_recall(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__3_accuracy(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__4_f1(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__5__relabel(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__6__iou_matrix(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__7___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__8_metrics(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__9___init__(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$seg_metrics$$$function__1_precision(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tp = python_pars[0]; - PyObject *par_fp = python_pars[1]; - PyObject *par_fn = python_pars[2]; - struct Nuitka_FrameObject *frame_ce988eb676d5eadcda88db87dc2cdce7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_ce988eb676d5eadcda88db87dc2cdce7 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ce988eb676d5eadcda88db87dc2cdce7)) { - Py_XDECREF(cache_frame_ce988eb676d5eadcda88db87dc2cdce7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ce988eb676d5eadcda88db87dc2cdce7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ce988eb676d5eadcda88db87dc2cdce7 = MAKE_FUNCTION_FRAME(codeobj_ce988eb676d5eadcda88db87dc2cdce7, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ce988eb676d5eadcda88db87dc2cdce7->m_type_description == NULL); - frame_ce988eb676d5eadcda88db87dc2cdce7 = cache_frame_ce988eb676d5eadcda88db87dc2cdce7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ce988eb676d5eadcda88db87dc2cdce7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ce988eb676d5eadcda88db87dc2cdce7) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(par_tp); - tmp_compexpr_left_1 = par_tp; - tmp_compexpr_right_1 = mod_consts[0]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 6; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_tp); - tmp_left_name_1 = par_tp; - CHECK_OBJECT(par_tp); - tmp_left_name_2 = par_tp; - CHECK_OBJECT(par_fp); - tmp_right_name_2 = par_fp; - tmp_right_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_return_value = mod_consts[0]; - Py_INCREF(tmp_return_value); - condexpr_end_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce988eb676d5eadcda88db87dc2cdce7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce988eb676d5eadcda88db87dc2cdce7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ce988eb676d5eadcda88db87dc2cdce7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ce988eb676d5eadcda88db87dc2cdce7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ce988eb676d5eadcda88db87dc2cdce7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ce988eb676d5eadcda88db87dc2cdce7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ce988eb676d5eadcda88db87dc2cdce7, - type_description_1, - par_tp, - par_fp, - par_fn - ); - - - // Release cached frame if used for exception. - if (frame_ce988eb676d5eadcda88db87dc2cdce7 == cache_frame_ce988eb676d5eadcda88db87dc2cdce7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ce988eb676d5eadcda88db87dc2cdce7); - cache_frame_ce988eb676d5eadcda88db87dc2cdce7 = NULL; - } - - assertFrameObject(frame_ce988eb676d5eadcda88db87dc2cdce7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tp); - par_tp = NULL; - Py_XDECREF(par_fp); - par_fp = NULL; - CHECK_OBJECT(par_fn); - Py_DECREF(par_fn); - par_fn = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tp); - par_tp = NULL; - Py_XDECREF(par_fp); - par_fp = NULL; - CHECK_OBJECT(par_fn); - Py_DECREF(par_fn); - par_fn = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__2_recall(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tp = python_pars[0]; - PyObject *par_fp = python_pars[1]; - PyObject *par_fn = python_pars[2]; - struct Nuitka_FrameObject *frame_119ce03ea0d2c02f08ad86041bcad4aa; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_119ce03ea0d2c02f08ad86041bcad4aa = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_119ce03ea0d2c02f08ad86041bcad4aa)) { - Py_XDECREF(cache_frame_119ce03ea0d2c02f08ad86041bcad4aa); - -#if _DEBUG_REFCOUNTS - if (cache_frame_119ce03ea0d2c02f08ad86041bcad4aa == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_119ce03ea0d2c02f08ad86041bcad4aa = MAKE_FUNCTION_FRAME(codeobj_119ce03ea0d2c02f08ad86041bcad4aa, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_119ce03ea0d2c02f08ad86041bcad4aa->m_type_description == NULL); - frame_119ce03ea0d2c02f08ad86041bcad4aa = cache_frame_119ce03ea0d2c02f08ad86041bcad4aa; - - // Push the new frame as the currently active one. - pushFrameStack(frame_119ce03ea0d2c02f08ad86041bcad4aa); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_119ce03ea0d2c02f08ad86041bcad4aa) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(par_tp); - tmp_compexpr_left_1 = par_tp; - tmp_compexpr_right_1 = mod_consts[0]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 10; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_tp); - tmp_left_name_1 = par_tp; - CHECK_OBJECT(par_tp); - tmp_left_name_2 = par_tp; - CHECK_OBJECT(par_fn); - tmp_right_name_2 = par_fn; - tmp_right_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_return_value = mod_consts[0]; - Py_INCREF(tmp_return_value); - condexpr_end_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_119ce03ea0d2c02f08ad86041bcad4aa); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_119ce03ea0d2c02f08ad86041bcad4aa); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_119ce03ea0d2c02f08ad86041bcad4aa); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_119ce03ea0d2c02f08ad86041bcad4aa, exception_lineno); - } else if (exception_tb->tb_frame != &frame_119ce03ea0d2c02f08ad86041bcad4aa->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_119ce03ea0d2c02f08ad86041bcad4aa, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_119ce03ea0d2c02f08ad86041bcad4aa, - type_description_1, - par_tp, - par_fp, - par_fn - ); - - - // Release cached frame if used for exception. - if (frame_119ce03ea0d2c02f08ad86041bcad4aa == cache_frame_119ce03ea0d2c02f08ad86041bcad4aa) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_119ce03ea0d2c02f08ad86041bcad4aa); - cache_frame_119ce03ea0d2c02f08ad86041bcad4aa = NULL; - } - - assertFrameObject(frame_119ce03ea0d2c02f08ad86041bcad4aa); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tp); - par_tp = NULL; - CHECK_OBJECT(par_fp); - Py_DECREF(par_fp); - par_fp = NULL; - Py_XDECREF(par_fn); - par_fn = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tp); - par_tp = NULL; - CHECK_OBJECT(par_fp); - Py_DECREF(par_fp); - par_fp = NULL; - Py_XDECREF(par_fn); - par_fn = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__3_accuracy(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tp = python_pars[0]; - PyObject *par_fp = python_pars[1]; - PyObject *par_fn = python_pars[2]; - struct Nuitka_FrameObject *frame_dd6a0cba4396bbfee9af5dbcd573cc41; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41)) { - Py_XDECREF(cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41); - -#if _DEBUG_REFCOUNTS - if (cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41 = MAKE_FUNCTION_FRAME(codeobj_dd6a0cba4396bbfee9af5dbcd573cc41, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41->m_type_description == NULL); - frame_dd6a0cba4396bbfee9af5dbcd573cc41 = cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41; - - // Push the new frame as the currently active one. - pushFrameStack(frame_dd6a0cba4396bbfee9af5dbcd573cc41); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_dd6a0cba4396bbfee9af5dbcd573cc41) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_2; - PyObject *tmp_right_name_3; - CHECK_OBJECT(par_tp); - tmp_compexpr_left_1 = par_tp; - tmp_compexpr_right_1 = mod_consts[0]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 14; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(par_tp); - tmp_left_name_1 = par_tp; - CHECK_OBJECT(par_tp); - tmp_left_name_3 = par_tp; - CHECK_OBJECT(par_fp); - tmp_right_name_2 = par_fp; - tmp_left_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_2); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_fn); - tmp_right_name_3 = par_fn; - tmp_right_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_3); - Py_DECREF(tmp_left_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_return_value = mod_consts[0]; - Py_INCREF(tmp_return_value); - condexpr_end_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dd6a0cba4396bbfee9af5dbcd573cc41); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dd6a0cba4396bbfee9af5dbcd573cc41); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_dd6a0cba4396bbfee9af5dbcd573cc41); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_dd6a0cba4396bbfee9af5dbcd573cc41, exception_lineno); - } else if (exception_tb->tb_frame != &frame_dd6a0cba4396bbfee9af5dbcd573cc41->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_dd6a0cba4396bbfee9af5dbcd573cc41, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_dd6a0cba4396bbfee9af5dbcd573cc41, - type_description_1, - par_tp, - par_fp, - par_fn - ); - - - // Release cached frame if used for exception. - if (frame_dd6a0cba4396bbfee9af5dbcd573cc41 == cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41); - cache_frame_dd6a0cba4396bbfee9af5dbcd573cc41 = NULL; - } - - assertFrameObject(frame_dd6a0cba4396bbfee9af5dbcd573cc41); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tp); - par_tp = NULL; - Py_XDECREF(par_fp); - par_fp = NULL; - Py_XDECREF(par_fn); - par_fn = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tp); - par_tp = NULL; - Py_XDECREF(par_fp); - par_fp = NULL; - Py_XDECREF(par_fn); - par_fn = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__4_f1(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tp = python_pars[0]; - PyObject *par_fp = python_pars[1]; - PyObject *par_fn = python_pars[2]; - struct Nuitka_FrameObject *frame_e0dc1a6968b0b2a6959b9111dd93972e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e0dc1a6968b0b2a6959b9111dd93972e = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e0dc1a6968b0b2a6959b9111dd93972e)) { - Py_XDECREF(cache_frame_e0dc1a6968b0b2a6959b9111dd93972e); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e0dc1a6968b0b2a6959b9111dd93972e == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e0dc1a6968b0b2a6959b9111dd93972e = MAKE_FUNCTION_FRAME(codeobj_e0dc1a6968b0b2a6959b9111dd93972e, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e0dc1a6968b0b2a6959b9111dd93972e->m_type_description == NULL); - frame_e0dc1a6968b0b2a6959b9111dd93972e = cache_frame_e0dc1a6968b0b2a6959b9111dd93972e; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e0dc1a6968b0b2a6959b9111dd93972e); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e0dc1a6968b0b2a6959b9111dd93972e) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_left_name_5; - PyObject *tmp_right_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_right_name_5; - CHECK_OBJECT(par_tp); - tmp_compexpr_left_1 = par_tp; - tmp_compexpr_right_1 = mod_consts[0]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - tmp_left_name_2 = mod_consts[1]; - CHECK_OBJECT(par_tp); - tmp_right_name_1 = par_tp; - tmp_left_name_1 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_2, tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_left_name_5 = mod_consts[1]; - if (par_tp == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[2]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_3 = par_tp; - tmp_left_name_4 = BINARY_OPERATION_MULT_OBJECT_LONG_OBJECT(tmp_left_name_5, tmp_right_name_3); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_fp); - tmp_right_name_4 = par_fp; - tmp_left_name_3 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_left_name_4); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_fn); - tmp_right_name_5 = par_fn; - tmp_right_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_5); - Py_DECREF(tmp_left_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_return_value = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 18; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_return_value = mod_consts[0]; - Py_INCREF(tmp_return_value); - condexpr_end_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e0dc1a6968b0b2a6959b9111dd93972e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e0dc1a6968b0b2a6959b9111dd93972e); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e0dc1a6968b0b2a6959b9111dd93972e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e0dc1a6968b0b2a6959b9111dd93972e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e0dc1a6968b0b2a6959b9111dd93972e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e0dc1a6968b0b2a6959b9111dd93972e, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e0dc1a6968b0b2a6959b9111dd93972e, - type_description_1, - par_tp, - par_fp, - par_fn - ); - - - // Release cached frame if used for exception. - if (frame_e0dc1a6968b0b2a6959b9111dd93972e == cache_frame_e0dc1a6968b0b2a6959b9111dd93972e) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e0dc1a6968b0b2a6959b9111dd93972e); - cache_frame_e0dc1a6968b0b2a6959b9111dd93972e = NULL; - } - - assertFrameObject(frame_e0dc1a6968b0b2a6959b9111dd93972e); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tp); - par_tp = NULL; - Py_XDECREF(par_fp); - par_fp = NULL; - Py_XDECREF(par_fn); - par_fn = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tp); - par_tp = NULL; - Py_XDECREF(par_fp); - par_fp = NULL; - Py_XDECREF(par_fn); - par_fn = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__5__relabel(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *var__ = NULL; - PyObject *var_unique_labels = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_8d842ff568ddbb916ccfddfc328b8223; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_8d842ff568ddbb916ccfddfc328b8223 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8d842ff568ddbb916ccfddfc328b8223)) { - Py_XDECREF(cache_frame_8d842ff568ddbb916ccfddfc328b8223); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8d842ff568ddbb916ccfddfc328b8223 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8d842ff568ddbb916ccfddfc328b8223 = MAKE_FUNCTION_FRAME(codeobj_8d842ff568ddbb916ccfddfc328b8223, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8d842ff568ddbb916ccfddfc328b8223->m_type_description == NULL); - frame_8d842ff568ddbb916ccfddfc328b8223 = cache_frame_8d842ff568ddbb916ccfddfc328b8223; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8d842ff568ddbb916ccfddfc328b8223); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8d842ff568ddbb916ccfddfc328b8223) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[4]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[5]); - frame_8d842ff568ddbb916ccfddfc328b8223->m_frame.f_lineno = 22; - tmp_iter_arg_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 22; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 22; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 22; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 22; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[6]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 22; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var__ == NULL); - Py_INCREF(tmp_assign_source_4); - var__ = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_unique_labels == NULL); - Py_INCREF(tmp_assign_source_5); - var_unique_labels = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(var_unique_labels); - tmp_expression_name_2 = var_unique_labels; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[7]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[8]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 23; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_input; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[9]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 23; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_8d842ff568ddbb916ccfddfc328b8223->m_frame.f_lineno = 23; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8d842ff568ddbb916ccfddfc328b8223); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8d842ff568ddbb916ccfddfc328b8223); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8d842ff568ddbb916ccfddfc328b8223); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8d842ff568ddbb916ccfddfc328b8223, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8d842ff568ddbb916ccfddfc328b8223->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8d842ff568ddbb916ccfddfc328b8223, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8d842ff568ddbb916ccfddfc328b8223, - type_description_1, - par_input, - var__, - var_unique_labels - ); - - - // Release cached frame if used for exception. - if (frame_8d842ff568ddbb916ccfddfc328b8223 == cache_frame_8d842ff568ddbb916ccfddfc328b8223) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8d842ff568ddbb916ccfddfc328b8223); - cache_frame_8d842ff568ddbb916ccfddfc328b8223 = NULL; - } - - assertFrameObject(frame_8d842ff568ddbb916ccfddfc328b8223); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(var__); - Py_DECREF(var__); - var__ = NULL; - Py_XDECREF(var_unique_labels); - var_unique_labels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_unique_labels); - var_unique_labels = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__6__iou_matrix(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_gt = python_pars[0]; - PyObject *par_seg = python_pars[1]; - PyObject *var_n_inter = NULL; - PyObject *var_n_gt = NULL; - PyObject *var_n_seg = NULL; - PyObject *var_n_union = NULL; - PyObject *var_iou_matrix = NULL; - PyObject *tmp_comparison_chain_1__comparison_result = NULL; - PyObject *tmp_comparison_chain_1__operand_2 = NULL; - PyObject *tmp_comparison_chain_1__operand_3 = NULL; - struct Nuitka_FrameObject *frame_3643fa1774eff884c600275237666db2; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_3643fa1774eff884c600275237666db2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3643fa1774eff884c600275237666db2)) { - Py_XDECREF(cache_frame_3643fa1774eff884c600275237666db2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3643fa1774eff884c600275237666db2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3643fa1774eff884c600275237666db2 = MAKE_FUNCTION_FRAME(codeobj_3643fa1774eff884c600275237666db2, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3643fa1774eff884c600275237666db2->m_type_description == NULL); - frame_3643fa1774eff884c600275237666db2 = cache_frame_3643fa1774eff884c600275237666db2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3643fa1774eff884c600275237666db2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3643fa1774eff884c600275237666db2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gt); - tmp_args_element_name_1 = par_gt; - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 28; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_gt; - assert(old != NULL); - par_gt = tmp_assign_source_1; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_seg); - tmp_args_element_name_2 = par_seg; - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 29; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_seg; - assert(old != NULL); - par_seg = tmp_assign_source_2; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[11]); - - if (unlikely(tmp_called_name_3 == NULL)) { - tmp_called_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[11]); - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gt); - tmp_args_element_name_3 = par_gt; - CHECK_OBJECT(par_seg); - tmp_args_element_name_4 = par_seg; - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 32; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_expression_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[12]); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 32; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_n_inter == NULL); - var_n_inter = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(var_n_inter); - tmp_expression_name_2 = var_n_inter; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[13]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[14]); - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 35; - tmp_assign_source_4 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_4, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 35; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_n_gt == NULL); - var_n_gt = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_3; - PyObject *tmp_kwargs_name_2; - if (var_n_inter == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 37; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = var_n_inter; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[13]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[16]); - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 37; - tmp_assign_source_5 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 37; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_n_seg == NULL); - var_n_seg = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_right_name_2; - CHECK_OBJECT(var_n_gt); - tmp_left_name_2 = var_n_gt; - CHECK_OBJECT(var_n_seg); - tmp_right_name_1 = var_n_seg; - tmp_left_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - if (var_n_inter == NULL) { - Py_DECREF(tmp_left_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 40; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_right_name_2 = var_n_inter; - tmp_assign_source_6 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 40; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_n_union == NULL); - var_n_union = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - if (var_n_inter == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 42; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_left_name_3 = var_n_inter; - CHECK_OBJECT(var_n_union); - tmp_right_name_3 = var_n_union; - tmp_assign_source_7 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(var_iou_matrix == NULL); - var_iou_matrix = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_5; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_iou_matrix); - tmp_args_element_name_5 = var_iou_matrix; - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 44; - tmp_assign_source_8 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[17], tmp_args_element_name_5); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - assert(tmp_comparison_chain_1__operand_2 == NULL); - tmp_comparison_chain_1__operand_2 = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - tmp_compexpr_left_1 = mod_consts[0]; - CHECK_OBJECT(tmp_comparison_chain_1__operand_2); - tmp_compexpr_right_1 = tmp_comparison_chain_1__operand_2; - tmp_assign_source_9 = RICH_COMPARE_LE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - assert(tmp_comparison_chain_1__comparison_result == NULL); - tmp_comparison_chain_1__comparison_result = tmp_assign_source_9; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_operand_name_2; - CHECK_OBJECT(tmp_comparison_chain_1__comparison_result); - tmp_operand_name_2 = tmp_comparison_chain_1__comparison_result; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - CHECK_OBJECT(tmp_comparison_chain_1__comparison_result); - tmp_operand_name_1 = tmp_comparison_chain_1__comparison_result; - Py_INCREF(tmp_operand_name_1); - goto try_return_handler_2; - branch_no_2:; - { - PyObject *tmp_assign_source_10; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_6; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[18]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - if (var_iou_matrix == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_6 = var_iou_matrix; - frame_3643fa1774eff884c600275237666db2->m_frame.f_lineno = 44; - tmp_assign_source_10 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_6); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - assert(tmp_comparison_chain_1__operand_3 == NULL); - tmp_comparison_chain_1__operand_3 = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(tmp_comparison_chain_1__operand_2); - tmp_compexpr_left_2 = tmp_comparison_chain_1__operand_2; - CHECK_OBJECT(tmp_comparison_chain_1__operand_3); - tmp_compexpr_right_2 = tmp_comparison_chain_1__operand_3; - tmp_assign_source_11 = RICH_COMPARE_LE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_comparison_chain_1__comparison_result; - assert(old != NULL); - tmp_comparison_chain_1__comparison_result = tmp_assign_source_11; - Py_DECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_3; - CHECK_OBJECT(tmp_comparison_chain_1__comparison_result); - tmp_operand_name_3 = tmp_comparison_chain_1__comparison_result; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - CHECK_OBJECT(tmp_comparison_chain_1__comparison_result); - tmp_operand_name_1 = tmp_comparison_chain_1__comparison_result; - Py_INCREF(tmp_operand_name_1); - goto try_return_handler_2; - branch_no_3:; - { - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(tmp_comparison_chain_1__operand_3); - tmp_compexpr_left_3 = tmp_comparison_chain_1__operand_3; - tmp_compexpr_right_3 = mod_consts[20]; - tmp_operand_name_1 = RICH_COMPARE_LE_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - goto try_return_handler_2; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_comparison_chain_1__operand_2); - Py_DECREF(tmp_comparison_chain_1__operand_2); - tmp_comparison_chain_1__operand_2 = NULL; - Py_XDECREF(tmp_comparison_chain_1__operand_3); - tmp_comparison_chain_1__operand_3 = NULL; - CHECK_OBJECT(tmp_comparison_chain_1__comparison_result); - Py_DECREF(tmp_comparison_chain_1__comparison_result); - tmp_comparison_chain_1__comparison_result = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_comparison_chain_1__operand_2); - tmp_comparison_chain_1__operand_2 = NULL; - Py_XDECREF(tmp_comparison_chain_1__operand_3); - tmp_comparison_chain_1__operand_3 = NULL; - Py_XDECREF(tmp_comparison_chain_1__comparison_result); - tmp_comparison_chain_1__comparison_result = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 44; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 44; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - if (var_iou_matrix == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[19]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 46; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_iou_matrix; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3643fa1774eff884c600275237666db2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3643fa1774eff884c600275237666db2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3643fa1774eff884c600275237666db2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3643fa1774eff884c600275237666db2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3643fa1774eff884c600275237666db2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3643fa1774eff884c600275237666db2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3643fa1774eff884c600275237666db2, - type_description_1, - par_gt, - par_seg, - var_n_inter, - var_n_gt, - var_n_seg, - var_n_union, - var_iou_matrix - ); - - - // Release cached frame if used for exception. - if (frame_3643fa1774eff884c600275237666db2 == cache_frame_3643fa1774eff884c600275237666db2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3643fa1774eff884c600275237666db2); - cache_frame_3643fa1774eff884c600275237666db2 = NULL; - } - - assertFrameObject(frame_3643fa1774eff884c600275237666db2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_gt); - Py_DECREF(par_gt); - par_gt = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - Py_XDECREF(var_n_inter); - var_n_inter = NULL; - Py_XDECREF(var_n_gt); - var_n_gt = NULL; - Py_XDECREF(var_n_seg); - var_n_seg = NULL; - Py_XDECREF(var_n_union); - var_n_union = NULL; - Py_XDECREF(var_iou_matrix); - var_iou_matrix = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_gt); - Py_DECREF(par_gt); - par_gt = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - Py_XDECREF(var_n_inter); - var_n_inter = NULL; - Py_XDECREF(var_n_gt); - var_n_gt = NULL; - Py_XDECREF(var_n_seg); - var_n_seg = NULL; - Py_XDECREF(var_n_union); - var_n_union = NULL; - Py_XDECREF(var_iou_matrix); - var_iou_matrix = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__7___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_gt = python_pars[1]; - PyObject *par_seg = python_pars[2]; - struct Nuitka_FrameObject *frame_d5b84adf0fe9fbc1a3ee285e9ee6635c; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c)) { - Py_XDECREF(cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c = MAKE_FUNCTION_FRAME(codeobj_d5b84adf0fe9fbc1a3ee285e9ee6635c, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c->m_type_description == NULL); - frame_d5b84adf0fe9fbc1a3ee285e9ee6635c = cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d5b84adf0fe9fbc1a3ee285e9ee6635c); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d5b84adf0fe9fbc1a3ee285e9ee6635c) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_assattr_target_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[21]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[21]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gt); - tmp_args_element_name_1 = par_gt; - CHECK_OBJECT(par_seg); - tmp_args_element_name_2 = par_seg; - frame_d5b84adf0fe9fbc1a3ee285e9ee6635c->m_frame.f_lineno = 61; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[19], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 61; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d5b84adf0fe9fbc1a3ee285e9ee6635c); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d5b84adf0fe9fbc1a3ee285e9ee6635c); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d5b84adf0fe9fbc1a3ee285e9ee6635c, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d5b84adf0fe9fbc1a3ee285e9ee6635c->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d5b84adf0fe9fbc1a3ee285e9ee6635c, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d5b84adf0fe9fbc1a3ee285e9ee6635c, - type_description_1, - par_self, - par_gt, - par_seg - ); - - - // Release cached frame if used for exception. - if (frame_d5b84adf0fe9fbc1a3ee285e9ee6635c == cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c); - cache_frame_d5b84adf0fe9fbc1a3ee285e9ee6635c = NULL; - } - - assertFrameObject(frame_d5b84adf0fe9fbc1a3ee285e9ee6635c); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_gt); - Py_DECREF(par_gt); - par_gt = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_gt); - Py_DECREF(par_gt); - par_gt = NULL; - CHECK_OBJECT(par_seg); - Py_DECREF(par_seg); - par_seg = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__8_metrics(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_iou_threshold = python_pars[1]; - PyObject *var_iou_matrix = NULL; - PyObject *var_detection_matrix = NULL; - PyObject *var_n_gt = NULL; - PyObject *var_n_seg = NULL; - PyObject *var_trivial = NULL; - PyObject *var_tp = NULL; - PyObject *var_fp = NULL; - PyObject *var_fn = NULL; - PyObject *tmp_assign_unpack_1__assign_source = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_788a37b0acefd5789d86b1b0b23057f8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_788a37b0acefd5789d86b1b0b23057f8 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_788a37b0acefd5789d86b1b0b23057f8)) { - Py_XDECREF(cache_frame_788a37b0acefd5789d86b1b0b23057f8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_788a37b0acefd5789d86b1b0b23057f8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_788a37b0acefd5789d86b1b0b23057f8 = MAKE_FUNCTION_FRAME(codeobj_788a37b0acefd5789d86b1b0b23057f8, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_788a37b0acefd5789d86b1b0b23057f8->m_type_description == NULL); - frame_788a37b0acefd5789d86b1b0b23057f8 = cache_frame_788a37b0acefd5789d86b1b0b23057f8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_788a37b0acefd5789d86b1b0b23057f8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_788a37b0acefd5789d86b1b0b23057f8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[19]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[22]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 68; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_iou_matrix == NULL); - var_iou_matrix = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(var_iou_matrix); - tmp_compexpr_left_1 = var_iou_matrix; - CHECK_OBJECT(par_iou_threshold); - tmp_compexpr_right_1 = par_iou_threshold; - tmp_expression_name_3 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[23]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 69; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[24]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 69; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 69; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 69; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_detection_matrix == NULL); - var_detection_matrix = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(var_detection_matrix); - tmp_expression_name_5 = var_detection_matrix; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[9]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 70; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 70; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooo"; - exception_lineno = 70; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooo"; - exception_lineno = 70; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[6]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooo"; - exception_lineno = 70; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - assert(var_n_gt == NULL); - Py_INCREF(tmp_assign_source_6); - var_n_gt = tmp_assign_source_6; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - assert(var_n_seg == NULL); - Py_INCREF(tmp_assign_source_7); - var_n_seg = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_assign_source_8; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - tmp_called_name_2 = LOOKUP_BUILTIN(mod_consts[17]); - assert(tmp_called_name_2 != NULL); - CHECK_OBJECT(var_n_gt); - tmp_args_element_name_2 = var_n_gt; - CHECK_OBJECT(var_n_seg); - tmp_args_element_name_3 = var_n_seg; - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 73; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_compexpr_left_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[0]; - tmp_or_left_value_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_or_left_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_or_left_value_1); - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - Py_DECREF(tmp_or_left_value_1); - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[25]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_detection_matrix == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_compexpr_left_3 = var_detection_matrix; - tmp_compexpr_right_3 = mod_consts[0]; - tmp_args_element_name_4 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 73; - tmp_or_right_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_or_right_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_8 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_assign_source_8 = tmp_or_left_value_1; - or_end_1:; - assert(var_trivial == NULL); - var_trivial = tmp_assign_source_8; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_trivial); - tmp_truth_name_1 = CHECK_IF_TRUE(var_trivial); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_9; - tmp_assign_source_9 = mod_consts[0]; - assert(tmp_assign_unpack_1__assign_source == NULL); - Py_INCREF(tmp_assign_source_9); - tmp_assign_unpack_1__assign_source = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_10 = tmp_assign_unpack_1__assign_source; - assert(var_tp == NULL); - Py_INCREF(tmp_assign_source_10); - var_tp = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_11 = tmp_assign_unpack_1__assign_source; - assert(var_fp == NULL); - Py_INCREF(tmp_assign_source_11); - var_fp = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - tmp_assign_source_12 = tmp_assign_unpack_1__assign_source; - assert(var_fn == NULL); - Py_INCREF(tmp_assign_source_12); - var_fn = tmp_assign_source_12; - } - CHECK_OBJECT(tmp_assign_unpack_1__assign_source); - Py_DECREF(tmp_assign_unpack_1__assign_source); - tmp_assign_unpack_1__assign_source = NULL; - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_8; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[27]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_detection_matrix == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 78; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = var_detection_matrix; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[13]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 78; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[28]); - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 78; - tmp_args_element_name_5 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_5, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 78; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 78; - tmp_assign_source_13 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_5); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 78; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_tp == NULL); - var_tp = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(var_n_gt); - tmp_left_name_1 = var_n_gt; - CHECK_OBJECT(var_tp); - tmp_right_name_1 = var_tp; - tmp_assign_source_14 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_fn == NULL); - var_fn = tmp_assign_source_14; - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_10; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(var_n_seg); - tmp_left_name_2 = var_n_seg; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[27]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_detection_matrix == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = var_detection_matrix; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[13]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[29]); - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 82; - tmp_args_element_name_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_7, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 82; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_6); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_15 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_fp == NULL); - var_fp = tmp_assign_source_15; - } - branch_end_1:; - { - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - tmp_dict_key_1 = mod_consts[30]; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[30]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[30]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (var_tp == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[2]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_7 = var_tp; - CHECK_OBJECT(var_fp); - tmp_args_element_name_8 = var_fp; - CHECK_OBJECT(var_fn); - tmp_args_element_name_9 = var_fn; - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 85; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9}; - tmp_dict_value_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_8, call_args); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = _PyDict_NewPresized( 4 ); - { - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_called_name_10; - PyObject *tmp_args_element_name_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - PyObject *tmp_called_name_11; - PyObject *tmp_args_element_name_16; - PyObject *tmp_args_element_name_17; - PyObject *tmp_args_element_name_18; - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[31]; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[31]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[31]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - if (var_tp == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[2]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 86; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - - tmp_args_element_name_10 = var_tp; - CHECK_OBJECT(var_fp); - tmp_args_element_name_11 = var_fp; - CHECK_OBJECT(var_fn); - tmp_args_element_name_12 = var_fn; - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 86; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_dict_value_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_9, call_args); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 86; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[32]; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[32]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[32]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - if (var_tp == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[2]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - - tmp_args_element_name_13 = var_tp; - CHECK_OBJECT(var_fp); - tmp_args_element_name_14 = var_fp; - CHECK_OBJECT(var_fn); - tmp_args_element_name_15 = var_fn; - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 87; - { - PyObject *call_args[] = {tmp_args_element_name_13, tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_dict_value_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_10, call_args); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 87; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[33]; - tmp_called_name_11 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[33]); - - if (unlikely(tmp_called_name_11 == NULL)) { - tmp_called_name_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[33]); - } - - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - if (var_tp == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[2]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 88; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - - tmp_args_element_name_16 = var_tp; - CHECK_OBJECT(var_fp); - tmp_args_element_name_17 = var_fp; - CHECK_OBJECT(var_fn); - tmp_args_element_name_18 = var_fn; - frame_788a37b0acefd5789d86b1b0b23057f8->m_frame.f_lineno = 88; - { - PyObject *call_args[] = {tmp_args_element_name_16, tmp_args_element_name_17, tmp_args_element_name_18}; - tmp_dict_value_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_11, call_args); - } - - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 88; - type_description_1 = "oooooooooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_return_value, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_788a37b0acefd5789d86b1b0b23057f8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_788a37b0acefd5789d86b1b0b23057f8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_788a37b0acefd5789d86b1b0b23057f8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_788a37b0acefd5789d86b1b0b23057f8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_788a37b0acefd5789d86b1b0b23057f8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_788a37b0acefd5789d86b1b0b23057f8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_788a37b0acefd5789d86b1b0b23057f8, - type_description_1, - par_self, - par_iou_threshold, - var_iou_matrix, - var_detection_matrix, - var_n_gt, - var_n_seg, - var_trivial, - var_tp, - var_fp, - var_fn - ); - - - // Release cached frame if used for exception. - if (frame_788a37b0acefd5789d86b1b0b23057f8 == cache_frame_788a37b0acefd5789d86b1b0b23057f8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_788a37b0acefd5789d86b1b0b23057f8); - cache_frame_788a37b0acefd5789d86b1b0b23057f8 = NULL; - } - - assertFrameObject(frame_788a37b0acefd5789d86b1b0b23057f8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_iou_threshold); - Py_DECREF(par_iou_threshold); - par_iou_threshold = NULL; - CHECK_OBJECT(var_iou_matrix); - Py_DECREF(var_iou_matrix); - var_iou_matrix = NULL; - Py_XDECREF(var_detection_matrix); - var_detection_matrix = NULL; - Py_XDECREF(var_n_gt); - var_n_gt = NULL; - Py_XDECREF(var_n_seg); - var_n_seg = NULL; - CHECK_OBJECT(var_trivial); - Py_DECREF(var_trivial); - var_trivial = NULL; - Py_XDECREF(var_tp); - var_tp = NULL; - CHECK_OBJECT(var_fp); - Py_DECREF(var_fp); - var_fp = NULL; - CHECK_OBJECT(var_fn); - Py_DECREF(var_fn); - var_fn = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_iou_threshold); - Py_DECREF(par_iou_threshold); - par_iou_threshold = NULL; - Py_XDECREF(var_iou_matrix); - var_iou_matrix = NULL; - Py_XDECREF(var_detection_matrix); - var_detection_matrix = NULL; - Py_XDECREF(var_n_gt); - var_n_gt = NULL; - Py_XDECREF(var_n_seg); - var_n_seg = NULL; - Py_XDECREF(var_trivial); - var_trivial = NULL; - Py_XDECREF(var_tp); - var_tp = NULL; - Py_XDECREF(var_fp); - var_fp = NULL; - Py_XDECREF(var_fn); - var_fn = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_iou_threshold = python_pars[1]; - struct Nuitka_FrameObject *frame_9b9e40633ffe263a2187d84a16ae8a01; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_9b9e40633ffe263a2187d84a16ae8a01 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9b9e40633ffe263a2187d84a16ae8a01)) { - Py_XDECREF(cache_frame_9b9e40633ffe263a2187d84a16ae8a01); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9b9e40633ffe263a2187d84a16ae8a01 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9b9e40633ffe263a2187d84a16ae8a01 = MAKE_FUNCTION_FRAME(codeobj_9b9e40633ffe263a2187d84a16ae8a01, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9b9e40633ffe263a2187d84a16ae8a01->m_type_description == NULL); - frame_9b9e40633ffe263a2187d84a16ae8a01 = cache_frame_9b9e40633ffe263a2187d84a16ae8a01; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9b9e40633ffe263a2187d84a16ae8a01); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9b9e40633ffe263a2187d84a16ae8a01) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_iou_threshold); - tmp_assattr_name_1 = par_iou_threshold; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[35], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9b9e40633ffe263a2187d84a16ae8a01); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9b9e40633ffe263a2187d84a16ae8a01); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9b9e40633ffe263a2187d84a16ae8a01, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9b9e40633ffe263a2187d84a16ae8a01->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9b9e40633ffe263a2187d84a16ae8a01, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9b9e40633ffe263a2187d84a16ae8a01, - type_description_1, - par_self, - par_iou_threshold - ); - - - // Release cached frame if used for exception. - if (frame_9b9e40633ffe263a2187d84a16ae8a01 == cache_frame_9b9e40633ffe263a2187d84a16ae8a01) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9b9e40633ffe263a2187d84a16ae8a01); - cache_frame_9b9e40633ffe263a2187d84a16ae8a01 = NULL; - } - - assertFrameObject(frame_9b9e40633ffe263a2187d84a16ae8a01); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_iou_threshold); - Py_DECREF(par_iou_threshold); - par_iou_threshold = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_iou_threshold); - Py_DECREF(par_iou_threshold); - par_iou_threshold = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__10___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_seg = python_pars[1]; - PyObject *par_gt_seg = python_pars[2]; - PyObject *var_metrics = NULL; - struct Nuitka_FrameObject *frame_70fdad61b1ace9f870d34f82b2f3b336; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_70fdad61b1ace9f870d34f82b2f3b336 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_70fdad61b1ace9f870d34f82b2f3b336)) { - Py_XDECREF(cache_frame_70fdad61b1ace9f870d34f82b2f3b336); - -#if _DEBUG_REFCOUNTS - if (cache_frame_70fdad61b1ace9f870d34f82b2f3b336 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_70fdad61b1ace9f870d34f82b2f3b336 = MAKE_FUNCTION_FRAME(codeobj_70fdad61b1ace9f870d34f82b2f3b336, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_70fdad61b1ace9f870d34f82b2f3b336->m_type_description == NULL); - frame_70fdad61b1ace9f870d34f82b2f3b336 = cache_frame_70fdad61b1ace9f870d34f82b2f3b336; - - // Push the new frame as the currently active one. - pushFrameStack(frame_70fdad61b1ace9f870d34f82b2f3b336); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_70fdad61b1ace9f870d34f82b2f3b336) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_2; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gt_seg); - tmp_args_element_name_1 = par_gt_seg; - CHECK_OBJECT(par_input_seg); - tmp_args_element_name_2 = par_input_seg; - frame_70fdad61b1ace9f870d34f82b2f3b336->m_frame.f_lineno = 104; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_expression_name_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[37]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_expression_name_2 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[35]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 104; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_70fdad61b1ace9f870d34f82b2f3b336->m_frame.f_lineno = 104; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_metrics == NULL); - var_metrics = tmp_assign_source_1; - } - { - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_metrics); - tmp_expression_name_3 = var_metrics; - tmp_subscript_name_1 = mod_consts[32]; - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_70fdad61b1ace9f870d34f82b2f3b336); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_70fdad61b1ace9f870d34f82b2f3b336); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_70fdad61b1ace9f870d34f82b2f3b336); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_70fdad61b1ace9f870d34f82b2f3b336, exception_lineno); - } else if (exception_tb->tb_frame != &frame_70fdad61b1ace9f870d34f82b2f3b336->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_70fdad61b1ace9f870d34f82b2f3b336, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_70fdad61b1ace9f870d34f82b2f3b336, - type_description_1, - par_self, - par_input_seg, - par_gt_seg, - var_metrics - ); - - - // Release cached frame if used for exception. - if (frame_70fdad61b1ace9f870d34f82b2f3b336 == cache_frame_70fdad61b1ace9f870d34f82b2f3b336) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_70fdad61b1ace9f870d34f82b2f3b336); - cache_frame_70fdad61b1ace9f870d34f82b2f3b336 = NULL; - } - - assertFrameObject(frame_70fdad61b1ace9f870d34f82b2f3b336); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_seg); - Py_DECREF(par_input_seg); - par_input_seg = NULL; - CHECK_OBJECT(par_gt_seg); - Py_DECREF(par_gt_seg); - par_gt_seg = NULL; - CHECK_OBJECT(var_metrics); - Py_DECREF(var_metrics); - var_metrics = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_seg); - Py_DECREF(par_input_seg); - par_input_seg = NULL; - CHECK_OBJECT(par_gt_seg); - Py_DECREF(par_gt_seg); - par_gt_seg = NULL; - Py_XDECREF(var_metrics); - var_metrics = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__11___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_af603eb4091b3a40a9ad615ab2e4fde7; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_af603eb4091b3a40a9ad615ab2e4fde7 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_af603eb4091b3a40a9ad615ab2e4fde7)) { - Py_XDECREF(cache_frame_af603eb4091b3a40a9ad615ab2e4fde7); - -#if _DEBUG_REFCOUNTS - if (cache_frame_af603eb4091b3a40a9ad615ab2e4fde7 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_af603eb4091b3a40a9ad615ab2e4fde7 = MAKE_FUNCTION_FRAME(codeobj_af603eb4091b3a40a9ad615ab2e4fde7, module_models$unet3d$seg_metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_af603eb4091b3a40a9ad615ab2e4fde7->m_type_description == NULL); - frame_af603eb4091b3a40a9ad615ab2e4fde7 = cache_frame_af603eb4091b3a40a9ad615ab2e4fde7; - - // Push the new frame as the currently active one. - pushFrameStack(frame_af603eb4091b3a40a9ad615ab2e4fde7); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_af603eb4091b3a40a9ad615ab2e4fde7) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_assattr_target_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_af603eb4091b3a40a9ad615ab2e4fde7->m_frame.f_lineno = 115; - tmp_assattr_name_1 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_1, - mod_consts[38], - &PyTuple_GET_ITEM(mod_consts[39], 0) - ); - - if (tmp_assattr_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[40], tmp_assattr_name_1); - Py_DECREF(tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 115; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_af603eb4091b3a40a9ad615ab2e4fde7); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_af603eb4091b3a40a9ad615ab2e4fde7); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_af603eb4091b3a40a9ad615ab2e4fde7, exception_lineno); - } else if (exception_tb->tb_frame != &frame_af603eb4091b3a40a9ad615ab2e4fde7->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_af603eb4091b3a40a9ad615ab2e4fde7, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_af603eb4091b3a40a9ad615ab2e4fde7, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_af603eb4091b3a40a9ad615ab2e4fde7 == cache_frame_af603eb4091b3a40a9ad615ab2e4fde7) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_af603eb4091b3a40a9ad615ab2e4fde7); - cache_frame_af603eb4091b3a40a9ad615ab2e4fde7 = NULL; - } - - assertFrameObject(frame_af603eb4091b3a40a9ad615ab2e4fde7); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$seg_metrics$$$function__12___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input_seg = python_pars[1]; - PyObject *par_gt_seg = python_pars[2]; - PyObject *var_sm = NULL; - PyObject *var_acc = NULL; - PyObject *outline_0_var_iou = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_0be6b5c7d3353581136089aab06f7f3b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_7ce711679e74763389bda4d3f90c48b8_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_7ce711679e74763389bda4d3f90c48b8_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_0be6b5c7d3353581136089aab06f7f3b = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0be6b5c7d3353581136089aab06f7f3b)) { - Py_XDECREF(cache_frame_0be6b5c7d3353581136089aab06f7f3b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0be6b5c7d3353581136089aab06f7f3b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0be6b5c7d3353581136089aab06f7f3b = MAKE_FUNCTION_FRAME(codeobj_0be6b5c7d3353581136089aab06f7f3b, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0be6b5c7d3353581136089aab06f7f3b->m_type_description == NULL); - frame_0be6b5c7d3353581136089aab06f7f3b = cache_frame_0be6b5c7d3353581136089aab06f7f3b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0be6b5c7d3353581136089aab06f7f3b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0be6b5c7d3353581136089aab06f7f3b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[36]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[36]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_gt_seg); - tmp_args_element_name_1 = par_gt_seg; - CHECK_OBJECT(par_input_seg); - tmp_args_element_name_2 = par_input_seg; - frame_0be6b5c7d3353581136089aab06f7f3b->m_frame.f_lineno = 119; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 119; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_sm == NULL); - var_sm = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_iter_arg_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[40]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - tmp_assign_source_4 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_4; - } - if (isFrameUnusable(cache_frame_7ce711679e74763389bda4d3f90c48b8_2)) { - Py_XDECREF(cache_frame_7ce711679e74763389bda4d3f90c48b8_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7ce711679e74763389bda4d3f90c48b8_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7ce711679e74763389bda4d3f90c48b8_2 = MAKE_FUNCTION_FRAME(codeobj_7ce711679e74763389bda4d3f90c48b8, module_models$unet3d$seg_metrics, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7ce711679e74763389bda4d3f90c48b8_2->m_type_description == NULL); - frame_7ce711679e74763389bda4d3f90c48b8_2 = cache_frame_7ce711679e74763389bda4d3f90c48b8_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7ce711679e74763389bda4d3f90c48b8_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7ce711679e74763389bda4d3f90c48b8_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_5 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 121; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_6 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_iou; - outline_0_var_iou = tmp_assign_source_6; - Py_INCREF(outline_0_var_iou); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (var_sm == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 121; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_called_instance_1 = var_sm; - CHECK_OBJECT(outline_0_var_iou); - tmp_args_element_name_3 = outline_0_var_iou; - frame_7ce711679e74763389bda4d3f90c48b8_2->m_frame.f_lineno = 121; - tmp_expression_name_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[37], tmp_args_element_name_3); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_subscript_name_1 = mod_consts[32]; - tmp_append_value_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_2); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_assign_source_2 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_assign_source_2); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ce711679e74763389bda4d3f90c48b8_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ce711679e74763389bda4d3f90c48b8_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ce711679e74763389bda4d3f90c48b8_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7ce711679e74763389bda4d3f90c48b8_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7ce711679e74763389bda4d3f90c48b8_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7ce711679e74763389bda4d3f90c48b8_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7ce711679e74763389bda4d3f90c48b8_2, - type_description_2, - outline_0_var_iou, - var_sm - ); - - - // Release cached frame if used for exception. - if (frame_7ce711679e74763389bda4d3f90c48b8_2 == cache_frame_7ce711679e74763389bda4d3f90c48b8_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7ce711679e74763389bda4d3f90c48b8_2); - cache_frame_7ce711679e74763389bda4d3f90c48b8_2 = NULL; - } - - assertFrameObject(frame_7ce711679e74763389bda4d3f90c48b8_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "ooooo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_iou); - outline_0_var_iou = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_iou); - outline_0_var_iou = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 121; - goto frame_exception_exit_1; - outline_result_1:; - assert(var_acc == NULL); - var_acc = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_4; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[3]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_acc); - tmp_args_element_name_4 = var_acc; - frame_0be6b5c7d3353581136089aab06f7f3b->m_frame.f_lineno = 123; - tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[42], tmp_args_element_name_4); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0be6b5c7d3353581136089aab06f7f3b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0be6b5c7d3353581136089aab06f7f3b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0be6b5c7d3353581136089aab06f7f3b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0be6b5c7d3353581136089aab06f7f3b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0be6b5c7d3353581136089aab06f7f3b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0be6b5c7d3353581136089aab06f7f3b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0be6b5c7d3353581136089aab06f7f3b, - type_description_1, - par_self, - par_input_seg, - par_gt_seg, - var_sm, - var_acc - ); - - - // Release cached frame if used for exception. - if (frame_0be6b5c7d3353581136089aab06f7f3b == cache_frame_0be6b5c7d3353581136089aab06f7f3b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0be6b5c7d3353581136089aab06f7f3b); - cache_frame_0be6b5c7d3353581136089aab06f7f3b = NULL; - } - - assertFrameObject(frame_0be6b5c7d3353581136089aab06f7f3b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_seg); - Py_DECREF(par_input_seg); - par_input_seg = NULL; - CHECK_OBJECT(par_gt_seg); - Py_DECREF(par_gt_seg); - par_gt_seg = NULL; - Py_XDECREF(var_sm); - var_sm = NULL; - Py_XDECREF(var_acc); - var_acc = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input_seg); - Py_DECREF(par_input_seg); - par_input_seg = NULL; - CHECK_OBJECT(par_gt_seg); - Py_DECREF(par_gt_seg); - par_gt_seg = NULL; - Py_XDECREF(var_sm); - var_sm = NULL; - Py_XDECREF(var_acc); - var_acc = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__10___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__10___call__, - mod_consts[70], -#if PYTHON_VERSION >= 0x300 - mod_consts[71], -#endif - codeobj_70fdad61b1ace9f870d34f82b2f3b336, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__11___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__11___init__, - mod_consts[63], -#if PYTHON_VERSION >= 0x300 - mod_consts[75], -#endif - codeobj_af603eb4091b3a40a9ad615ab2e4fde7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__12___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__12___call__, - mod_consts[70], -#if PYTHON_VERSION >= 0x300 - mod_consts[76], -#endif - codeobj_0be6b5c7d3353581136089aab06f7f3b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__1_precision() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__1_precision, - mod_consts[30], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_ce988eb676d5eadcda88db87dc2cdce7, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__2_recall() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__2_recall, - mod_consts[31], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_119ce03ea0d2c02f08ad86041bcad4aa, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__3_accuracy() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__3_accuracy, - mod_consts[32], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_dd6a0cba4396bbfee9af5dbcd573cc41, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__4_f1() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__4_f1, - mod_consts[33], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_e0dc1a6968b0b2a6959b9111dd93972e, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__5__relabel() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__5__relabel, - mod_consts[10], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_8d842ff568ddbb916ccfddfc328b8223, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__6__iou_matrix() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__6__iou_matrix, - mod_consts[21], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_3643fa1774eff884c600275237666db2, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__7___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__7___init__, - mod_consts[63], -#if PYTHON_VERSION >= 0x300 - mod_consts[64], -#endif - codeobj_d5b84adf0fe9fbc1a3ee285e9ee6635c, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__8_metrics() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__8_metrics, - mod_consts[37], -#if PYTHON_VERSION >= 0x300 - mod_consts[65], -#endif - codeobj_788a37b0acefd5789d86b1b0b23057f8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - mod_consts[34], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__9___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$seg_metrics$$$function__9___init__, - mod_consts[63], -#if PYTHON_VERSION >= 0x300 - mod_consts[69], -#endif - codeobj_9b9e40633ffe263a2187d84a16ae8a01, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$seg_metrics, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$seg_metrics[] = { - impl_models$unet3d$seg_metrics$$$function__1_precision, - impl_models$unet3d$seg_metrics$$$function__2_recall, - impl_models$unet3d$seg_metrics$$$function__3_accuracy, - impl_models$unet3d$seg_metrics$$$function__4_f1, - impl_models$unet3d$seg_metrics$$$function__5__relabel, - impl_models$unet3d$seg_metrics$$$function__6__iou_matrix, - impl_models$unet3d$seg_metrics$$$function__7___init__, - impl_models$unet3d$seg_metrics$$$function__8_metrics, - impl_models$unet3d$seg_metrics$$$function__9___init__, - impl_models$unet3d$seg_metrics$$$function__10___call__, - impl_models$unet3d$seg_metrics$$$function__11___init__, - impl_models$unet3d$seg_metrics$$$function__12___call__, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$seg_metrics; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$seg_metrics) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$seg_metrics[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$seg_metrics, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$seg_metrics(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$seg_metrics = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.seg_metrics: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.seg_metrics: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.seg_metrics: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$seg_metrics\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$seg_metrics = MODULE_DICT(module_models$unet3d$seg_metrics); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$seg_metrics, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$seg_metrics, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$seg_metrics, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$seg_metrics, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$seg_metrics, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$seg_metrics); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$seg_metrics); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - PyObject *outline_2_var___class__ = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - struct Nuitka_FrameObject *frame_87980619fc658c51602396b2b40f261e; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_2255aac60ad40303044db677edaa996c_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_2255aac60ad40303044db677edaa996c_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92 = NULL; - struct Nuitka_FrameObject *frame_a7531531806f1d06874ac6ce2048e9f2_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_a7531531806f1d06874ac6ce2048e9f2_3 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108 = NULL; - struct Nuitka_FrameObject *frame_b32104a110983f80580b15f0f8b1034d_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_b32104a110983f80580b15f0f8b1034d_4 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[43], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[44], tmp_assign_source_2); - } - // Frame without reuse. - frame_87980619fc658c51602396b2b40f261e = MAKE_MODULE_FRAME(codeobj_87980619fc658c51602396b2b40f261e, module_models$unet3d$seg_metrics); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_87980619fc658c51602396b2b40f261e); - assert(Py_REFCNT(frame_87980619fc658c51602396b2b40f261e) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[45]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[45]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[46], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[45]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[45]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[47], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[48], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[49]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$seg_metrics; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[0]; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[3], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[50]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$seg_metrics; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = mod_consts[51]; - tmp_level_name_2 = mod_consts[0]; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 2; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$seg_metrics, - mod_consts[11], - mod_consts[0] - ); - } else { - tmp_assign_source_5 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[11]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[11], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - - - tmp_assign_source_6 = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__1_precision(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[30], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - - - tmp_assign_source_7 = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__2_recall(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[31], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - - - tmp_assign_source_8 = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__3_accuracy(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[32], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - - - tmp_assign_source_9 = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__4_f1(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[33], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - - - tmp_assign_source_10 = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__5__relabel(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - - - tmp_assign_source_11 = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__6__iou_matrix(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[21], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - tmp_assign_source_12 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[52]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[53]; - tmp_assign_source_13 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_13; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[52]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_1 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[54]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_14; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[54]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - tmp_args_name_1 = mod_consts[55]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 49; - tmp_assign_source_14 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_14; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_3 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[56]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[57]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[58]; - tmp_getattr_default_1 = mod_consts[59]; - tmp_tuple_element_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_4; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_4 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_4 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[58]); - Py_DECREF(tmp_expression_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_1; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 49; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_15; - tmp_assign_source_15 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_15; - } - branch_end_2:; - { - PyObject *tmp_assign_source_16; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[58]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[58]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[61]; - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49, mod_consts[43], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[36]; - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49, mod_consts[62], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_3; - } - if (isFrameUnusable(cache_frame_2255aac60ad40303044db677edaa996c_2)) { - Py_XDECREF(cache_frame_2255aac60ad40303044db677edaa996c_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2255aac60ad40303044db677edaa996c_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2255aac60ad40303044db677edaa996c_2 = MAKE_FUNCTION_FRAME(codeobj_2255aac60ad40303044db677edaa996c, module_models$unet3d$seg_metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2255aac60ad40303044db677edaa996c_2->m_type_description == NULL); - frame_2255aac60ad40303044db677edaa996c_2 = cache_frame_2255aac60ad40303044db677edaa996c_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2255aac60ad40303044db677edaa996c_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2255aac60ad40303044db677edaa996c_2) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__7___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49, mod_consts[63], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 60; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__8_metrics(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49, mod_consts[37], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2255aac60ad40303044db677edaa996c_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2255aac60ad40303044db677edaa996c_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2255aac60ad40303044db677edaa996c_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2255aac60ad40303044db677edaa996c_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2255aac60ad40303044db677edaa996c_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2255aac60ad40303044db677edaa996c_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_2255aac60ad40303044db677edaa996c_2 == cache_frame_2255aac60ad40303044db677edaa996c_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2255aac60ad40303044db677edaa996c_2); - cache_frame_2255aac60ad40303044db677edaa996c_2 = NULL; - } - - assertFrameObject(frame_2255aac60ad40303044db677edaa996c_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_3; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_2 = mod_consts[36]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[53]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 49; - tmp_assign_source_17 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - - goto try_except_handler_3; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_17; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_16 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_16); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_DECREF(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49); - locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49 = NULL; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49); - locals_models$unet3d$seg_metrics$$$class__1_SegmentationMetrics_49 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 49; - goto try_except_handler_1; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[36], tmp_assign_source_16); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assign_source_18; - tmp_assign_source_18 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_18; - } - // Tried code: - { - PyObject *tmp_assign_source_19; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_5; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_5 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[52]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_2:; - tmp_bases_name_2 = mod_consts[53]; - tmp_assign_source_19 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_19; - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_6 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[52]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_expression_name_5; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_5 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_5, mod_consts[54]); - tmp_condition_result_7 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_20; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_name_3; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_6 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[54]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - tmp_args_name_3 = mod_consts[66]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 92; - tmp_assign_source_20 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_20; - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_7; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_7 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_7, mod_consts[56]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - tmp_condition_result_8 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[57]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[58]; - tmp_getattr_default_2 = mod_consts[59]; - tmp_tuple_element_3 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_8; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_2 = tmp_class_creation_2__prepared; - tmp_expression_name_8 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_8 == NULL)); - tmp_tuple_element_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[58]); - Py_DECREF(tmp_expression_name_8); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_3); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 92; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_6:; - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assign_source_21; - tmp_assign_source_21 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_21; - } - branch_end_5:; - { - PyObject *tmp_assign_source_22; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[58]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[58]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[67]; - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92, mod_consts[43], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[68]; - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92, mod_consts[62], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_a7531531806f1d06874ac6ce2048e9f2_3)) { - Py_XDECREF(cache_frame_a7531531806f1d06874ac6ce2048e9f2_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a7531531806f1d06874ac6ce2048e9f2_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a7531531806f1d06874ac6ce2048e9f2_3 = MAKE_FUNCTION_FRAME(codeobj_a7531531806f1d06874ac6ce2048e9f2, module_models$unet3d$seg_metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a7531531806f1d06874ac6ce2048e9f2_3->m_type_description == NULL); - frame_a7531531806f1d06874ac6ce2048e9f2_3 = cache_frame_a7531531806f1d06874ac6ce2048e9f2_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a7531531806f1d06874ac6ce2048e9f2_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a7531531806f1d06874ac6ce2048e9f2_3) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__9___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92, mod_consts[63], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__10___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92, mod_consts[70], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7531531806f1d06874ac6ce2048e9f2_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a7531531806f1d06874ac6ce2048e9f2_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a7531531806f1d06874ac6ce2048e9f2_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a7531531806f1d06874ac6ce2048e9f2_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a7531531806f1d06874ac6ce2048e9f2_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a7531531806f1d06874ac6ce2048e9f2_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_a7531531806f1d06874ac6ce2048e9f2_3 == cache_frame_a7531531806f1d06874ac6ce2048e9f2_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a7531531806f1d06874ac6ce2048e9f2_3); - cache_frame_a7531531806f1d06874ac6ce2048e9f2_3 = NULL; - } - - assertFrameObject(frame_a7531531806f1d06874ac6ce2048e9f2_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_6; - skip_nested_handling_2:; - { - PyObject *tmp_assign_source_23; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_4; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_4 = mod_consts[68]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[53]; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 92; - tmp_assign_source_23 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 92; - - goto try_except_handler_6; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_23; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_22 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_22); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92); - locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92); - locals_models$unet3d$seg_metrics$$$class__2_Accuracy_92 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 92; - goto try_except_handler_4; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[68], tmp_assign_source_22); - } - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_24; - } - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[52]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - goto condexpr_end_3; - condexpr_false_3:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_3:; - tmp_bases_name_3 = mod_consts[53]; - tmp_assign_source_25 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_25; - } - { - nuitka_bool tmp_condition_result_10; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[52]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_10 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[52]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - branch_no_7:; - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_expression_name_9; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_9 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_9, mod_consts[54]); - tmp_condition_result_11 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_name_5; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_10 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[54]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - tmp_args_name_5 = mod_consts[72]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 108; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_11 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[56]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - tmp_condition_result_12 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_5; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[57]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[58]; - tmp_getattr_default_3 = mod_consts[59]; - tmp_tuple_element_5 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_type_arg_3; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_3 = tmp_class_creation_3__prepared; - tmp_expression_name_12 = BUILTIN_TYPE1(tmp_type_arg_3); - assert(!(tmp_expression_name_12 == NULL)); - tmp_tuple_element_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[58]); - Py_DECREF(tmp_expression_name_12); - if (tmp_tuple_element_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_5); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 108; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_9:; - goto branch_end_8; - branch_no_8:; - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_27; - } - branch_end_8:; - { - PyObject *tmp_assign_source_28; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[58]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[58]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108, mod_consts[60], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[73]; - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108, mod_consts[43], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[74]; - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108, mod_consts[62], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_b32104a110983f80580b15f0f8b1034d_4)) { - Py_XDECREF(cache_frame_b32104a110983f80580b15f0f8b1034d_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b32104a110983f80580b15f0f8b1034d_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b32104a110983f80580b15f0f8b1034d_4 = MAKE_FUNCTION_FRAME(codeobj_b32104a110983f80580b15f0f8b1034d, module_models$unet3d$seg_metrics, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b32104a110983f80580b15f0f8b1034d_4->m_type_description == NULL); - frame_b32104a110983f80580b15f0f8b1034d_4 = cache_frame_b32104a110983f80580b15f0f8b1034d_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b32104a110983f80580b15f0f8b1034d_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b32104a110983f80580b15f0f8b1034d_4) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__11___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108, mod_consts[63], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$seg_metrics$$$function__12___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108, mod_consts[70], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 117; - type_description_2 = "o"; - goto frame_exception_exit_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b32104a110983f80580b15f0f8b1034d_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b32104a110983f80580b15f0f8b1034d_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b32104a110983f80580b15f0f8b1034d_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b32104a110983f80580b15f0f8b1034d_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b32104a110983f80580b15f0f8b1034d_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b32104a110983f80580b15f0f8b1034d_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b32104a110983f80580b15f0f8b1034d_4 == cache_frame_b32104a110983f80580b15f0f8b1034d_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b32104a110983f80580b15f0f8b1034d_4); - cache_frame_b32104a110983f80580b15f0f8b1034d_4 = NULL; - } - - assertFrameObject(frame_b32104a110983f80580b15f0f8b1034d_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_9; - skip_nested_handling_3:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_6; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_6; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_6 = tmp_class_creation_3__metaclass; - tmp_tuple_element_6 = mod_consts[74]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_6); - tmp_tuple_element_6 = mod_consts[53]; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_6); - tmp_tuple_element_6 = locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_6); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_87980619fc658c51602396b2b40f261e->m_frame.f_lineno = 108; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_6, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 108; - - goto try_except_handler_9; - } - assert(outline_2_var___class__ == NULL); - outline_2_var___class__ = tmp_assign_source_29; - } - CHECK_OBJECT(outline_2_var___class__); - tmp_assign_source_28 = outline_2_var___class__; - Py_INCREF(tmp_assign_source_28); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108); - locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108); - locals_models$unet3d$seg_metrics$$$class__3_AveragePrecision_108 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 108; - goto try_except_handler_7; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$seg_metrics, (Nuitka_StringObject *)mod_consts[74], tmp_assign_source_28); - } - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_87980619fc658c51602396b2b40f261e); -#endif - popFrameStack(); - - assertFrameObject(frame_87980619fc658c51602396b2b40f261e); - - goto frame_no_exception_4; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_87980619fc658c51602396b2b40f261e); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_87980619fc658c51602396b2b40f261e, exception_lineno); - } else if (exception_tb->tb_frame != &frame_87980619fc658c51602396b2b40f261e->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_87980619fc658c51602396b2b40f261e, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_4:; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - - return module_models$unet3d$seg_metrics; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.trainer.const b/medomni/models.build/module.models.unet3d.trainer.const deleted file mode 100644 index a8689721f96e1356643ae5eb826d44941858a2a6..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.trainer.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.trainer.cpp b/medomni/models.build/module.models.unet3d.trainer.cpp deleted file mode 100644 index e979e3ff55e9ad95c9de6ed378c4c00422b8fcaf..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.trainer.cpp +++ /dev/null @@ -1,20450 +0,0 @@ -/* Generated code for Python module 'models.unet3d.trainer' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$trainer" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$trainer; -PyDictObject *moduledict_models$unet3d$trainer; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[258]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.trainer")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$trainer(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.trainer"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_04ad1e3a156372c06098e0eac6095363; -static PyCodeObject *codeobj_d757c9bc66e1e7ac50c77ad751d1efeb; -static PyCodeObject *codeobj_b7ea1a994d7a1881fce465ad551ac96b; -static PyCodeObject *codeobj_1fda2356add5cef06c5f38cfbb8de0b0; -static PyCodeObject *codeobj_d2fd80325bfa2f1b7242446889780691; -static PyCodeObject *codeobj_679e0a0c00d250e213486c4458b50713; -static PyCodeObject *codeobj_df09209d792e7f4c0df1ed49cd72d103; -static PyCodeObject *codeobj_5df64318cfa84c6f19b9d56dc86b4324; -static PyCodeObject *codeobj_7e089fb04638902d712e2dd9ab255084; -static PyCodeObject *codeobj_df4bed9de7ea8d66d07ed54a2d73e770; -static PyCodeObject *codeobj_9e7e20790b9ec858dee1abb413b8eb03; -static PyCodeObject *codeobj_352dba2b9d7b1222f8826ae42880c05b; -static PyCodeObject *codeobj_8be23cdc34f4ccbd12a114cff9bfa36f; -static PyCodeObject *codeobj_82970a886f064b131ab3665a56152e30; -static PyCodeObject *codeobj_367f1ec5677a1070c420d7e55ef048ba; -static PyCodeObject *codeobj_ae7a9d019f1e7da12684da1a55b62954; -static PyCodeObject *codeobj_80455a89ff7fcc6672604e1c637cb72f; -static PyCodeObject *codeobj_3246d6e09a496cdc8bb1ac88ce4466c4; -static PyCodeObject *codeobj_5bc2244797d8e33afde5d46faa217998; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[236]); CHECK_OBJECT(module_filename_obj); - codeobj_04ad1e3a156372c06098e0eac6095363 = MAKE_CODEOBJECT(module_filename_obj, 273, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[237], mod_consts[238], NULL, 1, 0, 0); - codeobj_d757c9bc66e1e7ac50c77ad751d1efeb = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[239], NULL, NULL, 0, 0, 0); - codeobj_b7ea1a994d7a1881fce465ad551ac96b = MAKE_CODEOBJECT(module_filename_obj, 59, CO_NOFREE, mod_consts[34], mod_consts[240], NULL, 0, 0, 0); - codeobj_1fda2356add5cef06c5f38cfbb8de0b0 = MAKE_CODEOBJECT(module_filename_obj, 90, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[216], mod_consts[241], NULL, 20, 0, 0); - codeobj_d2fd80325bfa2f1b7242446889780691 = MAKE_CODEOBJECT(module_filename_obj, 385, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[94], mod_consts[242], NULL, 1, 0, 0); - codeobj_679e0a0c00d250e213486c4458b50713 = MAKE_CODEOBJECT(module_filename_obj, 287, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[89], mod_consts[243], NULL, 4, 0, 0); - codeobj_df09209d792e7f4c0df1ed49cd72d103 = MAKE_CODEOBJECT(module_filename_obj, 307, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[104], mod_consts[244], NULL, 2, 0, 0); - codeobj_5df64318cfa84c6f19b9d56dc86b4324 = MAKE_CODEOBJECT(module_filename_obj, 357, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[113], mod_consts[245], NULL, 5, 0, 0); - codeobj_7e089fb04638902d712e2dd9ab255084 = MAKE_CODEOBJECT(module_filename_obj, 338, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[103], mod_consts[246], NULL, 1, 0, 0); - codeobj_df4bed9de7ea8d66d07ed54a2d73e770 = MAKE_CODEOBJECT(module_filename_obj, 351, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[230], mod_consts[247], NULL, 1, 0, 0); - codeobj_9e7e20790b9ec858dee1abb413b8eb03 = MAKE_CODEOBJECT(module_filename_obj, 342, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[112], mod_consts[248], NULL, 4, 0, 0); - codeobj_352dba2b9d7b1222f8826ae42880c05b = MAKE_CODEOBJECT(module_filename_obj, 271, CO_OPTIMIZED | CO_NEWLOCALS, mod_consts[138], mod_consts[249], mod_consts[250], 1, 0, 0); - codeobj_8be23cdc34f4ccbd12a114cff9bfa36f = MAKE_CODEOBJECT(module_filename_obj, 319, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[106], mod_consts[251], NULL, 2, 0, 0); - codeobj_82970a886f064b131ab3665a56152e30 = MAKE_CODEOBJECT(module_filename_obj, 270, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[87], mod_consts[252], NULL, 2, 0, 0); - codeobj_367f1ec5677a1070c420d7e55ef048ba = MAKE_CODEOBJECT(module_filename_obj, 19, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[203], mod_consts[253], NULL, 1, 0, 0); - codeobj_ae7a9d019f1e7da12684da1a55b62954 = MAKE_CODEOBJECT(module_filename_obj, 144, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[218], mod_consts[254], NULL, 1, 0, 0); - codeobj_80455a89ff7fcc6672604e1c637cb72f = MAKE_CODEOBJECT(module_filename_obj, 224, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[116], mod_consts[255], NULL, 1, 0, 0); - codeobj_3246d6e09a496cdc8bb1ac88ce4466c4 = MAKE_CODEOBJECT(module_filename_obj, 156, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[78], mod_consts[256], NULL, 1, 0, 0); - codeobj_5bc2244797d8e33afde5d46faa217998 = MAKE_CODEOBJECT(module_filename_obj, 241, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[101], mod_consts[257], NULL, 1, 0, 0); -} - -// The module function declarations. -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__5_complex_call_helper_keywords_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__10__save_checkpoint(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__11__log_lr(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__12__log_stats(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__13__log_params(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__14__log_images(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__15__batch_size(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__1_create_trainer(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__2___init__(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__3_fit(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__4_train(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__5_should_stop(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__6_validate(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__7__split_training_batch(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__7__split_training_batch$$$function__1__move_to_gpu(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__8__forward_pass(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__9__is_best_eval_score(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$trainer$$$function__1_create_trainer(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_config = python_pars[0]; - PyObject *var_model = NULL; - PyObject *var_loss_criterion = NULL; - PyObject *var_eval_criterion = NULL; - PyObject *var_loaders = NULL; - PyObject *var_optimizer = NULL; - PyObject *var_lr_scheduler = NULL; - PyObject *var_trainer_config = NULL; - PyObject *var_tensorboard_formatter = NULL; - PyObject *var_resume = NULL; - PyObject *var_pre_trained = NULL; - struct Nuitka_FrameObject *frame_367f1ec5677a1070c420d7e55ef048ba; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_367f1ec5677a1070c420d7e55ef048ba = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_367f1ec5677a1070c420d7e55ef048ba)) { - Py_XDECREF(cache_frame_367f1ec5677a1070c420d7e55ef048ba); - -#if _DEBUG_REFCOUNTS - if (cache_frame_367f1ec5677a1070c420d7e55ef048ba == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_367f1ec5677a1070c420d7e55ef048ba = MAKE_FUNCTION_FRAME(codeobj_367f1ec5677a1070c420d7e55ef048ba, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_367f1ec5677a1070c420d7e55ef048ba->m_type_description == NULL); - frame_367f1ec5677a1070c420d7e55ef048ba = cache_frame_367f1ec5677a1070c420d7e55ef048ba; - - // Push the new frame as the currently active one. - pushFrameStack(frame_367f1ec5677a1070c420d7e55ef048ba); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_367f1ec5677a1070c420d7e55ef048ba) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_1 = par_config; - tmp_subscript_name_1 = mod_consts[1]; - tmp_args_element_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 21; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 21; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_model == NULL); - var_model = tmp_assign_source_1; - } - { - nuitka_bool tmp_condition_result_1; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_tmp_and_left_value_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 23; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[4]); - Py_DECREF(tmp_called_instance_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[5]; - tmp_tmp_and_left_value_1_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_and_left_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_and_left_value_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_and_left_value_1_object_1); - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_and_left_value_1_object_1); - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_config); - tmp_expression_name_3 = par_config; - tmp_subscript_name_2 = mod_consts[6]; - tmp_compexpr_left_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_2); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[7]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 23; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_1 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_model); - tmp_args_element_name_2 = var_model; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 24; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[9], tmp_args_element_name_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_model; - var_model = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[11]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[12]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[3]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 25; - tmp_format_value_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[4]); - Py_DECREF(tmp_called_instance_3); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[14]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_3 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 25; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_4; - CHECK_OBJECT(var_model); - tmp_called_instance_4 = var_model; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 26; - tmp_assign_source_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[3]); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 26; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_model; - var_model = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_and_left_truth_2; - nuitka_bool tmp_and_left_value_2; - nuitka_bool tmp_and_right_value_2; - PyObject *tmp_called_instance_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_2; - int tmp_truth_name_2; - PyObject *tmp_operand_name_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_3; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[3]); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 27; - tmp_call_result_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[15]); - Py_DECREF(tmp_called_instance_5); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_call_result_2); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_2); - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_2); - tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_2 == 1) { - goto and_right_2; - } else { - goto and_left_2; - } - and_right_2:; - CHECK_OBJECT(par_config); - tmp_expression_name_7 = par_config; - tmp_subscript_name_3 = mod_consts[6]; - tmp_compexpr_left_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_3); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_3 = mod_consts[7]; - tmp_operand_name_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - if (tmp_operand_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_2 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_2 = tmp_and_right_value_2; - goto and_end_2; - and_left_2:; - tmp_condition_result_2 = tmp_and_left_value_2; - and_end_2:; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_6; - CHECK_OBJECT(var_model); - tmp_called_instance_6 = var_model; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 28; - tmp_assign_source_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[3]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_model; - var_model = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[11]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[16]; - tmp_string_concat_values_2 = PyTuple_New(2); - { - PyObject *tmp_format_value_2; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - tmp_called_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[17]); - - if (unlikely(tmp_called_name_4 == NULL)) { - tmp_called_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]); - } - - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_args_element_name_5 = var_model; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 31; - tmp_format_value_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_5); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_string_concat_values_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_4 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 31; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_4); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_5; - PyObject *tmp_args_element_name_6; - tmp_called_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[18]); - - if (unlikely(tmp_called_name_5 == NULL)) { - tmp_called_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[18]); - } - - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_6 = par_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 34; - tmp_assign_source_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_6); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 34; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loss_criterion == NULL); - var_loss_criterion = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_6; - PyObject *tmp_args_element_name_7; - tmp_called_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[19]); - - if (unlikely(tmp_called_name_6 == NULL)) { - tmp_called_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[19]); - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_7 = par_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 36; - tmp_assign_source_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_7); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 36; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_eval_criterion == NULL); - var_eval_criterion = tmp_assign_source_6; - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_called_name_7; - PyObject *tmp_args_element_name_8; - tmp_called_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[20]); - - if (unlikely(tmp_called_name_7 == NULL)) { - tmp_called_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]); - } - - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_args_element_name_8 = par_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 39; - tmp_assign_source_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_8); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 39; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_loaders == NULL); - var_loaders = tmp_assign_source_7; - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_called_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_4; - PyObject *tmp_args_element_name_10; - tmp_called_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[21]); - - if (unlikely(tmp_called_name_8 == NULL)) { - tmp_called_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[21]); - } - - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_expression_name_9 = par_config; - tmp_subscript_name_4 = mod_consts[22]; - tmp_args_element_name_9 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_4); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - if (var_model == NULL) { - Py_DECREF(tmp_args_element_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 42; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_10 = var_model; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 42; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assign_source_8 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_8, call_args); - } - - Py_DECREF(tmp_args_element_name_9); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 42; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_optimizer == NULL); - var_optimizer = tmp_assign_source_8; - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_called_name_9; - PyObject *tmp_args_element_name_11; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_12; - tmp_called_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[23]); - - if (unlikely(tmp_called_name_9 == NULL)) { - tmp_called_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[23]); - } - - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_config); - tmp_called_instance_7 = par_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 45; - tmp_args_element_name_11 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_7, - mod_consts[24], - &PyTuple_GET_ITEM(mod_consts[25], 0) - ); - - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_optimizer); - tmp_args_element_name_12 = var_optimizer; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 45; - { - PyObject *call_args[] = {tmp_args_element_name_11, tmp_args_element_name_12}; - tmp_assign_source_9 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_args_element_name_11); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 45; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_lr_scheduler == NULL); - var_lr_scheduler = tmp_assign_source_9; - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_5; - if (par_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[26]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_10 = par_config; - tmp_subscript_name_5 = mod_consts[27]; - tmp_assign_source_10 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_5); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 47; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_trainer_config == NULL); - var_trainer_config = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_10; - PyObject *tmp_args_element_name_13; - PyObject *tmp_called_instance_8; - tmp_called_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_called_name_10 == NULL)) { - tmp_called_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_trainer_config); - tmp_called_instance_8 = var_trainer_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 49; - tmp_args_element_name_13 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_8, - mod_consts[29], - &PyTuple_GET_ITEM(mod_consts[30], 0) - ); - - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 49; - tmp_assign_source_11 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_10, tmp_args_element_name_13); - Py_DECREF(tmp_args_element_name_13); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_tensorboard_formatter == NULL); - var_tensorboard_formatter = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_called_instance_9; - if (var_trainer_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 51; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_9 = var_trainer_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 51; - tmp_assign_source_12 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_9, - mod_consts[29], - &PyTuple_GET_ITEM(mod_consts[32], 0) - ); - - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_resume == NULL); - var_resume = tmp_assign_source_12; - } - { - PyObject *tmp_assign_source_13; - PyObject *tmp_called_instance_10; - if (var_trainer_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 52; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_10 = var_trainer_config; - frame_367f1ec5677a1070c420d7e55ef048ba->m_frame.f_lineno = 52; - tmp_assign_source_13 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_10, - mod_consts[29], - &PyTuple_GET_ITEM(mod_consts[33], 0) - ); - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_pre_trained == NULL); - var_pre_trained = tmp_assign_source_13; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_dircall_arg3_1; - tmp_dircall_arg1_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[34]); - - if (unlikely(tmp_dircall_arg1_1 == NULL)) { - tmp_dircall_arg1_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[34]); - } - - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[1]; - if (var_model == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[1]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 54; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dict_value_1 = var_model; - tmp_dircall_arg2_1 = _PyDict_NewPresized( 9 ); - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[22]; - CHECK_OBJECT(var_optimizer); - tmp_dict_value_1 = var_optimizer; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[35]; - CHECK_OBJECT(var_lr_scheduler); - tmp_dict_value_1 = var_lr_scheduler; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[36]; - CHECK_OBJECT(var_loss_criterion); - tmp_dict_value_1 = var_loss_criterion; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[37]; - CHECK_OBJECT(var_eval_criterion); - tmp_dict_value_1 = var_eval_criterion; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[38]; - CHECK_OBJECT(var_loaders); - tmp_dict_value_1 = var_loaders; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[39]; - CHECK_OBJECT(var_tensorboard_formatter); - tmp_dict_value_1 = var_tensorboard_formatter; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[40]; - CHECK_OBJECT(var_resume); - tmp_dict_value_1 = var_resume; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[41]; - CHECK_OBJECT(var_pre_trained); - tmp_dict_value_1 = var_pre_trained; - tmp_res = PyDict_SetItem(tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - if (var_trainer_config == NULL) { - Py_DECREF(tmp_dircall_arg2_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[31]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 56; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_dircall_arg3_1 = var_trainer_config; - Py_INCREF(tmp_dircall_arg1_1); - Py_INCREF(tmp_dircall_arg3_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; - tmp_return_value = impl_models$$$function__5_complex_call_helper_keywords_star_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 54; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_367f1ec5677a1070c420d7e55ef048ba); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_367f1ec5677a1070c420d7e55ef048ba); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_367f1ec5677a1070c420d7e55ef048ba); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_367f1ec5677a1070c420d7e55ef048ba, exception_lineno); - } else if (exception_tb->tb_frame != &frame_367f1ec5677a1070c420d7e55ef048ba->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_367f1ec5677a1070c420d7e55ef048ba, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_367f1ec5677a1070c420d7e55ef048ba, - type_description_1, - par_config, - var_model, - var_loss_criterion, - var_eval_criterion, - var_loaders, - var_optimizer, - var_lr_scheduler, - var_trainer_config, - var_tensorboard_formatter, - var_resume, - var_pre_trained - ); - - - // Release cached frame if used for exception. - if (frame_367f1ec5677a1070c420d7e55ef048ba == cache_frame_367f1ec5677a1070c420d7e55ef048ba) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_367f1ec5677a1070c420d7e55ef048ba); - cache_frame_367f1ec5677a1070c420d7e55ef048ba = NULL; - } - - assertFrameObject(frame_367f1ec5677a1070c420d7e55ef048ba); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_config); - par_config = NULL; - Py_XDECREF(var_model); - var_model = NULL; - CHECK_OBJECT(var_loss_criterion); - Py_DECREF(var_loss_criterion); - var_loss_criterion = NULL; - CHECK_OBJECT(var_eval_criterion); - Py_DECREF(var_eval_criterion); - var_eval_criterion = NULL; - CHECK_OBJECT(var_loaders); - Py_DECREF(var_loaders); - var_loaders = NULL; - CHECK_OBJECT(var_optimizer); - Py_DECREF(var_optimizer); - var_optimizer = NULL; - CHECK_OBJECT(var_lr_scheduler); - Py_DECREF(var_lr_scheduler); - var_lr_scheduler = NULL; - Py_XDECREF(var_trainer_config); - var_trainer_config = NULL; - CHECK_OBJECT(var_tensorboard_formatter); - Py_DECREF(var_tensorboard_formatter); - var_tensorboard_formatter = NULL; - CHECK_OBJECT(var_resume); - Py_DECREF(var_resume); - var_resume = NULL; - CHECK_OBJECT(var_pre_trained); - Py_DECREF(var_pre_trained); - var_pre_trained = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_config); - par_config = NULL; - Py_XDECREF(var_model); - var_model = NULL; - Py_XDECREF(var_loss_criterion); - var_loss_criterion = NULL; - Py_XDECREF(var_eval_criterion); - var_eval_criterion = NULL; - Py_XDECREF(var_loaders); - var_loaders = NULL; - Py_XDECREF(var_optimizer); - var_optimizer = NULL; - Py_XDECREF(var_lr_scheduler); - var_lr_scheduler = NULL; - Py_XDECREF(var_trainer_config); - var_trainer_config = NULL; - Py_XDECREF(var_tensorboard_formatter); - var_tensorboard_formatter = NULL; - Py_XDECREF(var_resume); - var_resume = NULL; - Py_XDECREF(var_pre_trained); - var_pre_trained = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__2___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *par_optimizer = python_pars[2]; - PyObject *par_lr_scheduler = python_pars[3]; - PyObject *par_loss_criterion = python_pars[4]; - PyObject *par_eval_criterion = python_pars[5]; - PyObject *par_loaders = python_pars[6]; - PyObject *par_checkpoint_dir = python_pars[7]; - PyObject *par_max_num_epochs = python_pars[8]; - PyObject *par_max_num_iterations = python_pars[9]; - PyObject *par_validate_after_iters = python_pars[10]; - PyObject *par_log_after_iters = python_pars[11]; - PyObject *par_validate_iters = python_pars[12]; - PyObject *par_num_iterations = python_pars[13]; - PyObject *par_num_epoch = python_pars[14]; - PyObject *par_eval_score_higher_is_better = python_pars[15]; - PyObject *par_tensorboard_formatter = python_pars[16]; - PyObject *par_skip_train_validation = python_pars[17]; - PyObject *par_resume = python_pars[18]; - PyObject *par_pre_trained = python_pars[19]; - PyObject *par_kwargs = python_pars[20]; - PyObject *var_state = NULL; - struct Nuitka_FrameObject *frame_1fda2356add5cef06c5f38cfbb8de0b0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_1fda2356add5cef06c5f38cfbb8de0b0 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1fda2356add5cef06c5f38cfbb8de0b0)) { - Py_XDECREF(cache_frame_1fda2356add5cef06c5f38cfbb8de0b0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1fda2356add5cef06c5f38cfbb8de0b0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1fda2356add5cef06c5f38cfbb8de0b0 = MAKE_FUNCTION_FRAME(codeobj_1fda2356add5cef06c5f38cfbb8de0b0, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1fda2356add5cef06c5f38cfbb8de0b0->m_type_description == NULL); - frame_1fda2356add5cef06c5f38cfbb8de0b0 = cache_frame_1fda2356add5cef06c5f38cfbb8de0b0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1fda2356add5cef06c5f38cfbb8de0b0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1fda2356add5cef06c5f38cfbb8de0b0) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_model); - tmp_assattr_name_1 = par_model; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[1], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 95; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(par_optimizer); - tmp_assattr_name_2 = par_optimizer; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[22], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 96; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - CHECK_OBJECT(par_lr_scheduler); - tmp_assattr_name_3 = par_lr_scheduler; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[42], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 97; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_4; - PyObject *tmp_assattr_target_4; - CHECK_OBJECT(par_loss_criterion); - tmp_assattr_name_4 = par_loss_criterion; - CHECK_OBJECT(par_self); - tmp_assattr_target_4 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[36], tmp_assattr_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_5; - PyObject *tmp_assattr_target_5; - CHECK_OBJECT(par_eval_criterion); - tmp_assattr_name_5 = par_eval_criterion; - CHECK_OBJECT(par_self); - tmp_assattr_target_5 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[37], tmp_assattr_name_5); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_6; - PyObject *tmp_assattr_target_6; - CHECK_OBJECT(par_loaders); - tmp_assattr_name_6 = par_loaders; - CHECK_OBJECT(par_self); - tmp_assattr_target_6 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[38], tmp_assattr_name_6); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_7; - PyObject *tmp_assattr_target_7; - CHECK_OBJECT(par_checkpoint_dir); - tmp_assattr_name_7 = par_checkpoint_dir; - CHECK_OBJECT(par_self); - tmp_assattr_target_7 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[43], tmp_assattr_name_7); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_8; - PyObject *tmp_assattr_target_8; - CHECK_OBJECT(par_max_num_epochs); - tmp_assattr_name_8 = par_max_num_epochs; - CHECK_OBJECT(par_self); - tmp_assattr_target_8 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[44], tmp_assattr_name_8); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 102; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_9; - PyObject *tmp_assattr_target_9; - CHECK_OBJECT(par_max_num_iterations); - tmp_assattr_name_9 = par_max_num_iterations; - CHECK_OBJECT(par_self); - tmp_assattr_target_9 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[45], tmp_assattr_name_9); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_10; - PyObject *tmp_assattr_target_10; - CHECK_OBJECT(par_validate_after_iters); - tmp_assattr_name_10 = par_validate_after_iters; - CHECK_OBJECT(par_self); - tmp_assattr_target_10 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[46], tmp_assattr_name_10); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_11; - PyObject *tmp_assattr_target_11; - CHECK_OBJECT(par_log_after_iters); - tmp_assattr_name_11 = par_log_after_iters; - CHECK_OBJECT(par_self); - tmp_assattr_target_11 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[47], tmp_assattr_name_11); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_12; - PyObject *tmp_assattr_target_12; - CHECK_OBJECT(par_validate_iters); - tmp_assattr_name_12 = par_validate_iters; - CHECK_OBJECT(par_self); - tmp_assattr_target_12 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[48], tmp_assattr_name_12); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_13; - PyObject *tmp_assattr_target_13; - CHECK_OBJECT(par_eval_score_higher_is_better); - tmp_assattr_name_13 = par_eval_score_higher_is_better; - CHECK_OBJECT(par_self); - tmp_assattr_target_13 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[49], tmp_assattr_name_13); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 107; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model); - tmp_args_element_name_1 = par_model; - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 109; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[11], tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 109; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[50]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_eval_score_higher_is_better); - tmp_format_value_1 = par_eval_score_higher_is_better; - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_2 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 110; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_eval_score_higher_is_better); - tmp_truth_name_1 = CHECK_IF_TRUE(par_eval_score_higher_is_better); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assattr_name_14; - PyObject *tmp_assattr_target_14; - tmp_assattr_name_14 = mod_consts[51]; - CHECK_OBJECT(par_self); - tmp_assattr_target_14 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_14, mod_consts[52], tmp_assattr_name_14); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 114; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assattr_name_15; - PyObject *tmp_assattr_target_15; - tmp_assattr_name_15 = mod_consts[53]; - CHECK_OBJECT(par_self); - tmp_assattr_target_15 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_15, mod_consts[52], tmp_assattr_name_15); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 116; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - branch_end_1:; - { - PyObject *tmp_assattr_name_16; - PyObject *tmp_called_name_2; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_assattr_target_16; - tmp_called_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[54]); - - if (unlikely(tmp_called_name_2 == NULL)) { - tmp_called_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]); - } - - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[55]; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[57]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_checkpoint_dir); - tmp_args_element_name_3 = par_checkpoint_dir; - tmp_args_element_name_4 = mod_consts[59]; - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 118; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_dict_value_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[58], - call_args - ); - } - - Py_DECREF(tmp_called_instance_2); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 118; - tmp_assattr_name_16 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assattr_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_self); - tmp_assattr_target_16 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_16, mod_consts[60], tmp_assattr_name_16); - Py_DECREF(tmp_assattr_name_16); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 118; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_tensorboard_formatter); - tmp_compexpr_left_1 = par_tensorboard_formatter; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[61]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 120; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - branch_no_2:; - { - PyObject *tmp_assattr_name_17; - PyObject *tmp_assattr_target_17; - CHECK_OBJECT(par_tensorboard_formatter); - tmp_assattr_name_17 = par_tensorboard_formatter; - CHECK_OBJECT(par_self); - tmp_assattr_target_17 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_17, mod_consts[39], tmp_assattr_name_17); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 121; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_18; - PyObject *tmp_assattr_target_18; - CHECK_OBJECT(par_num_iterations); - tmp_assattr_name_18 = par_num_iterations; - CHECK_OBJECT(par_self); - tmp_assattr_target_18 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_18, mod_consts[62], tmp_assattr_name_18); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_19; - PyObject *tmp_assattr_target_19; - CHECK_OBJECT(par_num_epoch); - tmp_assattr_name_19 = par_num_epoch; - CHECK_OBJECT(par_self); - tmp_assattr_target_19 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_19, mod_consts[63], tmp_assattr_name_19); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 124; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_20; - PyObject *tmp_assattr_target_20; - CHECK_OBJECT(par_skip_train_validation); - tmp_assattr_name_20 = par_skip_train_validation; - CHECK_OBJECT(par_self); - tmp_assattr_target_20 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_20, mod_consts[64], tmp_assattr_name_20); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 125; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_resume); - tmp_compexpr_left_2 = par_resume; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_3 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_5; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[11]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[65]; - tmp_string_concat_values_2 = PyTuple_New(3); - { - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_resume); - tmp_format_value_2 = par_resume; - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[66]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_string_concat_values_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_5 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 128; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 128; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_6; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[68]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_resume); - tmp_args_element_name_6 = par_resume; - CHECK_OBJECT(par_self); - tmp_expression_name_5 = par_self; - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[1]); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 129; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 129; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[22]); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 129; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 129; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 129; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_state == NULL); - var_state = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_9; - PyObject *tmp_string_concat_values_3; - PyObject *tmp_tuple_element_3; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[11]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_3 = mod_consts[70]; - tmp_string_concat_values_3 = PyTuple_New(9); - { - PyObject *tmp_format_value_3; - PyObject *tmp_format_spec_3; - PyObject *tmp_format_value_4; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_1; - PyObject *tmp_format_spec_4; - PyObject *tmp_format_value_5; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_2; - PyObject *tmp_format_spec_5; - PyObject *tmp_format_value_6; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_3; - PyObject *tmp_format_spec_6; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 0, tmp_tuple_element_3); - if (par_resume == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - - tmp_format_value_3 = par_resume; - tmp_format_spec_3 = mod_consts[13]; - tmp_tuple_element_3 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 1, tmp_tuple_element_3); - tmp_tuple_element_3 = mod_consts[71]; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 2, tmp_tuple_element_3); - CHECK_OBJECT(var_state); - tmp_expression_name_8 = var_state; - tmp_subscript_name_1 = mod_consts[63]; - tmp_format_value_4 = LOOKUP_SUBSCRIPT(tmp_expression_name_8, tmp_subscript_name_1); - if (tmp_format_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_format_spec_4 = mod_consts[13]; - tmp_tuple_element_3 = BUILTIN_FORMAT(tmp_format_value_4, tmp_format_spec_4); - Py_DECREF(tmp_format_value_4); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 3, tmp_tuple_element_3); - tmp_tuple_element_3 = mod_consts[72]; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 4, tmp_tuple_element_3); - CHECK_OBJECT(var_state); - tmp_expression_name_9 = var_state; - tmp_subscript_name_2 = mod_consts[62]; - tmp_format_value_5 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_2); - if (tmp_format_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_format_spec_5 = mod_consts[13]; - tmp_tuple_element_3 = BUILTIN_FORMAT(tmp_format_value_5, tmp_format_spec_5); - Py_DECREF(tmp_format_value_5); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 5, tmp_tuple_element_3); - tmp_tuple_element_3 = mod_consts[73]; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 6, tmp_tuple_element_3); - CHECK_OBJECT(var_state); - tmp_expression_name_10 = var_state; - tmp_subscript_name_3 = mod_consts[52]; - tmp_format_value_6 = LOOKUP_SUBSCRIPT(tmp_expression_name_10, tmp_subscript_name_3); - if (tmp_format_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 132; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - tmp_format_spec_6 = mod_consts[13]; - tmp_tuple_element_3 = BUILTIN_FORMAT(tmp_format_value_6, tmp_format_spec_6); - Py_DECREF(tmp_format_value_6); - if (tmp_tuple_element_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_string_concat_values_3, 7, tmp_tuple_element_3); - tmp_tuple_element_3 = mod_consts[74]; - PyTuple_SET_ITEM0(tmp_string_concat_values_3, 8, tmp_tuple_element_3); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_string_concat_values_3); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_args_element_name_9 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_3); - Py_DECREF(tmp_string_concat_values_3); - if (tmp_args_element_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_5); - - exception_lineno = 131; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 130; - tmp_call_result_4 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_element_name_9); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 130; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_assattr_name_21; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_4; - PyObject *tmp_assattr_target_21; - CHECK_OBJECT(var_state); - tmp_expression_name_11 = var_state; - tmp_subscript_name_4 = mod_consts[52]; - tmp_assattr_name_21 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_4); - if (tmp_assattr_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_21); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 134; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_21 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_21, mod_consts[52], tmp_assattr_name_21); - Py_DECREF(tmp_assattr_name_21); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_22; - PyObject *tmp_expression_name_12; - PyObject *tmp_subscript_name_5; - PyObject *tmp_assattr_target_22; - CHECK_OBJECT(var_state); - tmp_expression_name_12 = var_state; - tmp_subscript_name_5 = mod_consts[62]; - tmp_assattr_name_22 = LOOKUP_SUBSCRIPT(tmp_expression_name_12, tmp_subscript_name_5); - if (tmp_assattr_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_22); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 135; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_22 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_22, mod_consts[62], tmp_assattr_name_22); - Py_DECREF(tmp_assattr_name_22); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 135; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_23; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_6; - PyObject *tmp_assattr_target_23; - CHECK_OBJECT(var_state); - tmp_expression_name_13 = var_state; - tmp_subscript_name_6 = mod_consts[63]; - tmp_assattr_name_23 = LOOKUP_SUBSCRIPT(tmp_expression_name_13, tmp_subscript_name_6); - if (tmp_assattr_name_23 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_23); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_23 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_23, mod_consts[63], tmp_assattr_name_23); - Py_DECREF(tmp_assattr_name_23); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_24; - PyObject *tmp_expression_name_14; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_args_element_name_10; - PyObject *tmp_subscript_name_7; - PyObject *tmp_assattr_target_24; - tmp_expression_name_16 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_expression_name_16 == NULL)) { - tmp_expression_name_16 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_expression_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[57]); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[75]); - Py_DECREF(tmp_expression_name_15); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_resume == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[40]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_10 = par_resume; - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 137; - tmp_expression_name_14 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_6); - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_7 = mod_consts[76]; - tmp_assattr_name_24 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_14, tmp_subscript_name_7, 0); - Py_DECREF(tmp_expression_name_14); - if (tmp_assattr_name_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_24); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_24 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_24, mod_consts[43], tmp_assattr_name_24); - Py_DECREF(tmp_assattr_name_24); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 137; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - goto branch_end_3; - branch_no_3:; - { - bool tmp_condition_result_4; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - CHECK_OBJECT(par_pre_trained); - tmp_compexpr_left_3 = par_pre_trained; - tmp_compexpr_right_3 = Py_None; - tmp_condition_result_4 = (tmp_compexpr_left_3 != tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_17; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_11; - PyObject *tmp_string_concat_values_4; - PyObject *tmp_tuple_element_4; - tmp_expression_name_17 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_17 == NULL)) { - tmp_expression_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[11]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_4 = mod_consts[77]; - tmp_string_concat_values_4 = PyTuple_New(3); - { - PyObject *tmp_format_value_7; - PyObject *tmp_format_spec_7; - PyTuple_SET_ITEM0(tmp_string_concat_values_4, 0, tmp_tuple_element_4); - CHECK_OBJECT(par_pre_trained); - tmp_format_value_7 = par_pre_trained; - tmp_format_spec_7 = mod_consts[13]; - tmp_tuple_element_4 = BUILTIN_FORMAT(tmp_format_value_7, tmp_format_spec_7); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooooooooooooooooooooo"; - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_string_concat_values_4, 1, tmp_tuple_element_4); - tmp_tuple_element_4 = mod_consts[66]; - PyTuple_SET_ITEM0(tmp_string_concat_values_4, 2, tmp_tuple_element_4); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_string_concat_values_4); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - tmp_args_element_name_11 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_4); - Py_DECREF(tmp_string_concat_values_4); - if (tmp_args_element_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_7); - - exception_lineno = 139; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 139; - tmp_call_result_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_7); - Py_DECREF(tmp_args_element_name_11); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_5); - } - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_18; - PyObject *tmp_call_result_6; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - PyObject *tmp_expression_name_19; - PyObject *tmp_args_element_name_14; - tmp_expression_name_18 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_expression_name_18 == NULL)) { - tmp_expression_name_18 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_expression_name_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[68]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_pre_trained); - tmp_args_element_name_12 = par_pre_trained; - CHECK_OBJECT(par_self); - tmp_expression_name_19 = par_self; - tmp_args_element_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[1]); - if (tmp_args_element_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 140; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_14 = Py_None; - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 140; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13, tmp_args_element_name_14}; - tmp_call_result_6 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_8, call_args); - } - - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_13); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 140; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_6); - } - { - bool tmp_condition_result_5; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - tmp_compexpr_left_4 = mod_consts[43]; - CHECK_OBJECT(par_kwargs); - tmp_compexpr_right_4 = par_kwargs; - tmp_res = PySequence_Contains(tmp_compexpr_right_4, tmp_compexpr_left_4); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_5 = (tmp_res == 0) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assattr_name_25; - PyObject *tmp_expression_name_20; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_21; - PyObject *tmp_expression_name_22; - PyObject *tmp_args_element_name_15; - PyObject *tmp_subscript_name_8; - PyObject *tmp_assattr_target_25; - tmp_expression_name_22 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_expression_name_22 == NULL)) { - tmp_expression_name_22 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_expression_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[57]); - if (tmp_expression_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[75]); - Py_DECREF(tmp_expression_name_21); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_pre_trained == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_15 = par_pre_trained; - frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame.f_lineno = 142; - tmp_expression_name_20 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_15); - Py_DECREF(tmp_called_name_9); - if (tmp_expression_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_8 = mod_consts[76]; - tmp_assattr_name_25 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_20, tmp_subscript_name_8, 0); - Py_DECREF(tmp_expression_name_20); - if (tmp_assattr_name_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_25); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_25 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_25, mod_consts[43], tmp_assattr_name_25); - Py_DECREF(tmp_assattr_name_25); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooooooooooooooooooooo"; - goto frame_exception_exit_1; - } - } - branch_no_5:; - branch_no_4:; - branch_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1fda2356add5cef06c5f38cfbb8de0b0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1fda2356add5cef06c5f38cfbb8de0b0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1fda2356add5cef06c5f38cfbb8de0b0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1fda2356add5cef06c5f38cfbb8de0b0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1fda2356add5cef06c5f38cfbb8de0b0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1fda2356add5cef06c5f38cfbb8de0b0, - type_description_1, - par_self, - par_model, - par_optimizer, - par_lr_scheduler, - par_loss_criterion, - par_eval_criterion, - par_loaders, - par_checkpoint_dir, - par_max_num_epochs, - par_max_num_iterations, - par_validate_after_iters, - par_log_after_iters, - par_validate_iters, - par_num_iterations, - par_num_epoch, - par_eval_score_higher_is_better, - par_tensorboard_formatter, - par_skip_train_validation, - par_resume, - par_pre_trained, - par_kwargs, - var_state - ); - - - // Release cached frame if used for exception. - if (frame_1fda2356add5cef06c5f38cfbb8de0b0 == cache_frame_1fda2356add5cef06c5f38cfbb8de0b0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1fda2356add5cef06c5f38cfbb8de0b0); - cache_frame_1fda2356add5cef06c5f38cfbb8de0b0 = NULL; - } - - assertFrameObject(frame_1fda2356add5cef06c5f38cfbb8de0b0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_optimizer); - Py_DECREF(par_optimizer); - par_optimizer = NULL; - CHECK_OBJECT(par_lr_scheduler); - Py_DECREF(par_lr_scheduler); - par_lr_scheduler = NULL; - CHECK_OBJECT(par_loss_criterion); - Py_DECREF(par_loss_criterion); - par_loss_criterion = NULL; - CHECK_OBJECT(par_eval_criterion); - Py_DECREF(par_eval_criterion); - par_eval_criterion = NULL; - CHECK_OBJECT(par_loaders); - Py_DECREF(par_loaders); - par_loaders = NULL; - Py_XDECREF(par_checkpoint_dir); - par_checkpoint_dir = NULL; - CHECK_OBJECT(par_max_num_epochs); - Py_DECREF(par_max_num_epochs); - par_max_num_epochs = NULL; - CHECK_OBJECT(par_max_num_iterations); - Py_DECREF(par_max_num_iterations); - par_max_num_iterations = NULL; - CHECK_OBJECT(par_validate_after_iters); - Py_DECREF(par_validate_after_iters); - par_validate_after_iters = NULL; - CHECK_OBJECT(par_log_after_iters); - Py_DECREF(par_log_after_iters); - par_log_after_iters = NULL; - CHECK_OBJECT(par_validate_iters); - Py_DECREF(par_validate_iters); - par_validate_iters = NULL; - CHECK_OBJECT(par_num_iterations); - Py_DECREF(par_num_iterations); - par_num_iterations = NULL; - CHECK_OBJECT(par_num_epoch); - Py_DECREF(par_num_epoch); - par_num_epoch = NULL; - CHECK_OBJECT(par_eval_score_higher_is_better); - Py_DECREF(par_eval_score_higher_is_better); - par_eval_score_higher_is_better = NULL; - CHECK_OBJECT(par_tensorboard_formatter); - Py_DECREF(par_tensorboard_formatter); - par_tensorboard_formatter = NULL; - CHECK_OBJECT(par_skip_train_validation); - Py_DECREF(par_skip_train_validation); - par_skip_train_validation = NULL; - Py_XDECREF(par_resume); - par_resume = NULL; - Py_XDECREF(par_pre_trained); - par_pre_trained = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_state); - var_state = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_model); - par_model = NULL; - CHECK_OBJECT(par_optimizer); - Py_DECREF(par_optimizer); - par_optimizer = NULL; - CHECK_OBJECT(par_lr_scheduler); - Py_DECREF(par_lr_scheduler); - par_lr_scheduler = NULL; - CHECK_OBJECT(par_loss_criterion); - Py_DECREF(par_loss_criterion); - par_loss_criterion = NULL; - CHECK_OBJECT(par_eval_criterion); - Py_DECREF(par_eval_criterion); - par_eval_criterion = NULL; - CHECK_OBJECT(par_loaders); - Py_DECREF(par_loaders); - par_loaders = NULL; - Py_XDECREF(par_checkpoint_dir); - par_checkpoint_dir = NULL; - CHECK_OBJECT(par_max_num_epochs); - Py_DECREF(par_max_num_epochs); - par_max_num_epochs = NULL; - CHECK_OBJECT(par_max_num_iterations); - Py_DECREF(par_max_num_iterations); - par_max_num_iterations = NULL; - CHECK_OBJECT(par_validate_after_iters); - Py_DECREF(par_validate_after_iters); - par_validate_after_iters = NULL; - CHECK_OBJECT(par_log_after_iters); - Py_DECREF(par_log_after_iters); - par_log_after_iters = NULL; - CHECK_OBJECT(par_validate_iters); - Py_DECREF(par_validate_iters); - par_validate_iters = NULL; - CHECK_OBJECT(par_num_iterations); - Py_DECREF(par_num_iterations); - par_num_iterations = NULL; - CHECK_OBJECT(par_num_epoch); - Py_DECREF(par_num_epoch); - par_num_epoch = NULL; - CHECK_OBJECT(par_eval_score_higher_is_better); - Py_DECREF(par_eval_score_higher_is_better); - par_eval_score_higher_is_better = NULL; - CHECK_OBJECT(par_tensorboard_formatter); - Py_DECREF(par_tensorboard_formatter); - par_tensorboard_formatter = NULL; - CHECK_OBJECT(par_skip_train_validation); - Py_DECREF(par_skip_train_validation); - par_skip_train_validation = NULL; - Py_XDECREF(par_resume); - par_resume = NULL; - Py_XDECREF(par_pre_trained); - par_pre_trained = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - Py_XDECREF(var_state); - var_state = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__3_fit(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var__ = NULL; - PyObject *var_should_terminate = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_inplace_assign_1__value = NULL; - struct Nuitka_FrameObject *frame_ae7a9d019f1e7da12684da1a55b62954; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_ae7a9d019f1e7da12684da1a55b62954 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ae7a9d019f1e7da12684da1a55b62954)) { - Py_XDECREF(cache_frame_ae7a9d019f1e7da12684da1a55b62954); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ae7a9d019f1e7da12684da1a55b62954 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ae7a9d019f1e7da12684da1a55b62954 = MAKE_FUNCTION_FRAME(codeobj_ae7a9d019f1e7da12684da1a55b62954, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ae7a9d019f1e7da12684da1a55b62954->m_type_description == NULL); - frame_ae7a9d019f1e7da12684da1a55b62954 = cache_frame_ae7a9d019f1e7da12684da1a55b62954; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ae7a9d019f1e7da12684da1a55b62954); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ae7a9d019f1e7da12684da1a55b62954) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_xrange_high_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_xrange_low_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[63]); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_xrange_low_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 145; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_xrange_high_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[44]); - if (tmp_xrange_high_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_xrange_low_1); - - exception_lineno = 145; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = BUILTIN_XRANGE2(tmp_xrange_low_1, tmp_xrange_high_1); - Py_DECREF(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_high_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - exception_lineno = 145; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_3 = tmp_for_loop_1__iter_value; - { - PyObject *old = var__; - var__ = tmp_assign_source_3; - Py_INCREF(var__); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 147; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = par_self; - frame_ae7a9d019f1e7da12684da1a55b62954->m_frame.f_lineno = 147; - tmp_assign_source_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[78]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 147; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_should_terminate; - var_should_terminate = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_should_terminate); - tmp_truth_name_1 = CHECK_IF_TRUE(var_should_terminate); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 149; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_ae7a9d019f1e7da12684da1a55b62954->m_frame.f_lineno = 150; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[11], - &PyTuple_GET_ITEM(mod_consts[79], 0) - ); - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_2; - branch_no_1:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_assign_source_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[63]); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_inplace_assign_1__value; - tmp_inplace_assign_1__value = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(tmp_inplace_assign_1__value); - tmp_left_name_1 = tmp_inplace_assign_1__value; - tmp_right_name_1 = mod_consts[5]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_1, tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - tmp_assign_source_6 = tmp_left_name_1; - tmp_inplace_assign_1__value = tmp_assign_source_6; - - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(tmp_inplace_assign_1__value); - tmp_assattr_name_1 = tmp_inplace_assign_1__value; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 153; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[63], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 153; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_1__value); - Py_DECREF(tmp_inplace_assign_1__value); - tmp_inplace_assign_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_inplace_assign_1__value); - Py_DECREF(tmp_inplace_assign_1__value); - tmp_inplace_assign_1__value = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 145; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - Py_DECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[80]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 154; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_5 = par_self; - tmp_format_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[44]); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[81]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 154; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_ae7a9d019f1e7da12684da1a55b62954->m_frame.f_lineno = 154; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ae7a9d019f1e7da12684da1a55b62954); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ae7a9d019f1e7da12684da1a55b62954); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ae7a9d019f1e7da12684da1a55b62954); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ae7a9d019f1e7da12684da1a55b62954, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ae7a9d019f1e7da12684da1a55b62954->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ae7a9d019f1e7da12684da1a55b62954, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ae7a9d019f1e7da12684da1a55b62954, - type_description_1, - par_self, - var__, - var_should_terminate - ); - - - // Release cached frame if used for exception. - if (frame_ae7a9d019f1e7da12684da1a55b62954 == cache_frame_ae7a9d019f1e7da12684da1a55b62954) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ae7a9d019f1e7da12684da1a55b62954); - cache_frame_ae7a9d019f1e7da12684da1a55b62954 = NULL; - } - - assertFrameObject(frame_ae7a9d019f1e7da12684da1a55b62954); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_should_terminate); - var_should_terminate = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var__); - var__ = NULL; - Py_XDECREF(var_should_terminate); - var_should_terminate = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__4_train(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_train_losses = NULL; - PyObject *var_train_eval_scores = NULL; - PyObject *var_t = NULL; - PyObject *var_input = NULL; - PyObject *var_target = NULL; - PyObject *var_weight = NULL; - PyObject *var_output = NULL; - PyObject *var_loss = NULL; - PyObject *var_eval_score = NULL; - PyObject *var_is_best = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_inplace_assign_1__value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__element_3 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_3246d6e09a496cdc8bb1ac88ce4466c4; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - int tmp_res; - PyObject *tmp_return_value = NULL; - bool tmp_result; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - static struct Nuitka_FrameObject *cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4)) { - Py_XDECREF(cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4 = MAKE_FUNCTION_FRAME(codeobj_3246d6e09a496cdc8bb1ac88ce4466c4, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_type_description == NULL); - frame_3246d6e09a496cdc8bb1ac88ce4466c4 = cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_3246d6e09a496cdc8bb1ac88ce4466c4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_3246d6e09a496cdc8bb1ac88ce4466c4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 162; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[82]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 162; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_train_losses == NULL); - var_train_losses = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 163; - tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[82]); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 163; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_train_eval_scores == NULL); - var_train_eval_scores = tmp_assign_source_2; - } - { - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 166; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[78]); - Py_DECREF(tmp_called_instance_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 166; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 168; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[38]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[78]; - tmp_iter_arg_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_2); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_3; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_4 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_4 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooo"; - exception_lineno = 168; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_5 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_t; - var_t = tmp_assign_source_5; - Py_INCREF(var_t); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_1 = mod_consts[83]; - tmp_string_concat_values_1 = PyTuple_New(9); - { - PyObject *tmp_format_value_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_format_spec_1; - PyObject *tmp_format_value_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_format_spec_2; - PyObject *tmp_format_value_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_format_spec_3; - PyObject *tmp_format_value_4; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_8; - PyObject *tmp_right_name_1; - PyObject *tmp_format_spec_4; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_5 = par_self; - tmp_format_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[62]); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[84]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_6 = par_self; - tmp_format_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[45]); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 3, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[85]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 4, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 170; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_7 = par_self; - tmp_format_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[63]); - if (tmp_format_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_3 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - Py_DECREF(tmp_format_value_3); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 5, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[84]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 6, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 170; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_8 = par_self; - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[44]); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_right_name_1 = mod_consts[5]; - tmp_format_value_4 = BINARY_OPERATION_SUB_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_format_value_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_4 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_4, tmp_format_spec_4); - Py_DECREF(tmp_format_value_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 7, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[86]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 8, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 169; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - // Tried code: - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_2; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "ooooooooooo"; - goto try_except_handler_3; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_t); - tmp_args_element_name_2 = var_t; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 172; - tmp_iter_arg_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[87], tmp_args_element_name_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "ooooooooooo"; - goto try_except_handler_3; - } - tmp_assign_source_6 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "ooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_7 = UNPACK_NEXT(tmp_unpack_1, 0, 3); - if (tmp_assign_source_7 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 172; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_8 = UNPACK_NEXT(tmp_unpack_2, 1, 3); - if (tmp_assign_source_8 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 172; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_3, 2, 3); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 172; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_3; - tmp_tuple_unpack_1__element_3 = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 172; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[88]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 172; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_10 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_input; - var_input = tmp_assign_source_10; - Py_INCREF(var_input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_target; - var_target = tmp_assign_source_11; - Py_INCREF(var_target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_1__element_3); - tmp_assign_source_12 = tmp_tuple_unpack_1__element_3; - { - PyObject *old = var_weight; - var_weight = tmp_assign_source_12; - Py_INCREF(var_weight); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_3); - tmp_tuple_unpack_1__element_3 = NULL; - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 174; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_called_instance_5 = par_self; - CHECK_OBJECT(var_input); - tmp_args_element_name_3 = var_input; - CHECK_OBJECT(var_target); - tmp_args_element_name_4 = var_target; - CHECK_OBJECT(var_weight); - tmp_args_element_name_5 = var_weight; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 174; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5}; - tmp_iter_arg_3 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_5, - mod_consts[89], - call_args - ); - } - - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_assign_source_13 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_14 = UNPACK_NEXT(tmp_unpack_4, 0, 2); - if (tmp_assign_source_14 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 174; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_15 = UNPACK_NEXT(tmp_unpack_5, 1, 2); - if (tmp_assign_source_15 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 174; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 174; - goto try_except_handler_6; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 174; - goto try_except_handler_6; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_5; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_2; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_16 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_output; - var_output = tmp_assign_source_16; - Py_INCREF(var_output); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_17; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_17 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_loss; - var_loss = tmp_assign_source_17; - Py_INCREF(var_loss); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_6; - PyObject *tmp_called_instance_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_8; - if (var_train_losses == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[91]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = var_train_losses; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[92]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_loss); - tmp_called_instance_6 = var_loss; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 176; - tmp_args_element_name_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[93]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_10 = par_self; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[94]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (var_input == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_8 = var_input; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 176; - tmp_args_element_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_3); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_6); - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 176; - { - PyObject *call_args[] = {tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_6); - Py_DECREF(tmp_args_element_name_7); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 176; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_called_instance_7; - PyObject *tmp_expression_name_11; - PyObject *tmp_call_result_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_11 = par_self; - tmp_called_instance_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[22]); - if (tmp_called_instance_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 179; - tmp_call_result_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[96]); - Py_DECREF(tmp_called_instance_7); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_4); - } - { - PyObject *tmp_called_instance_8; - PyObject *tmp_call_result_5; - if (var_loss == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[97]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_8 = var_loss; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 180; - tmp_call_result_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[98]); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_5); - } - { - PyObject *tmp_called_instance_9; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_12 = par_self; - tmp_called_instance_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[22]); - if (tmp_called_instance_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 181; - tmp_call_result_6 = CALL_METHOD_NO_ARGS(tmp_called_instance_9, mod_consts[99]); - Py_DECREF(tmp_called_instance_9); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_6); - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_13; - PyObject *tmp_right_name_2; - PyObject *tmp_expression_name_14; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_13 = par_self; - tmp_left_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[62]); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_14 = par_self; - tmp_right_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[46]); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_2); - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_left_1 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_1 = mod_consts[76]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 183; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_10; - PyObject *tmp_expression_name_15; - PyObject *tmp_call_result_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_15 = par_self; - tmp_called_instance_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[1]); - if (tmp_called_instance_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 185; - tmp_call_result_7 = CALL_METHOD_NO_ARGS(tmp_called_instance_10, mod_consts[100]); - Py_DECREF(tmp_called_instance_10); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_7); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_called_instance_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_11 = par_self; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 187; - tmp_assign_source_18 = CALL_METHOD_NO_ARGS(tmp_called_instance_11, mod_consts[101]); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_eval_score; - var_eval_score = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_12; - PyObject *tmp_expression_name_16; - PyObject *tmp_call_result_8; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 189; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_16 = par_self; - tmp_called_instance_12 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[1]); - if (tmp_called_instance_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 189; - tmp_call_result_8 = CALL_METHOD_NO_ARGS(tmp_called_instance_12, mod_consts[78]); - Py_DECREF(tmp_called_instance_12); - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 189; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_8); - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_17; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 192; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_17 = par_self; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[42]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_isinstance_cls_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[102]); - - if (unlikely(tmp_isinstance_cls_1 == NULL)) { - tmp_isinstance_cls_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[102]); - } - - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 192; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 192; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_instance_13; - PyObject *tmp_expression_name_18; - PyObject *tmp_call_result_9; - PyObject *tmp_args_element_name_9; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 193; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_18 = par_self; - tmp_called_instance_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[42]); - if (tmp_called_instance_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_eval_score); - tmp_args_element_name_9 = var_eval_score; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 193; - tmp_call_result_9 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_13, mod_consts[99], tmp_args_element_name_9); - Py_DECREF(tmp_called_instance_13); - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 193; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_9); - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_called_instance_14; - PyObject *tmp_expression_name_19; - PyObject *tmp_call_result_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 195; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_19 = par_self; - tmp_called_instance_14 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[42]); - if (tmp_called_instance_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 195; - tmp_call_result_10 = CALL_METHOD_NO_ARGS(tmp_called_instance_14, mod_consts[99]); - Py_DECREF(tmp_called_instance_14); - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 195; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_10); - } - branch_end_2:; - { - PyObject *tmp_called_instance_15; - PyObject *tmp_call_result_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 197; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_15 = par_self; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 197; - tmp_call_result_11 = CALL_METHOD_NO_ARGS(tmp_called_instance_15, mod_consts[103]); - if (tmp_call_result_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_11); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_20; - PyObject *tmp_args_element_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_20 = par_self; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[104]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (var_eval_score == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_10 = var_eval_score; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 199; - tmp_assign_source_19 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_10); - Py_DECREF(tmp_called_name_4); - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_is_best; - var_is_best = tmp_assign_source_19; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_instance_16; - PyObject *tmp_call_result_12; - PyObject *tmp_args_element_name_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 202; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_16 = par_self; - CHECK_OBJECT(var_is_best); - tmp_args_element_name_11 = var_is_best; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 202; - tmp_call_result_12 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_16, mod_consts[106], tmp_args_element_name_11); - if (tmp_call_result_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_12); - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_21; - PyObject *tmp_right_name_3; - PyObject *tmp_expression_name_22; - PyObject *tmp_tmp_condition_result_3_object_1; - int tmp_truth_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_21 = par_self; - tmp_left_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_21, mod_consts[62]); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_22 = par_self; - tmp_right_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_22, mod_consts[47]); - if (tmp_right_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_3); - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_left_2 = BINARY_OPERATION_MOD_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_2 = mod_consts[76]; - tmp_tmp_condition_result_3_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_condition_result_3_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_3_object_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_3_object_1); - - exception_lineno = 204; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_3 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_3_object_1); - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_23; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_23 = par_self; - tmp_operand_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_23, mod_consts[64]); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_assign_source_20; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_24; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_24 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_24, mod_consts[37]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_output); - tmp_args_element_name_12 = var_output; - if (var_target == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[107]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_13 = var_target; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 207; - { - PyObject *call_args[] = {tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_assign_source_20 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_eval_score; - var_eval_score = tmp_assign_source_20; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_25; - PyObject *tmp_call_result_13; - PyObject *tmp_args_element_name_14; - PyObject *tmp_called_instance_17; - PyObject *tmp_args_element_name_15; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_26; - PyObject *tmp_args_element_name_16; - if (var_train_eval_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_25 = var_train_eval_scores; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_25, mod_consts[92]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_eval_score); - tmp_called_instance_17 = var_eval_score; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 208; - tmp_args_element_name_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_17, mod_consts[93]); - if (tmp_args_element_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_14); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_26 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_26, mod_consts[94]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_14); - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (var_input == NULL) { - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_14); - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_16 = var_input; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 208; - tmp_args_element_name_15 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_16); - Py_DECREF(tmp_called_name_7); - if (tmp_args_element_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_14); - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 208; - { - PyObject *call_args[] = {tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_call_result_13 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_14); - Py_DECREF(tmp_args_element_name_15); - if (tmp_call_result_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 208; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_13); - } - branch_no_4:; - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_27; - PyObject *tmp_call_result_14; - PyObject *tmp_args_element_name_17; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - tmp_expression_name_27 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_27 == NULL)) { - tmp_expression_name_27 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_27, mod_consts[11]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_tuple_element_2 = mod_consts[109]; - tmp_string_concat_values_2 = PyTuple_New(4); - { - PyObject *tmp_format_value_5; - PyObject *tmp_expression_name_28; - PyObject *tmp_format_spec_5; - PyObject *tmp_format_value_6; - PyObject *tmp_expression_name_29; - PyObject *tmp_format_spec_6; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - if (var_train_losses == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[91]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_28 = var_train_losses; - tmp_format_value_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_28, mod_consts[110]); - if (tmp_format_value_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - tmp_format_spec_5 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_5, tmp_format_spec_5); - Py_DECREF(tmp_format_value_5); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[111]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_2); - if (var_train_eval_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_29 = var_train_eval_scores; - tmp_format_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_29, mod_consts[110]); - if (tmp_format_value_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - tmp_format_spec_6 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_6, tmp_format_spec_6); - Py_DECREF(tmp_format_value_6); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 3, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_string_concat_values_2); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_17 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 212; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 211; - tmp_call_result_14 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_8, tmp_args_element_name_17); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_17); - if (tmp_call_result_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 211; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_14); - } - { - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_30; - PyObject *tmp_call_result_15; - PyObject *tmp_args_element_name_18; - PyObject *tmp_args_element_name_19; - PyObject *tmp_expression_name_31; - PyObject *tmp_args_element_name_20; - PyObject *tmp_expression_name_32; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_30 = par_self; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_30, mod_consts[112]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_args_element_name_18 = mod_consts[78]; - if (var_train_losses == NULL) { - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[91]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_31 = var_train_losses; - tmp_args_element_name_19 = LOOKUP_ATTRIBUTE(tmp_expression_name_31, mod_consts[110]); - if (tmp_args_element_name_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (var_train_eval_scores == NULL) { - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_19); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[108]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_32 = var_train_eval_scores; - tmp_args_element_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_32, mod_consts[110]); - if (tmp_args_element_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_19); - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 213; - { - PyObject *call_args[] = {tmp_args_element_name_18, tmp_args_element_name_19, tmp_args_element_name_20}; - tmp_call_result_15 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_9, call_args); - } - - Py_DECREF(tmp_called_name_9); - Py_DECREF(tmp_args_element_name_19); - Py_DECREF(tmp_args_element_name_20); - if (tmp_call_result_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 213; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_15); - } - { - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_33; - PyObject *tmp_call_result_16; - PyObject *tmp_args_element_name_21; - PyObject *tmp_args_element_name_22; - PyObject *tmp_args_element_name_23; - PyObject *tmp_args_element_name_24; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_33 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_33, mod_consts[113]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - if (var_input == NULL) { - Py_DECREF(tmp_called_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_21 = var_input; - if (var_target == NULL) { - Py_DECREF(tmp_called_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[107]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_22 = var_target; - if (var_output == NULL) { - Py_DECREF(tmp_called_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 215; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_args_element_name_23 = var_output; - tmp_args_element_name_24 = mod_consts[115]; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 215; - { - PyObject *call_args[] = {tmp_args_element_name_21, tmp_args_element_name_22, tmp_args_element_name_23, tmp_args_element_name_24}; - tmp_call_result_16 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_10, call_args); - } - - Py_DECREF(tmp_called_name_10); - if (tmp_call_result_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 215; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_16); - } - branch_no_3:; - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_called_instance_18; - PyObject *tmp_call_result_17; - int tmp_truth_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 217; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_called_instance_18 = par_self; - frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame.f_lineno = 217; - tmp_call_result_17 = CALL_METHOD_NO_ARGS(tmp_called_instance_18, mod_consts[116]); - if (tmp_call_result_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_call_result_17); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_17); - - exception_lineno = 217; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_5 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_17); - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - tmp_return_value = Py_True; - Py_INCREF(tmp_return_value); - goto try_return_handler_2; - branch_no_5:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_expression_name_34; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_34 = par_self; - tmp_assign_source_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_34, mod_consts[62]); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_inplace_assign_1__value; - tmp_inplace_assign_1__value = tmp_assign_source_21; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - CHECK_OBJECT(tmp_inplace_assign_1__value); - tmp_left_name_4 = tmp_inplace_assign_1__value; - tmp_right_name_4 = mod_consts[5]; - tmp_result = BINARY_OPERATION_ADD_OBJECT_LONG_INPLACE(&tmp_left_name_4, tmp_right_name_4); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooooooo"; - goto try_except_handler_7; - } - tmp_assign_source_22 = tmp_left_name_4; - tmp_inplace_assign_1__value = tmp_assign_source_22; - - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(tmp_inplace_assign_1__value); - tmp_assattr_name_1 = tmp_inplace_assign_1__value; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 220; - type_description_1 = "ooooooooooo"; - goto try_except_handler_7; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[62], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 220; - type_description_1 = "ooooooooooo"; - goto try_except_handler_7; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_1__value); - Py_DECREF(tmp_inplace_assign_1__value); - tmp_inplace_assign_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_2; - // End of try: - try_end_5:; - CHECK_OBJECT(tmp_inplace_assign_1__value); - Py_DECREF(tmp_inplace_assign_1__value); - tmp_inplace_assign_1__value = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 168; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_6; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - Py_DECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3246d6e09a496cdc8bb1ac88ce4466c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3246d6e09a496cdc8bb1ac88ce4466c4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_3246d6e09a496cdc8bb1ac88ce4466c4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_3246d6e09a496cdc8bb1ac88ce4466c4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_3246d6e09a496cdc8bb1ac88ce4466c4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_3246d6e09a496cdc8bb1ac88ce4466c4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_3246d6e09a496cdc8bb1ac88ce4466c4, - type_description_1, - par_self, - var_train_losses, - var_train_eval_scores, - var_t, - var_input, - var_target, - var_weight, - var_output, - var_loss, - var_eval_score, - var_is_best - ); - - - // Release cached frame if used for exception. - if (frame_3246d6e09a496cdc8bb1ac88ce4466c4 == cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4); - cache_frame_3246d6e09a496cdc8bb1ac88ce4466c4 = NULL; - } - - assertFrameObject(frame_3246d6e09a496cdc8bb1ac88ce4466c4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_False; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_train_losses); - var_train_losses = NULL; - Py_XDECREF(var_train_eval_scores); - var_train_eval_scores = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_input); - var_input = NULL; - Py_XDECREF(var_target); - var_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - Py_XDECREF(var_output); - var_output = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_eval_score); - var_eval_score = NULL; - Py_XDECREF(var_is_best); - var_is_best = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_train_losses); - var_train_losses = NULL; - Py_XDECREF(var_train_eval_scores); - var_train_eval_scores = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_input); - var_input = NULL; - Py_XDECREF(var_target); - var_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - Py_XDECREF(var_output); - var_output = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_eval_score); - var_eval_score = NULL; - Py_XDECREF(var_is_best); - var_is_best = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__5_should_stop(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_min_lr = NULL; - PyObject *var_lr = NULL; - struct Nuitka_FrameObject *frame_80455a89ff7fcc6672604e1c637cb72f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_80455a89ff7fcc6672604e1c637cb72f = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_80455a89ff7fcc6672604e1c637cb72f)) { - Py_XDECREF(cache_frame_80455a89ff7fcc6672604e1c637cb72f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_80455a89ff7fcc6672604e1c637cb72f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_80455a89ff7fcc6672604e1c637cb72f = MAKE_FUNCTION_FRAME(codeobj_80455a89ff7fcc6672604e1c637cb72f, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_80455a89ff7fcc6672604e1c637cb72f->m_type_description == NULL); - frame_80455a89ff7fcc6672604e1c637cb72f = cache_frame_80455a89ff7fcc6672604e1c637cb72f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_80455a89ff7fcc6672604e1c637cb72f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_80455a89ff7fcc6672604e1c637cb72f) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[45]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_compexpr_left_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 229; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[62]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_compexpr_left_1); - - exception_lineno = 229; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = RICH_COMPARE_LT_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 229; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - assert(tmp_condition_result_1 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[118]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 230; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - - tmp_expression_name_4 = par_self; - tmp_format_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[45]); - if (tmp_format_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - Py_DECREF(tmp_format_value_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[119]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_80455a89ff7fcc6672604e1c637cb72f->m_frame.f_lineno = 230; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 230; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - tmp_return_value = Py_True; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_1:; - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = mod_consts[120]; - assert(var_min_lr == NULL); - Py_INCREF(tmp_assign_source_1); - var_min_lr = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_subscript_name_1; - PyObject *tmp_subscript_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 234; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_expression_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[22]); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[121]); - Py_DECREF(tmp_expression_name_7); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[76]; - tmp_expression_name_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_6); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[122]; - tmp_assign_source_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_5, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 234; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_lr == NULL); - var_lr = tmp_assign_source_2; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(var_lr); - tmp_compexpr_left_2 = var_lr; - CHECK_OBJECT(var_min_lr); - tmp_compexpr_right_2 = var_min_lr; - tmp_condition_result_2 = RICH_COMPARE_LT_NBOOL_OBJECT_FLOAT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_condition_result_2 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 235; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[11]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = mod_consts[123]; - tmp_string_concat_values_2 = PyTuple_New(3); - { - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_min_lr); - tmp_format_value_2 = var_min_lr; - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[74]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_string_concat_values_2); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_2 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_80455a89ff7fcc6672604e1c637cb72f->m_frame.f_lineno = 236; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - tmp_return_value = Py_True; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_no_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80455a89ff7fcc6672604e1c637cb72f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80455a89ff7fcc6672604e1c637cb72f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_80455a89ff7fcc6672604e1c637cb72f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_80455a89ff7fcc6672604e1c637cb72f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_80455a89ff7fcc6672604e1c637cb72f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_80455a89ff7fcc6672604e1c637cb72f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_80455a89ff7fcc6672604e1c637cb72f, - type_description_1, - par_self, - var_min_lr, - var_lr - ); - - - // Release cached frame if used for exception. - if (frame_80455a89ff7fcc6672604e1c637cb72f == cache_frame_80455a89ff7fcc6672604e1c637cb72f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_80455a89ff7fcc6672604e1c637cb72f); - cache_frame_80455a89ff7fcc6672604e1c637cb72f = NULL; - } - - assertFrameObject(frame_80455a89ff7fcc6672604e1c637cb72f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_False; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_min_lr); - var_min_lr = NULL; - Py_XDECREF(var_lr); - var_lr = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_min_lr); - var_min_lr = NULL; - Py_XDECREF(var_lr); - var_lr = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__6_validate(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_val_losses = NULL; - PyObject *var_val_scores = NULL; - PyObject *var_i = NULL; - PyObject *var_t = NULL; - PyObject *var_input = NULL; - PyObject *var_target = NULL; - PyObject *var_weight = NULL; - PyObject *var_output = NULL; - PyObject *var_loss = NULL; - PyObject *var_eval_score = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_5bc2244797d8e33afde5d46faa217998; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - int tmp_res; - bool tmp_result; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - static struct Nuitka_FrameObject *cache_frame_5bc2244797d8e33afde5d46faa217998 = NULL; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5bc2244797d8e33afde5d46faa217998)) { - Py_XDECREF(cache_frame_5bc2244797d8e33afde5d46faa217998); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5bc2244797d8e33afde5d46faa217998 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5bc2244797d8e33afde5d46faa217998 = MAKE_FUNCTION_FRAME(codeobj_5bc2244797d8e33afde5d46faa217998, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5bc2244797d8e33afde5d46faa217998->m_type_description == NULL); - frame_5bc2244797d8e33afde5d46faa217998 = cache_frame_5bc2244797d8e33afde5d46faa217998; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5bc2244797d8e33afde5d46faa217998); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5bc2244797d8e33afde5d46faa217998) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 242; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[11], - &PyTuple_GET_ITEM(mod_consts[125], 0) - ); - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 242; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 244; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[82]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 244; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_val_losses == NULL); - var_val_losses = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_3; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 245; - tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[82]); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "ooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_val_scores == NULL); - var_val_scores = tmp_assign_source_2; - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_4; - tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_called_instance_4 == NULL)) { - tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 247; - tmp_assign_source_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[126]); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_1 = tmp_with_1__source; - tmp_called_name_1 = LOOKUP_SPECIAL(tmp_expression_name_1, mod_consts[127]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 247; - tmp_assign_source_4 = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_2 = tmp_with_1__source; - tmp_assign_source_5 = LOOKUP_SPECIAL(tmp_expression_name_2, mod_consts[128]); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 247; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_5; - } - { - nuitka_bool tmp_assign_source_6; - tmp_assign_source_6 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_6; - } - // Tried code: - // Tried code: - { - PyObject *tmp_assign_source_7; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_name_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - tmp_called_name_2 = (PyObject *)&PyEnum_Type; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[38]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - tmp_subscript_name_1 = mod_consts[129]; - tmp_args_element_name_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_3, tmp_subscript_name_1); - Py_DECREF(tmp_expression_name_3); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 248; - tmp_iter_arg_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - tmp_assign_source_7 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_7; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_8 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_8 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooooooo"; - exception_lineno = 248; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_9 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 248; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 248; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 248; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 248; - goto try_except_handler_7; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_6; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_5; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_12 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_i; - var_i = tmp_assign_source_12; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_13 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_t; - var_t = tmp_assign_source_13; - Py_INCREF(var_t); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_2; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_5 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_5 == NULL)) { - tmp_expression_name_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[11]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_tuple_element_1 = mod_consts[130]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_i); - tmp_format_value_1 = var_i; - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_2 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 249; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 249; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 249; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_2); - } - // Tried code: - { - PyObject *tmp_assign_source_14; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_instance_5; - PyObject *tmp_args_element_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 251; - type_description_1 = "ooooooooooo"; - goto try_except_handler_8; - } - - tmp_called_instance_5 = par_self; - CHECK_OBJECT(var_t); - tmp_args_element_name_3 = var_t; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 251; - tmp_iter_arg_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_5, mod_consts[87], tmp_args_element_name_3); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "ooooooooooo"; - goto try_except_handler_8; - } - tmp_assign_source_14 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 251; - type_description_1 = "ooooooooooo"; - goto try_except_handler_8; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_15 = UNPACK_NEXT(tmp_unpack_3, 0, 3); - if (tmp_assign_source_15 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 251; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_16 = UNPACK_NEXT(tmp_unpack_4, 1, 3); - if (tmp_assign_source_16 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 251; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_17 = UNPACK_NEXT(tmp_unpack_5, 2, 3); - if (tmp_assign_source_17 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 251; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_2__element_3; - tmp_tuple_unpack_2__element_3 = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 251; - goto try_except_handler_9; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[88]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 251; - goto try_except_handler_9; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_8; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_18 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_input; - var_input = tmp_assign_source_18; - Py_INCREF(var_input); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_19; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_19 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_target; - var_target = tmp_assign_source_19; - Py_INCREF(var_target); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_20; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_20 = tmp_tuple_unpack_2__element_3; - { - PyObject *old = var_weight; - var_weight = tmp_assign_source_20; - Py_INCREF(var_weight); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Tried code: - { - PyObject *tmp_assign_source_21; - PyObject *tmp_iter_arg_4; - PyObject *tmp_called_instance_6; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 253; - type_description_1 = "ooooooooooo"; - goto try_except_handler_10; - } - - tmp_called_instance_6 = par_self; - CHECK_OBJECT(var_input); - tmp_args_element_name_4 = var_input; - CHECK_OBJECT(var_target); - tmp_args_element_name_5 = var_target; - CHECK_OBJECT(var_weight); - tmp_args_element_name_6 = var_weight; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 253; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_iter_arg_4 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_6, - mod_consts[89], - call_args - ); - } - - if (tmp_iter_arg_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "ooooooooooo"; - goto try_except_handler_10; - } - tmp_assign_source_21 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_4); - Py_DECREF(tmp_iter_arg_4); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 253; - type_description_1 = "ooooooooooo"; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_21; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_22 = UNPACK_NEXT(tmp_unpack_6, 0, 2); - if (tmp_assign_source_22 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 253; - goto try_except_handler_11; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_23; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_23 = UNPACK_NEXT(tmp_unpack_7, 1, 2); - if (tmp_assign_source_23 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooooooo"; - exception_lineno = 253; - goto try_except_handler_11; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooooooo"; - exception_lineno = 253; - goto try_except_handler_11; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooooooo"; - exception_lineno = 253; - goto try_except_handler_11; - } - } - goto try_end_5; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_10; - // End of try: - try_end_5:; - goto try_end_6; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto try_except_handler_5; - // End of try: - try_end_6:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_24; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_24 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_output; - var_output = tmp_assign_source_24; - Py_INCREF(var_output); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_25; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_25 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_loss; - var_loss = tmp_assign_source_25; - Py_INCREF(var_loss); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_7; - PyObject *tmp_called_instance_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_9; - if (var_val_losses == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[131]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_6 = var_val_losses; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[92]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - CHECK_OBJECT(var_loss); - tmp_called_instance_7 = var_loss; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 254; - tmp_args_element_name_7 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[93]); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_7 = par_self; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[94]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (var_input == NULL) { - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_args_element_name_9 = var_input; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 254; - tmp_args_element_name_8 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_5, tmp_args_element_name_9); - Py_DECREF(tmp_called_name_5); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 254; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_7); - Py_DECREF(tmp_args_element_name_8); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_3); - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tmp_condition_result_1_object_1; - int tmp_truth_name_1; - CHECK_OBJECT(var_i); - tmp_left_name_1 = var_i; - tmp_right_name_1 = mod_consts[132]; - tmp_compexpr_left_1 = BINARY_OPERATION_MOD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_compexpr_right_1 = mod_consts[76]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_tmp_condition_result_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 256; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_1_object_1); - - exception_lineno = 256; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_4; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - PyObject *tmp_args_element_name_12; - PyObject *tmp_args_element_name_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_8 = par_self; - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[113]); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (var_input == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_args_element_name_10 = var_input; - if (var_target == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[107]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 257; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_args_element_name_11 = var_target; - CHECK_OBJECT(var_output); - tmp_args_element_name_12 = var_output; - tmp_args_element_name_13 = mod_consts[133]; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 257; - { - PyObject *call_args[] = {tmp_args_element_name_10, tmp_args_element_name_11, tmp_args_element_name_12, tmp_args_element_name_13}; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_6, call_args); - } - - Py_DECREF(tmp_called_name_6); - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 257; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_1:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_14; - PyObject *tmp_args_element_name_15; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 259; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_9 = par_self; - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[37]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (var_output == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 259; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_args_element_name_14 = var_output; - if (var_target == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[107]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 259; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_args_element_name_15 = var_target; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 259; - { - PyObject *call_args[] = {tmp_args_element_name_14, tmp_args_element_name_15}; - tmp_assign_source_26 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_7, call_args); - } - - Py_DECREF(tmp_called_name_7); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 259; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - { - PyObject *old = var_eval_score; - var_eval_score = tmp_assign_source_26; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_8; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_5; - PyObject *tmp_args_element_name_16; - PyObject *tmp_called_instance_8; - PyObject *tmp_args_element_name_17; - PyObject *tmp_called_name_9; - PyObject *tmp_expression_name_11; - PyObject *tmp_args_element_name_18; - if (var_val_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_10 = var_val_scores; - tmp_called_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[92]); - if (tmp_called_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - CHECK_OBJECT(var_eval_score); - tmp_called_instance_8 = var_eval_score; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 260; - tmp_args_element_name_16 = CALL_METHOD_NO_ARGS(tmp_called_instance_8, mod_consts[93]); - if (tmp_args_element_name_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_16); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_11 = par_self; - tmp_called_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[94]); - if (tmp_called_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_16); - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (var_input == NULL) { - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_16); - Py_DECREF(tmp_called_name_9); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_args_element_name_18 = var_input; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 260; - tmp_args_element_name_17 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_9, tmp_args_element_name_18); - Py_DECREF(tmp_called_name_9); - if (tmp_args_element_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_16); - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 260; - { - PyObject *call_args[] = {tmp_args_element_name_16, tmp_args_element_name_17}; - tmp_call_result_5 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_8, call_args); - } - - Py_DECREF(tmp_called_name_8); - Py_DECREF(tmp_args_element_name_16); - Py_DECREF(tmp_args_element_name_17); - if (tmp_call_result_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 260; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - Py_DECREF(tmp_call_result_5); - } - { - nuitka_bool tmp_condition_result_2; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_12; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_13; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 262; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_12 = par_self; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[48]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_compexpr_right_2 = Py_None; - tmp_and_left_value_1 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - Py_DECREF(tmp_compexpr_left_2); - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 262; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_expression_name_13 = par_self; - tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[48]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - if (var_i == NULL) { - Py_DECREF(tmp_compexpr_left_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[135]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 262; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - - tmp_compexpr_right_3 = var_i; - tmp_and_right_value_1 = RICH_COMPARE_LE_NBOOL_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - if (tmp_and_right_value_1 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 262; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - tmp_condition_result_2 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_2 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - assert(tmp_condition_result_2 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_2:; - goto loop_end_1; - branch_no_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "ooooooooooo"; - goto try_except_handler_5; - } - goto loop_start_1; - loop_end_1:; - goto try_end_7; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_4; - // End of try: - try_end_7:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_10; - PyObject *tmp_expression_name_14; - PyObject *tmp_call_result_6; - PyObject *tmp_args_element_name_19; - PyObject *tmp_args_element_name_20; - PyObject *tmp_expression_name_15; - PyObject *tmp_args_element_name_21; - PyObject *tmp_expression_name_16; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_14 = par_self; - tmp_called_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[112]); - if (tmp_called_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - tmp_args_element_name_19 = mod_consts[129]; - if (var_val_losses == NULL) { - Py_DECREF(tmp_called_name_10); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[131]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_15 = var_val_losses; - tmp_args_element_name_20 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[110]); - if (tmp_args_element_name_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - if (var_val_scores == NULL) { - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_20); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_16 = var_val_scores; - tmp_args_element_name_21 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[110]); - if (tmp_args_element_name_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_20); - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 266; - { - PyObject *call_args[] = {tmp_args_element_name_19, tmp_args_element_name_20, tmp_args_element_name_21}; - tmp_call_result_6 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_10, call_args); - } - - Py_DECREF(tmp_called_name_10); - Py_DECREF(tmp_args_element_name_20); - Py_DECREF(tmp_args_element_name_21); - if (tmp_call_result_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 266; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_6); - } - { - PyObject *tmp_called_name_11; - PyObject *tmp_expression_name_17; - PyObject *tmp_call_result_7; - PyObject *tmp_args_element_name_22; - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - tmp_expression_name_17 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_17 == NULL)) { - tmp_expression_name_17 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - tmp_called_name_11 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[11]); - if (tmp_called_name_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - tmp_tuple_element_2 = mod_consts[136]; - tmp_string_concat_values_2 = PyTuple_New(4); - { - PyObject *tmp_format_value_2; - PyObject *tmp_expression_name_18; - PyObject *tmp_format_spec_2; - PyObject *tmp_format_value_3; - PyObject *tmp_expression_name_19; - PyObject *tmp_format_spec_3; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - if (var_val_losses == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[131]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_18 = var_val_losses; - tmp_format_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_18, mod_consts[110]); - if (tmp_format_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - Py_DECREF(tmp_format_value_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[111]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 2, tmp_tuple_element_2); - if (var_val_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - - tmp_expression_name_19 = var_val_scores; - tmp_format_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[110]); - if (tmp_format_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - tmp_format_spec_3 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_3, tmp_format_spec_3); - Py_DECREF(tmp_format_value_3); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_string_concat_values_2, 3, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_string_concat_values_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_22 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_args_element_name_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_11); - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 267; - tmp_call_result_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_11, tmp_args_element_name_22); - Py_DECREF(tmp_called_name_11); - Py_DECREF(tmp_args_element_name_22); - if (tmp_call_result_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 267; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_7); - } - { - PyObject *tmp_expression_name_20; - if (var_val_scores == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[134]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_20 = var_val_scores; - tmp_return_value = LOOKUP_ATTRIBUTE(tmp_expression_name_20, mod_consts[110]); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_4; - } - goto try_return_handler_3; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_8 == NULL) { - exception_keeper_tb_8 = MAKE_TRACEBACK(frame_5bc2244797d8e33afde5d46faa217998, exception_keeper_lineno_8); - } else if (exception_keeper_lineno_8 != 0) { - exception_keeper_tb_8 = ADD_TRACEBACK(exception_keeper_tb_8, frame_5bc2244797d8e33afde5d46faa217998, exception_keeper_lineno_8); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_8, &exception_keeper_value_8, &exception_keeper_tb_8); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_8, exception_keeper_tb_8); - PUBLISH_EXCEPTION(&exception_keeper_type_8, &exception_keeper_value_8, &exception_keeper_tb_8); - // Tried code: - { - bool tmp_condition_result_3; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - tmp_compexpr_left_4 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_4 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_4, tmp_compexpr_right_4); - assert(!(tmp_res == -1)); - tmp_condition_result_3 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_3 != false) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - nuitka_bool tmp_assign_source_27; - tmp_assign_source_27 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_27; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_12; - PyObject *tmp_args_element_name_23; - PyObject *tmp_args_element_name_24; - PyObject *tmp_args_element_name_25; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_12 = tmp_with_1__exit; - tmp_args_element_name_23 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_24 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_25 = EXC_TRACEBACK(PyThreadState_GET()); - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 268; - { - PyObject *call_args[] = {tmp_args_element_name_23, tmp_args_element_name_24, tmp_args_element_name_25}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_12, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_12; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_12; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 268; - } - - if (exception_tb && exception_tb->tb_frame == &frame_5bc2244797d8e33afde5d46faa217998->m_frame) frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooo"; - goto try_except_handler_12; - branch_no_4:; - goto branch_end_3; - branch_no_3:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 247; - } - - if (exception_tb && exception_tb->tb_frame == &frame_5bc2244797d8e33afde5d46faa217998->m_frame) frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "ooooooooooo"; - goto try_except_handler_12; - branch_end_3:; - goto try_end_8; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_3; - // End of try: - try_end_8:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_9; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_9:; - goto try_end_10; - // Return handler code: - try_return_handler_3:; - { - bool tmp_condition_result_5; - nuitka_bool tmp_compexpr_left_5; - nuitka_bool tmp_compexpr_right_5; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_5 = tmp_with_1__indicator; - tmp_compexpr_right_5 = NUITKA_BOOL_TRUE; - tmp_condition_result_5 = (tmp_compexpr_left_5 == tmp_compexpr_right_5) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_13; - PyObject *tmp_call_result_8; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_13 = tmp_with_1__exit; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 268; - tmp_call_result_8 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_13, &PyTuple_GET_ITEM(mod_consts[137], 0)); - - if (tmp_call_result_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_8); - } - branch_no_5:; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_6; - nuitka_bool tmp_compexpr_left_6; - nuitka_bool tmp_compexpr_right_6; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_6 = tmp_with_1__indicator; - tmp_compexpr_right_6 = NUITKA_BOOL_TRUE; - tmp_condition_result_6 = (tmp_compexpr_left_6 == tmp_compexpr_right_6) ? true : false; - if (tmp_condition_result_6 != false) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_called_name_14; - PyObject *tmp_call_result_9; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_14 = tmp_with_1__exit; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 268; - tmp_call_result_9 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_14, &PyTuple_GET_ITEM(mod_consts[137], 0)); - - if (tmp_call_result_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_10); - Py_XDECREF(exception_keeper_value_10); - Py_XDECREF(exception_keeper_tb_10); - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_9); - } - branch_no_6:; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_2; - // End of try: - try_end_10:; - { - bool tmp_condition_result_7; - nuitka_bool tmp_compexpr_left_7; - nuitka_bool tmp_compexpr_right_7; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_7 = tmp_with_1__indicator; - tmp_compexpr_right_7 = NUITKA_BOOL_TRUE; - tmp_condition_result_7 = (tmp_compexpr_left_7 == tmp_compexpr_right_7) ? true : false; - if (tmp_condition_result_7 != false) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - { - PyObject *tmp_called_name_15; - PyObject *tmp_call_result_10; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_15 = tmp_with_1__exit; - frame_5bc2244797d8e33afde5d46faa217998->m_frame.f_lineno = 268; - tmp_call_result_10 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_15, &PyTuple_GET_ITEM(mod_consts[137], 0)); - - if (tmp_call_result_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 268; - type_description_1 = "ooooooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_10); - } - branch_no_7:; - goto try_end_11; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto frame_exception_exit_1; - // End of try: - try_end_11:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5bc2244797d8e33afde5d46faa217998); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5bc2244797d8e33afde5d46faa217998); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5bc2244797d8e33afde5d46faa217998); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5bc2244797d8e33afde5d46faa217998, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5bc2244797d8e33afde5d46faa217998->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5bc2244797d8e33afde5d46faa217998, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5bc2244797d8e33afde5d46faa217998, - type_description_1, - par_self, - var_val_losses, - var_val_scores, - var_i, - var_t, - var_input, - var_target, - var_weight, - var_output, - var_loss, - var_eval_score - ); - - - // Release cached frame if used for exception. - if (frame_5bc2244797d8e33afde5d46faa217998 == cache_frame_5bc2244797d8e33afde5d46faa217998) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5bc2244797d8e33afde5d46faa217998); - cache_frame_5bc2244797d8e33afde5d46faa217998 = NULL; - } - - assertFrameObject(frame_5bc2244797d8e33afde5d46faa217998); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_val_losses); - var_val_losses = NULL; - Py_XDECREF(var_val_scores); - var_val_scores = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_input); - var_input = NULL; - Py_XDECREF(var_target); - var_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - Py_XDECREF(var_output); - var_output = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_eval_score); - var_eval_score = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_val_losses); - var_val_losses = NULL; - Py_XDECREF(var_val_scores); - var_val_scores = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_t); - var_t = NULL; - Py_XDECREF(var_input); - var_input = NULL; - Py_XDECREF(var_target); - var_target = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - Py_XDECREF(var_output); - var_output = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - Py_XDECREF(var_eval_score); - var_eval_score = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__7__split_training_batch(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_t = python_pars[1]; - struct Nuitka_CellObject *var__move_to_gpu = Nuitka_Cell_Empty(); - PyObject *var_weight = NULL; - PyObject *var_input = NULL; - PyObject *var_target = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__element_3 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - struct Nuitka_FrameObject *frame_82970a886f064b131ab3665a56152e30; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_82970a886f064b131ab3665a56152e30 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = var__move_to_gpu; - Py_INCREF(tmp_closure_1[0]); - - tmp_assign_source_1 = MAKE_FUNCTION_models$unet3d$trainer$$$function__7__split_training_batch$$$function__1__move_to_gpu(tmp_closure_1); - - assert(Nuitka_Cell_GET(var__move_to_gpu) == NULL); - PyCell_SET(var__move_to_gpu, tmp_assign_source_1); - - } - // Tried code: - if (isFrameUnusable(cache_frame_82970a886f064b131ab3665a56152e30)) { - Py_XDECREF(cache_frame_82970a886f064b131ab3665a56152e30); - -#if _DEBUG_REFCOUNTS - if (cache_frame_82970a886f064b131ab3665a56152e30 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_82970a886f064b131ab3665a56152e30 = MAKE_FUNCTION_FRAME(codeobj_82970a886f064b131ab3665a56152e30, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_82970a886f064b131ab3665a56152e30->m_type_description == NULL); - frame_82970a886f064b131ab3665a56152e30 = cache_frame_82970a886f064b131ab3665a56152e30; - - // Push the new frame as the currently active one. - pushFrameStack(frame_82970a886f064b131ab3665a56152e30); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_82970a886f064b131ab3665a56152e30) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(Nuitka_Cell_GET(var__move_to_gpu)); - tmp_called_name_1 = Nuitka_Cell_GET(var__move_to_gpu); - CHECK_OBJECT(par_t); - tmp_args_element_name_1 = par_t; - frame_82970a886f064b131ab3665a56152e30->m_frame.f_lineno = 279; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "oocooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_t; - assert(old != NULL); - par_t = tmp_assign_source_2; - Py_DECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - assert(var_weight == NULL); - Py_INCREF(tmp_assign_source_3); - var_weight = tmp_assign_source_3; - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_len_arg_1; - PyObject *tmp_tmp_condition_result_1_object_1; - CHECK_OBJECT(par_t); - tmp_len_arg_1 = par_t; - tmp_compexpr_left_1 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 281; - type_description_1 = "oocooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[140]; - tmp_tmp_condition_result_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - assert(!(tmp_tmp_condition_result_1_object_1 == NULL)); - tmp_condition_result_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_1_object_1) == 1; - Py_DECREF(tmp_tmp_condition_result_1_object_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_1; - if (par_t == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 282; - type_description_1 = "oocooo"; - goto try_except_handler_2; - } - - tmp_iter_arg_1 = par_t; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 282; - type_description_1 = "oocooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oocooo"; - exception_lineno = 282; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oocooo"; - exception_lineno = 282; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oocooo"; - exception_lineno = 282; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oocooo"; - exception_lineno = 282; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - assert(var_input == NULL); - Py_INCREF(tmp_assign_source_7); - var_input = tmp_assign_source_7; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - assert(var_target == NULL); - Py_INCREF(tmp_assign_source_8); - var_target = tmp_assign_source_8; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - goto branch_end_1; - branch_no_1:; - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_iter_arg_2; - if (par_t == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[141]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 284; - type_description_1 = "oocooo"; - goto try_except_handler_4; - } - - tmp_iter_arg_2 = par_t; - tmp_assign_source_9 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 284; - type_description_1 = "oocooo"; - goto try_except_handler_4; - } - assert(tmp_tuple_unpack_2__source_iter == NULL); - tmp_tuple_unpack_2__source_iter = tmp_assign_source_9; - } - // Tried code: - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_3, 0, 3); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oocooo"; - exception_lineno = 284; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_1 == NULL); - tmp_tuple_unpack_2__element_1 = tmp_assign_source_10; - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_11 = UNPACK_NEXT(tmp_unpack_4, 1, 3); - if (tmp_assign_source_11 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oocooo"; - exception_lineno = 284; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_2 == NULL); - tmp_tuple_unpack_2__element_2 = tmp_assign_source_11; - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_12 = UNPACK_NEXT(tmp_unpack_5, 2, 3); - if (tmp_assign_source_12 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oocooo"; - exception_lineno = 284; - goto try_except_handler_5; - } - assert(tmp_tuple_unpack_2__element_3 == NULL); - tmp_tuple_unpack_2__element_3 = tmp_assign_source_12; - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oocooo"; - exception_lineno = 284; - goto try_except_handler_5; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[88]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oocooo"; - exception_lineno = 284; - goto try_except_handler_5; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_13; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_13 = tmp_tuple_unpack_2__element_1; - assert(var_input == NULL); - Py_INCREF(tmp_assign_source_13); - var_input = tmp_assign_source_13; - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_14 = tmp_tuple_unpack_2__element_2; - assert(var_target == NULL); - Py_INCREF(tmp_assign_source_14); - var_target = tmp_assign_source_14; - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - { - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_tuple_unpack_2__element_3); - tmp_assign_source_15 = tmp_tuple_unpack_2__element_3; - { - PyObject *old = var_weight; - assert(old != NULL); - var_weight = tmp_assign_source_15; - Py_INCREF(var_weight); - Py_DECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_3); - tmp_tuple_unpack_2__element_3 = NULL; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_82970a886f064b131ab3665a56152e30); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_82970a886f064b131ab3665a56152e30); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_82970a886f064b131ab3665a56152e30, exception_lineno); - } else if (exception_tb->tb_frame != &frame_82970a886f064b131ab3665a56152e30->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_82970a886f064b131ab3665a56152e30, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_82970a886f064b131ab3665a56152e30, - type_description_1, - par_self, - par_t, - var__move_to_gpu, - var_weight, - var_input, - var_target - ); - - - // Release cached frame if used for exception. - if (frame_82970a886f064b131ab3665a56152e30 == cache_frame_82970a886f064b131ab3665a56152e30) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_82970a886f064b131ab3665a56152e30); - cache_frame_82970a886f064b131ab3665a56152e30 = NULL; - } - - assertFrameObject(frame_82970a886f064b131ab3665a56152e30); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - { - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(var_input); - tmp_tuple_element_1 = var_input; - tmp_return_value = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_target); - tmp_tuple_element_1 = var_target; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_1); - CHECK_OBJECT(var_weight); - tmp_tuple_element_1 = var_weight; - PyTuple_SET_ITEM0(tmp_return_value, 2, tmp_tuple_element_1); - goto try_return_handler_1; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_t); - par_t = NULL; - CHECK_OBJECT(var__move_to_gpu); - Py_DECREF(var__move_to_gpu); - var__move_to_gpu = NULL; - CHECK_OBJECT(var_weight); - Py_DECREF(var_weight); - var_weight = NULL; - CHECK_OBJECT(var_input); - Py_DECREF(var_input); - var_input = NULL; - CHECK_OBJECT(var_target); - Py_DECREF(var_target); - var_target = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - Py_XDECREF(par_t); - par_t = NULL; - CHECK_OBJECT(var__move_to_gpu); - Py_DECREF(var__move_to_gpu); - var__move_to_gpu = NULL; - Py_XDECREF(var_weight); - var_weight = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__7__split_training_batch$$$function__1__move_to_gpu(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *outline_0_var_x = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_352dba2b9d7b1222f8826ae42880c05b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - struct Nuitka_FrameObject *frame_04ad1e3a156372c06098e0eac6095363_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_04ad1e3a156372c06098e0eac6095363_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_352dba2b9d7b1222f8826ae42880c05b = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_352dba2b9d7b1222f8826ae42880c05b)) { - Py_XDECREF(cache_frame_352dba2b9d7b1222f8826ae42880c05b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_352dba2b9d7b1222f8826ae42880c05b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_352dba2b9d7b1222f8826ae42880c05b = MAKE_FUNCTION_FRAME(codeobj_352dba2b9d7b1222f8826ae42880c05b, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_352dba2b9d7b1222f8826ae42880c05b->m_type_description == NULL); - frame_352dba2b9d7b1222f8826ae42880c05b = cache_frame_352dba2b9d7b1222f8826ae42880c05b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_352dba2b9d7b1222f8826ae42880c05b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_352dba2b9d7b1222f8826ae42880c05b) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - CHECK_OBJECT(par_input); - tmp_isinstance_inst_1 = par_input; - tmp_isinstance_cls_1 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_input); - tmp_isinstance_inst_2 = par_input; - tmp_isinstance_cls_2 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_1 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_tuple_arg_1; - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_input); - tmp_iter_arg_1 = par_input; - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oc"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_04ad1e3a156372c06098e0eac6095363_2)) { - Py_XDECREF(cache_frame_04ad1e3a156372c06098e0eac6095363_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_04ad1e3a156372c06098e0eac6095363_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_04ad1e3a156372c06098e0eac6095363_2 = MAKE_FUNCTION_FRAME(codeobj_04ad1e3a156372c06098e0eac6095363, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_04ad1e3a156372c06098e0eac6095363_2->m_type_description == NULL); - frame_04ad1e3a156372c06098e0eac6095363_2 = cache_frame_04ad1e3a156372c06098e0eac6095363_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_04ad1e3a156372c06098e0eac6095363_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_04ad1e3a156372c06098e0eac6095363_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oc"; - exception_lineno = 273; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_4 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_x; - outline_0_var_x = tmp_assign_source_4; - Py_INCREF(outline_0_var_x); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[138]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 273; - type_description_2 = "oc"; - goto try_except_handler_3; - } - - tmp_called_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(outline_0_var_x); - tmp_args_element_name_1 = outline_0_var_x; - frame_04ad1e3a156372c06098e0eac6095363_2->m_frame.f_lineno = 273; - tmp_append_value_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_2 = "oc"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_2 = "oc"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_2 = "oc"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_tuple_arg_1 = tmp_listcomp_1__contraction; - Py_INCREF(tmp_tuple_arg_1); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_04ad1e3a156372c06098e0eac6095363_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_04ad1e3a156372c06098e0eac6095363_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_04ad1e3a156372c06098e0eac6095363_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_04ad1e3a156372c06098e0eac6095363_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_04ad1e3a156372c06098e0eac6095363_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_04ad1e3a156372c06098e0eac6095363_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_04ad1e3a156372c06098e0eac6095363_2, - type_description_2, - outline_0_var_x, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_04ad1e3a156372c06098e0eac6095363_2 == cache_frame_04ad1e3a156372c06098e0eac6095363_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_04ad1e3a156372c06098e0eac6095363_2); - cache_frame_04ad1e3a156372c06098e0eac6095363_2 = NULL; - } - - assertFrameObject(frame_04ad1e3a156372c06098e0eac6095363_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oc"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_x); - outline_0_var_x = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_x); - outline_0_var_x = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 273; - goto frame_exception_exit_1; - outline_result_1:; - tmp_return_value = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 273; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - int tmp_truth_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[3]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - frame_352dba2b9d7b1222f8826ae42880c05b->m_frame.f_lineno = 275; - tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[15]); - Py_DECREF(tmp_called_instance_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 275; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_call_result_1); - - exception_lineno = 275; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_call_result_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(par_input); - tmp_expression_name_2 = par_input; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[142]); - frame_352dba2b9d7b1222f8826ae42880c05b->m_frame.f_lineno = 276; - tmp_assign_source_5 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_2, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - branch_no_2:; - CHECK_OBJECT(par_input); - tmp_return_value = par_input; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_352dba2b9d7b1222f8826ae42880c05b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_352dba2b9d7b1222f8826ae42880c05b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_352dba2b9d7b1222f8826ae42880c05b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_352dba2b9d7b1222f8826ae42880c05b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_352dba2b9d7b1222f8826ae42880c05b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_352dba2b9d7b1222f8826ae42880c05b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_352dba2b9d7b1222f8826ae42880c05b, - type_description_1, - par_input, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_352dba2b9d7b1222f8826ae42880c05b == cache_frame_352dba2b9d7b1222f8826ae42880c05b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_352dba2b9d7b1222f8826ae42880c05b); - cache_frame_352dba2b9d7b1222f8826ae42880c05b = NULL; - } - - assertFrameObject(frame_352dba2b9d7b1222f8826ae42880c05b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__8__forward_pass(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *par_weight = python_pars[3]; - PyObject *var_output = NULL; - PyObject *var_loss = NULL; - struct Nuitka_FrameObject *frame_679e0a0c00d250e213486c4458b50713; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_679e0a0c00d250e213486c4458b50713 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_679e0a0c00d250e213486c4458b50713)) { - Py_XDECREF(cache_frame_679e0a0c00d250e213486c4458b50713); - -#if _DEBUG_REFCOUNTS - if (cache_frame_679e0a0c00d250e213486c4458b50713 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_679e0a0c00d250e213486c4458b50713 = MAKE_FUNCTION_FRAME(codeobj_679e0a0c00d250e213486c4458b50713, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_679e0a0c00d250e213486c4458b50713->m_type_description == NULL); - frame_679e0a0c00d250e213486c4458b50713 = cache_frame_679e0a0c00d250e213486c4458b50713; - - // Push the new frame as the currently active one. - pushFrameStack(frame_679e0a0c00d250e213486c4458b50713); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_679e0a0c00d250e213486c4458b50713) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[143]); - - if (unlikely(tmp_isinstance_cls_1 == NULL)) { - tmp_isinstance_cls_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[143]); - } - - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 288; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[144]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_input); - tmp_tuple_element_1 = par_input; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[145]); - frame_679e0a0c00d250e213486c4458b50713->m_frame.f_lineno = 290; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 292; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_1 = par_input; - frame_679e0a0c00d250e213486c4458b50713->m_frame.f_lineno = 292; - tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[1], tmp_args_element_name_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 292; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[2]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[146]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_output); - tmp_tuple_element_2 = var_output; - tmp_args_name_2 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[145]); - frame_679e0a0c00d250e213486c4458b50713->m_frame.f_lineno = 294; - tmp_assign_source_3 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_name_2); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 294; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_output; - var_output = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 297; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(par_input); - tmp_args_element_name_2 = par_input; - frame_679e0a0c00d250e213486c4458b50713->m_frame.f_lineno = 297; - tmp_assign_source_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[1], tmp_args_element_name_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_output == NULL); - var_output = tmp_assign_source_4; - } - branch_end_1:; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_weight); - tmp_compexpr_left_1 = par_weight; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 301; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_3 = par_self; - CHECK_OBJECT(var_output); - tmp_args_element_name_3 = var_output; - CHECK_OBJECT(par_target); - tmp_args_element_name_4 = par_target; - frame_679e0a0c00d250e213486c4458b50713->m_frame.f_lineno = 301; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_5 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[36], - call_args - ); - } - - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 301; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_5; - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_instance_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 303; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_self; - CHECK_OBJECT(var_output); - tmp_args_element_name_5 = var_output; - CHECK_OBJECT(par_target); - tmp_args_element_name_6 = par_target; - CHECK_OBJECT(par_weight); - tmp_args_element_name_7 = par_weight; - frame_679e0a0c00d250e213486c4458b50713->m_frame.f_lineno = 303; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_assign_source_6 = CALL_METHOD_WITH_ARGS3( - tmp_called_instance_4, - mod_consts[36], - call_args - ); - } - - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 303; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_loss == NULL); - var_loss = tmp_assign_source_6; - } - branch_end_2:; - { - PyObject *tmp_tuple_element_3; - if (var_output == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[114]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 305; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = var_output; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_3); - CHECK_OBJECT(var_loss); - tmp_tuple_element_3 = var_loss; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_3); - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_679e0a0c00d250e213486c4458b50713); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_679e0a0c00d250e213486c4458b50713); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_679e0a0c00d250e213486c4458b50713); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_679e0a0c00d250e213486c4458b50713, exception_lineno); - } else if (exception_tb->tb_frame != &frame_679e0a0c00d250e213486c4458b50713->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_679e0a0c00d250e213486c4458b50713, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_679e0a0c00d250e213486c4458b50713, - type_description_1, - par_self, - par_input, - par_target, - par_weight, - var_output, - var_loss - ); - - - // Release cached frame if used for exception. - if (frame_679e0a0c00d250e213486c4458b50713 == cache_frame_679e0a0c00d250e213486c4458b50713) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_679e0a0c00d250e213486c4458b50713); - cache_frame_679e0a0c00d250e213486c4458b50713 = NULL; - } - - assertFrameObject(frame_679e0a0c00d250e213486c4458b50713); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(var_output); - var_output = NULL; - CHECK_OBJECT(var_loss); - Py_DECREF(var_loss); - var_loss = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_input); - par_input = NULL; - Py_XDECREF(par_target); - par_target = NULL; - Py_XDECREF(par_weight); - par_weight = NULL; - Py_XDECREF(var_output); - var_output = NULL; - Py_XDECREF(var_loss); - var_loss = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__9__is_best_eval_score(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_eval_score = python_pars[1]; - PyObject *var_is_best = NULL; - struct Nuitka_FrameObject *frame_df09209d792e7f4c0df1ed49cd72d103; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_df09209d792e7f4c0df1ed49cd72d103 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_df09209d792e7f4c0df1ed49cd72d103)) { - Py_XDECREF(cache_frame_df09209d792e7f4c0df1ed49cd72d103); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df09209d792e7f4c0df1ed49cd72d103 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df09209d792e7f4c0df1ed49cd72d103 = MAKE_FUNCTION_FRAME(codeobj_df09209d792e7f4c0df1ed49cd72d103, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df09209d792e7f4c0df1ed49cd72d103->m_type_description == NULL); - frame_df09209d792e7f4c0df1ed49cd72d103 = cache_frame_df09209d792e7f4c0df1ed49cd72d103; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df09209d792e7f4c0df1ed49cd72d103); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df09209d792e7f4c0df1ed49cd72d103) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[49]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 308; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 308; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_eval_score); - tmp_compexpr_left_1 = par_eval_score; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 309; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[52]); - if (tmp_compexpr_right_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 309; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_right_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 309; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_is_best == NULL); - var_is_best = tmp_assign_source_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(par_eval_score); - tmp_compexpr_left_2 = par_eval_score; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[52]); - if (tmp_compexpr_right_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = RICH_COMPARE_LT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_right_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 311; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(var_is_best == NULL); - var_is_best = tmp_assign_source_2; - } - branch_end_1:; - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_2; - CHECK_OBJECT(var_is_best); - tmp_truth_name_2 = CHECK_IF_TRUE(var_is_best); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 313; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[11]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[147]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_eval_score); - tmp_format_value_1 = par_eval_score; - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "ooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 314; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_df09209d792e7f4c0df1ed49cd72d103->m_frame.f_lineno = 314; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 314; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_eval_score); - tmp_assattr_name_1 = par_eval_score; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 315; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[52], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 315; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - branch_no_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df09209d792e7f4c0df1ed49cd72d103); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df09209d792e7f4c0df1ed49cd72d103); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df09209d792e7f4c0df1ed49cd72d103, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df09209d792e7f4c0df1ed49cd72d103->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df09209d792e7f4c0df1ed49cd72d103, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df09209d792e7f4c0df1ed49cd72d103, - type_description_1, - par_self, - par_eval_score, - var_is_best - ); - - - // Release cached frame if used for exception. - if (frame_df09209d792e7f4c0df1ed49cd72d103 == cache_frame_df09209d792e7f4c0df1ed49cd72d103) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df09209d792e7f4c0df1ed49cd72d103); - cache_frame_df09209d792e7f4c0df1ed49cd72d103 = NULL; - } - - assertFrameObject(frame_df09209d792e7f4c0df1ed49cd72d103); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_is_best); - tmp_return_value = var_is_best; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_eval_score); - Py_DECREF(par_eval_score); - par_eval_score = NULL; - CHECK_OBJECT(var_is_best); - Py_DECREF(var_is_best); - var_is_best = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_eval_score); - Py_DECREF(par_eval_score); - par_eval_score = NULL; - Py_XDECREF(var_is_best); - var_is_best = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__10__save_checkpoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_is_best = python_pars[1]; - PyObject *var_state_dict = NULL; - PyObject *var_last_file_path = NULL; - struct Nuitka_FrameObject *frame_8be23cdc34f4ccbd12a114cff9bfa36f; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f)) { - Py_XDECREF(cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f = MAKE_FUNCTION_FRAME(codeobj_8be23cdc34f4ccbd12a114cff9bfa36f, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_type_description == NULL); - frame_8be23cdc34f4ccbd12a114cff9bfa36f = cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8be23cdc34f4ccbd12a114cff9bfa36f); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8be23cdc34f4ccbd12a114cff9bfa36f) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 322; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[9]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 322; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 322; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 323; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[1]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[148]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame.f_lineno = 323; - tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[149]); - Py_DECREF(tmp_called_instance_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 323; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_state_dict == NULL); - var_state_dict = tmp_assign_source_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 325; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[1]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 325; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame.f_lineno = 325; - tmp_assign_source_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[149]); - Py_DECREF(tmp_called_instance_2); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 325; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_state_dict == NULL); - var_state_dict = tmp_assign_source_2; - } - branch_end_1:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_element_name_1; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_2; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[56]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[56]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[57]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[58]); - Py_DECREF(tmp_expression_name_6); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 327; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_8 = par_self; - tmp_args_element_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[43]); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 327; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_2 = mod_consts[150]; - frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame.f_lineno = 327; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assign_source_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 327; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_last_file_path == NULL); - var_last_file_path = tmp_assign_source_3; - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_expression_name_9 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_9 == NULL)) { - tmp_expression_name_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[11]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[151]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_last_file_path); - tmp_format_value_1 = var_last_file_path; - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[152]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_3 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 328; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame.f_lineno = 328; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 328; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_11; - PyObject *tmp_right_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_2; - PyObject *tmp_dict_value_2; - PyObject *tmp_expression_name_15; - tmp_expression_name_10 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67]); - - if (unlikely(tmp_expression_name_10 == NULL)) { - tmp_expression_name_10 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[67]); - } - - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[153]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_dict_key_1 = mod_consts[63]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 331; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_11 = par_self; - tmp_left_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[63]); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 331; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = mod_consts[5]; - tmp_dict_value_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 331; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_2 = _PyDict_NewPresized( 5 ); - { - PyObject *tmp_expression_name_12; - PyObject *tmp_expression_name_13; - PyObject *tmp_called_instance_3; - PyObject *tmp_expression_name_14; - tmp_res = PyDict_SetItem(tmp_tuple_element_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[62]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 332; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_12 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[62]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 332; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_tuple_element_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[154]; - CHECK_OBJECT(var_state_dict); - tmp_dict_value_1 = var_state_dict; - tmp_res = PyDict_SetItem(tmp_tuple_element_2, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[52]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 334; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_13 = par_self; - tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_13, mod_consts[52]); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 334; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_tuple_element_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[155]; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 335; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - - tmp_expression_name_14 = par_self; - tmp_called_instance_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[22]); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame.f_lineno = 335; - tmp_dict_value_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[149]); - Py_DECREF(tmp_called_instance_3); - if (tmp_dict_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 335; - type_description_1 = "oooo"; - goto dict_build_exception_1; - } - tmp_res = PyDict_SetItem(tmp_tuple_element_2, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_value_1); - assert(!(tmp_res != 0)); - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_tuple_element_2); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - tmp_args_name_1 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(par_is_best); - tmp_tuple_element_2 = par_is_best; - PyTuple_SET_ITEM0(tmp_args_name_1, 1, tmp_tuple_element_2); - tmp_dict_key_2 = mod_consts[43]; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 336; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_15 = par_self; - tmp_dict_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_15, mod_consts[43]); - if (tmp_dict_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - - exception_lineno = 336; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_kwargs_name_1 = _PyDict_NewPresized( 1 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_2, tmp_dict_value_2); - Py_DECREF(tmp_dict_value_2); - assert(!(tmp_res != 0)); - frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame.f_lineno = 330; - tmp_call_result_2 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 330; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8be23cdc34f4ccbd12a114cff9bfa36f); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8be23cdc34f4ccbd12a114cff9bfa36f); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8be23cdc34f4ccbd12a114cff9bfa36f, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8be23cdc34f4ccbd12a114cff9bfa36f->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8be23cdc34f4ccbd12a114cff9bfa36f, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8be23cdc34f4ccbd12a114cff9bfa36f, - type_description_1, - par_self, - par_is_best, - var_state_dict, - var_last_file_path - ); - - - // Release cached frame if used for exception. - if (frame_8be23cdc34f4ccbd12a114cff9bfa36f == cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f); - cache_frame_8be23cdc34f4ccbd12a114cff9bfa36f = NULL; - } - - assertFrameObject(frame_8be23cdc34f4ccbd12a114cff9bfa36f); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_is_best); - par_is_best = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - CHECK_OBJECT(var_last_file_path); - Py_DECREF(var_last_file_path); - var_last_file_path = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_is_best); - par_is_best = NULL; - Py_XDECREF(var_state_dict); - var_state_dict = NULL; - Py_XDECREF(var_last_file_path); - var_last_file_path = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__11__log_lr(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_lr = NULL; - struct Nuitka_FrameObject *frame_7e089fb04638902d712e2dd9ab255084; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_7e089fb04638902d712e2dd9ab255084 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7e089fb04638902d712e2dd9ab255084)) { - Py_XDECREF(cache_frame_7e089fb04638902d712e2dd9ab255084); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7e089fb04638902d712e2dd9ab255084 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7e089fb04638902d712e2dd9ab255084 = MAKE_FUNCTION_FRAME(codeobj_7e089fb04638902d712e2dd9ab255084, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7e089fb04638902d712e2dd9ab255084->m_type_description == NULL); - frame_7e089fb04638902d712e2dd9ab255084 = cache_frame_7e089fb04638902d712e2dd9ab255084; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7e089fb04638902d712e2dd9ab255084); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7e089fb04638902d712e2dd9ab255084) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[22]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[121]); - Py_DECREF(tmp_expression_name_3); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[76]; - tmp_expression_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_2); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[122]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_2); - Py_DECREF(tmp_expression_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 339; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - assert(var_lr == NULL); - var_lr = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_7; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = par_self; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[60]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[156]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = mod_consts[157]; - CHECK_OBJECT(var_lr); - tmp_args_element_name_2 = var_lr; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 340; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[62]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 340; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - frame_7e089fb04638902d712e2dd9ab255084->m_frame.f_lineno = 340; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 340; - type_description_1 = "oo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e089fb04638902d712e2dd9ab255084); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7e089fb04638902d712e2dd9ab255084); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7e089fb04638902d712e2dd9ab255084, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7e089fb04638902d712e2dd9ab255084->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7e089fb04638902d712e2dd9ab255084, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7e089fb04638902d712e2dd9ab255084, - type_description_1, - par_self, - var_lr - ); - - - // Release cached frame if used for exception. - if (frame_7e089fb04638902d712e2dd9ab255084 == cache_frame_7e089fb04638902d712e2dd9ab255084) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7e089fb04638902d712e2dd9ab255084); - cache_frame_7e089fb04638902d712e2dd9ab255084 = NULL; - } - - assertFrameObject(frame_7e089fb04638902d712e2dd9ab255084); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_lr); - var_lr = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_lr); - var_lr = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__12__log_stats(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_phase = python_pars[1]; - PyObject *par_loss_avg = python_pars[2]; - PyObject *par_eval_score_avg = python_pars[3]; - PyObject *var_tag_value = NULL; - PyObject *var_tag = NULL; - PyObject *var_value = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_9e7e20790b9ec858dee1abb413b8eb03; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_9e7e20790b9ec858dee1abb413b8eb03 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_9e7e20790b9ec858dee1abb413b8eb03)) { - Py_XDECREF(cache_frame_9e7e20790b9ec858dee1abb413b8eb03); - -#if _DEBUG_REFCOUNTS - if (cache_frame_9e7e20790b9ec858dee1abb413b8eb03 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_9e7e20790b9ec858dee1abb413b8eb03 = MAKE_FUNCTION_FRAME(codeobj_9e7e20790b9ec858dee1abb413b8eb03, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_9e7e20790b9ec858dee1abb413b8eb03->m_type_description == NULL); - frame_9e7e20790b9ec858dee1abb413b8eb03 = cache_frame_9e7e20790b9ec858dee1abb413b8eb03; - - // Push the new frame as the currently active one. - pushFrameStack(frame_9e7e20790b9ec858dee1abb413b8eb03); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_9e7e20790b9ec858dee1abb413b8eb03) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - CHECK_OBJECT(par_phase); - tmp_format_value_1 = par_phase; - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 344; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_string_concat_values_1 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[158]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_dict_key_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_dict_key_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 344; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_loss_avg); - tmp_dict_value_1 = par_loss_avg; - tmp_assign_source_1 = _PyDict_NewPresized( 2 ); - { - PyObject *tmp_string_concat_values_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_key_1); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - CHECK_OBJECT(par_phase); - tmp_format_value_2 = par_phase; - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_2 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - tmp_string_concat_values_2 = PyTuple_New(2); - PyTuple_SET_ITEM(tmp_string_concat_values_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[159]; - PyTuple_SET_ITEM0(tmp_string_concat_values_2, 1, tmp_tuple_element_2); - tmp_dict_key_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_2); - Py_DECREF(tmp_string_concat_values_2); - if (tmp_dict_key_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 345; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - CHECK_OBJECT(par_eval_score_avg); - tmp_dict_value_1 = par_eval_score_avg; - tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1); - Py_DECREF(tmp_dict_key_1); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 343; - type_description_1 = "ooooooo"; - goto dict_build_exception_1; - } - } - goto dict_build_noexception_1; - // Exception handling pass through code for dict_build: - dict_build_exception_1:; - Py_DECREF(tmp_assign_source_1); - goto frame_exception_exit_1; - // Finished with no exception for dict_build: - dict_build_noexception_1:; - assert(var_tag_value == NULL); - var_tag_value = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(var_tag_value); - tmp_called_instance_1 = var_tag_value; - frame_9e7e20790b9ec858dee1abb413b8eb03->m_frame.f_lineno = 348; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[160]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooooo"; - exception_lineno = 348; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_4 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 348; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_6 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_6 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooooooo"; - exception_lineno = 348; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooooooo"; - exception_lineno = 348; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooooooo"; - exception_lineno = 348; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_tag; - var_tag = tmp_assign_source_7; - Py_INCREF(var_tag); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_8; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_value; - var_value = tmp_assign_source_8; - Py_INCREF(var_value); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_2 = par_self; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[60]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[156]); - Py_DECREF(tmp_expression_name_1); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_tag); - tmp_args_element_name_1 = var_tag; - CHECK_OBJECT(var_value); - tmp_args_element_name_2 = var_value; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[62]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - frame_9e7e20790b9ec858dee1abb413b8eb03->m_frame.f_lineno = 349; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 349; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 348; - type_description_1 = "ooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9e7e20790b9ec858dee1abb413b8eb03); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_9e7e20790b9ec858dee1abb413b8eb03); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_9e7e20790b9ec858dee1abb413b8eb03, exception_lineno); - } else if (exception_tb->tb_frame != &frame_9e7e20790b9ec858dee1abb413b8eb03->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_9e7e20790b9ec858dee1abb413b8eb03, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_9e7e20790b9ec858dee1abb413b8eb03, - type_description_1, - par_self, - par_phase, - par_loss_avg, - par_eval_score_avg, - var_tag_value, - var_tag, - var_value - ); - - - // Release cached frame if used for exception. - if (frame_9e7e20790b9ec858dee1abb413b8eb03 == cache_frame_9e7e20790b9ec858dee1abb413b8eb03) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_9e7e20790b9ec858dee1abb413b8eb03); - cache_frame_9e7e20790b9ec858dee1abb413b8eb03 = NULL; - } - - assertFrameObject(frame_9e7e20790b9ec858dee1abb413b8eb03); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_phase); - Py_DECREF(par_phase); - par_phase = NULL; - CHECK_OBJECT(par_loss_avg); - Py_DECREF(par_loss_avg); - par_loss_avg = NULL; - CHECK_OBJECT(par_eval_score_avg); - Py_DECREF(par_eval_score_avg); - par_eval_score_avg = NULL; - Py_XDECREF(var_tag_value); - var_tag_value = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_value); - var_value = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_phase); - Py_DECREF(par_phase); - par_phase = NULL; - CHECK_OBJECT(par_loss_avg); - Py_DECREF(par_loss_avg); - par_loss_avg = NULL; - CHECK_OBJECT(par_eval_score_avg); - Py_DECREF(par_eval_score_avg); - par_eval_score_avg = NULL; - Py_XDECREF(var_tag_value); - var_tag_value = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_value); - var_value = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__13__log_params(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *var_name = NULL; - PyObject *var_value = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_df4bed9de7ea8d66d07ed54a2d73e770; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - static struct Nuitka_FrameObject *cache_frame_df4bed9de7ea8d66d07ed54a2d73e770 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_df4bed9de7ea8d66d07ed54a2d73e770)) { - Py_XDECREF(cache_frame_df4bed9de7ea8d66d07ed54a2d73e770); - -#if _DEBUG_REFCOUNTS - if (cache_frame_df4bed9de7ea8d66d07ed54a2d73e770 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_df4bed9de7ea8d66d07ed54a2d73e770 = MAKE_FUNCTION_FRAME(codeobj_df4bed9de7ea8d66d07ed54a2d73e770, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_df4bed9de7ea8d66d07ed54a2d73e770->m_type_description == NULL); - frame_df4bed9de7ea8d66d07ed54a2d73e770 = cache_frame_df4bed9de7ea8d66d07ed54a2d73e770; - - // Push the new frame as the currently active one. - pushFrameStack(frame_df4bed9de7ea8d66d07ed54a2d73e770); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_df4bed9de7ea8d66d07ed54a2d73e770) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_instance_1; - PyObject *tmp_call_result_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 352; - tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[11], - &PyTuple_GET_ITEM(mod_consts[161], 0) - ); - - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 352; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 353; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[162]); - Py_DECREF(tmp_called_instance_2); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - exception_lineno = 353; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_3; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_3 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_4 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_4 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 353; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_5 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_5 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "ooo"; - exception_lineno = 353; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "ooo"; - exception_lineno = 353; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "ooo"; - exception_lineno = 353; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_6; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_value; - var_value = tmp_assign_source_7; - Py_INCREF(var_value); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = par_self; - tmp_expression_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[60]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[163]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_name); - tmp_args_element_name_1 = var_name; - CHECK_OBJECT(var_value); - tmp_expression_name_4 = var_value; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[164]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 354; - tmp_called_instance_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[7]); - Py_DECREF(tmp_called_instance_4); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 354; - tmp_args_element_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[165]); - Py_DECREF(tmp_called_instance_3); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_5 = par_self; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[62]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 354; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_call_result_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_2); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 354; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_called_instance_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_6; - PyObject *tmp_expression_name_10; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_7 = par_self; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[60]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[163]); - Py_DECREF(tmp_expression_name_6); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (var_name == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_left_name_1 = var_name; - tmp_right_name_1 = mod_consts[167]; - tmp_args_element_name_4 = BINARY_OPERATION_ADD_OBJECT_OBJECT_UNICODE(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (var_value == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[168]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = var_value; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[169]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_called_instance_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[164]); - Py_DECREF(tmp_expression_name_8); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 355; - tmp_called_instance_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[7]); - Py_DECREF(tmp_called_instance_6); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 355; - tmp_args_element_name_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[165]); - Py_DECREF(tmp_called_instance_5); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_expression_name_10 = par_self; - tmp_args_element_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[62]); - if (tmp_args_element_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame.f_lineno = 355; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_6); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 355; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_3); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 353; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df4bed9de7ea8d66d07ed54a2d73e770); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_df4bed9de7ea8d66d07ed54a2d73e770); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_df4bed9de7ea8d66d07ed54a2d73e770, exception_lineno); - } else if (exception_tb->tb_frame != &frame_df4bed9de7ea8d66d07ed54a2d73e770->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_df4bed9de7ea8d66d07ed54a2d73e770, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_df4bed9de7ea8d66d07ed54a2d73e770, - type_description_1, - par_self, - var_name, - var_value - ); - - - // Release cached frame if used for exception. - if (frame_df4bed9de7ea8d66d07ed54a2d73e770 == cache_frame_df4bed9de7ea8d66d07ed54a2d73e770) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_df4bed9de7ea8d66d07ed54a2d73e770); - cache_frame_df4bed9de7ea8d66d07ed54a2d73e770 = NULL; - } - - assertFrameObject(frame_df4bed9de7ea8d66d07ed54a2d73e770); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_value); - var_value = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_value); - var_value = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__14__log_images(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_input = python_pars[1]; - PyObject *par_target = python_pars[2]; - PyObject *par_prediction = python_pars[3]; - PyObject *par_prefix = python_pars[4]; - PyObject *var_net = NULL; - PyObject *var_inputs_map = NULL; - PyObject *var_img_sources = NULL; - PyObject *var_name = NULL; - PyObject *var_batch = NULL; - PyObject *var_i = NULL; - PyObject *var_b = NULL; - PyObject *var_tag = NULL; - PyObject *var_image = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - PyObject *tmp_for_loop_4__for_iterator = NULL; - PyObject *tmp_for_loop_4__iter_value = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - PyObject *tmp_tuple_unpack_2__element_1 = NULL; - PyObject *tmp_tuple_unpack_2__element_2 = NULL; - PyObject *tmp_tuple_unpack_2__source_iter = NULL; - PyObject *tmp_tuple_unpack_3__element_1 = NULL; - PyObject *tmp_tuple_unpack_3__element_2 = NULL; - PyObject *tmp_tuple_unpack_3__source_iter = NULL; - PyObject *tmp_tuple_unpack_4__element_1 = NULL; - PyObject *tmp_tuple_unpack_4__element_2 = NULL; - PyObject *tmp_tuple_unpack_4__source_iter = NULL; - struct Nuitka_FrameObject *frame_5df64318cfa84c6f19b9d56dc86b4324; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - bool tmp_result; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - PyObject *exception_keeper_type_10; - PyObject *exception_keeper_value_10; - PyTracebackObject *exception_keeper_tb_10; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_11; - PyObject *exception_keeper_value_11; - PyTracebackObject *exception_keeper_tb_11; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; - PyObject *exception_keeper_type_12; - PyObject *exception_keeper_value_12; - PyTracebackObject *exception_keeper_tb_12; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; - static struct Nuitka_FrameObject *cache_frame_5df64318cfa84c6f19b9d56dc86b4324 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_13; - PyObject *exception_keeper_value_13; - PyTracebackObject *exception_keeper_tb_13; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5df64318cfa84c6f19b9d56dc86b4324)) { - Py_XDECREF(cache_frame_5df64318cfa84c6f19b9d56dc86b4324); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5df64318cfa84c6f19b9d56dc86b4324 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5df64318cfa84c6f19b9d56dc86b4324 = MAKE_FUNCTION_FRAME(codeobj_5df64318cfa84c6f19b9d56dc86b4324, module_models$unet3d$trainer, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5df64318cfa84c6f19b9d56dc86b4324->m_type_description == NULL); - frame_5df64318cfa84c6f19b9d56dc86b4324 = cache_frame_5df64318cfa84c6f19b9d56dc86b4324; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5df64318cfa84c6f19b9d56dc86b4324); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5df64318cfa84c6f19b9d56dc86b4324) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_isinstance_inst_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[8]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[8]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 359; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[9]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_isinstance_inst_1); - - exception_lineno = 359; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_inst_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 359; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 360; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[1]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[148]); - Py_DECREF(tmp_expression_name_3); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 360; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_net == NULL); - var_net = tmp_assign_source_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_expression_name_5; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 362; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_self; - tmp_assign_source_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[1]); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 362; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - assert(var_net == NULL); - var_net = tmp_assign_source_2; - } - branch_end_1:; - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(var_net); - tmp_expression_name_6 = var_net; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[170]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 364; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - if (var_net == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[171]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 365; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_1 = var_net; - CHECK_OBJECT(par_prediction); - tmp_args_element_name_1 = par_prediction; - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 365; - tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[170], tmp_args_element_name_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 365; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_prediction; - par_prediction = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - branch_no_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_dict_key_1 = mod_consts[172]; - CHECK_OBJECT(par_input); - tmp_dict_value_1 = par_input; - tmp_assign_source_4 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_assign_source_4, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[173]; - CHECK_OBJECT(par_target); - tmp_dict_value_1 = par_target; - tmp_res = PyDict_SetItem(tmp_assign_source_4, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[174]; - CHECK_OBJECT(par_prediction); - tmp_dict_value_1 = par_prediction; - tmp_res = PyDict_SetItem(tmp_assign_source_4, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - assert(var_inputs_map == NULL); - var_inputs_map = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - tmp_assign_source_5 = PyDict_New(); - assert(var_img_sources == NULL); - var_img_sources = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_2; - CHECK_OBJECT(var_inputs_map); - tmp_called_instance_2 = var_inputs_map; - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 373; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[160]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 373; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_6 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 373; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_6; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_7 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_7 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - exception_lineno = 373; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_2; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_iter_arg_2 = tmp_for_loop_1__iter_value; - tmp_assign_source_8 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 373; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = tmp_tuple_unpack_1__source_iter; - tmp_tuple_unpack_1__source_iter = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_9; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_9 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_9 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 373; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_1; - tmp_tuple_unpack_1__element_1 = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_10 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_10 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 373; - goto try_except_handler_4; - } - { - PyObject *old = tmp_tuple_unpack_1__element_2; - tmp_tuple_unpack_1__element_2 = tmp_assign_source_10; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 373; - goto try_except_handler_4; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 373; - goto try_except_handler_4; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_3; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_2; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_11; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_11 = tmp_tuple_unpack_1__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_11; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_12; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_12 = tmp_tuple_unpack_1__element_2; - { - PyObject *old = var_batch; - var_batch = tmp_assign_source_12; - Py_INCREF(var_batch); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_3; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - PyObject *tmp_isinstance_inst_3; - PyObject *tmp_isinstance_cls_3; - CHECK_OBJECT(var_batch); - tmp_isinstance_inst_2 = var_batch; - tmp_isinstance_cls_2 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - tmp_or_left_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(var_batch); - tmp_isinstance_inst_3 = var_batch; - tmp_isinstance_cls_3 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_3, tmp_isinstance_cls_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 374; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - tmp_or_right_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_3 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_3 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_iter_arg_3; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_2; - tmp_called_name_1 = (PyObject *)&PyEnum_Type; - CHECK_OBJECT(var_batch); - tmp_args_element_name_2 = var_batch; - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 375; - tmp_iter_arg_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_13 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_13; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_14; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_14 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_14 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - exception_lineno = 375; - goto try_except_handler_5; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_14; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_15; - PyObject *tmp_iter_arg_4; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_iter_arg_4 = tmp_for_loop_2__iter_value; - tmp_assign_source_15 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_4); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_6; - } - { - PyObject *old = tmp_tuple_unpack_2__source_iter; - tmp_tuple_unpack_2__source_iter = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_16; - PyObject *tmp_unpack_3; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_16 = UNPACK_NEXT(tmp_unpack_3, 0, 2); - if (tmp_assign_source_16 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 375; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__element_1; - tmp_tuple_unpack_2__element_1 = tmp_assign_source_16; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_unpack_4; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; - tmp_assign_source_17 = UNPACK_NEXT(tmp_unpack_4, 1, 2); - if (tmp_assign_source_17 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 375; - goto try_except_handler_7; - } - { - PyObject *old = tmp_tuple_unpack_2__element_2; - tmp_tuple_unpack_2__element_2 = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_2; - CHECK_OBJECT(tmp_tuple_unpack_2__source_iter); - tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_2); assert(HAS_ITERNEXT(tmp_iterator_name_2)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_2)->tp_iternext)(tmp_iterator_name_2); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 375; - goto try_except_handler_7; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 375; - goto try_except_handler_7; - } - } - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_6; - // End of try: - try_end_3:; - goto try_end_4; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - try_end_4:; - Py_XDECREF(tmp_tuple_unpack_2__source_iter); - tmp_tuple_unpack_2__source_iter = NULL; - { - PyObject *tmp_assign_source_18; - CHECK_OBJECT(tmp_tuple_unpack_2__element_1); - tmp_assign_source_18 = tmp_tuple_unpack_2__element_1; - { - PyObject *old = var_i; - var_i = tmp_assign_source_18; - Py_INCREF(var_i); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - - { - PyObject *tmp_assign_source_19; - CHECK_OBJECT(tmp_tuple_unpack_2__element_2); - tmp_assign_source_19 = tmp_tuple_unpack_2__element_2; - { - PyObject *old = var_b; - var_b = tmp_assign_source_19; - Py_INCREF(var_b); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_2__element_1); - tmp_tuple_unpack_2__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_2__element_2); - tmp_tuple_unpack_2__element_2 = NULL; - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_called_instance_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - CHECK_OBJECT(var_b); - tmp_expression_name_7 = var_b; - tmp_called_instance_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[164]); - if (tmp_called_instance_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 376; - tmp_called_instance_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[7]); - Py_DECREF(tmp_called_instance_4); - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 376; - tmp_ass_subvalue_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[165]); - Py_DECREF(tmp_called_instance_3); - if (tmp_ass_subvalue_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - if (var_img_sources == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[175]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - - tmp_ass_subscribed_1 = var_img_sources; - if (var_name == NULL) { - Py_DECREF(tmp_ass_subvalue_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[166]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - - tmp_format_value_1 = var_name; - tmp_format_spec_1 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_2; - PyObject *tmp_format_spec_2; - PyTuple_SET_ITEM(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_i); - tmp_format_value_2 = var_i; - tmp_format_spec_2 = mod_consts[13]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_2, tmp_format_spec_2); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_ass_subvalue_1); - Py_DECREF(tmp_string_concat_values_1); - goto try_except_handler_5; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_ass_subscript_1 = PyUnicode_Join(mod_consts[13], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_ass_subscript_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_ass_subvalue_1); - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - Py_DECREF(tmp_ass_subscript_1); - Py_DECREF(tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 376; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 375; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_5; - } - goto loop_start_2; - loop_end_2:; - goto try_end_5; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto try_except_handler_2; - // End of try: - try_end_5:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - goto branch_end_3; - branch_no_3:; - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_called_instance_5; - PyObject *tmp_called_instance_6; - PyObject *tmp_expression_name_8; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - CHECK_OBJECT(var_batch); - tmp_expression_name_8 = var_batch; - tmp_called_instance_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[164]); - if (tmp_called_instance_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 378; - tmp_called_instance_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[7]); - Py_DECREF(tmp_called_instance_6); - if (tmp_called_instance_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 378; - tmp_ass_subvalue_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[165]); - Py_DECREF(tmp_called_instance_5); - if (tmp_ass_subvalue_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - if (var_img_sources == NULL) { - Py_DECREF(tmp_ass_subvalue_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[175]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 378; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - - tmp_ass_subscribed_2 = var_img_sources; - CHECK_OBJECT(var_name); - tmp_ass_subscript_2 = var_name; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subvalue_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 378; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - } - branch_end_3:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 373; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_6; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_6:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_assign_source_20; - PyObject *tmp_iter_arg_5; - PyObject *tmp_called_instance_7; - if (var_img_sources == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[175]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 380; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_7 = var_img_sources; - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 380; - tmp_iter_arg_5 = CALL_METHOD_NO_ARGS(tmp_called_instance_7, mod_consts[160]); - if (tmp_iter_arg_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_20 = MAKE_ITERATOR(tmp_iter_arg_5); - Py_DECREF(tmp_iter_arg_5); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "oooooooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_20; - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_21; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_21 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_21 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - exception_lineno = 380; - goto try_except_handler_8; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_21; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_22; - PyObject *tmp_iter_arg_6; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_iter_arg_6 = tmp_for_loop_3__iter_value; - tmp_assign_source_22 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_6); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_9; - } - { - PyObject *old = tmp_tuple_unpack_3__source_iter; - tmp_tuple_unpack_3__source_iter = tmp_assign_source_22; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_23; - PyObject *tmp_unpack_5; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_5 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_23 = UNPACK_NEXT(tmp_unpack_5, 0, 2); - if (tmp_assign_source_23 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 380; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__element_1; - tmp_tuple_unpack_3__element_1 = tmp_assign_source_23; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_24; - PyObject *tmp_unpack_6; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_unpack_6 = tmp_tuple_unpack_3__source_iter; - tmp_assign_source_24 = UNPACK_NEXT(tmp_unpack_6, 1, 2); - if (tmp_assign_source_24 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 380; - goto try_except_handler_10; - } - { - PyObject *old = tmp_tuple_unpack_3__element_2; - tmp_tuple_unpack_3__element_2 = tmp_assign_source_24; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_3; - CHECK_OBJECT(tmp_tuple_unpack_3__source_iter); - tmp_iterator_name_3 = tmp_tuple_unpack_3__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_3); assert(HAS_ITERNEXT(tmp_iterator_name_3)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_3)->tp_iternext)(tmp_iterator_name_3); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 380; - goto try_except_handler_10; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 380; - goto try_except_handler_10; - } - } - goto try_end_7; - // Exception handler code: - try_except_handler_10:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_9; - // End of try: - try_end_7:; - goto try_end_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto try_except_handler_8; - // End of try: - try_end_8:; - Py_XDECREF(tmp_tuple_unpack_3__source_iter); - tmp_tuple_unpack_3__source_iter = NULL; - { - PyObject *tmp_assign_source_25; - CHECK_OBJECT(tmp_tuple_unpack_3__element_1); - tmp_assign_source_25 = tmp_tuple_unpack_3__element_1; - { - PyObject *old = var_name; - var_name = tmp_assign_source_25; - Py_INCREF(var_name); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - - { - PyObject *tmp_assign_source_26; - CHECK_OBJECT(tmp_tuple_unpack_3__element_2); - tmp_assign_source_26 = tmp_tuple_unpack_3__element_2; - { - PyObject *old = var_batch; - var_batch = tmp_assign_source_26; - Py_INCREF(var_batch); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_3__element_1); - tmp_tuple_unpack_3__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_3__element_2); - tmp_tuple_unpack_3__element_2 = NULL; - { - PyObject *tmp_assign_source_27; - PyObject *tmp_iter_arg_7; - PyObject *tmp_called_instance_8; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 381; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_8; - } - - tmp_called_instance_8 = par_self; - CHECK_OBJECT(var_name); - tmp_args_element_name_3 = var_name; - CHECK_OBJECT(var_batch); - tmp_args_element_name_4 = var_batch; - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 381; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_iter_arg_7 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_8, - mod_consts[39], - call_args - ); - } - - if (tmp_iter_arg_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 381; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_8; - } - tmp_assign_source_27 = MAKE_ITERATOR(tmp_iter_arg_7); - Py_DECREF(tmp_iter_arg_7); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 381; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_8; - } - { - PyObject *old = tmp_for_loop_4__for_iterator; - tmp_for_loop_4__for_iterator = tmp_assign_source_27; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_4:; - { - PyObject *tmp_next_source_4; - PyObject *tmp_assign_source_28; - CHECK_OBJECT(tmp_for_loop_4__for_iterator); - tmp_next_source_4 = tmp_for_loop_4__for_iterator; - tmp_assign_source_28 = ITERATOR_NEXT(tmp_next_source_4); - if (tmp_assign_source_28 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_4; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooooooo"; - exception_lineno = 381; - goto try_except_handler_11; - } - } - - { - PyObject *old = tmp_for_loop_4__iter_value; - tmp_for_loop_4__iter_value = tmp_assign_source_28; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_29; - PyObject *tmp_iter_arg_8; - CHECK_OBJECT(tmp_for_loop_4__iter_value); - tmp_iter_arg_8 = tmp_for_loop_4__iter_value; - tmp_assign_source_29 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_8); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 381; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_12; - } - { - PyObject *old = tmp_tuple_unpack_4__source_iter; - tmp_tuple_unpack_4__source_iter = tmp_assign_source_29; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_30; - PyObject *tmp_unpack_7; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_7 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_30 = UNPACK_NEXT(tmp_unpack_7, 0, 2); - if (tmp_assign_source_30 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 381; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_1; - tmp_tuple_unpack_4__element_1 = tmp_assign_source_30; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_31; - PyObject *tmp_unpack_8; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_unpack_8 = tmp_tuple_unpack_4__source_iter; - tmp_assign_source_31 = UNPACK_NEXT(tmp_unpack_8, 1, 2); - if (tmp_assign_source_31 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooooooooooooo"; - exception_lineno = 381; - goto try_except_handler_13; - } - { - PyObject *old = tmp_tuple_unpack_4__element_2; - tmp_tuple_unpack_4__element_2 = tmp_assign_source_31; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_iterator_name_4; - CHECK_OBJECT(tmp_tuple_unpack_4__source_iter); - tmp_iterator_name_4 = tmp_tuple_unpack_4__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_4); assert(HAS_ITERNEXT(tmp_iterator_name_4)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_4)->tp_iternext)(tmp_iterator_name_4); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooooooooooooo"; - exception_lineno = 381; - goto try_except_handler_13; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[90]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooooooooooooo"; - exception_lineno = 381; - goto try_except_handler_13; - } - } - goto try_end_9; - // Exception handler code: - try_except_handler_13:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto try_except_handler_12; - // End of try: - try_end_9:; - goto try_end_10; - // Exception handler code: - try_except_handler_12:; - exception_keeper_type_10 = exception_type; - exception_keeper_value_10 = exception_value; - exception_keeper_tb_10 = exception_tb; - exception_keeper_lineno_10 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_10; - exception_value = exception_keeper_value_10; - exception_tb = exception_keeper_tb_10; - exception_lineno = exception_keeper_lineno_10; - - goto try_except_handler_11; - // End of try: - try_end_10:; - Py_XDECREF(tmp_tuple_unpack_4__source_iter); - tmp_tuple_unpack_4__source_iter = NULL; - { - PyObject *tmp_assign_source_32; - CHECK_OBJECT(tmp_tuple_unpack_4__element_1); - tmp_assign_source_32 = tmp_tuple_unpack_4__element_1; - { - PyObject *old = var_tag; - var_tag = tmp_assign_source_32; - Py_INCREF(var_tag); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - - { - PyObject *tmp_assign_source_33; - CHECK_OBJECT(tmp_tuple_unpack_4__element_2); - tmp_assign_source_33 = tmp_tuple_unpack_4__element_2; - { - PyObject *old = var_image; - var_image = tmp_assign_source_33; - Py_INCREF(var_image); - Py_XDECREF(old); - } - - } - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_4__element_1); - tmp_tuple_unpack_4__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_4__element_2); - tmp_tuple_unpack_4__element_2 = NULL; - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_expression_name_10; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_args_element_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_expression_name_11; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - - tmp_expression_name_10 = par_self; - tmp_expression_name_9 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[60]); - if (tmp_expression_name_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[176]); - Py_DECREF(tmp_expression_name_9); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - if (par_prefix == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[177]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - - tmp_left_name_1 = par_prefix; - CHECK_OBJECT(var_tag); - tmp_right_name_1 = var_tag; - tmp_args_element_name_5 = BINARY_OPERATION_ADD_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - if (tmp_args_element_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - CHECK_OBJECT(var_image); - tmp_args_element_name_6 = var_image; - if (par_self == NULL) { - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[69]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - - tmp_expression_name_11 = par_self; - tmp_args_element_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[62]); - if (tmp_args_element_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame.f_lineno = 382; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6, tmp_args_element_name_7}; - tmp_call_result_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - Py_DECREF(tmp_args_element_name_7); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 382; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 381; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_11; - } - goto loop_start_4; - loop_end_4:; - goto try_end_11; - // Exception handler code: - try_except_handler_11:; - exception_keeper_type_11 = exception_type; - exception_keeper_value_11 = exception_value; - exception_keeper_tb_11 = exception_tb; - exception_keeper_lineno_11 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_11; - exception_value = exception_keeper_value_11; - exception_tb = exception_keeper_tb_11; - exception_lineno = exception_keeper_lineno_11; - - goto try_except_handler_8; - // End of try: - try_end_11:; - Py_XDECREF(tmp_for_loop_4__iter_value); - tmp_for_loop_4__iter_value = NULL; - Py_XDECREF(tmp_for_loop_4__for_iterator); - tmp_for_loop_4__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 380; - type_description_1 = "oooooooooooooo"; - goto try_except_handler_8; - } - goto loop_start_3; - loop_end_3:; - goto try_end_12; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_12 = exception_type; - exception_keeper_value_12 = exception_value; - exception_keeper_tb_12 = exception_tb; - exception_keeper_lineno_12 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_12; - exception_value = exception_keeper_value_12; - exception_tb = exception_keeper_tb_12; - exception_lineno = exception_keeper_lineno_12; - - goto frame_exception_exit_1; - // End of try: - try_end_12:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5df64318cfa84c6f19b9d56dc86b4324); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5df64318cfa84c6f19b9d56dc86b4324); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5df64318cfa84c6f19b9d56dc86b4324, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5df64318cfa84c6f19b9d56dc86b4324->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5df64318cfa84c6f19b9d56dc86b4324, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5df64318cfa84c6f19b9d56dc86b4324, - type_description_1, - par_self, - par_input, - par_target, - par_prediction, - par_prefix, - var_net, - var_inputs_map, - var_img_sources, - var_name, - var_batch, - var_i, - var_b, - var_tag, - var_image - ); - - - // Release cached frame if used for exception. - if (frame_5df64318cfa84c6f19b9d56dc86b4324 == cache_frame_5df64318cfa84c6f19b9d56dc86b4324) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5df64318cfa84c6f19b9d56dc86b4324); - cache_frame_5df64318cfa84c6f19b9d56dc86b4324 = NULL; - } - - assertFrameObject(frame_5df64318cfa84c6f19b9d56dc86b4324); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - CHECK_OBJECT(par_prediction); - Py_DECREF(par_prediction); - par_prediction = NULL; - Py_XDECREF(par_prefix); - par_prefix = NULL; - Py_XDECREF(var_net); - var_net = NULL; - Py_XDECREF(var_inputs_map); - var_inputs_map = NULL; - Py_XDECREF(var_img_sources); - var_img_sources = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_batch); - var_batch = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_b); - var_b = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_image); - var_image = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_13 = exception_type; - exception_keeper_value_13 = exception_value; - exception_keeper_tb_13 = exception_tb; - exception_keeper_lineno_13 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_input); - Py_DECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_target); - Py_DECREF(par_target); - par_target = NULL; - Py_XDECREF(par_prediction); - par_prediction = NULL; - Py_XDECREF(par_prefix); - par_prefix = NULL; - Py_XDECREF(var_net); - var_net = NULL; - Py_XDECREF(var_inputs_map); - var_inputs_map = NULL; - Py_XDECREF(var_img_sources); - var_img_sources = NULL; - Py_XDECREF(var_name); - var_name = NULL; - Py_XDECREF(var_batch); - var_batch = NULL; - Py_XDECREF(var_i); - var_i = NULL; - Py_XDECREF(var_b); - var_b = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_image); - var_image = NULL; - // Re-raise. - exception_type = exception_keeper_type_13; - exception_value = exception_keeper_value_13; - exception_tb = exception_keeper_tb_13; - exception_lineno = exception_keeper_lineno_13; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$trainer$$$function__15__batch_size(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - struct Nuitka_FrameObject *frame_d2fd80325bfa2f1b7242446889780691; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - int tmp_res; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_d2fd80325bfa2f1b7242446889780691 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d2fd80325bfa2f1b7242446889780691)) { - Py_XDECREF(cache_frame_d2fd80325bfa2f1b7242446889780691); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d2fd80325bfa2f1b7242446889780691 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d2fd80325bfa2f1b7242446889780691 = MAKE_FUNCTION_FRAME(codeobj_d2fd80325bfa2f1b7242446889780691, module_models$unet3d$trainer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d2fd80325bfa2f1b7242446889780691->m_type_description == NULL); - frame_d2fd80325bfa2f1b7242446889780691 = cache_frame_d2fd80325bfa2f1b7242446889780691; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d2fd80325bfa2f1b7242446889780691); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d2fd80325bfa2f1b7242446889780691) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_or_left_truth_1; - nuitka_bool tmp_or_left_value_1; - nuitka_bool tmp_or_right_value_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_isinstance_inst_2; - PyObject *tmp_isinstance_cls_2; - CHECK_OBJECT(par_input); - tmp_isinstance_inst_1 = par_input; - tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_or_left_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - CHECK_OBJECT(par_input); - tmp_isinstance_inst_2 = par_input; - tmp_isinstance_cls_2 = (PyObject *)&PyTuple_Type; - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_2, tmp_isinstance_cls_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 386; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_or_right_value_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - tmp_condition_result_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_condition_result_1 = tmp_or_left_value_1; - or_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_input); - tmp_expression_name_1 = par_input; - tmp_subscript_name_1 = mod_consts[76]; - tmp_called_instance_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_d2fd80325bfa2f1b7242446889780691->m_frame.f_lineno = 387; - tmp_return_value = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[178], - &PyTuple_GET_ITEM(mod_consts[179], 0) - ); - - Py_DECREF(tmp_called_instance_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 387; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_called_instance_2; - CHECK_OBJECT(par_input); - tmp_called_instance_2 = par_input; - frame_d2fd80325bfa2f1b7242446889780691->m_frame.f_lineno = 389; - tmp_return_value = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[178], - &PyTuple_GET_ITEM(mod_consts[179], 0) - ); - - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 389; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2fd80325bfa2f1b7242446889780691); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2fd80325bfa2f1b7242446889780691); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d2fd80325bfa2f1b7242446889780691); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d2fd80325bfa2f1b7242446889780691, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d2fd80325bfa2f1b7242446889780691->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d2fd80325bfa2f1b7242446889780691, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d2fd80325bfa2f1b7242446889780691, - type_description_1, - par_input - ); - - - // Release cached frame if used for exception. - if (frame_d2fd80325bfa2f1b7242446889780691 == cache_frame_d2fd80325bfa2f1b7242446889780691) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d2fd80325bfa2f1b7242446889780691); - cache_frame_d2fd80325bfa2f1b7242446889780691 = NULL; - } - - assertFrameObject(frame_d2fd80325bfa2f1b7242446889780691); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__10__save_checkpoint() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__10__save_checkpoint, - mod_consts[106], -#if PYTHON_VERSION >= 0x300 - mod_consts[227], -#endif - codeobj_8be23cdc34f4ccbd12a114cff9bfa36f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__11__log_lr() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__11__log_lr, - mod_consts[103], -#if PYTHON_VERSION >= 0x300 - mod_consts[228], -#endif - codeobj_7e089fb04638902d712e2dd9ab255084, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__12__log_stats() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__12__log_stats, - mod_consts[112], -#if PYTHON_VERSION >= 0x300 - mod_consts[229], -#endif - codeobj_9e7e20790b9ec858dee1abb413b8eb03, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__13__log_params() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__13__log_params, - mod_consts[230], -#if PYTHON_VERSION >= 0x300 - mod_consts[231], -#endif - codeobj_df4bed9de7ea8d66d07ed54a2d73e770, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__14__log_images(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__14__log_images, - mod_consts[113], -#if PYTHON_VERSION >= 0x300 - mod_consts[233], -#endif - codeobj_5df64318cfa84c6f19b9d56dc86b4324, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__15__batch_size() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__15__batch_size, - mod_consts[94], -#if PYTHON_VERSION >= 0x300 - mod_consts[235], -#endif - codeobj_d2fd80325bfa2f1b7242446889780691, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__1_create_trainer() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__1_create_trainer, - mod_consts[203], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_367f1ec5677a1070c420d7e55ef048ba, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__2___init__(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__2___init__, - mod_consts[216], -#if PYTHON_VERSION >= 0x300 - mod_consts[217], -#endif - codeobj_1fda2356add5cef06c5f38cfbb8de0b0, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__3_fit() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__3_fit, - mod_consts[218], -#if PYTHON_VERSION >= 0x300 - mod_consts[219], -#endif - codeobj_ae7a9d019f1e7da12684da1a55b62954, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__4_train() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__4_train, - mod_consts[78], -#if PYTHON_VERSION >= 0x300 - mod_consts[220], -#endif - codeobj_3246d6e09a496cdc8bb1ac88ce4466c4, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - mod_consts[117], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__5_should_stop() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__5_should_stop, - mod_consts[116], -#if PYTHON_VERSION >= 0x300 - mod_consts[221], -#endif - codeobj_80455a89ff7fcc6672604e1c637cb72f, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - mod_consts[124], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__6_validate() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__6_validate, - mod_consts[101], -#if PYTHON_VERSION >= 0x300 - mod_consts[222], -#endif - codeobj_5bc2244797d8e33afde5d46faa217998, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__7__split_training_batch() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__7__split_training_batch, - mod_consts[87], -#if PYTHON_VERSION >= 0x300 - mod_consts[223], -#endif - codeobj_82970a886f064b131ab3665a56152e30, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__7__split_training_batch$$$function__1__move_to_gpu(struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__7__split_training_batch$$$function__1__move_to_gpu, - mod_consts[138], -#if PYTHON_VERSION >= 0x300 - mod_consts[139], -#endif - codeobj_352dba2b9d7b1222f8826ae42880c05b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__8__forward_pass(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__8__forward_pass, - mod_consts[89], -#if PYTHON_VERSION >= 0x300 - mod_consts[225], -#endif - codeobj_679e0a0c00d250e213486c4458b50713, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$trainer$$$function__9__is_best_eval_score() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$trainer$$$function__9__is_best_eval_score, - mod_consts[104], -#if PYTHON_VERSION >= 0x300 - mod_consts[226], -#endif - codeobj_df09209d792e7f4c0df1ed49cd72d103, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$trainer, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$trainer[] = { - impl_models$unet3d$trainer$$$function__7__split_training_batch$$$function__1__move_to_gpu, - impl_models$unet3d$trainer$$$function__1_create_trainer, - impl_models$unet3d$trainer$$$function__2___init__, - impl_models$unet3d$trainer$$$function__3_fit, - impl_models$unet3d$trainer$$$function__4_train, - impl_models$unet3d$trainer$$$function__5_should_stop, - impl_models$unet3d$trainer$$$function__6_validate, - impl_models$unet3d$trainer$$$function__7__split_training_batch, - impl_models$unet3d$trainer$$$function__8__forward_pass, - impl_models$unet3d$trainer$$$function__9__is_best_eval_score, - impl_models$unet3d$trainer$$$function__10__save_checkpoint, - impl_models$unet3d$trainer$$$function__11__log_lr, - impl_models$unet3d$trainer$$$function__12__log_stats, - impl_models$unet3d$trainer$$$function__13__log_params, - impl_models$unet3d$trainer$$$function__14__log_images, - impl_models$unet3d$trainer$$$function__15__batch_size, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$trainer; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$trainer) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$trainer[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$trainer, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$trainer(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$trainer = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.trainer: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.trainer: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.trainer: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$trainer\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$trainer = MODULE_DICT(module_models$unet3d$trainer); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$trainer, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$trainer, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$trainer, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$trainer, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$trainer, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$trainer); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$trainer); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_import_from_1__module = NULL; - PyObject *tmp_import_from_2__module = NULL; - struct Nuitka_FrameObject *frame_d757c9bc66e1e7ac50c77ad751d1efeb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$trainer$$$class__1_UNetTrainer_59 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_b7ea1a994d7a1881fce465ad551ac96b_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[180], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[181], tmp_assign_source_2); - } - // Frame without reuse. - frame_d757c9bc66e1e7ac50c77ad751d1efeb = MAKE_MODULE_FRAME(codeobj_d757c9bc66e1e7ac50c77ad751d1efeb, module_models$unet3d$trainer); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_d757c9bc66e1e7ac50c77ad751d1efeb); - assert(Py_REFCNT(frame_d757c9bc66e1e7ac50c77ad751d1efeb) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[182]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[182]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[183], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[182]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[182]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[184], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[185], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_4 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[56], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[2]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 3; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 3; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[2], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[186]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 4; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_6 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[8], - mod_consts[76] - ); - } else { - tmp_assign_source_6 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[8]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[8], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_import_name_from_2; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[187]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = mod_consts[188]; - tmp_level_name_3 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 5; - tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_import_name_from_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_2)) { - tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_2, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[102], - mod_consts[76] - ); - } else { - tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[102]); - } - - Py_DECREF(tmp_import_name_from_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 5; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[102], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_import_name_from_3; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[189]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = mod_consts[190]; - tmp_level_name_4 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 6; - tmp_import_name_from_3 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_import_name_from_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_3)) { - tmp_assign_source_8 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_3, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[54], - mod_consts[76] - ); - } else { - tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[54]); - } - - Py_DECREF(tmp_import_name_from_3); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 6; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[54], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_import_name_from_4; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[191]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = mod_consts[192]; - tmp_level_name_5 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 8; - tmp_import_name_from_4 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_import_name_from_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_4)) { - tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_4, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[20], - mod_consts[76] - ); - } else { - tmp_assign_source_9 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[20]); - } - - Py_DECREF(tmp_import_name_from_4); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_import_name_from_5; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[193]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[194]; - tmp_level_name_6 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 9; - tmp_import_name_from_5 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_5)) { - tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_5, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[18], - mod_consts[76] - ); - } else { - tmp_assign_source_10 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[18]); - } - - Py_DECREF(tmp_import_name_from_5); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[18], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_import_name_from_6; - PyObject *tmp_name_name_7; - PyObject *tmp_globals_arg_name_7; - PyObject *tmp_locals_arg_name_7; - PyObject *tmp_fromlist_name_7; - PyObject *tmp_level_name_7; - tmp_name_name_7 = mod_consts[195]; - tmp_globals_arg_name_7 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_7 = Py_None; - tmp_fromlist_name_7 = mod_consts[196]; - tmp_level_name_7 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 10; - tmp_import_name_from_6 = IMPORT_MODULE5(tmp_name_name_7, tmp_globals_arg_name_7, tmp_locals_arg_name_7, tmp_fromlist_name_7, tmp_level_name_7); - if (tmp_import_name_from_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_6)) { - tmp_assign_source_11 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_6, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[19], - mod_consts[76] - ); - } else { - tmp_assign_source_11 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[19]); - } - - Py_DECREF(tmp_import_name_from_6); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[19], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_name_name_8; - PyObject *tmp_globals_arg_name_8; - PyObject *tmp_locals_arg_name_8; - PyObject *tmp_fromlist_name_8; - PyObject *tmp_level_name_8; - tmp_name_name_8 = mod_consts[197]; - tmp_globals_arg_name_8 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_8 = Py_None; - tmp_fromlist_name_8 = mod_consts[198]; - tmp_level_name_8 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 11; - tmp_assign_source_12 = IMPORT_MODULE5(tmp_name_name_8, tmp_globals_arg_name_8, tmp_locals_arg_name_8, tmp_fromlist_name_8, tmp_level_name_8); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_1__module == NULL); - tmp_import_from_1__module = tmp_assign_source_12; - } - // Tried code: - { - PyObject *tmp_assign_source_13; - PyObject *tmp_import_name_from_7; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_7 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_7)) { - tmp_assign_source_13 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_7, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[0], - mod_consts[76] - ); - } else { - tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[0]); - } - - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_import_name_from_8; - CHECK_OBJECT(tmp_import_from_1__module); - tmp_import_name_from_8 = tmp_import_from_1__module; - if (PyModule_Check(tmp_import_name_from_8)) { - tmp_assign_source_14 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_8, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[143], - mod_consts[76] - ); - } else { - tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[143]); - } - - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 11; - - goto try_except_handler_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[143], tmp_assign_source_14); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_import_from_1__module); - Py_DECREF(tmp_import_from_1__module); - tmp_import_from_1__module = NULL; - { - PyObject *tmp_assign_source_15; - PyObject *tmp_name_name_9; - PyObject *tmp_globals_arg_name_9; - PyObject *tmp_locals_arg_name_9; - PyObject *tmp_fromlist_name_9; - PyObject *tmp_level_name_9; - tmp_name_name_9 = mod_consts[199]; - tmp_globals_arg_name_9 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_9 = Py_None; - tmp_fromlist_name_9 = mod_consts[200]; - tmp_level_name_9 = mod_consts[76]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 12; - tmp_assign_source_15 = IMPORT_MODULE5(tmp_name_name_9, tmp_globals_arg_name_9, tmp_locals_arg_name_9, tmp_fromlist_name_9, tmp_level_name_9); - if (tmp_assign_source_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto frame_exception_exit_1; - } - assert(tmp_import_from_2__module == NULL); - tmp_import_from_2__module = tmp_assign_source_15; - } - // Tried code: - { - PyObject *tmp_assign_source_16; - PyObject *tmp_import_name_from_9; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_9 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_9)) { - tmp_assign_source_16 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_9, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[201], - mod_consts[76] - ); - } else { - tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_9, mod_consts[201]); - } - - if (tmp_assign_source_16 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[201], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_import_name_from_10; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_10 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_10)) { - tmp_assign_source_17 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_10, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[28], - mod_consts[76] - ); - } else { - tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_10, mod_consts[28]); - } - - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_import_name_from_11; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_11 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_11)) { - tmp_assign_source_18 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_11, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[21], - mod_consts[76] - ); - } else { - tmp_assign_source_18 = IMPORT_NAME(tmp_import_name_from_11, mod_consts[21]); - } - - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[21], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - PyObject *tmp_import_name_from_12; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_12 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_12)) { - tmp_assign_source_19 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_12, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[23], - mod_consts[76] - ); - } else { - tmp_assign_source_19 = IMPORT_NAME(tmp_import_name_from_12, mod_consts[23]); - } - - if (tmp_assign_source_19 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[23], tmp_assign_source_19); - } - { - PyObject *tmp_assign_source_20; - PyObject *tmp_import_name_from_13; - CHECK_OBJECT(tmp_import_from_2__module); - tmp_import_name_from_13 = tmp_import_from_2__module; - if (PyModule_Check(tmp_import_name_from_13)) { - tmp_assign_source_20 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_13, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[17], - mod_consts[76] - ); - } else { - tmp_assign_source_20 = IMPORT_NAME(tmp_import_name_from_13, mod_consts[17]); - } - - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 12; - - goto try_except_handler_2; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_20); - } - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_import_from_2__module); - Py_DECREF(tmp_import_from_2__module); - tmp_import_from_2__module = NULL; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_import_name_from_14; - PyObject *tmp_name_name_10; - PyObject *tmp_globals_arg_name_10; - PyObject *tmp_locals_arg_name_10; - PyObject *tmp_fromlist_name_10; - PyObject *tmp_level_name_10; - tmp_name_name_10 = mod_consts[13]; - tmp_globals_arg_name_10 = (PyObject *)moduledict_models$unet3d$trainer; - tmp_locals_arg_name_10 = Py_None; - tmp_fromlist_name_10 = mod_consts[202]; - tmp_level_name_10 = mod_consts[5]; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 14; - tmp_import_name_from_14 = IMPORT_MODULE5(tmp_name_name_10, tmp_globals_arg_name_10, tmp_locals_arg_name_10, tmp_fromlist_name_10, tmp_level_name_10); - if (tmp_import_name_from_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_14)) { - tmp_assign_source_21 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_14, - (PyObject *)moduledict_models$unet3d$trainer, - mod_consts[67], - mod_consts[76] - ); - } else { - tmp_assign_source_21 = IMPORT_NAME(tmp_import_name_from_14, mod_consts[67]); - } - - Py_DECREF(tmp_import_name_from_14); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 14; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[67], tmp_assign_source_21); - } - { - PyObject *tmp_assign_source_22; - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[201]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[201]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 16; - tmp_assign_source_22 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, mod_consts[34]); - if (tmp_assign_source_22 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 16; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_22); - } - { - PyObject *tmp_assign_source_23; - - - tmp_assign_source_23 = MAKE_FUNCTION_models$unet3d$trainer$$$function__1_create_trainer(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[203], tmp_assign_source_23); - } - { - PyObject *tmp_assign_source_24; - tmp_assign_source_24 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_24; - } - // Tried code: - { - PyObject *tmp_assign_source_25; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[204]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[204]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[205]; - tmp_assign_source_25 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_25 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_25; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[204]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[204]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_1 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_1, mod_consts[206]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_26; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[206]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - tmp_args_name_1 = mod_consts[207]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 59; - tmp_assign_source_26 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_26 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_26; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_3 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_3, mod_consts[208]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[209]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[210]; - tmp_getattr_default_1 = mod_consts[211]; - tmp_tuple_element_1 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_4; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_4 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_4 == NULL)); - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[210]); - Py_DECREF(tmp_expression_name_4); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_3; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 59; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_3; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_27; - tmp_assign_source_27 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_27; - } - branch_end_2:; - { - PyObject *tmp_assign_source_28; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$trainer$$$class__1_UNetTrainer_59 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[210]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[210]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[212], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[213]; - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[180], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_5; - } - tmp_dictset_value = mod_consts[34]; - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[214], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_5; - } - if (isFrameUnusable(cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2)) { - Py_XDECREF(cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2 = MAKE_FUNCTION_FRAME(codeobj_b7ea1a994d7a1881fce465ad551ac96b, module_models$unet3d$trainer, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2->m_type_description == NULL); - frame_b7ea1a994d7a1881fce465ad551ac96b_2 = cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b7ea1a994d7a1881fce465ad551ac96b_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b7ea1a994d7a1881fce465ad551ac96b_2) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[215]; - Py_INCREF(tmp_defaults_1); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__2___init__(tmp_defaults_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[216], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 90; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__3_fit(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[218], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 144; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__4_train(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[78], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__5_should_stop(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[116], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 224; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__6_validate(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[101], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 241; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__7__split_training_batch(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[87], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[224]; - Py_INCREF(tmp_defaults_2); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__8__forward_pass(tmp_defaults_2); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[89], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__9__is_best_eval_score(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[104], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 307; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__10__save_checkpoint(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[106], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 319; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__11__log_lr(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[103], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 338; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__12__log_stats(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[112], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 342; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__13__log_params(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[230], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 351; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_defaults_3; - tmp_defaults_3 = mod_consts[232]; - Py_INCREF(tmp_defaults_3); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$trainer$$$function__14__log_images(tmp_defaults_3); - - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[113], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 357; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - { - nuitka_bool tmp_condition_result_5; - PyObject *tmp_called_name_3; - PyObject *tmp_args_element_name_1; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[234]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - tmp_condition_result_5 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - tmp_called_name_3 = PyObject_GetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[234]); - - if (unlikely(tmp_called_name_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[234]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 384; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$unet3d$trainer$$$function__15__batch_size(); - - frame_b7ea1a994d7a1881fce465ad551ac96b_2->m_frame.f_lineno = 384; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 384; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - goto condexpr_end_2; - condexpr_false_2:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$unet3d$trainer$$$function__15__batch_size(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_2:; - tmp_res = PyObject_SetItem(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59, mod_consts[94], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 385; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b7ea1a994d7a1881fce465ad551ac96b_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b7ea1a994d7a1881fce465ad551ac96b_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b7ea1a994d7a1881fce465ad551ac96b_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b7ea1a994d7a1881fce465ad551ac96b_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b7ea1a994d7a1881fce465ad551ac96b_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b7ea1a994d7a1881fce465ad551ac96b_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_b7ea1a994d7a1881fce465ad551ac96b_2 == cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2); - cache_frame_b7ea1a994d7a1881fce465ad551ac96b_2 = NULL; - } - - assertFrameObject(frame_b7ea1a994d7a1881fce465ad551ac96b_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_5; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_29; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_4 = tmp_class_creation_1__metaclass; - tmp_tuple_element_2 = mod_consts[34]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_2); - tmp_tuple_element_2 = mod_consts[205]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = locals_models$unet3d$trainer$$$class__1_UNetTrainer_59; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame.f_lineno = 59; - tmp_assign_source_29 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_29 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 59; - - goto try_except_handler_5; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_29; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_28 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_28); - goto try_return_handler_5; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - Py_DECREF(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59); - locals_models$unet3d$trainer$$$class__1_UNetTrainer_59 = NULL; - goto try_return_handler_4; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$trainer$$$class__1_UNetTrainer_59); - locals_models$unet3d$trainer$$$class__1_UNetTrainer_59 = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_4; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_4:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 59; - goto try_except_handler_3; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$trainer, (Nuitka_StringObject *)mod_consts[34], tmp_assign_source_28); - } - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d757c9bc66e1e7ac50c77ad751d1efeb); -#endif - popFrameStack(); - - assertFrameObject(frame_d757c9bc66e1e7ac50c77ad751d1efeb); - - goto frame_no_exception_2; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d757c9bc66e1e7ac50c77ad751d1efeb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d757c9bc66e1e7ac50c77ad751d1efeb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d757c9bc66e1e7ac50c77ad751d1efeb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d757c9bc66e1e7ac50c77ad751d1efeb, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_2:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - - return module_models$unet3d$trainer; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/module.models.unet3d.utils.const b/medomni/models.build/module.models.unet3d.utils.const deleted file mode 100644 index b852832db9fc7441b551c35e1aa3ff54b7a75f8f..0000000000000000000000000000000000000000 Binary files a/medomni/models.build/module.models.unet3d.utils.const and /dev/null differ diff --git a/medomni/models.build/module.models.unet3d.utils.cpp b/medomni/models.build/module.models.unet3d.utils.cpp deleted file mode 100644 index 2530c2aa2c658d744960f451de816cd93b15bc60..0000000000000000000000000000000000000000 --- a/medomni/models.build/module.models.unet3d.utils.cpp +++ /dev/null @@ -1,15741 +0,0 @@ -/* Generated code for Python module 'models.unet3d.utils' - * created by Nuitka version 0.6.16 - * - * This code is in part copyright 2021 Kay Hayen. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "nuitka/prelude.h" - -#include "nuitka/unfreezing.h" - -#include "__helpers.h" - -/* The "module_models$unet3d$utils" is a Python object pointer of module type. - * - * Note: For full compatibility with CPython, every module variable access - * needs to go through it except for cases where the module cannot possibly - * have changed in the mean time. - */ - -PyObject *module_models$unet3d$utils; -PyDictObject *moduledict_models$unet3d$utils; - -/* The declarations of module constants used, if any. */ -static PyObject *mod_consts[232]; - -static PyObject *module_filename_obj = NULL; - -/* Indicator if this modules private constants were created yet. */ -static bool constants_created = false; - -/* Function to create module private constants. */ -static void createModuleConstants(void) { - if (constants_created == false) { - loadConstantsBlob(&mod_consts[0], UNTRANSLATE("models.unet3d.utils")); - constants_created = true; - } -} - -/* For multiprocessing, we want to be able to initialize the __main__ constants. */ -#if (_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED || _NUITKA_PLUGIN_TRACEBACK_ENCRYPTION_ENABLED) && 0 -void createMainModuleConstants(void) { - createModuleConstants(); -} -#endif - -/* Function to verify module private constants for non-corruption. */ -#ifndef __NUITKA_NO_ASSERT__ -void checkModuleConstants_models$unet3d$utils(void) { - // The module may not have been used at all, then ignore this. - if (constants_created == false) return; - - checkConstantsBlob(&mod_consts[0], "models.unet3d.utils"); -} -#endif - -// The module code objects. -static PyCodeObject *codeobj_82db7767ab9e5f0f642be34a6f9d265e; -static PyCodeObject *codeobj_719341722a17238bf3eb6753809ec54f; -static PyCodeObject *codeobj_76d97e3e85fc8ed88b6ea680601fa9c3; -static PyCodeObject *codeobj_0d8248690a1fa7baefcab674faced410; -static PyCodeObject *codeobj_e2b0f3807e8774cef573b2cd30caedfa; -static PyCodeObject *codeobj_63627de1375daa33e86451008e97a4bf; -static PyCodeObject *codeobj_4a3983ca4ee2555d4212615dbc23c56f; -static PyCodeObject *codeobj_82706f43366ccce85fe78411654557cd; -static PyCodeObject *codeobj_f606fbbc88118bf877f3588e04f80ffb; -static PyCodeObject *codeobj_ca9eb4692c07d74e94e0524edfb36775; -static PyCodeObject *codeobj_b087066e83c3e80ad2046a90aa1fac06; -static PyCodeObject *codeobj_7ac7c7086ade9c579f0105e5c00b3b39; -static PyCodeObject *codeobj_f70c7cc0da79564c2d7d09c16606eac3; -static PyCodeObject *codeobj_4be53f397e0dc75a9e4b9b560c99a5cf; -static PyCodeObject *codeobj_e905871fb86832bb6dcab5228c3f9b01; -static PyCodeObject *codeobj_6521fc3bbebe7428109965d170a1f859; -static PyCodeObject *codeobj_2fed6b99f33516d2401fb70e46a30231; -static PyCodeObject *codeobj_d714dda04915b49295d8c026054153d8; -static PyCodeObject *codeobj_85ab7d40b78ac3c154fef1cf72cdf6cf; -static PyCodeObject *codeobj_5ce85411819ee7c91305d022a537c8ff; -static PyCodeObject *codeobj_1b1fe57bb26c92a6661bc6e8e0e541aa; -static PyCodeObject *codeobj_8cbdaf474bdfd0cbff8c5cf044bbca27; -static PyCodeObject *codeobj_61210c2798264ec22c43d987ae4f77f1; -static PyCodeObject *codeobj_0353fe5846562bc4a5d4d0799526c4ea; -static PyCodeObject *codeobj_bcd0804471e965c93dda1a05b9894086; -static PyCodeObject *codeobj_e1825938478ab815e683b5ebd9805f6b; -static PyCodeObject *codeobj_edc08d057729e4f81485bac77ae693b0; -static PyCodeObject *codeobj_ad2691146e6907fe614331fcc72af99a; -static PyCodeObject *codeobj_a062b6ee58468f582fd722055b70cfe8; -static PyCodeObject *codeobj_ab5bdeb45ab7579d0f0f857bd5ebef00; - -static void createModuleCodeObjects(void) { - module_filename_obj = MAKE_RELATIVE_PATH(mod_consts[202]); CHECK_OBJECT(module_filename_obj); - codeobj_82db7767ab9e5f0f642be34a6f9d265e = MAKE_CODEOBJECT(module_filename_obj, 272, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[58], mod_consts[203], NULL, 1, 0, 0); - codeobj_719341722a17238bf3eb6753809ec54f = MAKE_CODEOBJECT(module_filename_obj, 91, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[58], mod_consts[204], NULL, 1, 0, 0); - codeobj_76d97e3e85fc8ed88b6ea680601fa9c3 = MAKE_CODEOBJECT(module_filename_obj, 110, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[205], mod_consts[206], NULL, 1, 0, 0); - codeobj_0d8248690a1fa7baefcab674faced410 = MAKE_CODEOBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[207], NULL, NULL, 0, 0, 0); - codeobj_e2b0f3807e8774cef573b2cd30caedfa = MAKE_CODEOBJECT(module_filename_obj, 154, CO_NOFREE, mod_consts[110], mod_consts[208], NULL, 0, 0, 0); - codeobj_63627de1375daa33e86451008e97a4bf = MAKE_CODEOBJECT(module_filename_obj, 94, CO_NOFREE, mod_consts[175], mod_consts[208], NULL, 0, 0, 0); - codeobj_4a3983ca4ee2555d4212615dbc23c56f = MAKE_CODEOBJECT(module_filename_obj, 113, CO_NOFREE, mod_consts[183], mod_consts[208], NULL, 0, 0, 0); - codeobj_82706f43366ccce85fe78411654557cd = MAKE_CODEOBJECT(module_filename_obj, 123, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[185], mod_consts[209], NULL, 3, 0, 0); - codeobj_f606fbbc88118bf877f3588e04f80ffb = MAKE_CODEOBJECT(module_filename_obj, 98, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[83], mod_consts[210], NULL, 1, 0, 0); - codeobj_ca9eb4692c07d74e94e0524edfb36775 = MAKE_CODEOBJECT(module_filename_obj, 120, CO_VARKEYWORDS | CO_NOFREE, mod_consts[83], mod_consts[211], NULL, 1, 0, 0); - codeobj_b087066e83c3e80ad2046a90aa1fac06 = MAKE_CODEOBJECT(module_filename_obj, 155, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS, mod_consts[83], mod_consts[212], mod_consts[208], 2, 0, 0); - codeobj_7ac7c7086ade9c579f0105e5c00b3b39 = MAKE_CODEOBJECT(module_filename_obj, 133, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[67], mod_consts[213], NULL, 1, 0, 0); - codeobj_f70c7cc0da79564c2d7d09c16606eac3 = MAKE_CODEOBJECT(module_filename_obj, 190, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[195], mod_consts[214], NULL, 2, 0, 0); - codeobj_4be53f397e0dc75a9e4b9b560c99a5cf = MAKE_CODEOBJECT(module_filename_obj, 186, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[97], mod_consts[215], NULL, 1, 0, 0); - codeobj_e905871fb86832bb6dcab5228c3f9b01 = MAKE_CODEOBJECT(module_filename_obj, 268, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[127], mod_consts[216], NULL, 1, 0, 0); - codeobj_6521fc3bbebe7428109965d170a1f859 = MAKE_CODEOBJECT(module_filename_obj, 257, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS | CO_NOFREE, mod_consts[198], mod_consts[217], NULL, 0, 0, 0); - codeobj_2fed6b99f33516d2401fb70e46a30231 = MAKE_CODEOBJECT(module_filename_obj, 283, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[200], mod_consts[218], NULL, 2, 0, 0); - codeobj_d714dda04915b49295d8c026054153d8 = MAKE_CODEOBJECT(module_filename_obj, 275, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[199], mod_consts[219], NULL, 2, 0, 0); - codeobj_85ab7d40b78ac3c154fef1cf72cdf6cf = MAKE_CODEOBJECT(module_filename_obj, 222, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[197], mod_consts[220], NULL, 3, 0, 0); - codeobj_5ce85411819ee7c91305d022a537c8ff = MAKE_CODEOBJECT(module_filename_obj, 294, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[201], mod_consts[221], NULL, 2, 0, 0); - codeobj_1b1fe57bb26c92a6661bc6e8e0e541aa = MAKE_CODEOBJECT(module_filename_obj, 71, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[163], mod_consts[222], NULL, 2, 0, 0); - codeobj_8cbdaf474bdfd0cbff8c5cf044bbca27 = MAKE_CODEOBJECT(module_filename_obj, 90, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[164], mod_consts[223], NULL, 1, 0, 0); - codeobj_61210c2798264ec22c43d987ae4f77f1 = MAKE_CODEOBJECT(module_filename_obj, 212, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[196], mod_consts[224], NULL, 1, 0, 0); - codeobj_0353fe5846562bc4a5d4d0799526c4ea = MAKE_CODEOBJECT(module_filename_obj, 34, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[159], mod_consts[225], NULL, 5, 0, 0); - codeobj_bcd0804471e965c93dda1a05b9894086 = MAKE_CODEOBJECT(module_filename_obj, 109, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[180], mod_consts[226], NULL, 2, 0, 0); - codeobj_e1825938478ab815e683b5ebd9805f6b = MAKE_CODEOBJECT(module_filename_obj, 150, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[69], mod_consts[227], NULL, 3, 0, 0); - codeobj_edc08d057729e4f81485bac77ae693b0 = MAKE_CODEOBJECT(module_filename_obj, 159, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[69], mod_consts[228], NULL, 3, 0, 0); - codeobj_ad2691146e6907fe614331fcc72af99a = MAKE_CODEOBJECT(module_filename_obj, 13, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[157], mod_consts[229], NULL, 3, 0, 0); - codeobj_a062b6ee58468f582fd722055b70cfe8 = MAKE_CODEOBJECT(module_filename_obj, 60, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[161], mod_consts[230], NULL, 3, 0, 0); - codeobj_ab5bdeb45ab7579d0f0f857bd5ebef00 = MAKE_CODEOBJECT(module_filename_obj, 103, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[178], mod_consts[231], NULL, 3, 0, 0); -} - -// The module function declarations. -static PyObject *MAKE_GENERATOR_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_GENERATOR_models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__1__mro_entries_conversion(PyObject **python_pars); - - -NUITKA_CROSS_MODULE PyObject *impl_models$$$function__8_complex_call_helper_star_dict(PyObject **python_pars); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__10___call__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__10___call__$$$function__1__check_img(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__11_process_batch(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__13_process_batch(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__14__normalize_img(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__15__find_masks(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__16_get_tensorboard_formatter(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__17_expand_as_one_hot(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__18_convert_to_numpy(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__18_convert_to_numpy$$$function__1__to_numpy(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__19_create_optimizer(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__1_save_checkpoint(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__20_create_lr_scheduler(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__21_get_class(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__2_load_checkpoint(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__3_save_network_output(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__4_get_logger(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__6___init__(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__7_update(PyObject *defaults); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__8_number_of_features_per_level(); - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__9___init__(); - - -// The module function definitions. -static PyObject *impl_models$unet3d$utils$$$function__1_save_checkpoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_state = python_pars[0]; - PyObject *par_is_best = python_pars[1]; - PyObject *par_checkpoint_dir = python_pars[2]; - PyObject *var_last_file_path = NULL; - PyObject *var_best_file_path = NULL; - struct Nuitka_FrameObject *frame_ad2691146e6907fe614331fcc72af99a; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_ad2691146e6907fe614331fcc72af99a = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ad2691146e6907fe614331fcc72af99a)) { - Py_XDECREF(cache_frame_ad2691146e6907fe614331fcc72af99a); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ad2691146e6907fe614331fcc72af99a == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ad2691146e6907fe614331fcc72af99a = MAKE_FUNCTION_FRAME(codeobj_ad2691146e6907fe614331fcc72af99a, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ad2691146e6907fe614331fcc72af99a->m_type_description == NULL); - frame_ad2691146e6907fe614331fcc72af99a = cache_frame_ad2691146e6907fe614331fcc72af99a; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ad2691146e6907fe614331fcc72af99a); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ad2691146e6907fe614331fcc72af99a) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_checkpoint_dir); - tmp_args_element_name_1 = par_checkpoint_dir; - frame_ad2691146e6907fe614331fcc72af99a->m_frame.f_lineno = 24; - tmp_operand_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[2], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 24; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[3]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_checkpoint_dir == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 25; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_checkpoint_dir; - frame_ad2691146e6907fe614331fcc72af99a->m_frame.f_lineno = 25; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 25; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[1]); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[5]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_checkpoint_dir == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 27; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_checkpoint_dir; - tmp_args_element_name_4 = mod_consts[6]; - frame_ad2691146e6907fe614331fcc72af99a->m_frame.f_lineno = 27; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 27; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_last_file_path == NULL); - var_last_file_path = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_state); - tmp_args_element_name_5 = par_state; - CHECK_OBJECT(var_last_file_path); - tmp_args_element_name_6 = var_last_file_path; - frame_ad2691146e6907fe614331fcc72af99a->m_frame.f_lineno = 28; - { - PyObject *call_args[] = {tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_call_result_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[8], - call_args - ); - } - - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 28; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - nuitka_bool tmp_condition_result_2; - int tmp_truth_name_1; - CHECK_OBJECT(par_is_best); - tmp_truth_name_1 = CHECK_IF_TRUE(par_is_best); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 29; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[1]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[5]); - Py_DECREF(tmp_expression_name_5); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_checkpoint_dir == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[4]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 30; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_7 = par_checkpoint_dir; - tmp_args_element_name_8 = mod_consts[9]; - frame_ad2691146e6907fe614331fcc72af99a->m_frame.f_lineno = 30; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8}; - tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 30; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_best_file_path == NULL); - var_best_file_path = tmp_assign_source_2; - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_7; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - tmp_expression_name_7 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[10]); - - if (unlikely(tmp_expression_name_7 == NULL)) { - tmp_expression_name_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[10]); - } - - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[11]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (var_last_file_path == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[12]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 31; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_9 = var_last_file_path; - CHECK_OBJECT(var_best_file_path); - tmp_args_element_name_10 = var_best_file_path; - frame_ad2691146e6907fe614331fcc72af99a->m_frame.f_lineno = 31; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_4, call_args); - } - - Py_DECREF(tmp_called_name_4); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 31; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ad2691146e6907fe614331fcc72af99a); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ad2691146e6907fe614331fcc72af99a); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ad2691146e6907fe614331fcc72af99a, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ad2691146e6907fe614331fcc72af99a->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ad2691146e6907fe614331fcc72af99a, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ad2691146e6907fe614331fcc72af99a, - type_description_1, - par_state, - par_is_best, - par_checkpoint_dir, - var_last_file_path, - var_best_file_path - ); - - - // Release cached frame if used for exception. - if (frame_ad2691146e6907fe614331fcc72af99a == cache_frame_ad2691146e6907fe614331fcc72af99a) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ad2691146e6907fe614331fcc72af99a); - cache_frame_ad2691146e6907fe614331fcc72af99a = NULL; - } - - assertFrameObject(frame_ad2691146e6907fe614331fcc72af99a); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_state); - par_state = NULL; - CHECK_OBJECT(par_is_best); - Py_DECREF(par_is_best); - par_is_best = NULL; - Py_XDECREF(par_checkpoint_dir); - par_checkpoint_dir = NULL; - Py_XDECREF(var_last_file_path); - var_last_file_path = NULL; - Py_XDECREF(var_best_file_path); - var_best_file_path = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_state); - par_state = NULL; - CHECK_OBJECT(par_is_best); - Py_DECREF(par_is_best); - par_is_best = NULL; - Py_XDECREF(par_checkpoint_dir); - par_checkpoint_dir = NULL; - Py_XDECREF(var_last_file_path); - var_last_file_path = NULL; - Py_XDECREF(var_best_file_path); - var_best_file_path = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__2_load_checkpoint(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_checkpoint_path = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *par_optimizer = python_pars[2]; - PyObject *par_model_key = python_pars[3]; - PyObject *par_optimizer_key = python_pars[4]; - PyObject *var_state = NULL; - struct Nuitka_FrameObject *frame_0353fe5846562bc4a5d4d0799526c4ea; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_frame_0353fe5846562bc4a5d4d0799526c4ea = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_0353fe5846562bc4a5d4d0799526c4ea)) { - Py_XDECREF(cache_frame_0353fe5846562bc4a5d4d0799526c4ea); - -#if _DEBUG_REFCOUNTS - if (cache_frame_0353fe5846562bc4a5d4d0799526c4ea == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_0353fe5846562bc4a5d4d0799526c4ea = MAKE_FUNCTION_FRAME(codeobj_0353fe5846562bc4a5d4d0799526c4ea, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_0353fe5846562bc4a5d4d0799526c4ea->m_type_description == NULL); - frame_0353fe5846562bc4a5d4d0799526c4ea = cache_frame_0353fe5846562bc4a5d4d0799526c4ea; - - // Push the new frame as the currently active one. - pushFrameStack(frame_0353fe5846562bc4a5d4d0799526c4ea); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_0353fe5846562bc4a5d4d0799526c4ea) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[0]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[0]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_instance_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[1]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_checkpoint_path); - tmp_args_element_name_1 = par_checkpoint_path; - frame_0353fe5846562bc4a5d4d0799526c4ea->m_frame.f_lineno = 48; - tmp_operand_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[2], tmp_args_element_name_1); - Py_DECREF(tmp_called_instance_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 48; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_tuple_element_1 = mod_consts[14]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_checkpoint_path == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto tuple_build_exception_1; - } - - tmp_format_value_1 = par_checkpoint_path; - tmp_format_spec_1 = mod_consts[16]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[17]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = PyUnicode_Join(mod_consts[16], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 49; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_0353fe5846562bc4a5d4d0799526c4ea->m_frame.f_lineno = 49; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_IOError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 49; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[18]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_checkpoint_path == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[15]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 51; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_2 = par_checkpoint_path; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_2); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[19]); - frame_0353fe5846562bc4a5d4d0799526c4ea->m_frame.f_lineno = 51; - tmp_assign_source_1 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 51; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_state == NULL); - var_state = tmp_assign_source_1; - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_4; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_model); - tmp_expression_name_3 = par_model; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[20]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_state); - tmp_expression_name_4 = var_state; - CHECK_OBJECT(par_model_key); - tmp_subscript_name_1 = par_model_key; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_4, tmp_subscript_name_1); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 52; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_0353fe5846562bc4a5d4d0799526c4ea->m_frame.f_lineno = 52; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 52; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_optimizer); - tmp_compexpr_left_1 = par_optimizer; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_2; - CHECK_OBJECT(par_optimizer); - tmp_expression_name_5 = par_optimizer; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[20]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(var_state); - tmp_expression_name_6 = var_state; - CHECK_OBJECT(par_optimizer_key); - tmp_subscript_name_2 = par_optimizer_key; - tmp_args_element_name_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_6, tmp_subscript_name_2); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 55; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_0353fe5846562bc4a5d4d0799526c4ea->m_frame.f_lineno = 55; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 55; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - branch_no_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0353fe5846562bc4a5d4d0799526c4ea); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0353fe5846562bc4a5d4d0799526c4ea); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0353fe5846562bc4a5d4d0799526c4ea, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0353fe5846562bc4a5d4d0799526c4ea->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0353fe5846562bc4a5d4d0799526c4ea, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_0353fe5846562bc4a5d4d0799526c4ea, - type_description_1, - par_checkpoint_path, - par_model, - par_optimizer, - par_model_key, - par_optimizer_key, - var_state - ); - - - // Release cached frame if used for exception. - if (frame_0353fe5846562bc4a5d4d0799526c4ea == cache_frame_0353fe5846562bc4a5d4d0799526c4ea) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_0353fe5846562bc4a5d4d0799526c4ea); - cache_frame_0353fe5846562bc4a5d4d0799526c4ea = NULL; - } - - assertFrameObject(frame_0353fe5846562bc4a5d4d0799526c4ea); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_state); - tmp_return_value = var_state; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_checkpoint_path); - par_checkpoint_path = NULL; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(par_optimizer); - par_optimizer = NULL; - CHECK_OBJECT(par_model_key); - Py_DECREF(par_model_key); - par_model_key = NULL; - CHECK_OBJECT(par_optimizer_key); - Py_DECREF(par_optimizer_key); - par_optimizer_key = NULL; - CHECK_OBJECT(var_state); - Py_DECREF(var_state); - var_state = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_checkpoint_path); - par_checkpoint_path = NULL; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(par_optimizer); - par_optimizer = NULL; - CHECK_OBJECT(par_model_key); - Py_DECREF(par_model_key); - par_model_key = NULL; - CHECK_OBJECT(par_optimizer_key); - Py_DECREF(par_optimizer_key); - par_optimizer_key = NULL; - Py_XDECREF(var_state); - var_state = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__3_save_network_output(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_output_path = python_pars[0]; - PyObject *par_output = python_pars[1]; - PyObject *par_logger = python_pars[2]; - PyObject *var_f = NULL; - PyObject *tmp_with_1__enter = NULL; - PyObject *tmp_with_1__exit = NULL; - nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED; - PyObject *tmp_with_1__source = NULL; - struct Nuitka_FrameObject *frame_a062b6ee58468f582fd722055b70cfe8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_preserved_type_1; - PyObject *exception_preserved_value_1; - PyTracebackObject *exception_preserved_tb_1; - bool tmp_result; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - static struct Nuitka_FrameObject *cache_frame_a062b6ee58468f582fd722055b70cfe8 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_a062b6ee58468f582fd722055b70cfe8)) { - Py_XDECREF(cache_frame_a062b6ee58468f582fd722055b70cfe8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_a062b6ee58468f582fd722055b70cfe8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_a062b6ee58468f582fd722055b70cfe8 = MAKE_FUNCTION_FRAME(codeobj_a062b6ee58468f582fd722055b70cfe8, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_a062b6ee58468f582fd722055b70cfe8->m_type_description == NULL); - frame_a062b6ee58468f582fd722055b70cfe8 = cache_frame_a062b6ee58468f582fd722055b70cfe8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_a062b6ee58468f582fd722055b70cfe8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_a062b6ee58468f582fd722055b70cfe8) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_logger); - tmp_compexpr_left_1 = par_logger; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - CHECK_OBJECT(par_logger); - tmp_expression_name_1 = par_logger; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[22]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = mod_consts[23]; - tmp_string_concat_values_1 = PyTuple_New(3); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - CHECK_OBJECT(par_output_path); - tmp_format_value_1 = par_output_path; - tmp_format_spec_1 = mod_consts[16]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = mod_consts[24]; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_1 = PyUnicode_Join(mod_consts[16], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 62; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 62; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 62; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_output); - tmp_called_instance_2 = par_output; - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 63; - tmp_called_instance_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[25]); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 63; - tmp_expression_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[26]); - Py_DECREF(tmp_called_instance_1); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[27]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_2, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_2); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 63; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_output; - par_output = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_3; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[28]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[28]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(par_output_path); - tmp_args_element_name_2 = par_output_path; - tmp_args_element_name_3 = mod_consts[30]; - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 64; - { - PyObject *call_args[] = {tmp_args_element_name_2, tmp_args_element_name_3}; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_3, - mod_consts[29], - call_args - ); - } - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__source == NULL); - tmp_with_1__source = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_3 = tmp_with_1__source; - tmp_called_name_2 = LOOKUP_SPECIAL(tmp_expression_name_3, mod_consts[31]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 64; - tmp_assign_source_3 = CALL_FUNCTION_NO_ARGS(tmp_called_name_2); - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__enter == NULL); - tmp_with_1__enter = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_with_1__source); - tmp_expression_name_4 = tmp_with_1__source; - tmp_assign_source_4 = LOOKUP_SPECIAL(tmp_expression_name_4, mod_consts[32]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 64; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - assert(tmp_with_1__exit == NULL); - tmp_with_1__exit = tmp_assign_source_4; - } - { - nuitka_bool tmp_assign_source_5; - tmp_assign_source_5 = NUITKA_BOOL_TRUE; - tmp_with_1__indicator = tmp_assign_source_5; - } - { - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_with_1__enter); - tmp_assign_source_6 = tmp_with_1__enter; - assert(var_f == NULL); - Py_INCREF(tmp_assign_source_6); - var_f = tmp_assign_source_6; - } - // Tried code: - // Tried code: - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_2; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - CHECK_OBJECT(var_f); - tmp_expression_name_5 = var_f; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[33]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooo"; - goto try_except_handler_4; - } - tmp_args_name_1 = mod_consts[34]; - tmp_dict_key_1 = mod_consts[35]; - CHECK_OBJECT(par_output); - tmp_dict_value_1 = par_output; - tmp_kwargs_name_1 = _PyDict_NewPresized( 2 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[36]; - tmp_dict_value_1 = mod_consts[37]; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 65; - tmp_call_result_2 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - goto try_end_1; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Preserve existing published exception id 1. - GET_CURRENT_EXCEPTION(&exception_preserved_type_1, &exception_preserved_value_1, &exception_preserved_tb_1); - - if (exception_keeper_tb_1 == NULL) { - exception_keeper_tb_1 = MAKE_TRACEBACK(frame_a062b6ee58468f582fd722055b70cfe8, exception_keeper_lineno_1); - } else if (exception_keeper_lineno_1 != 0) { - exception_keeper_tb_1 = ADD_TRACEBACK(exception_keeper_tb_1, frame_a062b6ee58468f582fd722055b70cfe8, exception_keeper_lineno_1); - } - - NORMALIZE_EXCEPTION(&exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1); - ATTACH_TRACEBACK_TO_EXCEPTION_VALUE(exception_keeper_value_1, exception_keeper_tb_1); - PUBLISH_EXCEPTION(&exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1); - // Tried code: - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - tmp_compexpr_left_2 = EXC_TYPE(PyThreadState_GET()); - tmp_compexpr_right_2 = PyExc_BaseException; - tmp_res = EXCEPTION_MATCH_BOOL(tmp_compexpr_left_2, tmp_compexpr_right_2); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - nuitka_bool tmp_assign_source_7; - tmp_assign_source_7 = NUITKA_BOOL_FALSE; - tmp_with_1__indicator = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_1; - PyObject *tmp_called_name_4; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_4 = tmp_with_1__exit; - tmp_args_element_name_4 = EXC_TYPE(PyThreadState_GET()); - tmp_args_element_name_5 = EXC_VALUE(PyThreadState_GET()); - tmp_args_element_name_6 = EXC_TRACEBACK(PyThreadState_GET()); - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 65; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_4, call_args); - } - - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooo"; - goto try_except_handler_5; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooo"; - goto try_except_handler_5; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 65; - } - - if (exception_tb && exception_tb->tb_frame == &frame_a062b6ee58468f582fd722055b70cfe8->m_frame) frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooo"; - goto try_except_handler_5; - branch_no_3:; - goto branch_end_2; - branch_no_2:; - tmp_result = RERAISE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - if (unlikely(tmp_result == false)) { - exception_lineno = 64; - } - - if (exception_tb && exception_tb->tb_frame == &frame_a062b6ee58468f582fd722055b70cfe8->m_frame) frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = exception_tb->tb_lineno; - type_description_1 = "oooo"; - goto try_except_handler_5; - branch_end_2:; - goto try_end_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto try_except_handler_3; - // End of try: - try_end_2:; - // Restore previous exception id 1. - SET_CURRENT_EXCEPTION(exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1); - - goto try_end_1; - NUITKA_CANNOT_GET_HERE("exception handler codes exits in all cases"); - return NULL; - // End of try: - try_end_1:; - goto try_end_3; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - { - bool tmp_condition_result_4; - nuitka_bool tmp_compexpr_left_3; - nuitka_bool tmp_compexpr_right_3; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_3 = tmp_with_1__indicator; - tmp_compexpr_right_3 = NUITKA_BOOL_TRUE; - tmp_condition_result_4 = (tmp_compexpr_left_3 == tmp_compexpr_right_3) ? true : false; - if (tmp_condition_result_4 != false) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - { - PyObject *tmp_called_name_5; - PyObject *tmp_call_result_3; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_5 = tmp_with_1__exit; - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 65; - tmp_call_result_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_5, &PyTuple_GET_ITEM(mod_consts[38], 0)); - - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - Py_DECREF(exception_keeper_type_3); - Py_XDECREF(exception_keeper_value_3); - Py_XDECREF(exception_keeper_tb_3); - - exception_lineno = 65; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_3); - } - branch_no_4:; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto try_except_handler_2; - // End of try: - try_end_3:; - { - bool tmp_condition_result_5; - nuitka_bool tmp_compexpr_left_4; - nuitka_bool tmp_compexpr_right_4; - assert(tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED); - tmp_compexpr_left_4 = tmp_with_1__indicator; - tmp_compexpr_right_4 = NUITKA_BOOL_TRUE; - tmp_condition_result_5 = (tmp_compexpr_left_4 == tmp_compexpr_right_4) ? true : false; - if (tmp_condition_result_5 != false) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_called_name_6; - PyObject *tmp_call_result_4; - CHECK_OBJECT(tmp_with_1__exit); - tmp_called_name_6 = tmp_with_1__exit; - frame_a062b6ee58468f582fd722055b70cfe8->m_frame.f_lineno = 65; - tmp_call_result_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_6, &PyTuple_GET_ITEM(mod_consts[38], 0)); - - if (tmp_call_result_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 65; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_4); - } - branch_no_5:; - goto try_end_4; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - Py_XDECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto frame_exception_exit_1; - // End of try: - try_end_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a062b6ee58468f582fd722055b70cfe8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_a062b6ee58468f582fd722055b70cfe8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_a062b6ee58468f582fd722055b70cfe8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_a062b6ee58468f582fd722055b70cfe8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_a062b6ee58468f582fd722055b70cfe8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_a062b6ee58468f582fd722055b70cfe8, - type_description_1, - par_output_path, - par_output, - par_logger, - var_f - ); - - - // Release cached frame if used for exception. - if (frame_a062b6ee58468f582fd722055b70cfe8 == cache_frame_a062b6ee58468f582fd722055b70cfe8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_a062b6ee58468f582fd722055b70cfe8); - cache_frame_a062b6ee58468f582fd722055b70cfe8 = NULL; - } - - assertFrameObject(frame_a062b6ee58468f582fd722055b70cfe8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(tmp_with_1__source); - Py_DECREF(tmp_with_1__source); - tmp_with_1__source = NULL; - CHECK_OBJECT(tmp_with_1__enter); - Py_DECREF(tmp_with_1__enter); - tmp_with_1__enter = NULL; - Py_XDECREF(tmp_with_1__exit); - tmp_with_1__exit = NULL; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_output_path); - par_output_path = NULL; - Py_XDECREF(par_output); - par_output = NULL; - Py_XDECREF(par_logger); - par_logger = NULL; - Py_XDECREF(var_f); - var_f = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_output_path); - par_output_path = NULL; - Py_XDECREF(par_output); - par_output = NULL; - Py_XDECREF(par_logger); - par_logger = NULL; - Py_XDECREF(var_f); - var_f = NULL; - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__4_get_logger(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_name = python_pars[0]; - PyObject *par_level = python_pars[1]; - PyObject *var_logger = NULL; - PyObject *var_stream_handler = NULL; - PyObject *var_formatter = NULL; - struct Nuitka_FrameObject *frame_1b1fe57bb26c92a6661bc6e8e0e541aa; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa)) { - Py_XDECREF(cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa); - -#if _DEBUG_REFCOUNTS - if (cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa = MAKE_FUNCTION_FRAME(codeobj_1b1fe57bb26c92a6661bc6e8e0e541aa, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_type_description == NULL); - frame_1b1fe57bb26c92a6661bc6e8e0e541aa = cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa; - - // Push the new frame as the currently active one. - pushFrameStack(frame_1b1fe57bb26c92a6661bc6e8e0e541aa); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_1b1fe57bb26c92a6661bc6e8e0e541aa) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[39]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[39]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_name); - tmp_args_element_name_1 = par_name; - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 73; - tmp_compexpr_left_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[40], tmp_args_element_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 73; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - Py_DECREF(tmp_compexpr_left_1); - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[39]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[39]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_name == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 74; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_subscript_name_1 = par_name; - tmp_return_value = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 74; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - goto branch_end_1; - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_2; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[43]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_name == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 76; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = par_name; - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 76; - tmp_assign_source_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 76; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_logger == NULL); - var_logger = tmp_assign_source_1; - } - { - PyObject *tmp_called_instance_2; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_3; - CHECK_OBJECT(var_logger); - tmp_called_instance_2 = var_logger; - CHECK_OBJECT(par_level); - tmp_args_element_name_3 = par_level; - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 77; - tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[44], tmp_args_element_name_3); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 77; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_element_name_4; - PyObject *tmp_expression_name_4; - tmp_expression_name_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_expression_name_3 == NULL)) { - tmp_expression_name_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[45]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[46]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[46]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 79; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[47]); - if (tmp_args_element_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 79; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 79; - tmp_assign_source_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_4); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_4); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 79; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_stream_handler == NULL); - var_stream_handler = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_called_instance_3; - tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_called_instance_3 == NULL)) { - tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - if (tmp_called_instance_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 80; - tmp_assign_source_3 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_3, - mod_consts[48], - &PyTuple_GET_ITEM(mod_consts[49], 0) - ); - - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 80; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_formatter == NULL); - var_formatter = tmp_assign_source_3; - } - { - PyObject *tmp_called_instance_4; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_5; - CHECK_OBJECT(var_stream_handler); - tmp_called_instance_4 = var_stream_handler; - CHECK_OBJECT(var_formatter); - tmp_args_element_name_5 = var_formatter; - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 82; - tmp_call_result_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_4, mod_consts[50], tmp_args_element_name_5); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 82; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_2); - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_call_result_3; - PyObject *tmp_args_element_name_6; - if (var_logger == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[51]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = var_logger; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[52]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (var_stream_handler == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[53]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 83; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_6 = var_stream_handler; - frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame.f_lineno = 83; - tmp_call_result_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_6); - Py_DECREF(tmp_called_name_3); - if (tmp_call_result_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 83; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_3); - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - if (var_logger == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[51]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subvalue_1 = var_logger; - tmp_ass_subscribed_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[39]); - - if (unlikely(tmp_ass_subscribed_1 == NULL)) { - tmp_ass_subscribed_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[39]); - } - - if (tmp_ass_subscribed_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - if (par_name == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 85; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscript_1 = par_name; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 85; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - if (var_logger == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[51]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 87; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_logger; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - branch_end_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b1fe57bb26c92a6661bc6e8e0e541aa); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b1fe57bb26c92a6661bc6e8e0e541aa); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_1b1fe57bb26c92a6661bc6e8e0e541aa); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_1b1fe57bb26c92a6661bc6e8e0e541aa, exception_lineno); - } else if (exception_tb->tb_frame != &frame_1b1fe57bb26c92a6661bc6e8e0e541aa->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_1b1fe57bb26c92a6661bc6e8e0e541aa, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_1b1fe57bb26c92a6661bc6e8e0e541aa, - type_description_1, - par_name, - par_level, - var_logger, - var_stream_handler, - var_formatter - ); - - - // Release cached frame if used for exception. - if (frame_1b1fe57bb26c92a6661bc6e8e0e541aa == cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa); - cache_frame_1b1fe57bb26c92a6661bc6e8e0e541aa = NULL; - } - - assertFrameObject(frame_1b1fe57bb26c92a6661bc6e8e0e541aa); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_level); - par_level = NULL; - Py_XDECREF(var_logger); - var_logger = NULL; - Py_XDECREF(var_stream_handler); - var_stream_handler = NULL; - Py_XDECREF(var_formatter); - var_formatter = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_level); - par_level = NULL; - Py_XDECREF(var_logger); - var_logger = NULL; - Py_XDECREF(var_stream_handler); - var_stream_handler = NULL; - Py_XDECREF(var_formatter); - var_formatter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_model = python_pars[0]; - PyObject *tmp_genexpr_1__$0 = NULL; - struct Nuitka_FrameObject *frame_8cbdaf474bdfd0cbff8c5cf044bbca27; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27)) { - Py_XDECREF(cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27); - -#if _DEBUG_REFCOUNTS - if (cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27 = MAKE_FUNCTION_FRAME(codeobj_8cbdaf474bdfd0cbff8c5cf044bbca27, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27->m_type_description == NULL); - frame_8cbdaf474bdfd0cbff8c5cf044bbca27 = cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27; - - // Push the new frame as the currently active one. - pushFrameStack(frame_8cbdaf474bdfd0cbff8c5cf044bbca27); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_8cbdaf474bdfd0cbff8c5cf044bbca27) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_sum_sequence_1; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_model); - tmp_called_instance_1 = par_model; - frame_8cbdaf474bdfd0cbff8c5cf044bbca27->m_frame.f_lineno = 91; - tmp_iter_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[54]); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - assert(tmp_genexpr_1__$0 == NULL); - tmp_genexpr_1__$0 = tmp_assign_source_1; - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_1[1]; - - tmp_closure_1[0] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_sum_sequence_1 = MAKE_GENERATOR_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr(tmp_closure_1); - - goto try_return_handler_2; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_1; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - tmp_return_value = BUILTIN_SUM1(tmp_sum_sequence_1); - Py_DECREF(tmp_sum_sequence_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 91; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8cbdaf474bdfd0cbff8c5cf044bbca27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8cbdaf474bdfd0cbff8c5cf044bbca27); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_8cbdaf474bdfd0cbff8c5cf044bbca27); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_8cbdaf474bdfd0cbff8c5cf044bbca27, exception_lineno); - } else if (exception_tb->tb_frame != &frame_8cbdaf474bdfd0cbff8c5cf044bbca27->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_8cbdaf474bdfd0cbff8c5cf044bbca27, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_8cbdaf474bdfd0cbff8c5cf044bbca27, - type_description_1, - par_model - ); - - - // Release cached frame if used for exception. - if (frame_8cbdaf474bdfd0cbff8c5cf044bbca27 == cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27); - cache_frame_8cbdaf474bdfd0cbff8c5cf044bbca27 = NULL; - } - - assertFrameObject(frame_8cbdaf474bdfd0cbff8c5cf044bbca27); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_model); - par_model = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_model); - par_model = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr_locals { - PyObject *var_p; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - char yield_tmps[1024]; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr_locals *generator_heap = (struct models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_p = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_719341722a17238bf3eb6753809ec54f, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[0])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[0]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "No"; - generator_heap->exception_lineno = 91; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_p; - generator_heap->var_p = tmp_assign_source_2; - Py_INCREF(generator_heap->var_p); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_1; - CHECK_OBJECT(generator_heap->var_p); - tmp_expression_name_1 = generator_heap->var_p; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[55]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 91; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - Py_DECREF(tmp_attribute_value_1); - - generator_heap->exception_lineno = 91; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_expression_name_2; - PyObject *tmp_called_instance_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - if (generator_heap->var_p == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&generator_heap->exception_type, &generator_heap->exception_value, mod_consts[56]); - generator_heap->exception_tb = NULL; - NORMALIZE_EXCEPTION(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - CHAIN_EXCEPTION(generator_heap->exception_value); - - generator_heap->exception_lineno = 91; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - - tmp_called_instance_1 = generator_heap->var_p; - generator->m_frame->m_frame.f_lineno = 91; - tmp_expression_name_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[57]); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 91; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - Nuitka_PreserveHeap(generator_heap->yield_tmps, &tmp_called_instance_1, sizeof(PyObject *), NULL); - generator->m_yield_return_index = 1; - return tmp_expression_name_2; - yield_return_1: - Nuitka_RestoreHeap(generator_heap->yield_tmps, &tmp_called_instance_1, sizeof(PyObject *), NULL); - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 91; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 91; - generator_heap->type_description_1 = "No"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_p - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_p); - generator_heap->var_p = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_p); - generator_heap->var_p = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr_context, - module_models$unet3d$utils, - mod_consts[58], -#if PYTHON_VERSION >= 0x350 - mod_consts[59], -#endif - codeobj_719341722a17238bf3eb6753809ec54f, - closure, - 1, - sizeof(struct models$unet3d$utils$$$function__5_get_number_of_learnable_parameters$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$unet3d$utils$$$function__6___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - struct Nuitka_FrameObject *frame_f606fbbc88118bf877f3588e04f80ffb; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_f606fbbc88118bf877f3588e04f80ffb = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_f606fbbc88118bf877f3588e04f80ffb)) { - Py_XDECREF(cache_frame_f606fbbc88118bf877f3588e04f80ffb); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f606fbbc88118bf877f3588e04f80ffb == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f606fbbc88118bf877f3588e04f80ffb = MAKE_FUNCTION_FRAME(codeobj_f606fbbc88118bf877f3588e04f80ffb, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f606fbbc88118bf877f3588e04f80ffb->m_type_description == NULL); - frame_f606fbbc88118bf877f3588e04f80ffb = cache_frame_f606fbbc88118bf877f3588e04f80ffb; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f606fbbc88118bf877f3588e04f80ffb); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f606fbbc88118bf877f3588e04f80ffb) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = mod_consts[27]; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[60], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 99; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = mod_consts[27]; - CHECK_OBJECT(par_self); - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[61], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 100; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_assattr_target_3; - tmp_assattr_name_3 = mod_consts[27]; - CHECK_OBJECT(par_self); - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[62], tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 101; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f606fbbc88118bf877f3588e04f80ffb); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f606fbbc88118bf877f3588e04f80ffb); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f606fbbc88118bf877f3588e04f80ffb, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f606fbbc88118bf877f3588e04f80ffb->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f606fbbc88118bf877f3588e04f80ffb, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f606fbbc88118bf877f3588e04f80ffb, - type_description_1, - par_self - ); - - - // Release cached frame if used for exception. - if (frame_f606fbbc88118bf877f3588e04f80ffb == cache_frame_f606fbbc88118bf877f3588e04f80ffb) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f606fbbc88118bf877f3588e04f80ffb); - cache_frame_f606fbbc88118bf877f3588e04f80ffb = NULL; - } - - assertFrameObject(frame_f606fbbc88118bf877f3588e04f80ffb); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__7_update(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_value = python_pars[1]; - PyObject *par_n = python_pars[2]; - PyObject *tmp_inplace_assign_1__value = NULL; - PyObject *tmp_inplace_assign_2__value = NULL; - struct Nuitka_FrameObject *frame_ab5bdeb45ab7579d0f0f857bd5ebef00; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00)) { - Py_XDECREF(cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00); - -#if _DEBUG_REFCOUNTS - if (cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00 = MAKE_FUNCTION_FRAME(codeobj_ab5bdeb45ab7579d0f0f857bd5ebef00, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00->m_type_description == NULL); - frame_ab5bdeb45ab7579d0f0f857bd5ebef00 = cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00; - - // Push the new frame as the currently active one. - pushFrameStack(frame_ab5bdeb45ab7579d0f0f857bd5ebef00); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_ab5bdeb45ab7579d0f0f857bd5ebef00) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[60]); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(tmp_inplace_assign_1__value == NULL); - tmp_inplace_assign_1__value = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - CHECK_OBJECT(tmp_inplace_assign_1__value); - tmp_left_name_1 = tmp_inplace_assign_1__value; - CHECK_OBJECT(par_n); - tmp_right_name_1 = par_n; - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_1, tmp_right_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - tmp_assign_source_2 = tmp_left_name_1; - tmp_inplace_assign_1__value = tmp_assign_source_2; - - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(tmp_inplace_assign_1__value); - tmp_assattr_name_1 = tmp_inplace_assign_1__value; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 104; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[60], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 104; - type_description_1 = "ooo"; - goto try_except_handler_2; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_1__value); - Py_DECREF(tmp_inplace_assign_1__value); - tmp_inplace_assign_1__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - CHECK_OBJECT(tmp_inplace_assign_1__value); - Py_DECREF(tmp_inplace_assign_1__value); - tmp_inplace_assign_1__value = NULL; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_expression_name_2; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = par_self; - tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[61]); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - assert(tmp_inplace_assign_2__value == NULL); - tmp_inplace_assign_2__value = tmp_assign_source_3; - } - // Tried code: - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - CHECK_OBJECT(tmp_inplace_assign_2__value); - tmp_left_name_2 = tmp_inplace_assign_2__value; - CHECK_OBJECT(par_value); - tmp_left_name_3 = par_value; - if (par_n == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[64]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - - tmp_right_name_3 = par_n; - tmp_right_name_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_3, tmp_right_name_3); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE(&tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - tmp_assign_source_4 = tmp_left_name_2; - tmp_inplace_assign_2__value = tmp_assign_source_4; - - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - CHECK_OBJECT(tmp_inplace_assign_2__value); - tmp_assattr_name_2 = tmp_inplace_assign_2__value; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 105; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - - tmp_assattr_target_2 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[61], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 105; - type_description_1 = "ooo"; - goto try_except_handler_3; - } - } - goto try_end_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(tmp_inplace_assign_2__value); - Py_DECREF(tmp_inplace_assign_2__value); - tmp_inplace_assign_2__value = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - CHECK_OBJECT(tmp_inplace_assign_2__value); - Py_DECREF(tmp_inplace_assign_2__value); - tmp_inplace_assign_2__value = NULL; - { - PyObject *tmp_assattr_name_3; - PyObject *tmp_left_name_4; - PyObject *tmp_expression_name_3; - PyObject *tmp_right_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_assattr_target_3; - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = par_self; - tmp_left_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[61]); - if (tmp_left_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_left_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_4 = par_self; - tmp_right_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[60]); - if (tmp_right_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_left_name_4); - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - tmp_assattr_name_3 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_4, tmp_right_name_4); - Py_DECREF(tmp_left_name_4); - Py_DECREF(tmp_right_name_4); - if (tmp_assattr_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - if (par_self == NULL) { - Py_DECREF(tmp_assattr_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - - tmp_assattr_target_3 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[62], tmp_assattr_name_3); - Py_DECREF(tmp_assattr_name_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 106; - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ab5bdeb45ab7579d0f0f857bd5ebef00); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_ab5bdeb45ab7579d0f0f857bd5ebef00); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_ab5bdeb45ab7579d0f0f857bd5ebef00, exception_lineno); - } else if (exception_tb->tb_frame != &frame_ab5bdeb45ab7579d0f0f857bd5ebef00->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_ab5bdeb45ab7579d0f0f857bd5ebef00, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_ab5bdeb45ab7579d0f0f857bd5ebef00, - type_description_1, - par_self, - par_value, - par_n - ); - - - // Release cached frame if used for exception. - if (frame_ab5bdeb45ab7579d0f0f857bd5ebef00 == cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00); - cache_frame_ab5bdeb45ab7579d0f0f857bd5ebef00 = NULL; - } - - assertFrameObject(frame_ab5bdeb45ab7579d0f0f857bd5ebef00); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_value); - par_value = NULL; - Py_XDECREF(par_n); - par_n = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_value); - par_value = NULL; - Py_XDECREF(par_n); - par_n = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__8_number_of_features_per_level(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_init_channel_number = python_pars[0]; - PyObject *par_num_levels = python_pars[1]; - PyObject *outline_0_var_k = NULL; - PyObject *tmp_listcomp_1__$0 = NULL; - PyObject *tmp_listcomp_1__contraction = NULL; - PyObject *tmp_listcomp_1__iter_value_0 = NULL; - struct Nuitka_FrameObject *frame_bcd0804471e965c93dda1a05b9894086; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - struct Nuitka_FrameObject *frame_76d97e3e85fc8ed88b6ea680601fa9c3_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - bool tmp_result; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - static struct Nuitka_FrameObject *cache_frame_bcd0804471e965c93dda1a05b9894086 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_bcd0804471e965c93dda1a05b9894086)) { - Py_XDECREF(cache_frame_bcd0804471e965c93dda1a05b9894086); - -#if _DEBUG_REFCOUNTS - if (cache_frame_bcd0804471e965c93dda1a05b9894086 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_bcd0804471e965c93dda1a05b9894086 = MAKE_FUNCTION_FRAME(codeobj_bcd0804471e965c93dda1a05b9894086, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_bcd0804471e965c93dda1a05b9894086->m_type_description == NULL); - frame_bcd0804471e965c93dda1a05b9894086 = cache_frame_bcd0804471e965c93dda1a05b9894086; - - // Push the new frame as the currently active one. - pushFrameStack(frame_bcd0804471e965c93dda1a05b9894086); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_bcd0804471e965c93dda1a05b9894086) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - CHECK_OBJECT(par_num_levels); - tmp_xrange_low_1 = par_num_levels; - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oo"; - goto try_except_handler_2; - } - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_1 = "oo"; - goto try_except_handler_2; - } - assert(tmp_listcomp_1__$0 == NULL); - tmp_listcomp_1__$0 = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = PyList_New(0); - assert(tmp_listcomp_1__contraction == NULL); - tmp_listcomp_1__contraction = tmp_assign_source_2; - } - if (isFrameUnusable(cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2)) { - Py_XDECREF(cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2 = MAKE_FUNCTION_FRAME(codeobj_76d97e3e85fc8ed88b6ea680601fa9c3, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2->m_type_description == NULL); - frame_76d97e3e85fc8ed88b6ea680601fa9c3_2 = cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2) == 2); // Frame stack - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_listcomp_1__$0); - tmp_next_source_1 = tmp_listcomp_1__$0; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_2 = "oo"; - exception_lineno = 110; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_listcomp_1__iter_value_0; - tmp_listcomp_1__iter_value_0 = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_listcomp_1__iter_value_0); - tmp_assign_source_4 = tmp_listcomp_1__iter_value_0; - { - PyObject *old = outline_0_var_k; - outline_0_var_k = tmp_assign_source_4; - Py_INCREF(outline_0_var_k); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_append_list_1; - PyObject *tmp_append_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_append_list_1 = tmp_listcomp_1__contraction; - if (par_init_channel_number == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[65]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 110; - type_description_2 = "oo"; - goto try_except_handler_3; - } - - tmp_left_name_1 = par_init_channel_number; - tmp_left_name_2 = mod_consts[66]; - CHECK_OBJECT(outline_0_var_k); - tmp_right_name_2 = outline_0_var_k; - tmp_right_name_1 = BINARY_OPERATION_POW_OBJECT_LONG_OBJECT(tmp_left_name_2, tmp_right_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "oo"; - goto try_except_handler_3; - } - tmp_append_value_1 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_append_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "oo"; - goto try_except_handler_3; - } - assert(PyList_Check(tmp_append_list_1)); - tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "oo"; - goto try_except_handler_3; - } - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 110; - type_description_2 = "oo"; - goto try_except_handler_3; - } - goto loop_start_1; - loop_end_1:; - CHECK_OBJECT(tmp_listcomp_1__contraction); - tmp_return_value = tmp_listcomp_1__contraction; - Py_INCREF(tmp_return_value); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - goto frame_return_exit_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_listcomp_1__$0); - tmp_listcomp_1__$0 = NULL; - CHECK_OBJECT(tmp_listcomp_1__contraction); - Py_DECREF(tmp_listcomp_1__contraction); - tmp_listcomp_1__contraction = NULL; - Py_XDECREF(tmp_listcomp_1__iter_value_0); - tmp_listcomp_1__iter_value_0 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_2; - // End of try: - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_2:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_2; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_76d97e3e85fc8ed88b6ea680601fa9c3_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_76d97e3e85fc8ed88b6ea680601fa9c3_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_76d97e3e85fc8ed88b6ea680601fa9c3_2, - type_description_2, - outline_0_var_k, - par_init_channel_number - ); - - - // Release cached frame if used for exception. - if (frame_76d97e3e85fc8ed88b6ea680601fa9c3_2 == cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); - cache_frame_76d97e3e85fc8ed88b6ea680601fa9c3_2 = NULL; - } - - assertFrameObject(frame_76d97e3e85fc8ed88b6ea680601fa9c3_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - type_description_1 = "oo"; - goto try_except_handler_2; - skip_nested_handling_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - Py_XDECREF(outline_0_var_k); - outline_0_var_k = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(outline_0_var_k); - outline_0_var_k = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 110; - goto frame_exception_exit_1; - outline_result_1:; - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bcd0804471e965c93dda1a05b9894086); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bcd0804471e965c93dda1a05b9894086); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_bcd0804471e965c93dda1a05b9894086); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_bcd0804471e965c93dda1a05b9894086, exception_lineno); - } else if (exception_tb->tb_frame != &frame_bcd0804471e965c93dda1a05b9894086->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_bcd0804471e965c93dda1a05b9894086, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_bcd0804471e965c93dda1a05b9894086, - type_description_1, - par_init_channel_number, - par_num_levels - ); - - - // Release cached frame if used for exception. - if (frame_bcd0804471e965c93dda1a05b9894086 == cache_frame_bcd0804471e965c93dda1a05b9894086) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_bcd0804471e965c93dda1a05b9894086); - cache_frame_bcd0804471e965c93dda1a05b9894086 = NULL; - } - - assertFrameObject(frame_bcd0804471e965c93dda1a05b9894086); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_2:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_init_channel_number); - par_init_channel_number = NULL; - CHECK_OBJECT(par_num_levels); - Py_DECREF(par_num_levels); - par_num_levels = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_init_channel_number); - par_init_channel_number = NULL; - CHECK_OBJECT(par_num_levels); - Py_DECREF(par_num_levels); - par_num_levels = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__9___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_kwargs = python_pars[1]; - PyObject *tmp_return_value = NULL; - - // Actual function body. - // Tried code: - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // End of try: - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__10___call__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_name = python_pars[1]; - PyObject *par_batch = python_pars[2]; - PyObject *var__check_img = NULL; - PyObject *var_tagged_images = NULL; - struct Nuitka_FrameObject *frame_82706f43366ccce85fe78411654557cd; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_82706f43366ccce85fe78411654557cd = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$unet3d$utils$$$function__10___call__$$$function__1__check_img(); - - assert(var__check_img == NULL); - var__check_img = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_82706f43366ccce85fe78411654557cd)) { - Py_XDECREF(cache_frame_82706f43366ccce85fe78411654557cd); - -#if _DEBUG_REFCOUNTS - if (cache_frame_82706f43366ccce85fe78411654557cd == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_82706f43366ccce85fe78411654557cd = MAKE_FUNCTION_FRAME(codeobj_82706f43366ccce85fe78411654557cd, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_82706f43366ccce85fe78411654557cd->m_type_description == NULL); - frame_82706f43366ccce85fe78411654557cd = cache_frame_82706f43366ccce85fe78411654557cd; - - // Push the new frame as the currently active one. - pushFrameStack(frame_82706f43366ccce85fe78411654557cd); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_82706f43366ccce85fe78411654557cd) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - CHECK_OBJECT(par_self); - tmp_called_instance_1 = par_self; - CHECK_OBJECT(par_name); - tmp_args_element_name_1 = par_name; - CHECK_OBJECT(par_batch); - tmp_args_element_name_2 = par_batch; - frame_82706f43366ccce85fe78411654557cd->m_frame.f_lineno = 146; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2}; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[69], - call_args - ); - } - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 146; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_tagged_images == NULL); - var_tagged_images = tmp_assign_source_2; - } - { - PyObject *tmp_list_arg_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - tmp_called_name_1 = (PyObject *)&PyMap_Type; - CHECK_OBJECT(var__check_img); - tmp_args_element_name_3 = var__check_img; - CHECK_OBJECT(var_tagged_images); - tmp_args_element_name_4 = var_tagged_images; - frame_82706f43366ccce85fe78411654557cd->m_frame.f_lineno = 148; - { - PyObject *call_args[] = {tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_list_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_name_1, call_args); - } - - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - tmp_return_value = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 148; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_82706f43366ccce85fe78411654557cd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_82706f43366ccce85fe78411654557cd); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_82706f43366ccce85fe78411654557cd); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_82706f43366ccce85fe78411654557cd, exception_lineno); - } else if (exception_tb->tb_frame != &frame_82706f43366ccce85fe78411654557cd->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_82706f43366ccce85fe78411654557cd, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_82706f43366ccce85fe78411654557cd, - type_description_1, - par_self, - par_name, - par_batch, - var__check_img, - var_tagged_images - ); - - - // Release cached frame if used for exception. - if (frame_82706f43366ccce85fe78411654557cd == cache_frame_82706f43366ccce85fe78411654557cd) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_82706f43366ccce85fe78411654557cd); - cache_frame_82706f43366ccce85fe78411654557cd = NULL; - } - - assertFrameObject(frame_82706f43366ccce85fe78411654557cd); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_batch); - par_batch = NULL; - CHECK_OBJECT(var__check_img); - Py_DECREF(var__check_img); - var__check_img = NULL; - CHECK_OBJECT(var_tagged_images); - Py_DECREF(var_tagged_images); - var_tagged_images = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_batch); - par_batch = NULL; - CHECK_OBJECT(var__check_img); - Py_DECREF(var__check_img); - var__check_img = NULL; - Py_XDECREF(var_tagged_images); - var_tagged_images = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__10___call__$$$function__1__check_img(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_tag_img = python_pars[0]; - PyObject *var_tag = NULL; - PyObject *var_img = NULL; - PyObject *var_C = NULL; - PyObject *tmp_tuple_unpack_1__element_1 = NULL; - PyObject *tmp_tuple_unpack_1__element_2 = NULL; - PyObject *tmp_tuple_unpack_1__source_iter = NULL; - struct Nuitka_FrameObject *frame_7ac7c7086ade9c579f0105e5c00b3b39; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_iterator_attempt; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_7ac7c7086ade9c579f0105e5c00b3b39 = NULL; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_7ac7c7086ade9c579f0105e5c00b3b39)) { - Py_XDECREF(cache_frame_7ac7c7086ade9c579f0105e5c00b3b39); - -#if _DEBUG_REFCOUNTS - if (cache_frame_7ac7c7086ade9c579f0105e5c00b3b39 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_7ac7c7086ade9c579f0105e5c00b3b39 = MAKE_FUNCTION_FRAME(codeobj_7ac7c7086ade9c579f0105e5c00b3b39, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_7ac7c7086ade9c579f0105e5c00b3b39->m_type_description == NULL); - frame_7ac7c7086ade9c579f0105e5c00b3b39 = cache_frame_7ac7c7086ade9c579f0105e5c00b3b39; - - // Push the new frame as the currently active one. - pushFrameStack(frame_7ac7c7086ade9c579f0105e5c00b3b39); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_7ac7c7086ade9c579f0105e5c00b3b39) == 2); // Frame stack - - // Framed code: - // Tried code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_tag_img); - tmp_iter_arg_1 = par_tag_img; - tmp_assign_source_1 = MAKE_UNPACK_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 134; - type_description_1 = "oooo"; - goto try_except_handler_2; - } - assert(tmp_tuple_unpack_1__source_iter == NULL); - tmp_tuple_unpack_1__source_iter = tmp_assign_source_1; - } - // Tried code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_unpack_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_2 = UNPACK_NEXT(tmp_unpack_1, 0, 2); - if (tmp_assign_source_2 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 134; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_1 == NULL); - tmp_tuple_unpack_1__element_1 = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_unpack_2; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; - tmp_assign_source_3 = UNPACK_NEXT(tmp_unpack_2, 1, 2); - if (tmp_assign_source_3 == NULL) { - if (!ERROR_OCCURRED()) { - exception_type = PyExc_StopIteration; - Py_INCREF(exception_type); - exception_value = NULL; - exception_tb = NULL; - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - } - - - type_description_1 = "oooo"; - exception_lineno = 134; - goto try_except_handler_3; - } - assert(tmp_tuple_unpack_1__element_2 == NULL); - tmp_tuple_unpack_1__element_2 = tmp_assign_source_3; - } - { - PyObject *tmp_iterator_name_1; - CHECK_OBJECT(tmp_tuple_unpack_1__source_iter); - tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; - // Check if iterator has left-over elements. - CHECK_OBJECT(tmp_iterator_name_1); assert(HAS_ITERNEXT(tmp_iterator_name_1)); - - tmp_iterator_attempt = (*Py_TYPE(tmp_iterator_name_1)->tp_iternext)(tmp_iterator_name_1); - - if (likely(tmp_iterator_attempt == NULL)) { - PyObject *error = GET_ERROR_OCCURRED(); - - if (error != NULL) { - if (EXCEPTION_MATCH_BOOL_SINGLE(error, PyExc_StopIteration)) { - CLEAR_ERROR_OCCURRED(); - } else { - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - type_description_1 = "oooo"; - exception_lineno = 134; - goto try_except_handler_3; - } - } - } else { - Py_DECREF(tmp_iterator_attempt); - - exception_type = PyExc_ValueError; - Py_INCREF(PyExc_ValueError); - exception_value = mod_consts[71]; - Py_INCREF(exception_value); - exception_tb = NULL; - - type_description_1 = "oooo"; - exception_lineno = 134; - goto try_except_handler_3; - } - } - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_tuple_unpack_1__source_iter); - tmp_tuple_unpack_1__source_iter = NULL; - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_tuple_unpack_1__element_1); - tmp_assign_source_4 = tmp_tuple_unpack_1__element_1; - assert(var_tag == NULL); - Py_INCREF(tmp_assign_source_4); - var_tag = tmp_assign_source_4; - } - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - - { - PyObject *tmp_assign_source_5; - CHECK_OBJECT(tmp_tuple_unpack_1__element_2); - tmp_assign_source_5 = tmp_tuple_unpack_1__element_2; - assert(var_img == NULL); - Py_INCREF(tmp_assign_source_5); - var_img = tmp_assign_source_5; - } - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - - Py_XDECREF(tmp_tuple_unpack_1__element_1); - tmp_tuple_unpack_1__element_1 = NULL; - Py_XDECREF(tmp_tuple_unpack_1__element_2); - tmp_tuple_unpack_1__element_2 = NULL; - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - int tmp_or_left_truth_1; - PyObject *tmp_or_left_value_1; - PyObject *tmp_or_right_value_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(var_img); - tmp_expression_name_1 = var_img; - tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[72]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[66]; - tmp_or_left_value_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_or_left_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_or_left_truth_1 = CHECK_IF_TRUE(tmp_or_left_value_1); - if (tmp_or_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_or_left_value_1); - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_1 == 1) { - goto or_left_1; - } else { - goto or_right_1; - } - or_right_1:; - Py_DECREF(tmp_or_left_value_1); - if (var_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[73]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_2 = var_img; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[72]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[74]; - tmp_or_right_value_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_or_right_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = tmp_or_right_value_1; - goto or_end_1; - or_left_1:; - tmp_operand_name_1 = tmp_or_left_value_1; - or_end_1:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 136; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[75]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 136; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_1; - if (var_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[73]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 138; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_3 = var_img; - tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[72]); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_3 = mod_consts[66]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 138; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 138; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_kwargs_name_1; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[77]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (var_img == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[73]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 139; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_1 = var_img; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[78]); - frame_7ac7c7086ade9c579f0105e5c00b3b39->m_frame.f_lineno = 139; - tmp_assign_source_6 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 139; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = var_img; - var_img = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_subscript_name_1; - if (var_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[73]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 141; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_6 = var_img; - tmp_expression_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[79]); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_1 = mod_consts[27]; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 141; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_C == NULL); - var_C = tmp_assign_source_7; - } - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_operand_name_2; - int tmp_or_left_truth_2; - PyObject *tmp_or_left_value_2; - PyObject *tmp_or_right_value_2; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - PyObject *tmp_compexpr_left_5; - PyObject *tmp_compexpr_right_5; - CHECK_OBJECT(var_C); - tmp_compexpr_left_4 = var_C; - tmp_compexpr_right_4 = mod_consts[80]; - tmp_or_left_value_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_or_left_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_or_left_truth_2 = CHECK_IF_TRUE(tmp_or_left_value_2); - if (tmp_or_left_truth_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_or_left_value_2); - - exception_lineno = 142; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - if (tmp_or_left_truth_2 == 1) { - goto or_left_2; - } else { - goto or_right_2; - } - or_right_2:; - Py_DECREF(tmp_or_left_value_2); - CHECK_OBJECT(var_C); - tmp_compexpr_left_5 = var_C; - tmp_compexpr_right_5 = mod_consts[74]; - tmp_or_right_value_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_5, tmp_compexpr_right_5); - if (tmp_or_right_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_operand_name_2 = tmp_or_right_value_2; - goto or_end_2; - or_left_2:; - tmp_operand_name_2 = tmp_or_left_value_2; - or_end_2:; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - Py_DECREF(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 142; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_3 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - tmp_raise_type_2 = PyExc_AssertionError; - tmp_raise_value_2 = mod_consts[81]; - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - Py_INCREF(tmp_raise_value_2); - exception_lineno = 142; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - branch_no_3:; - branch_end_2:; - { - PyObject *tmp_tuple_element_2; - CHECK_OBJECT(var_tag); - tmp_tuple_element_2 = var_tag; - tmp_return_value = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_return_value, 0, tmp_tuple_element_2); - if (var_img == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[73]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 144; - type_description_1 = "oooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_2 = var_img; - PyTuple_SET_ITEM0(tmp_return_value, 1, tmp_tuple_element_2); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_return_value); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ac7c7086ade9c579f0105e5c00b3b39); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ac7c7086ade9c579f0105e5c00b3b39); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_7ac7c7086ade9c579f0105e5c00b3b39); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_7ac7c7086ade9c579f0105e5c00b3b39, exception_lineno); - } else if (exception_tb->tb_frame != &frame_7ac7c7086ade9c579f0105e5c00b3b39->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_7ac7c7086ade9c579f0105e5c00b3b39, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_7ac7c7086ade9c579f0105e5c00b3b39, - type_description_1, - par_tag_img, - var_tag, - var_img, - var_C - ); - - - // Release cached frame if used for exception. - if (frame_7ac7c7086ade9c579f0105e5c00b3b39 == cache_frame_7ac7c7086ade9c579f0105e5c00b3b39) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_7ac7c7086ade9c579f0105e5c00b3b39); - cache_frame_7ac7c7086ade9c579f0105e5c00b3b39 = NULL; - } - - assertFrameObject(frame_7ac7c7086ade9c579f0105e5c00b3b39); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_tag_img); - par_tag_img = NULL; - CHECK_OBJECT(var_tag); - Py_DECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_img); - var_img = NULL; - Py_XDECREF(var_C); - var_C = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_tag_img); - par_tag_img = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_img); - var_img = NULL; - Py_XDECREF(var_C); - var_C = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__11_process_batch(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_name = python_pars[1]; - PyObject *par_batch = python_pars[2]; - struct Nuitka_FrameObject *frame_e1825938478ab815e683b5ebd9805f6b; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_e1825938478ab815e683b5ebd9805f6b = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e1825938478ab815e683b5ebd9805f6b)) { - Py_XDECREF(cache_frame_e1825938478ab815e683b5ebd9805f6b); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e1825938478ab815e683b5ebd9805f6b == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e1825938478ab815e683b5ebd9805f6b = MAKE_FUNCTION_FRAME(codeobj_e1825938478ab815e683b5ebd9805f6b, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e1825938478ab815e683b5ebd9805f6b->m_type_description == NULL); - frame_e1825938478ab815e683b5ebd9805f6b = cache_frame_e1825938478ab815e683b5ebd9805f6b; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e1825938478ab815e683b5ebd9805f6b); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e1825938478ab815e683b5ebd9805f6b) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_NotImplementedError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 151; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e1825938478ab815e683b5ebd9805f6b); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e1825938478ab815e683b5ebd9805f6b); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e1825938478ab815e683b5ebd9805f6b, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e1825938478ab815e683b5ebd9805f6b->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e1825938478ab815e683b5ebd9805f6b, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e1825938478ab815e683b5ebd9805f6b, - type_description_1, - par_self, - par_name, - par_batch - ); - - - // Release cached frame if used for exception. - if (frame_e1825938478ab815e683b5ebd9805f6b == cache_frame_e1825938478ab815e683b5ebd9805f6b) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e1825938478ab815e683b5ebd9805f6b); - cache_frame_e1825938478ab815e683b5ebd9805f6b = NULL; - } - - assertFrameObject(frame_e1825938478ab815e683b5ebd9805f6b); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_name); - Py_DECREF(par_name); - par_name = NULL; - CHECK_OBJECT(par_batch); - Py_DECREF(par_batch); - par_batch = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -} - - -static PyObject *impl_models$unet3d$utils$$$function__12___init__(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_skip_last_target = python_pars[1]; - PyObject *par_kwargs = python_pars[2]; - struct Nuitka_FrameObject *frame_b087066e83c3e80ad2046a90aa1fac06; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_b087066e83c3e80ad2046a90aa1fac06 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_b087066e83c3e80ad2046a90aa1fac06)) { - Py_XDECREF(cache_frame_b087066e83c3e80ad2046a90aa1fac06); - -#if _DEBUG_REFCOUNTS - if (cache_frame_b087066e83c3e80ad2046a90aa1fac06 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_b087066e83c3e80ad2046a90aa1fac06 = MAKE_FUNCTION_FRAME(codeobj_b087066e83c3e80ad2046a90aa1fac06, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_b087066e83c3e80ad2046a90aa1fac06->m_type_description == NULL); - frame_b087066e83c3e80ad2046a90aa1fac06 = cache_frame_b087066e83c3e80ad2046a90aa1fac06; - - // Push the new frame as the currently active one. - pushFrameStack(frame_b087066e83c3e80ad2046a90aa1fac06); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_b087066e83c3e80ad2046a90aa1fac06) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_type_arg_name_1; - PyObject *tmp_object_arg_name_1; - PyObject *tmp_dircall_arg2_1; - PyObject *tmp_call_result_1; - if (Nuitka_Cell_GET(self->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&exception_type, &exception_value, mod_consts[82]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 156; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - - tmp_type_arg_name_1 = Nuitka_Cell_GET(self->m_closure[0]); - CHECK_OBJECT(par_self); - tmp_object_arg_name_1 = par_self; - tmp_expression_name_1 = BUILTIN_SUPER0(tmp_type_arg_name_1, tmp_object_arg_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[83]); - Py_DECREF(tmp_expression_name_1); - if (tmp_dircall_arg1_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_kwargs); - tmp_dircall_arg2_1 = par_kwargs; - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_call_result_1 = impl_models$$$function__8_complex_call_helper_star_dict(dir_call_args); - } - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 156; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - Py_DECREF(tmp_call_result_1); - } - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - CHECK_OBJECT(par_skip_last_target); - tmp_assattr_name_1 = par_skip_last_target; - CHECK_OBJECT(par_self); - tmp_assattr_target_1 = par_self; - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[84], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 157; - type_description_1 = "oooc"; - goto frame_exception_exit_1; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b087066e83c3e80ad2046a90aa1fac06); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_b087066e83c3e80ad2046a90aa1fac06); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_b087066e83c3e80ad2046a90aa1fac06, exception_lineno); - } else if (exception_tb->tb_frame != &frame_b087066e83c3e80ad2046a90aa1fac06->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_b087066e83c3e80ad2046a90aa1fac06, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_b087066e83c3e80ad2046a90aa1fac06, - type_description_1, - par_self, - par_skip_last_target, - par_kwargs, - self->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (frame_b087066e83c3e80ad2046a90aa1fac06 == cache_frame_b087066e83c3e80ad2046a90aa1fac06) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_b087066e83c3e80ad2046a90aa1fac06); - cache_frame_b087066e83c3e80ad2046a90aa1fac06 = NULL; - } - - assertFrameObject(frame_b087066e83c3e80ad2046a90aa1fac06); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_skip_last_target); - Py_DECREF(par_skip_last_target); - par_skip_last_target = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_self); - Py_DECREF(par_self); - par_self = NULL; - CHECK_OBJECT(par_skip_last_target); - Py_DECREF(par_skip_last_target); - par_skip_last_target = NULL; - CHECK_OBJECT(par_kwargs); - Py_DECREF(par_kwargs); - par_kwargs = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__13_process_batch(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_self = python_pars[0]; - PyObject *par_name = python_pars[1]; - PyObject *par_batch = python_pars[2]; - PyObject *var_tag_template = NULL; - PyObject *var_tagged_images = NULL; - PyObject *var_slice_idx = NULL; - PyObject *var_batch_idx = NULL; - PyObject *var_channel_idx = NULL; - PyObject *var_tag = NULL; - PyObject *var_img = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - PyObject *tmp_for_loop_2__for_iterator = NULL; - PyObject *tmp_for_loop_2__iter_value = NULL; - PyObject *tmp_for_loop_3__for_iterator = NULL; - PyObject *tmp_for_loop_3__iter_value = NULL; - struct Nuitka_FrameObject *frame_edc08d057729e4f81485bac77ae693b0; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_edc08d057729e4f81485bac77ae693b0 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_edc08d057729e4f81485bac77ae693b0)) { - Py_XDECREF(cache_frame_edc08d057729e4f81485bac77ae693b0); - -#if _DEBUG_REFCOUNTS - if (cache_frame_edc08d057729e4f81485bac77ae693b0 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_edc08d057729e4f81485bac77ae693b0 = MAKE_FUNCTION_FRAME(codeobj_edc08d057729e4f81485bac77ae693b0, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_edc08d057729e4f81485bac77ae693b0->m_type_description == NULL); - frame_edc08d057729e4f81485bac77ae693b0 = cache_frame_edc08d057729e4f81485bac77ae693b0; - - // Push the new frame as the currently active one. - pushFrameStack(frame_edc08d057729e4f81485bac77ae693b0); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_edc08d057729e4f81485bac77ae693b0) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - int tmp_and_left_truth_1; - nuitka_bool tmp_and_left_value_1; - nuitka_bool tmp_and_right_value_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_tmp_and_left_value_1_object_1; - int tmp_truth_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_attribute_value_1; - int tmp_truth_name_2; - CHECK_OBJECT(par_name); - tmp_compexpr_left_1 = par_name; - tmp_compexpr_right_1 = mod_consts[85]; - tmp_tmp_and_left_value_1_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_tmp_and_left_value_1_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_tmp_and_left_value_1_object_1); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_and_left_value_1_object_1); - - exception_lineno = 160; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_and_left_value_1_object_1); - tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; - if (tmp_and_left_truth_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - if (tmp_and_left_truth_1 == 1) { - goto and_right_1; - } else { - goto and_left_1; - } - and_right_1:; - CHECK_OBJECT(par_self); - tmp_expression_name_1 = par_self; - tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[84]); - if (tmp_attribute_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 160; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_2 = CHECK_IF_TRUE(tmp_attribute_value_1); - if (tmp_truth_name_2 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_attribute_value_1); - - exception_lineno = 160; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_and_right_value_1 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_attribute_value_1); - tmp_condition_result_1 = tmp_and_right_value_1; - goto and_end_1; - and_left_1:; - tmp_condition_result_1 = tmp_and_left_value_1; - and_end_1:; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_batch); - tmp_expression_name_2 = par_batch; - tmp_subscript_name_1 = mod_consts[86]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_2, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 161; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_batch; - assert(old != NULL); - par_batch = tmp_assign_source_1; - Py_DECREF(old); - } - - } - branch_no_1:; - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = mod_consts[87]; - assert(var_tag_template == NULL); - Py_INCREF(tmp_assign_source_2); - var_tag_template = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = PyList_New(0); - assert(var_tagged_images == NULL); - var_tagged_images = tmp_assign_source_3; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_expression_name_3; - PyObject *tmp_tmp_condition_result_2_object_1; - int tmp_truth_name_3; - CHECK_OBJECT(par_batch); - tmp_expression_name_3 = par_batch; - tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[72]); - if (tmp_compexpr_left_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_2 = mod_consts[88]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - Py_DECREF(tmp_compexpr_left_2); - if (tmp_tmp_condition_result_2_object_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 167; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_truth_name_3 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1); - if (tmp_truth_name_3 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_tmp_condition_result_2_object_1); - - exception_lineno = 167; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_2 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_4; - PyObject *tmp_left_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_expression_name_5; - PyObject *tmp_subscript_name_2; - PyObject *tmp_right_name_1; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 169; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_batch; - tmp_expression_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[79]); - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_2 = mod_consts[66]; - tmp_left_name_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_4, tmp_subscript_name_2, 2); - Py_DECREF(tmp_expression_name_4); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_1 = mod_consts[66]; - tmp_assign_source_4 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 169; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_slice_idx == NULL); - var_slice_idx = tmp_assign_source_4; - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_iter_arg_1; - PyObject *tmp_xrange_low_1; - PyObject *tmp_expression_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_3; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 170; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_7 = par_batch; - tmp_expression_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[79]); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_3 = mod_consts[27]; - tmp_xrange_low_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_6, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_6); - if (tmp_xrange_low_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_1 = BUILTIN_XRANGE1(tmp_xrange_low_1); - Py_DECREF(tmp_xrange_low_1); - if (tmp_iter_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_5 = MAKE_ITERATOR(tmp_iter_arg_1); - Py_DECREF(tmp_iter_arg_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_5; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_6; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_6 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_6 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooo"; - exception_lineno = 170; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_7 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_batch_idx; - var_batch_idx = tmp_assign_source_7; - Py_INCREF(var_batch_idx); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_8; - PyObject *tmp_iter_arg_2; - PyObject *tmp_xrange_low_2; - PyObject *tmp_expression_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_4; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 171; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = par_batch; - tmp_expression_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[79]); - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_4 = mod_consts[80]; - tmp_xrange_low_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_8, tmp_subscript_name_4, 1); - Py_DECREF(tmp_expression_name_8); - if (tmp_xrange_low_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_iter_arg_2 = BUILTIN_XRANGE1(tmp_xrange_low_2); - Py_DECREF(tmp_xrange_low_2); - if (tmp_iter_arg_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_8 = MAKE_ITERATOR(tmp_iter_arg_2); - Py_DECREF(tmp_iter_arg_2); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = tmp_for_loop_2__for_iterator; - tmp_for_loop_2__for_iterator = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - // Tried code: - loop_start_2:; - { - PyObject *tmp_next_source_2; - PyObject *tmp_assign_source_9; - CHECK_OBJECT(tmp_for_loop_2__for_iterator); - tmp_next_source_2 = tmp_for_loop_2__for_iterator; - tmp_assign_source_9 = ITERATOR_NEXT(tmp_next_source_2); - if (tmp_assign_source_9 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_2; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooo"; - exception_lineno = 171; - goto try_except_handler_3; - } - } - - { - PyObject *old = tmp_for_loop_2__iter_value; - tmp_for_loop_2__iter_value = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_10; - CHECK_OBJECT(tmp_for_loop_2__iter_value); - tmp_assign_source_10 = tmp_for_loop_2__iter_value; - { - PyObject *old = var_channel_idx; - var_channel_idx = tmp_assign_source_10; - Py_INCREF(var_channel_idx); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_10; - PyObject *tmp_args_element_name_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_args_element_name_4; - if (var_tag_template == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_10 = var_tag_template; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_10, mod_consts[91]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - if (par_name == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_1 = par_name; - if (var_batch_idx == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[92]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_2 = var_batch_idx; - CHECK_OBJECT(var_channel_idx); - tmp_args_element_name_3 = var_channel_idx; - if (var_slice_idx == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 172; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_args_element_name_4 = var_slice_idx; - frame_edc08d057729e4f81485bac77ae693b0->m_frame.f_lineno = 172; - { - PyObject *call_args[] = {tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4}; - tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_1, call_args); - } - - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 172; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_tag; - var_tag = tmp_assign_source_11; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_5; - PyObject *tmp_tuple_element_1; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_11 = par_batch; - if (var_batch_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[92]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_tuple_element_1 = var_batch_idx; - tmp_subscript_name_5 = PyTuple_New(4); - PyTuple_SET_ITEM0(tmp_subscript_name_5, 0, tmp_tuple_element_1); - if (var_channel_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[94]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = var_channel_idx; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 1, tmp_tuple_element_1); - if (var_slice_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 173; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_1; - } - - tmp_tuple_element_1 = var_slice_idx; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 2, tmp_tuple_element_1); - tmp_tuple_element_1 = Py_Ellipsis; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 3, tmp_tuple_element_1); - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_subscript_name_5); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_assign_source_12 = LOOKUP_SUBSCRIPT(tmp_expression_name_11, tmp_subscript_name_5); - Py_DECREF(tmp_subscript_name_5); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 173; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - { - PyObject *old = var_img; - var_img = tmp_assign_source_12; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_5; - PyObject *tmp_tuple_element_2; - if (var_tagged_images == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 174; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - - tmp_expression_name_12 = var_tagged_images; - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[96]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - CHECK_OBJECT(var_tag); - tmp_tuple_element_2 = var_tag; - tmp_args_element_name_5 = PyTuple_New(2); - { - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_6; - PyTuple_SET_ITEM0(tmp_args_element_name_5, 0, tmp_tuple_element_2); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 174; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_2; - } - - tmp_called_instance_1 = par_self; - CHECK_OBJECT(var_img); - tmp_args_element_name_6 = var_img; - frame_edc08d057729e4f81485bac77ae693b0->m_frame.f_lineno = 174; - tmp_tuple_element_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[97], tmp_args_element_name_6); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_args_element_name_5, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - goto try_except_handler_3; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - frame_edc08d057729e4f81485bac77ae693b0->m_frame.f_lineno = 174; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_5); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_5); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 174; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - Py_DECREF(tmp_call_result_1); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 171; - type_description_1 = "oooooooooo"; - goto try_except_handler_3; - } - goto loop_start_2; - loop_end_2:; - goto try_end_1; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_2__iter_value); - tmp_for_loop_2__iter_value = NULL; - Py_XDECREF(tmp_for_loop_2__for_iterator); - tmp_for_loop_2__for_iterator = NULL; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 170; - type_description_1 = "oooooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_13; - PyObject *tmp_left_name_2; - PyObject *tmp_expression_name_13; - PyObject *tmp_expression_name_14; - PyObject *tmp_subscript_name_6; - PyObject *tmp_right_name_2; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 177; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_14 = par_batch; - tmp_expression_name_13 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[79]); - if (tmp_expression_name_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_6 = mod_consts[80]; - tmp_left_name_2 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_13, tmp_subscript_name_6, 1); - Py_DECREF(tmp_expression_name_13); - if (tmp_left_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_right_name_2 = mod_consts[66]; - tmp_assign_source_13 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_left_name_2); - if (tmp_assign_source_13 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 177; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(var_slice_idx == NULL); - var_slice_idx = tmp_assign_source_13; - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_iter_arg_3; - PyObject *tmp_xrange_low_3; - PyObject *tmp_expression_name_15; - PyObject *tmp_expression_name_16; - PyObject *tmp_subscript_name_7; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 178; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_16 = par_batch; - tmp_expression_name_15 = LOOKUP_ATTRIBUTE(tmp_expression_name_16, mod_consts[79]); - if (tmp_expression_name_15 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_subscript_name_7 = mod_consts[27]; - tmp_xrange_low_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_15, tmp_subscript_name_7, 0); - Py_DECREF(tmp_expression_name_15); - if (tmp_xrange_low_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_iter_arg_3 = BUILTIN_XRANGE1(tmp_xrange_low_3); - Py_DECREF(tmp_xrange_low_3); - if (tmp_iter_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_14 = MAKE_ITERATOR(tmp_iter_arg_3); - Py_DECREF(tmp_iter_arg_3); - if (tmp_assign_source_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_3__for_iterator == NULL); - tmp_for_loop_3__for_iterator = tmp_assign_source_14; - } - // Tried code: - loop_start_3:; - { - PyObject *tmp_next_source_3; - PyObject *tmp_assign_source_15; - CHECK_OBJECT(tmp_for_loop_3__for_iterator); - tmp_next_source_3 = tmp_for_loop_3__for_iterator; - tmp_assign_source_15 = ITERATOR_NEXT(tmp_next_source_3); - if (tmp_assign_source_15 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_3; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooooo"; - exception_lineno = 178; - goto try_except_handler_4; - } - } - - { - PyObject *old = tmp_for_loop_3__iter_value; - tmp_for_loop_3__iter_value = tmp_assign_source_15; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_16; - CHECK_OBJECT(tmp_for_loop_3__iter_value); - tmp_assign_source_16 = tmp_for_loop_3__iter_value; - { - PyObject *old = var_batch_idx; - var_batch_idx = tmp_assign_source_16; - Py_INCREF(var_batch_idx); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_17; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - if (var_tag_template == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[90]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_17 = var_tag_template; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_17, mod_consts[91]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - if (par_name == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[41]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_7 = par_name; - CHECK_OBJECT(var_batch_idx); - tmp_args_element_name_8 = var_batch_idx; - tmp_args_element_name_9 = mod_consts[27]; - if (var_slice_idx == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 179; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_args_element_name_10 = var_slice_idx; - frame_edc08d057729e4f81485bac77ae693b0->m_frame.f_lineno = 179; - { - PyObject *call_args[] = {tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9, tmp_args_element_name_10}; - tmp_assign_source_17 = CALL_FUNCTION_WITH_ARGS4(tmp_called_name_3, call_args); - } - - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_17 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 179; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = var_tag; - var_tag = tmp_assign_source_17; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_18; - PyObject *tmp_expression_name_18; - PyObject *tmp_subscript_name_8; - PyObject *tmp_tuple_element_3; - if (par_batch == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[89]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_18 = par_batch; - if (var_batch_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[92]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_tuple_element_3 = var_batch_idx; - tmp_subscript_name_8 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_subscript_name_8, 0, tmp_tuple_element_3); - if (var_slice_idx == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[93]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 180; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_3; - } - - tmp_tuple_element_3 = var_slice_idx; - PyTuple_SET_ITEM0(tmp_subscript_name_8, 1, tmp_tuple_element_3); - tmp_tuple_element_3 = Py_Ellipsis; - PyTuple_SET_ITEM0(tmp_subscript_name_8, 2, tmp_tuple_element_3); - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_subscript_name_8); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_assign_source_18 = LOOKUP_SUBSCRIPT(tmp_expression_name_18, tmp_subscript_name_8); - Py_DECREF(tmp_subscript_name_8); - if (tmp_assign_source_18 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 180; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - { - PyObject *old = var_img; - var_img = tmp_assign_source_18; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_19; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_11; - PyObject *tmp_tuple_element_4; - if (var_tagged_images == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - - tmp_expression_name_19 = var_tagged_images; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_19, mod_consts[96]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - CHECK_OBJECT(var_tag); - tmp_tuple_element_4 = var_tag; - tmp_args_element_name_11 = PyTuple_New(2); - { - PyObject *tmp_called_instance_2; - PyObject *tmp_args_element_name_12; - PyTuple_SET_ITEM0(tmp_args_element_name_11, 0, tmp_tuple_element_4); - if (par_self == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[63]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 181; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_4; - } - - tmp_called_instance_2 = par_self; - CHECK_OBJECT(var_img); - tmp_args_element_name_12 = var_img; - frame_edc08d057729e4f81485bac77ae693b0->m_frame.f_lineno = 181; - tmp_tuple_element_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[97], tmp_args_element_name_12); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooo"; - goto tuple_build_exception_4; - } - PyTuple_SET_ITEM(tmp_args_element_name_11, 1, tmp_tuple_element_4); - } - goto tuple_build_noexception_4; - // Exception handling pass through code for tuple_build: - tuple_build_exception_4:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_11); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_4:; - frame_edc08d057729e4f81485bac77ae693b0->m_frame.f_lineno = 181; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_11); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_11); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 181; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - Py_DECREF(tmp_call_result_2); - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 178; - type_description_1 = "oooooooooo"; - goto try_except_handler_4; - } - goto loop_start_3; - loop_end_3:; - goto try_end_3; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - Py_XDECREF(tmp_for_loop_3__iter_value); - tmp_for_loop_3__iter_value = NULL; - Py_XDECREF(tmp_for_loop_3__for_iterator); - tmp_for_loop_3__for_iterator = NULL; - branch_end_2:; - if (var_tagged_images == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[95]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 183; - type_description_1 = "oooooooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_tagged_images; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_edc08d057729e4f81485bac77ae693b0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_edc08d057729e4f81485bac77ae693b0); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_edc08d057729e4f81485bac77ae693b0); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_edc08d057729e4f81485bac77ae693b0, exception_lineno); - } else if (exception_tb->tb_frame != &frame_edc08d057729e4f81485bac77ae693b0->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_edc08d057729e4f81485bac77ae693b0, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_edc08d057729e4f81485bac77ae693b0, - type_description_1, - par_self, - par_name, - par_batch, - var_tag_template, - var_tagged_images, - var_slice_idx, - var_batch_idx, - var_channel_idx, - var_tag, - var_img - ); - - - // Release cached frame if used for exception. - if (frame_edc08d057729e4f81485bac77ae693b0 == cache_frame_edc08d057729e4f81485bac77ae693b0) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_edc08d057729e4f81485bac77ae693b0); - cache_frame_edc08d057729e4f81485bac77ae693b0 = NULL; - } - - assertFrameObject(frame_edc08d057729e4f81485bac77ae693b0); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_batch); - par_batch = NULL; - Py_XDECREF(var_tag_template); - var_tag_template = NULL; - Py_XDECREF(var_tagged_images); - var_tagged_images = NULL; - Py_XDECREF(var_slice_idx); - var_slice_idx = NULL; - Py_XDECREF(var_batch_idx); - var_batch_idx = NULL; - Py_XDECREF(var_channel_idx); - var_channel_idx = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_img); - var_img = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_self); - par_self = NULL; - Py_XDECREF(par_name); - par_name = NULL; - Py_XDECREF(par_batch); - par_batch = NULL; - Py_XDECREF(var_tag_template); - var_tag_template = NULL; - Py_XDECREF(var_tagged_images); - var_tagged_images = NULL; - Py_XDECREF(var_slice_idx); - var_slice_idx = NULL; - Py_XDECREF(var_batch_idx); - var_batch_idx = NULL; - Py_XDECREF(var_channel_idx); - var_channel_idx = NULL; - Py_XDECREF(var_tag); - var_tag = NULL; - Py_XDECREF(var_img); - var_img = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__14__normalize_img(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_img = python_pars[0]; - struct Nuitka_FrameObject *frame_4be53f397e0dc75a9e4b9b560c99a5cf; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf)) { - Py_XDECREF(cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf = MAKE_FUNCTION_FRAME(codeobj_4be53f397e0dc75a9e4b9b560c99a5cf, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf->m_type_description == NULL); - frame_4be53f397e0dc75a9e4b9b560c99a5cf = cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4be53f397e0dc75a9e4b9b560c99a5cf); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4be53f397e0dc75a9e4b9b560c99a5cf) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - PyObject *tmp_left_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_1; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_element_name_3; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[98]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_img); - tmp_left_name_2 = par_img; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_img); - tmp_args_element_name_2 = par_img; - frame_4be53f397e0dc75a9e4b9b560c99a5cf->m_frame.f_lineno = 187; - tmp_right_name_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[99], tmp_args_element_name_2); - if (tmp_right_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_left_name_1 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_left_name_2, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[100]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - if (par_img == NULL) { - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[73]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_3 = par_img; - frame_4be53f397e0dc75a9e4b9b560c99a5cf->m_frame.f_lineno = 187; - tmp_right_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_2); - if (tmp_right_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_left_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_args_element_name_1 = BINARY_OPERATION_TRUEDIV_OBJECT_OBJECT_OBJECT(tmp_left_name_1, tmp_right_name_2); - Py_DECREF(tmp_left_name_1); - Py_DECREF(tmp_right_name_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_4be53f397e0dc75a9e4b9b560c99a5cf->m_frame.f_lineno = 187; - tmp_return_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_element_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 187; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4be53f397e0dc75a9e4b9b560c99a5cf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4be53f397e0dc75a9e4b9b560c99a5cf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4be53f397e0dc75a9e4b9b560c99a5cf); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4be53f397e0dc75a9e4b9b560c99a5cf, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4be53f397e0dc75a9e4b9b560c99a5cf->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4be53f397e0dc75a9e4b9b560c99a5cf, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4be53f397e0dc75a9e4b9b560c99a5cf, - type_description_1, - par_img - ); - - - // Release cached frame if used for exception. - if (frame_4be53f397e0dc75a9e4b9b560c99a5cf == cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf); - cache_frame_4be53f397e0dc75a9e4b9b560c99a5cf = NULL; - } - - assertFrameObject(frame_4be53f397e0dc75a9e4b9b560c99a5cf); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_img); - par_img = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_img); - par_img = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__15__find_masks(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_batch = python_pars[0]; - PyObject *par_min_size = python_pars[1]; - PyObject *var_result = NULL; - PyObject *var_b = NULL; - PyObject *var_patch = NULL; - PyObject *var_z_sum = NULL; - PyObject *var_coords = NULL; - PyObject *var_ind = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_f70c7cc0da79564c2d7d09c16606eac3; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_f70c7cc0da79564c2d7d09c16606eac3 = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = PyList_New(0); - assert(var_result == NULL); - var_result = tmp_assign_source_1; - } - // Tried code: - if (isFrameUnusable(cache_frame_f70c7cc0da79564c2d7d09c16606eac3)) { - Py_XDECREF(cache_frame_f70c7cc0da79564c2d7d09c16606eac3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_f70c7cc0da79564c2d7d09c16606eac3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_f70c7cc0da79564c2d7d09c16606eac3 = MAKE_FUNCTION_FRAME(codeobj_f70c7cc0da79564c2d7d09c16606eac3, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_f70c7cc0da79564c2d7d09c16606eac3->m_type_description == NULL); - frame_f70c7cc0da79564c2d7d09c16606eac3 = cache_frame_f70c7cc0da79564c2d7d09c16606eac3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_f70c7cc0da79564c2d7d09c16606eac3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_f70c7cc0da79564c2d7d09c16606eac3) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_batch); - tmp_iter_arg_1 = par_batch; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_2; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_3 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_3 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - exception_lineno = 197; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_3; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_4 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_b; - var_b = tmp_assign_source_4; - Py_INCREF(var_b); - Py_XDECREF(old); - } - - } - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(var_b); - tmp_expression_name_2 = var_b; - tmp_expression_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[79]); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_1 = mod_consts[27]; - tmp_compexpr_left_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_1, tmp_subscript_name_1, 0); - Py_DECREF(tmp_expression_name_1); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_1 = mod_consts[80]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 198; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 198; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - branch_no_1:; - { - PyObject *tmp_assign_source_5; - PyObject *tmp_expression_name_3; - PyObject *tmp_subscript_name_2; - if (var_b == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[101]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 199; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_3 = var_b; - tmp_subscript_name_2 = mod_consts[27]; - tmp_assign_source_5 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_3, tmp_subscript_name_2, 0); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 199; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_patch; - var_patch = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_6; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_4; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(var_patch); - tmp_expression_name_4 = var_patch; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[61]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_kwargs_name_1 = PyDict_Copy(mod_consts[102]); - frame_f70c7cc0da79564c2d7d09c16606eac3->m_frame.f_lineno = 200; - tmp_assign_source_6 = CALL_FUNCTION_WITH_KEYARGS(tmp_called_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 200; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_z_sum; - var_z_sum = tmp_assign_source_6; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_expression_name_5; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_6; - PyObject *tmp_args_element_name_1; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - PyObject *tmp_subscript_name_3; - tmp_expression_name_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_expression_name_6 == NULL)) { - tmp_expression_name_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[103]); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_z_sum); - tmp_compexpr_left_2 = var_z_sum; - if (par_min_size == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[104]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 201; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_compexpr_right_2 = par_min_size; - tmp_args_element_name_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_2, tmp_compexpr_right_2); - if (tmp_args_element_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_2); - - exception_lineno = 201; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - frame_f70c7cc0da79564c2d7d09c16606eac3->m_frame.f_lineno = 201; - tmp_expression_name_5 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_2, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_2); - Py_DECREF(tmp_args_element_name_1); - if (tmp_expression_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_3 = mod_consts[27]; - tmp_assign_source_7 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_5, tmp_subscript_name_3, 0); - Py_DECREF(tmp_expression_name_5); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 201; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_coords; - var_coords = tmp_assign_source_7; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_len_arg_1; - PyObject *tmp_tmp_condition_result_2_object_1; - CHECK_OBJECT(var_coords); - tmp_len_arg_1 = var_coords; - tmp_compexpr_left_3 = BUILTIN_LEN(tmp_len_arg_1); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 202; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_compexpr_right_3 = mod_consts[27]; - tmp_tmp_condition_result_2_object_1 = RICH_COMPARE_GT_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - assert(!(tmp_tmp_condition_result_2_object_1 == NULL)); - tmp_condition_result_2 = CHECK_IF_TRUE(tmp_tmp_condition_result_2_object_1) == 1; - Py_DECREF(tmp_tmp_condition_result_2_object_1); - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_8; - PyObject *tmp_expression_name_7; - PyObject *tmp_subscript_name_4; - PyObject *tmp_left_name_1; - PyObject *tmp_len_arg_2; - PyObject *tmp_right_name_1; - if (var_coords == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_7 = var_coords; - if (var_coords == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[105]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 203; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_len_arg_2 = var_coords; - tmp_left_name_1 = BUILTIN_LEN(tmp_len_arg_2); - if (tmp_left_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_right_name_1 = mod_consts[66]; - tmp_subscript_name_4 = BINARY_OPERATION_FLOORDIV_OBJECT_LONG_LONG(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_left_name_1); - if (tmp_subscript_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_assign_source_8 = LOOKUP_SUBSCRIPT(tmp_expression_name_7, tmp_subscript_name_4); - Py_DECREF(tmp_subscript_name_4); - if (tmp_assign_source_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 203; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_ind; - var_ind = tmp_assign_source_8; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_8; - PyObject *tmp_call_result_1; - PyObject *tmp_args_element_name_2; - PyObject *tmp_expression_name_9; - PyObject *tmp_subscript_name_5; - PyObject *tmp_tuple_element_1; - if (var_result == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_8 = var_result; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[96]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - if (var_b == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[101]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 204; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_9 = var_b; - tmp_tuple_element_1 = mod_consts[107]; - tmp_subscript_name_5 = PyTuple_New(3); - { - PyObject *tmp_start_name_1; - PyObject *tmp_stop_name_1; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 0, tmp_tuple_element_1); - CHECK_OBJECT(var_ind); - tmp_start_name_1 = var_ind; - CHECK_OBJECT(var_ind); - tmp_left_name_2 = var_ind; - tmp_right_name_2 = mod_consts[80]; - tmp_stop_name_1 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_2, tmp_right_name_2); - if (tmp_stop_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "oooooooo"; - goto tuple_build_exception_1; - } - tmp_tuple_element_1 = MAKE_SLICEOBJ2(tmp_start_name_1, tmp_stop_name_1); - Py_DECREF(tmp_stop_name_1); - assert(!(tmp_tuple_element_1 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_5, 1, tmp_tuple_element_1); - tmp_tuple_element_1 = Py_Ellipsis; - PyTuple_SET_ITEM0(tmp_subscript_name_5, 2, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_subscript_name_5); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_args_element_name_2 = LOOKUP_SUBSCRIPT(tmp_expression_name_9, tmp_subscript_name_5); - Py_DECREF(tmp_subscript_name_5); - if (tmp_args_element_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 204; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - frame_f70c7cc0da79564c2d7d09c16606eac3->m_frame.f_lineno = 204; - tmp_call_result_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_2); - if (tmp_call_result_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 204; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_1); - } - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_9; - PyObject *tmp_left_name_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_expression_name_11; - PyObject *tmp_subscript_name_6; - PyObject *tmp_right_name_3; - if (var_b == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[101]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 206; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_11 = var_b; - tmp_expression_name_10 = LOOKUP_ATTRIBUTE(tmp_expression_name_11, mod_consts[79]); - if (tmp_expression_name_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_subscript_name_6 = mod_consts[80]; - tmp_left_name_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_6, 1); - Py_DECREF(tmp_expression_name_10); - if (tmp_left_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - tmp_right_name_3 = mod_consts[66]; - tmp_assign_source_9 = BINARY_OPERATION_FLOORDIV_OBJECT_OBJECT_LONG(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_left_name_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 206; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_ind; - var_ind = tmp_assign_source_9; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_12; - PyObject *tmp_call_result_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_13; - PyObject *tmp_subscript_name_7; - PyObject *tmp_tuple_element_2; - if (var_result == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_12 = var_result; - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[96]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - if (var_b == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[101]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 207; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - - tmp_expression_name_13 = var_b; - tmp_tuple_element_2 = mod_consts[107]; - tmp_subscript_name_7 = PyTuple_New(3); - { - PyObject *tmp_start_name_2; - PyObject *tmp_stop_name_2; - PyObject *tmp_left_name_4; - PyObject *tmp_right_name_4; - PyTuple_SET_ITEM0(tmp_subscript_name_7, 0, tmp_tuple_element_2); - CHECK_OBJECT(var_ind); - tmp_start_name_2 = var_ind; - CHECK_OBJECT(var_ind); - tmp_left_name_4 = var_ind; - tmp_right_name_4 = mod_consts[80]; - tmp_stop_name_2 = BINARY_OPERATION_ADD_OBJECT_OBJECT_LONG(tmp_left_name_4, tmp_right_name_4); - if (tmp_stop_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooooooo"; - goto tuple_build_exception_2; - } - tmp_tuple_element_2 = MAKE_SLICEOBJ2(tmp_start_name_2, tmp_stop_name_2); - Py_DECREF(tmp_stop_name_2); - assert(!(tmp_tuple_element_2 == NULL)); - PyTuple_SET_ITEM(tmp_subscript_name_7, 1, tmp_tuple_element_2); - tmp_tuple_element_2 = Py_Ellipsis; - PyTuple_SET_ITEM0(tmp_subscript_name_7, 2, tmp_tuple_element_2); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_subscript_name_7); - goto try_except_handler_2; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_args_element_name_3 = LOOKUP_SUBSCRIPT(tmp_expression_name_13, tmp_subscript_name_7); - Py_DECREF(tmp_subscript_name_7); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_4); - - exception_lineno = 207; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - frame_f70c7cc0da79564c2d7d09c16606eac3->m_frame.f_lineno = 207; - tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_4); - Py_DECREF(tmp_args_element_name_3); - if (tmp_call_result_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 207; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - Py_DECREF(tmp_call_result_2); - } - branch_end_2:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 197; - type_description_1 = "oooooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_14; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_2; - tmp_expression_name_14 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76]); - - if (unlikely(tmp_expression_name_14 == NULL)) { - tmp_expression_name_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[76]); - } - - if (tmp_expression_name_14 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[108]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - if (var_result == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 209; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - - tmp_tuple_element_3 = var_result; - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_args_name_1, 0, tmp_tuple_element_3); - tmp_kwargs_name_2 = PyDict_Copy(mod_consts[78]); - frame_f70c7cc0da79564c2d7d09c16606eac3->m_frame.f_lineno = 209; - tmp_return_value = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_1, tmp_kwargs_name_2); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_2); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 209; - type_description_1 = "oooooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f70c7cc0da79564c2d7d09c16606eac3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f70c7cc0da79564c2d7d09c16606eac3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_f70c7cc0da79564c2d7d09c16606eac3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_f70c7cc0da79564c2d7d09c16606eac3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_f70c7cc0da79564c2d7d09c16606eac3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_f70c7cc0da79564c2d7d09c16606eac3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_f70c7cc0da79564c2d7d09c16606eac3, - type_description_1, - par_batch, - par_min_size, - var_result, - var_b, - var_patch, - var_z_sum, - var_coords, - var_ind - ); - - - // Release cached frame if used for exception. - if (frame_f70c7cc0da79564c2d7d09c16606eac3 == cache_frame_f70c7cc0da79564c2d7d09c16606eac3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_f70c7cc0da79564c2d7d09c16606eac3); - cache_frame_f70c7cc0da79564c2d7d09c16606eac3 = NULL; - } - - assertFrameObject(frame_f70c7cc0da79564c2d7d09c16606eac3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_batch); - par_batch = NULL; - Py_XDECREF(par_min_size); - par_min_size = NULL; - Py_XDECREF(var_result); - var_result = NULL; - Py_XDECREF(var_b); - var_b = NULL; - Py_XDECREF(var_patch); - var_patch = NULL; - Py_XDECREF(var_z_sum); - var_z_sum = NULL; - Py_XDECREF(var_coords); - var_coords = NULL; - Py_XDECREF(var_ind); - var_ind = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_batch); - par_batch = NULL; - Py_XDECREF(par_min_size); - par_min_size = NULL; - Py_XDECREF(var_result); - var_result = NULL; - Py_XDECREF(var_b); - var_b = NULL; - Py_XDECREF(var_patch); - var_patch = NULL; - Py_XDECREF(var_z_sum); - var_z_sum = NULL; - Py_XDECREF(var_coords); - var_coords = NULL; - Py_XDECREF(var_ind); - var_ind = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__16_get_tensorboard_formatter(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_formatter_config = python_pars[0]; - PyObject *var_class_name = NULL; - PyObject *var_m = NULL; - PyObject *var_clazz = NULL; - struct Nuitka_FrameObject *frame_61210c2798264ec22c43d987ae4f77f1; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_61210c2798264ec22c43d987ae4f77f1 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_61210c2798264ec22c43d987ae4f77f1)) { - Py_XDECREF(cache_frame_61210c2798264ec22c43d987ae4f77f1); - -#if _DEBUG_REFCOUNTS - if (cache_frame_61210c2798264ec22c43d987ae4f77f1 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_61210c2798264ec22c43d987ae4f77f1 = MAKE_FUNCTION_FRAME(codeobj_61210c2798264ec22c43d987ae4f77f1, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_61210c2798264ec22c43d987ae4f77f1->m_type_description == NULL); - frame_61210c2798264ec22c43d987ae4f77f1 = cache_frame_61210c2798264ec22c43d987ae4f77f1; - - // Push the new frame as the currently active one. - pushFrameStack(frame_61210c2798264ec22c43d987ae4f77f1); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_61210c2798264ec22c43d987ae4f77f1) == 2); // Frame stack - - // Framed code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_formatter_config); - tmp_compexpr_left_1 = par_formatter_config; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_called_name_1; - tmp_called_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[110]); - - if (unlikely(tmp_called_name_1 == NULL)) { - tmp_called_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[110]); - } - - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_61210c2798264ec22c43d987ae4f77f1->m_frame.f_lineno = 214; - tmp_return_value = CALL_FUNCTION_NO_ARGS(tmp_called_name_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 214; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_formatter_config); - tmp_expression_name_1 = par_formatter_config; - tmp_subscript_name_1 = mod_consts[41]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 216; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_class_name == NULL); - var_class_name = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[111]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[111]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - frame_61210c2798264ec22c43d987ae4f77f1->m_frame.f_lineno = 217; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[112], - &PyTuple_GET_ITEM(mod_consts[113], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 217; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_m == NULL); - var_m = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - CHECK_OBJECT(var_m); - tmp_getattr_target_1 = var_m; - CHECK_OBJECT(var_class_name); - tmp_getattr_attr_1 = var_class_name; - tmp_assign_source_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, NULL); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 218; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - assert(var_clazz == NULL); - var_clazz = tmp_assign_source_3; - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - CHECK_OBJECT(var_clazz); - tmp_dircall_arg1_1 = var_clazz; - CHECK_OBJECT(par_formatter_config); - tmp_dircall_arg2_1 = par_formatter_config; - Py_INCREF(tmp_dircall_arg1_1); - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__8_complex_call_helper_star_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 219; - type_description_1 = "oooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_61210c2798264ec22c43d987ae4f77f1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_61210c2798264ec22c43d987ae4f77f1); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_61210c2798264ec22c43d987ae4f77f1); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_61210c2798264ec22c43d987ae4f77f1, exception_lineno); - } else if (exception_tb->tb_frame != &frame_61210c2798264ec22c43d987ae4f77f1->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_61210c2798264ec22c43d987ae4f77f1, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_61210c2798264ec22c43d987ae4f77f1, - type_description_1, - par_formatter_config, - var_class_name, - var_m, - var_clazz - ); - - - // Release cached frame if used for exception. - if (frame_61210c2798264ec22c43d987ae4f77f1 == cache_frame_61210c2798264ec22c43d987ae4f77f1) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_61210c2798264ec22c43d987ae4f77f1); - cache_frame_61210c2798264ec22c43d987ae4f77f1 = NULL; - } - - assertFrameObject(frame_61210c2798264ec22c43d987ae4f77f1); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - CHECK_OBJECT(par_formatter_config); - Py_DECREF(par_formatter_config); - par_formatter_config = NULL; - Py_XDECREF(var_class_name); - var_class_name = NULL; - Py_XDECREF(var_m); - var_m = NULL; - Py_XDECREF(var_clazz); - var_clazz = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(par_formatter_config); - Py_DECREF(par_formatter_config); - par_formatter_config = NULL; - Py_XDECREF(var_class_name); - var_class_name = NULL; - Py_XDECREF(var_m); - var_m = NULL; - Py_XDECREF(var_clazz); - var_clazz = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__17_expand_as_one_hot(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_input = python_pars[0]; - PyObject *par_C = python_pars[1]; - PyObject *par_ignore_index = python_pars[2]; - PyObject *var_shape = NULL; - PyObject *var_mask = NULL; - PyObject *var_result = NULL; - struct Nuitka_FrameObject *frame_85ab7d40b78ac3c154fef1cf72cdf6cf; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - bool tmp_result; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf)) { - Py_XDECREF(cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf); - -#if _DEBUG_REFCOUNTS - if (cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf = MAKE_FUNCTION_FRAME(codeobj_85ab7d40b78ac3c154fef1cf72cdf6cf, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_type_description == NULL); - frame_85ab7d40b78ac3c154fef1cf72cdf6cf = cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf; - - // Push the new frame as the currently active one. - pushFrameStack(frame_85ab7d40b78ac3c154fef1cf72cdf6cf); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_85ab7d40b78ac3c154fef1cf72cdf6cf) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_input); - tmp_called_instance_1 = par_input; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 233; - tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[114]); - if (tmp_compexpr_left_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_compexpr_right_1 = mod_consts[115]; - tmp_operand_name_1 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_1, tmp_compexpr_right_1); - Py_DECREF(tmp_compexpr_left_1); - if (tmp_operand_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - Py_DECREF(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 233; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - tmp_raise_type_1 = PyExc_AssertionError; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_lineno = 233; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_2; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 236; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_input; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 236; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[117], - &PyTuple_GET_ITEM(mod_consts[118], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 236; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_list_arg_1; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_input); - tmp_called_instance_3 = par_input; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 238; - tmp_list_arg_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[119]); - if (tmp_list_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_2 = MAKE_LIST(tmp_list_arg_1); - Py_DECREF(tmp_list_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 238; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_shape == NULL); - var_shape = tmp_assign_source_2; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - int tmp_ass_subscript_res_1; - CHECK_OBJECT(par_C); - tmp_ass_subvalue_1 = par_C; - CHECK_OBJECT(var_shape); - tmp_ass_subscribed_1 = var_shape; - tmp_ass_subscript_1 = mod_consts[80]; - tmp_ass_subscript_res_1 = SET_SUBSCRIPT_CONST(tmp_ass_subscribed_1, tmp_ass_subscript_1, 1, tmp_ass_subvalue_1); - if (tmp_ass_subscript_res_1 == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 239; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - } - { - bool tmp_condition_result_2; - PyObject *tmp_compexpr_left_2; - PyObject *tmp_compexpr_right_2; - CHECK_OBJECT(par_ignore_index); - tmp_compexpr_left_2 = par_ignore_index; - tmp_compexpr_right_2 = Py_None; - tmp_condition_result_2 = (tmp_compexpr_left_2 != tmp_compexpr_right_2) ? true : false; - if (tmp_condition_result_2 != false) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_3; - PyObject *tmp_compexpr_left_3; - PyObject *tmp_compexpr_right_3; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_args_element_name_1; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_1 = par_input; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[120]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_shape == NULL) { - Py_DECREF(tmp_called_name_1); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_1 = var_shape; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 243; - tmp_compexpr_left_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_compexpr_left_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_ignore_index); - tmp_compexpr_right_3 = par_ignore_index; - tmp_assign_source_3 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_3, tmp_compexpr_right_3); - Py_DECREF(tmp_compexpr_left_3); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 243; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_mask == NULL); - var_mask = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_4; - if (par_input == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 245; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_4 = par_input; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 245; - tmp_assign_source_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[121]); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 245; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - { - PyObject *old = par_input; - par_input = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_ass_subvalue_2; - PyObject *tmp_ass_subscribed_2; - PyObject *tmp_ass_subscript_2; - PyObject *tmp_compexpr_left_4; - PyObject *tmp_compexpr_right_4; - tmp_ass_subvalue_2 = mod_consts[27]; - CHECK_OBJECT(par_input); - tmp_ass_subscribed_2 = par_input; - CHECK_OBJECT(par_input); - tmp_compexpr_left_4 = par_input; - CHECK_OBJECT(par_ignore_index); - tmp_compexpr_right_4 = par_ignore_index; - tmp_ass_subscript_2 = RICH_COMPARE_EQ_OBJECT_OBJECT_OBJECT(tmp_compexpr_left_4, tmp_compexpr_right_4); - if (tmp_ass_subscript_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2); - Py_DECREF(tmp_ass_subscript_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 246; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_called_name_2; - PyObject *tmp_expression_name_2; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_3; - PyObject *tmp_called_name_4; - PyObject *tmp_expression_name_4; - PyObject *tmp_args_element_name_2; - PyObject *tmp_args_element_name_3; - PyObject *tmp_expression_name_5; - PyObject *tmp_args_element_name_4; - PyObject *tmp_args_element_name_5; - PyObject *tmp_args_element_name_6; - tmp_expression_name_4 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_4 == NULL)) { - tmp_expression_name_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_4, mod_consts[122]); - if (tmp_called_name_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_shape == NULL) { - Py_DECREF(tmp_called_name_4); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_2 = var_shape; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 248; - tmp_expression_name_3 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_4, tmp_args_element_name_2); - Py_DECREF(tmp_called_name_4); - if (tmp_expression_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[123]); - Py_DECREF(tmp_expression_name_3); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_3); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_5 = par_input; - tmp_args_element_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[124]); - if (tmp_args_element_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_3); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 248; - tmp_expression_name_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_3, tmp_args_element_name_3); - Py_DECREF(tmp_called_name_3); - Py_DECREF(tmp_args_element_name_3); - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[125]); - Py_DECREF(tmp_expression_name_2); - if (tmp_called_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_4 = mod_consts[80]; - if (par_input == NULL) { - Py_DECREF(tmp_called_name_2); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_5 = par_input; - tmp_args_element_name_6 = mod_consts[80]; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 248; - { - PyObject *call_args[] = {tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6}; - tmp_assign_source_5 = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_2, call_args); - } - - Py_DECREF(tmp_called_name_2); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 248; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_result == NULL); - var_result = tmp_assign_source_5; - } - { - PyObject *tmp_ass_subvalue_3; - PyObject *tmp_ass_subscribed_3; - PyObject *tmp_ass_subscript_3; - CHECK_OBJECT(par_ignore_index); - tmp_ass_subvalue_3 = par_ignore_index; - CHECK_OBJECT(var_result); - tmp_ass_subscribed_3 = var_result; - CHECK_OBJECT(var_mask); - tmp_ass_subscript_3 = var_mask; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 250; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - } - if (var_result == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[106]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 251; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_return_value = var_result; - Py_INCREF(tmp_return_value); - goto frame_return_exit_1; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_6; - PyObject *tmp_called_name_6; - PyObject *tmp_expression_name_7; - PyObject *tmp_called_name_7; - PyObject *tmp_expression_name_8; - PyObject *tmp_args_element_name_7; - PyObject *tmp_args_element_name_8; - PyObject *tmp_expression_name_9; - PyObject *tmp_args_element_name_9; - PyObject *tmp_args_element_name_10; - PyObject *tmp_args_element_name_11; - tmp_expression_name_8 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_8 == NULL)) { - tmp_expression_name_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_7 = LOOKUP_ATTRIBUTE(tmp_expression_name_8, mod_consts[122]); - if (tmp_called_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (var_shape == NULL) { - Py_DECREF(tmp_called_name_7); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_7 = var_shape; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 254; - tmp_expression_name_7 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_7, tmp_args_element_name_7); - Py_DECREF(tmp_called_name_7); - if (tmp_expression_name_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_6 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[123]); - Py_DECREF(tmp_expression_name_7); - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - if (par_input == NULL) { - Py_DECREF(tmp_called_name_6); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_expression_name_9 = par_input; - tmp_args_element_name_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[124]); - if (tmp_args_element_name_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_6); - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 254; - tmp_expression_name_6 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_8); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_8); - if (tmp_expression_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_6, mod_consts[125]); - Py_DECREF(tmp_expression_name_6); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_element_name_9 = mod_consts[80]; - if (par_input == NULL) { - Py_DECREF(tmp_called_name_5); - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[116]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_args_element_name_10 = par_input; - tmp_args_element_name_11 = mod_consts[80]; - frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame.f_lineno = 254; - { - PyObject *call_args[] = {tmp_args_element_name_9, tmp_args_element_name_10, tmp_args_element_name_11}; - tmp_return_value = CALL_FUNCTION_WITH_ARGS3(tmp_called_name_5, call_args); - } - - Py_DECREF(tmp_called_name_5); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 254; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - branch_end_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_85ab7d40b78ac3c154fef1cf72cdf6cf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_85ab7d40b78ac3c154fef1cf72cdf6cf); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_85ab7d40b78ac3c154fef1cf72cdf6cf); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_85ab7d40b78ac3c154fef1cf72cdf6cf, exception_lineno); - } else if (exception_tb->tb_frame != &frame_85ab7d40b78ac3c154fef1cf72cdf6cf->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_85ab7d40b78ac3c154fef1cf72cdf6cf, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_85ab7d40b78ac3c154fef1cf72cdf6cf, - type_description_1, - par_input, - par_C, - par_ignore_index, - var_shape, - var_mask, - var_result - ); - - - // Release cached frame if used for exception. - if (frame_85ab7d40b78ac3c154fef1cf72cdf6cf == cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf); - cache_frame_85ab7d40b78ac3c154fef1cf72cdf6cf = NULL; - } - - assertFrameObject(frame_85ab7d40b78ac3c154fef1cf72cdf6cf); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_C); - Py_DECREF(par_C); - par_C = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - Py_XDECREF(var_shape); - var_shape = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_result); - var_result = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_input); - par_input = NULL; - CHECK_OBJECT(par_C); - Py_DECREF(par_C); - par_C = NULL; - CHECK_OBJECT(par_ignore_index); - Py_DECREF(par_ignore_index); - par_ignore_index = NULL; - Py_XDECREF(var_shape); - var_shape = NULL; - Py_XDECREF(var_mask); - var_mask = NULL; - Py_XDECREF(var_result); - var_result = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__18_convert_to_numpy(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_inputs = python_pars[0]; - struct Nuitka_CellObject *var__to_numpy = Nuitka_Cell_Empty(); - PyObject *tmp_genexpr_1__$0 = NULL; - struct Nuitka_FrameObject *frame_6521fc3bbebe7428109965d170a1f859; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - static struct Nuitka_FrameObject *cache_frame_6521fc3bbebe7428109965d170a1f859 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - { - PyObject *tmp_assign_source_1; - - - tmp_assign_source_1 = MAKE_FUNCTION_models$unet3d$utils$$$function__18_convert_to_numpy$$$function__1__to_numpy(); - - assert(Nuitka_Cell_GET(var__to_numpy) == NULL); - PyCell_SET(var__to_numpy, tmp_assign_source_1); - - } - // Tried code: - if (isFrameUnusable(cache_frame_6521fc3bbebe7428109965d170a1f859)) { - Py_XDECREF(cache_frame_6521fc3bbebe7428109965d170a1f859); - -#if _DEBUG_REFCOUNTS - if (cache_frame_6521fc3bbebe7428109965d170a1f859 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_6521fc3bbebe7428109965d170a1f859 = MAKE_FUNCTION_FRAME(codeobj_6521fc3bbebe7428109965d170a1f859, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_6521fc3bbebe7428109965d170a1f859->m_type_description == NULL); - frame_6521fc3bbebe7428109965d170a1f859 = cache_frame_6521fc3bbebe7428109965d170a1f859; - - // Push the new frame as the currently active one. - pushFrameStack(frame_6521fc3bbebe7428109965d170a1f859); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_6521fc3bbebe7428109965d170a1f859) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_2; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_inputs); - tmp_iter_arg_1 = par_inputs; - tmp_assign_source_2 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 272; - type_description_1 = "oc"; - goto frame_exception_exit_1; - } - assert(tmp_genexpr_1__$0 == NULL); - tmp_genexpr_1__$0 = tmp_assign_source_2; - } - // Tried code: - { - struct Nuitka_CellObject *tmp_closure_1[2]; - - tmp_closure_1[0] = var__to_numpy; - Py_INCREF(tmp_closure_1[0]); - tmp_closure_1[1] = Nuitka_Cell_New0(tmp_genexpr_1__$0); - - tmp_return_value = MAKE_GENERATOR_models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr(tmp_closure_1); - - goto try_return_handler_2; - } - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - goto outline_result_1; - // End of try: - CHECK_OBJECT(tmp_genexpr_1__$0); - Py_DECREF(tmp_genexpr_1__$0); - tmp_genexpr_1__$0 = NULL; - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_result_1:; - goto frame_return_exit_1; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6521fc3bbebe7428109965d170a1f859); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6521fc3bbebe7428109965d170a1f859); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_6521fc3bbebe7428109965d170a1f859); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_6521fc3bbebe7428109965d170a1f859, exception_lineno); - } else if (exception_tb->tb_frame != &frame_6521fc3bbebe7428109965d170a1f859->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_6521fc3bbebe7428109965d170a1f859, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_6521fc3bbebe7428109965d170a1f859, - type_description_1, - par_inputs, - var__to_numpy - ); - - - // Release cached frame if used for exception. - if (frame_6521fc3bbebe7428109965d170a1f859 == cache_frame_6521fc3bbebe7428109965d170a1f859) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_6521fc3bbebe7428109965d170a1f859); - cache_frame_6521fc3bbebe7428109965d170a1f859 = NULL; - } - - assertFrameObject(frame_6521fc3bbebe7428109965d170a1f859); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_inputs); - par_inputs = NULL; - CHECK_OBJECT(var__to_numpy); - Py_DECREF(var__to_numpy); - var__to_numpy = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_inputs); - par_inputs = NULL; - CHECK_OBJECT(var__to_numpy); - Py_DECREF(var__to_numpy); - var__to_numpy = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__18_convert_to_numpy$$$function__1__to_numpy(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_i = python_pars[0]; - struct Nuitka_FrameObject *frame_e905871fb86832bb6dcab5228c3f9b01; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_return_value = NULL; - static struct Nuitka_FrameObject *cache_frame_e905871fb86832bb6dcab5228c3f9b01 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_e905871fb86832bb6dcab5228c3f9b01)) { - Py_XDECREF(cache_frame_e905871fb86832bb6dcab5228c3f9b01); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e905871fb86832bb6dcab5228c3f9b01 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e905871fb86832bb6dcab5228c3f9b01 = MAKE_FUNCTION_FRAME(codeobj_e905871fb86832bb6dcab5228c3f9b01, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e905871fb86832bb6dcab5228c3f9b01->m_type_description == NULL); - frame_e905871fb86832bb6dcab5228c3f9b01 = cache_frame_e905871fb86832bb6dcab5228c3f9b01; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e905871fb86832bb6dcab5228c3f9b01); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e905871fb86832bb6dcab5228c3f9b01) == 2); // Frame stack - - // Framed code: - { - nuitka_bool tmp_condition_result_1; - PyObject *tmp_operand_name_1; - PyObject *tmp_isinstance_inst_1; - PyObject *tmp_isinstance_cls_1; - PyObject *tmp_expression_name_1; - CHECK_OBJECT(par_i); - tmp_isinstance_inst_1 = par_i; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[7]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[7]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[130]); - if (tmp_isinstance_cls_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_res = Nuitka_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1); - Py_DECREF(tmp_isinstance_cls_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_operand_name_1 = (tmp_res != 0) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 269; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - tmp_condition_result_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - tmp_raise_type_1 = PyExc_AssertionError; - tmp_raise_value_1 = mod_consts[131]; - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - Py_INCREF(tmp_raise_value_1); - exception_lineno = 269; - RAISE_EXCEPTION_WITH_VALUE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "o"; - goto frame_exception_exit_1; - } - branch_no_1:; - { - PyObject *tmp_called_instance_1; - PyObject *tmp_called_instance_2; - PyObject *tmp_called_instance_3; - CHECK_OBJECT(par_i); - tmp_called_instance_3 = par_i; - frame_e905871fb86832bb6dcab5228c3f9b01->m_frame.f_lineno = 270; - tmp_called_instance_2 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[25]); - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_e905871fb86832bb6dcab5228c3f9b01->m_frame.f_lineno = 270; - tmp_called_instance_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[26]); - Py_DECREF(tmp_called_instance_2); - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - frame_e905871fb86832bb6dcab5228c3f9b01->m_frame.f_lineno = 270; - tmp_return_value = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[132]); - Py_DECREF(tmp_called_instance_1); - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 270; - type_description_1 = "o"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e905871fb86832bb6dcab5228c3f9b01); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e905871fb86832bb6dcab5228c3f9b01); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e905871fb86832bb6dcab5228c3f9b01); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e905871fb86832bb6dcab5228c3f9b01, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e905871fb86832bb6dcab5228c3f9b01->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e905871fb86832bb6dcab5228c3f9b01, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e905871fb86832bb6dcab5228c3f9b01, - type_description_1, - par_i - ); - - - // Release cached frame if used for exception. - if (frame_e905871fb86832bb6dcab5228c3f9b01 == cache_frame_e905871fb86832bb6dcab5228c3f9b01) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e905871fb86832bb6dcab5228c3f9b01); - cache_frame_e905871fb86832bb6dcab5228c3f9b01 = NULL; - } - - assertFrameObject(frame_e905871fb86832bb6dcab5228c3f9b01); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_i); - par_i = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_i); - par_i = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -struct models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr_locals { - PyObject *var_i; - PyObject *tmp_iter_value_0; - char const *type_description_1; - PyObject *exception_type; - PyObject *exception_value; - PyTracebackObject *exception_tb; - int exception_lineno; - char yield_tmps[1024]; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - int exception_keeper_lineno_2; -}; - -static PyObject *models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr_context(struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value) { - CHECK_OBJECT(generator); - assert(Nuitka_Generator_Check((PyObject *)generator)); - CHECK_OBJECT_X(yield_return_value); - - // Heap access if used. - struct models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr_locals *generator_heap = (struct models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr_locals *)generator->m_heap_storage; - - // Dispatch to yield based on return label index: - switch(generator->m_yield_return_index) { - case 1: goto yield_return_1; - } - - // Local variable initialization - NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused; - static struct Nuitka_FrameObject *cache_m_frame = NULL; - generator_heap->var_i = NULL; - generator_heap->tmp_iter_value_0 = NULL; - generator_heap->type_description_1 = NULL; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - // Actual generator function body. - // Tried code: - if (isFrameUnusable(cache_m_frame)) { - Py_XDECREF(cache_m_frame); - -#if _DEBUG_REFCOUNTS - if (cache_m_frame == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_m_frame = MAKE_FUNCTION_FRAME(codeobj_82db7767ab9e5f0f642be34a6f9d265e, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - generator->m_frame = cache_m_frame; - - // Mark the frame object as in use, ref count 1 will be up for reuse. - Py_INCREF(generator->m_frame); - assert(Py_REFCNT(generator->m_frame) == 2); // Frame stack - -#if PYTHON_VERSION >= 0x340 - generator->m_frame->m_frame.f_gen = (PyObject *)generator; -#endif - - assert(generator->m_frame->m_frame.f_back == NULL); - Py_CLEAR(generator->m_frame->m_frame.f_back); - - generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; - Py_INCREF(generator->m_frame->m_frame.f_back); - - PyThreadState_GET()->frame = &generator->m_frame->m_frame; - Py_INCREF(generator->m_frame); - - Nuitka_Frame_MarkAsExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - // Accept currently existing exception as the one to publish again when we - // yield or yield from. - { - PyThreadState *thread_state = PyThreadState_GET(); - - EXC_TYPE_F(generator) = EXC_TYPE(thread_state); - if (EXC_TYPE_F(generator) == Py_None) EXC_TYPE_F(generator) = NULL; - Py_XINCREF(EXC_TYPE_F(generator)); - EXC_VALUE_F(generator) = EXC_VALUE(thread_state); - Py_XINCREF(EXC_VALUE_F(generator)); - EXC_TRACEBACK_F(generator) = EXC_TRACEBACK(thread_state); - Py_XINCREF(EXC_TRACEBACK_F(generator)); - } - -#endif - - // Framed code: - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_1; - CHECK_OBJECT(Nuitka_Cell_GET(generator->m_closure[1])); - tmp_next_source_1 = Nuitka_Cell_GET(generator->m_closure[1]); - tmp_assign_source_1 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_1 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - generator_heap->type_description_1 = "Noc"; - generator_heap->exception_lineno = 272; - goto try_except_handler_2; - } - } - - { - PyObject *old = generator_heap->tmp_iter_value_0; - generator_heap->tmp_iter_value_0 = tmp_assign_source_1; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_2; - CHECK_OBJECT(generator_heap->tmp_iter_value_0); - tmp_assign_source_2 = generator_heap->tmp_iter_value_0; - { - PyObject *old = generator_heap->var_i; - generator_heap->var_i = tmp_assign_source_2; - Py_INCREF(generator_heap->var_i); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_expression_name_1; - PyObject *tmp_called_name_1; - PyObject *tmp_args_element_name_1; - NUITKA_MAY_BE_UNUSED PyObject *tmp_yield_result_1; - if (Nuitka_Cell_GET(generator->m_closure[0]) == NULL) { - - FORMAT_UNBOUND_CLOSURE_ERROR(&generator_heap->exception_type, &generator_heap->exception_value, mod_consts[127]); - generator_heap->exception_tb = NULL; - NORMALIZE_EXCEPTION(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - CHAIN_EXCEPTION(generator_heap->exception_value); - - generator_heap->exception_lineno = 272; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - - tmp_called_name_1 = Nuitka_Cell_GET(generator->m_closure[0]); - CHECK_OBJECT(generator_heap->var_i); - tmp_args_element_name_1 = generator_heap->var_i; - generator->m_frame->m_frame.f_lineno = 272; - tmp_expression_name_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_1, tmp_args_element_name_1); - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 272; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - Nuitka_PreserveHeap(generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), NULL); - generator->m_yield_return_index = 1; - return tmp_expression_name_1; - yield_return_1: - Nuitka_RestoreHeap(generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), NULL); - if (yield_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 272; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - tmp_yield_result_1 = yield_return_value; - } - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb); - - - generator_heap->exception_lineno = 272; - generator_heap->type_description_1 = "Noc"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Exception handler code: - try_except_handler_2:; - generator_heap->exception_keeper_type_1 = generator_heap->exception_type; - generator_heap->exception_keeper_value_1 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_1; - generator_heap->exception_value = generator_heap->exception_keeper_value_1; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - - Nuitka_Frame_MarkAsNotExecuting(generator->m_frame); - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - // Allow re-use of the frame again. - Py_DECREF(generator->m_frame); - goto frame_no_exception_1; - - frame_exception_exit_1:; - - // If it's not an exit exception, consider and create a traceback for it. - if (!EXCEPTION_MATCH_GENERATOR(generator_heap->exception_type)) { - if (generator_heap->exception_tb == NULL) { - generator_heap->exception_tb = MAKE_TRACEBACK(generator->m_frame, generator_heap->exception_lineno); - } else if (generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame) { - generator_heap->exception_tb = ADD_TRACEBACK(generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno); - } - - Nuitka_Frame_AttachLocals( - generator->m_frame, - generator_heap->type_description_1, - NULL, - generator_heap->var_i, - generator->m_closure[0] - ); - - - // Release cached frame if used for exception. - if (generator->m_frame == cache_m_frame) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_m_frame); - cache_m_frame = NULL; - } - - assertFrameObject(generator->m_frame); - } - -#if PYTHON_VERSION >= 0x300 - Py_CLEAR(EXC_TYPE_F(generator)); - Py_CLEAR(EXC_VALUE_F(generator)); - Py_CLEAR(EXC_TRACEBACK_F(generator)); -#endif - - Py_DECREF(generator->m_frame); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - goto try_end_2; - // Exception handler code: - try_except_handler_1:; - generator_heap->exception_keeper_type_2 = generator_heap->exception_type; - generator_heap->exception_keeper_value_2 = generator_heap->exception_value; - generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; - generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; - generator_heap->exception_type = NULL; - generator_heap->exception_value = NULL; - generator_heap->exception_tb = NULL; - generator_heap->exception_lineno = 0; - - Py_XDECREF(generator_heap->var_i); - generator_heap->var_i = NULL; - // Re-raise. - generator_heap->exception_type = generator_heap->exception_keeper_type_2; - generator_heap->exception_value = generator_heap->exception_keeper_value_2; - generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; - generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - try_end_2:; - Py_XDECREF(generator_heap->tmp_iter_value_0); - generator_heap->tmp_iter_value_0 = NULL; - Py_XDECREF(generator_heap->var_i); - generator_heap->var_i = NULL; - - - return NULL; - - function_exception_exit: - assert(generator_heap->exception_type); - RESTORE_ERROR_OCCURRED(generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb); - - return NULL; - -} - -static PyObject *MAKE_GENERATOR_models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr(struct Nuitka_CellObject **closure) { - return Nuitka_Generator_New( - models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr_context, - module_models$unet3d$utils, - mod_consts[58], -#if PYTHON_VERSION >= 0x350 - mod_consts[133], -#endif - codeobj_82db7767ab9e5f0f642be34a6f9d265e, - closure, - 2, - sizeof(struct models$unet3d$utils$$$function__18_convert_to_numpy$$$genexpr__1_genexpr_locals) - ); -} - - -static PyObject *impl_models$unet3d$utils$$$function__19_create_optimizer(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_optimizer_config = python_pars[0]; - PyObject *par_model = python_pars[1]; - PyObject *var_learning_rate = NULL; - PyObject *var_weight_decay = NULL; - PyObject *var_betas = NULL; - PyObject *var_optimizer = NULL; - struct Nuitka_FrameObject *frame_d714dda04915b49295d8c026054153d8; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - static struct Nuitka_FrameObject *cache_frame_d714dda04915b49295d8c026054153d8 = NULL; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_d714dda04915b49295d8c026054153d8)) { - Py_XDECREF(cache_frame_d714dda04915b49295d8c026054153d8); - -#if _DEBUG_REFCOUNTS - if (cache_frame_d714dda04915b49295d8c026054153d8 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_d714dda04915b49295d8c026054153d8 = MAKE_FUNCTION_FRAME(codeobj_d714dda04915b49295d8c026054153d8, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_d714dda04915b49295d8c026054153d8->m_type_description == NULL); - frame_d714dda04915b49295d8c026054153d8 = cache_frame_d714dda04915b49295d8c026054153d8; - - // Push the new frame as the currently active one. - pushFrameStack(frame_d714dda04915b49295d8c026054153d8); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_d714dda04915b49295d8c026054153d8) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_expression_name_1; - PyObject *tmp_subscript_name_1; - CHECK_OBJECT(par_optimizer_config); - tmp_expression_name_1 = par_optimizer_config; - tmp_subscript_name_1 = mod_consts[134]; - tmp_assign_source_1 = LOOKUP_SUBSCRIPT(tmp_expression_name_1, tmp_subscript_name_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 276; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_learning_rate == NULL); - var_learning_rate = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_optimizer_config); - tmp_called_instance_1 = par_optimizer_config; - frame_d714dda04915b49295d8c026054153d8->m_frame.f_lineno = 277; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_1, - mod_consts[40], - &PyTuple_GET_ITEM(mod_consts[135], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 277; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_weight_decay == NULL); - var_weight_decay = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_tuple_arg_1; - PyObject *tmp_called_instance_2; - if (par_optimizer_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[136]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 278; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - - tmp_called_instance_2 = par_optimizer_config; - frame_d714dda04915b49295d8c026054153d8->m_frame.f_lineno = 278; - tmp_tuple_arg_1 = CALL_METHOD_WITH_ARGS2( - tmp_called_instance_2, - mod_consts[40], - &PyTuple_GET_ITEM(mod_consts[137], 0) - ); - - if (tmp_tuple_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_assign_source_3 = PySequence_Tuple(tmp_tuple_arg_1); - Py_DECREF(tmp_tuple_arg_1); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 278; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_betas == NULL); - var_betas = tmp_assign_source_3; - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_2; - PyObject *tmp_args_name_1; - PyObject *tmp_tuple_element_1; - PyObject *tmp_called_instance_3; - PyObject *tmp_kwargs_name_1; - PyObject *tmp_dict_key_1; - PyObject *tmp_dict_value_1; - tmp_expression_name_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[138]); - - if (unlikely(tmp_expression_name_2 == NULL)) { - tmp_expression_name_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[138]); - } - - if (tmp_expression_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_2, mod_consts[139]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - CHECK_OBJECT(par_model); - tmp_called_instance_3 = par_model; - frame_d714dda04915b49295d8c026054153d8->m_frame.f_lineno = 279; - tmp_tuple_element_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_3, mod_consts[54]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - Py_DECREF(tmp_called_name_1); - - exception_lineno = 279; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - tmp_args_name_1 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_args_name_1, 0, tmp_tuple_element_1); - tmp_dict_key_1 = mod_consts[140]; - CHECK_OBJECT(var_learning_rate); - tmp_dict_value_1 = var_learning_rate; - tmp_kwargs_name_1 = _PyDict_NewPresized( 3 ); - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[141]; - CHECK_OBJECT(var_betas); - tmp_dict_value_1 = var_betas; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - tmp_dict_key_1 = mod_consts[142]; - CHECK_OBJECT(var_weight_decay); - tmp_dict_value_1 = var_weight_decay; - tmp_res = PyDict_SetItem(tmp_kwargs_name_1, tmp_dict_key_1, tmp_dict_value_1); - assert(!(tmp_res != 0)); - frame_d714dda04915b49295d8c026054153d8->m_frame.f_lineno = 279; - tmp_assign_source_4 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - Py_DECREF(tmp_args_name_1); - Py_DECREF(tmp_kwargs_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 279; - type_description_1 = "oooooo"; - goto frame_exception_exit_1; - } - assert(var_optimizer == NULL); - var_optimizer = tmp_assign_source_4; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d714dda04915b49295d8c026054153d8); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_d714dda04915b49295d8c026054153d8); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_d714dda04915b49295d8c026054153d8, exception_lineno); - } else if (exception_tb->tb_frame != &frame_d714dda04915b49295d8c026054153d8->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_d714dda04915b49295d8c026054153d8, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_d714dda04915b49295d8c026054153d8, - type_description_1, - par_optimizer_config, - par_model, - var_learning_rate, - var_weight_decay, - var_betas, - var_optimizer - ); - - - // Release cached frame if used for exception. - if (frame_d714dda04915b49295d8c026054153d8 == cache_frame_d714dda04915b49295d8c026054153d8) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_d714dda04915b49295d8c026054153d8); - cache_frame_d714dda04915b49295d8c026054153d8 = NULL; - } - - assertFrameObject(frame_d714dda04915b49295d8c026054153d8); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - CHECK_OBJECT(var_optimizer); - tmp_return_value = var_optimizer; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_optimizer_config); - par_optimizer_config = NULL; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var_learning_rate); - var_learning_rate = NULL; - Py_XDECREF(var_weight_decay); - var_weight_decay = NULL; - Py_XDECREF(var_betas); - var_betas = NULL; - CHECK_OBJECT(var_optimizer); - Py_DECREF(var_optimizer); - var_optimizer = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_optimizer_config); - par_optimizer_config = NULL; - Py_XDECREF(par_model); - par_model = NULL; - Py_XDECREF(var_learning_rate); - var_learning_rate = NULL; - Py_XDECREF(var_weight_decay); - var_weight_decay = NULL; - Py_XDECREF(var_betas); - var_betas = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__20_create_lr_scheduler(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_lr_config = python_pars[0]; - PyObject *par_optimizer = python_pars[1]; - PyObject *var_class_name = NULL; - PyObject *var_m = NULL; - PyObject *var_clazz = NULL; - PyObject *tmp_return_value = NULL; - struct Nuitka_FrameObject *frame_2fed6b99f33516d2401fb70e46a30231; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - bool tmp_result; - static struct Nuitka_FrameObject *cache_frame_2fed6b99f33516d2401fb70e46a30231 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - - // Actual function body. - // Tried code: - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(par_lr_config); - tmp_compexpr_left_1 = par_lr_config; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 == tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - tmp_return_value = Py_None; - Py_INCREF(tmp_return_value); - goto try_return_handler_1; - branch_no_1:; - if (isFrameUnusable(cache_frame_2fed6b99f33516d2401fb70e46a30231)) { - Py_XDECREF(cache_frame_2fed6b99f33516d2401fb70e46a30231); - -#if _DEBUG_REFCOUNTS - if (cache_frame_2fed6b99f33516d2401fb70e46a30231 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_2fed6b99f33516d2401fb70e46a30231 = MAKE_FUNCTION_FRAME(codeobj_2fed6b99f33516d2401fb70e46a30231, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_2fed6b99f33516d2401fb70e46a30231->m_type_description == NULL); - frame_2fed6b99f33516d2401fb70e46a30231 = cache_frame_2fed6b99f33516d2401fb70e46a30231; - - // Push the new frame as the currently active one. - pushFrameStack(frame_2fed6b99f33516d2401fb70e46a30231); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_2fed6b99f33516d2401fb70e46a30231) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_called_instance_1; - CHECK_OBJECT(par_lr_config); - tmp_called_instance_1 = par_lr_config; - frame_2fed6b99f33516d2401fb70e46a30231->m_frame.f_lineno = 286; - tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_1, - mod_consts[143], - &PyTuple_GET_ITEM(mod_consts[144], 0) - ); - - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 286; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_class_name == NULL); - var_class_name = tmp_assign_source_1; - } - { - PyObject *tmp_assign_source_2; - PyObject *tmp_called_instance_2; - tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[111]); - - if (unlikely(tmp_called_instance_2 == NULL)) { - tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[111]); - } - - if (tmp_called_instance_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_2fed6b99f33516d2401fb70e46a30231->m_frame.f_lineno = 287; - tmp_assign_source_2 = CALL_METHOD_WITH_ARGS1( - tmp_called_instance_2, - mod_consts[112], - &PyTuple_GET_ITEM(mod_consts[145], 0) - ); - - if (tmp_assign_source_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 287; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_m == NULL); - var_m = tmp_assign_source_2; - } - { - PyObject *tmp_assign_source_3; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - CHECK_OBJECT(var_m); - tmp_getattr_target_1 = var_m; - CHECK_OBJECT(var_class_name); - tmp_getattr_attr_1 = var_class_name; - tmp_assign_source_3 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, NULL); - if (tmp_assign_source_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 288; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(var_clazz == NULL); - var_clazz = tmp_assign_source_3; - } - { - PyObject *tmp_ass_subvalue_1; - PyObject *tmp_ass_subscribed_1; - PyObject *tmp_ass_subscript_1; - CHECK_OBJECT(par_optimizer); - tmp_ass_subvalue_1 = par_optimizer; - if (par_lr_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[146]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 290; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_ass_subscribed_1 = par_lr_config; - tmp_ass_subscript_1 = mod_consts[147]; - tmp_result = SET_SUBSCRIPT(tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 290; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_dircall_arg1_1; - PyObject *tmp_dircall_arg2_1; - CHECK_OBJECT(var_clazz); - tmp_dircall_arg1_1 = var_clazz; - if (par_lr_config == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[146]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 291; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - - tmp_dircall_arg2_1 = par_lr_config; - Py_INCREF(tmp_dircall_arg1_1); - Py_INCREF(tmp_dircall_arg2_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; - tmp_return_value = impl_models$$$function__8_complex_call_helper_star_dict(dir_call_args); - } - if (tmp_return_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 291; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - goto frame_return_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2fed6b99f33516d2401fb70e46a30231); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2fed6b99f33516d2401fb70e46a30231); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_2fed6b99f33516d2401fb70e46a30231); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_2fed6b99f33516d2401fb70e46a30231, exception_lineno); - } else if (exception_tb->tb_frame != &frame_2fed6b99f33516d2401fb70e46a30231->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_2fed6b99f33516d2401fb70e46a30231, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_2fed6b99f33516d2401fb70e46a30231, - type_description_1, - par_lr_config, - par_optimizer, - var_class_name, - var_m, - var_clazz - ); - - - // Release cached frame if used for exception. - if (frame_2fed6b99f33516d2401fb70e46a30231 == cache_frame_2fed6b99f33516d2401fb70e46a30231) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_2fed6b99f33516d2401fb70e46a30231); - cache_frame_2fed6b99f33516d2401fb70e46a30231 = NULL; - } - - assertFrameObject(frame_2fed6b99f33516d2401fb70e46a30231); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_lr_config); - par_lr_config = NULL; - CHECK_OBJECT(par_optimizer); - Py_DECREF(par_optimizer); - par_optimizer = NULL; - Py_XDECREF(var_class_name); - var_class_name = NULL; - Py_XDECREF(var_m); - var_m = NULL; - Py_XDECREF(var_clazz); - var_clazz = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_lr_config); - par_lr_config = NULL; - CHECK_OBJECT(par_optimizer); - Py_DECREF(par_optimizer); - par_optimizer = NULL; - Py_XDECREF(var_class_name); - var_class_name = NULL; - Py_XDECREF(var_m); - var_m = NULL; - Py_XDECREF(var_clazz); - var_clazz = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - -static PyObject *impl_models$unet3d$utils$$$function__21_get_class(struct Nuitka_FunctionObject const *self, PyObject **python_pars) { - // Preserve error status for checks -#ifndef __NUITKA_NO_ASSERT__ - NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); -#endif - - // Local variable declarations. - PyObject *par_class_name = python_pars[0]; - PyObject *par_modules = python_pars[1]; - PyObject *var_module = NULL; - PyObject *var_m = NULL; - PyObject *var_clazz = NULL; - PyObject *tmp_for_loop_1__for_iterator = NULL; - PyObject *tmp_for_loop_1__iter_value = NULL; - struct Nuitka_FrameObject *frame_5ce85411819ee7c91305d022a537c8ff; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - PyObject *tmp_return_value = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - static struct Nuitka_FrameObject *cache_frame_5ce85411819ee7c91305d022a537c8ff = NULL; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - - // Actual function body. - // Tried code: - if (isFrameUnusable(cache_frame_5ce85411819ee7c91305d022a537c8ff)) { - Py_XDECREF(cache_frame_5ce85411819ee7c91305d022a537c8ff); - -#if _DEBUG_REFCOUNTS - if (cache_frame_5ce85411819ee7c91305d022a537c8ff == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_5ce85411819ee7c91305d022a537c8ff = MAKE_FUNCTION_FRAME(codeobj_5ce85411819ee7c91305d022a537c8ff, module_models$unet3d$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_5ce85411819ee7c91305d022a537c8ff->m_type_description == NULL); - frame_5ce85411819ee7c91305d022a537c8ff = cache_frame_5ce85411819ee7c91305d022a537c8ff; - - // Push the new frame as the currently active one. - pushFrameStack(frame_5ce85411819ee7c91305d022a537c8ff); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_5ce85411819ee7c91305d022a537c8ff) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_assign_source_1; - PyObject *tmp_iter_arg_1; - CHECK_OBJECT(par_modules); - tmp_iter_arg_1 = par_modules; - tmp_assign_source_1 = MAKE_ITERATOR(tmp_iter_arg_1); - if (tmp_assign_source_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - assert(tmp_for_loop_1__for_iterator == NULL); - tmp_for_loop_1__for_iterator = tmp_assign_source_1; - } - // Tried code: - loop_start_1:; - { - PyObject *tmp_next_source_1; - PyObject *tmp_assign_source_2; - CHECK_OBJECT(tmp_for_loop_1__for_iterator); - tmp_next_source_1 = tmp_for_loop_1__for_iterator; - tmp_assign_source_2 = ITERATOR_NEXT(tmp_next_source_1); - if (tmp_assign_source_2 == NULL) { - if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) { - - goto loop_end_1; - } else { - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooo"; - exception_lineno = 295; - goto try_except_handler_2; - } - } - - { - PyObject *old = tmp_for_loop_1__iter_value; - tmp_for_loop_1__iter_value = tmp_assign_source_2; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_3; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - tmp_assign_source_3 = tmp_for_loop_1__iter_value; - { - PyObject *old = var_module; - var_module = tmp_assign_source_3; - Py_INCREF(var_module); - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_4; - PyObject *tmp_called_instance_1; - PyObject *tmp_args_element_name_1; - tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[111]); - - if (unlikely(tmp_called_instance_1 == NULL)) { - tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[111]); - } - - if (tmp_called_instance_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - CHECK_OBJECT(var_module); - tmp_args_element_name_1 = var_module; - frame_5ce85411819ee7c91305d022a537c8ff->m_frame.f_lineno = 296; - tmp_assign_source_4 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[112], tmp_args_element_name_1); - if (tmp_assign_source_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 296; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_m; - var_m = tmp_assign_source_4; - Py_XDECREF(old); - } - - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - CHECK_OBJECT(var_m); - tmp_getattr_target_1 = var_m; - if (par_class_name == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[148]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 297; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - - tmp_getattr_attr_1 = par_class_name; - tmp_getattr_default_1 = Py_None; - tmp_assign_source_5 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 297; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - { - PyObject *old = var_clazz; - var_clazz = tmp_assign_source_5; - Py_XDECREF(old); - } - - } - { - bool tmp_condition_result_1; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(var_clazz); - tmp_compexpr_left_1 = var_clazz; - tmp_compexpr_right_1 = Py_None; - tmp_condition_result_1 = (tmp_compexpr_left_1 != tmp_compexpr_right_1) ? true : false; - if (tmp_condition_result_1 != false) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(var_clazz); - tmp_return_value = var_clazz; - Py_INCREF(tmp_return_value); - goto try_return_handler_2; - branch_no_1:; - if (CONSIDER_THREADING() == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 295; - type_description_1 = "ooooo"; - goto try_except_handler_2; - } - goto loop_start_1; - loop_end_1:; - goto try_end_1; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(tmp_for_loop_1__iter_value); - Py_DECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - goto frame_return_exit_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_for_loop_1__iter_value); - tmp_for_loop_1__iter_value = NULL; - Py_XDECREF(tmp_for_loop_1__for_iterator); - tmp_for_loop_1__for_iterator = NULL; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_make_exception_arg_1; - PyObject *tmp_string_concat_values_1; - PyObject *tmp_tuple_element_1; - tmp_tuple_element_1 = mod_consts[149]; - tmp_string_concat_values_1 = PyTuple_New(2); - { - PyObject *tmp_format_value_1; - PyObject *tmp_format_spec_1; - PyTuple_SET_ITEM0(tmp_string_concat_values_1, 0, tmp_tuple_element_1); - if (par_class_name == NULL) { - - FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[148]); - exception_tb = NULL; - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 300; - type_description_1 = "ooooo"; - goto tuple_build_exception_1; - } - - tmp_format_value_1 = par_class_name; - tmp_format_spec_1 = mod_consts[16]; - tmp_tuple_element_1 = BUILTIN_FORMAT(tmp_format_value_1, tmp_format_spec_1); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooooo"; - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_string_concat_values_1, 1, tmp_tuple_element_1); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_string_concat_values_1); - goto frame_exception_exit_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_make_exception_arg_1 = PyUnicode_Join(mod_consts[16], tmp_string_concat_values_1); - Py_DECREF(tmp_string_concat_values_1); - if (tmp_make_exception_arg_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 300; - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - frame_5ce85411819ee7c91305d022a537c8ff->m_frame.f_lineno = 300; - tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(PyExc_RuntimeError, tmp_make_exception_arg_1); - Py_DECREF(tmp_make_exception_arg_1); - assert(!(tmp_raise_type_1 == NULL)); - exception_type = tmp_raise_type_1; - exception_lineno = 300; - RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb); - type_description_1 = "ooooo"; - goto frame_exception_exit_1; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5ce85411819ee7c91305d022a537c8ff); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_return_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5ce85411819ee7c91305d022a537c8ff); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto try_return_handler_1; - - frame_exception_exit_1:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_5ce85411819ee7c91305d022a537c8ff); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_5ce85411819ee7c91305d022a537c8ff, exception_lineno); - } else if (exception_tb->tb_frame != &frame_5ce85411819ee7c91305d022a537c8ff->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_5ce85411819ee7c91305d022a537c8ff, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_5ce85411819ee7c91305d022a537c8ff, - type_description_1, - par_class_name, - par_modules, - var_module, - var_m, - var_clazz - ); - - - // Release cached frame if used for exception. - if (frame_5ce85411819ee7c91305d022a537c8ff == cache_frame_5ce85411819ee7c91305d022a537c8ff) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_5ce85411819ee7c91305d022a537c8ff); - cache_frame_5ce85411819ee7c91305d022a537c8ff = NULL; - } - - assertFrameObject(frame_5ce85411819ee7c91305d022a537c8ff); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto try_except_handler_1; - - frame_no_exception_1:; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_1:; - Py_XDECREF(par_class_name); - par_class_name = NULL; - Py_XDECREF(par_modules); - par_modules = NULL; - Py_XDECREF(var_module); - var_module = NULL; - CHECK_OBJECT(var_m); - Py_DECREF(var_m); - var_m = NULL; - CHECK_OBJECT(var_clazz); - Py_DECREF(var_clazz); - var_clazz = NULL; - goto function_return_exit; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(par_class_name); - par_class_name = NULL; - Py_XDECREF(par_modules); - par_modules = NULL; - Py_XDECREF(var_module); - var_module = NULL; - Py_XDECREF(var_m); - var_m = NULL; - Py_XDECREF(var_clazz); - var_clazz = NULL; - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto function_exception_exit; - // End of try: - - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - -function_exception_exit: - assert(exception_type); - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - - return NULL; - -function_return_exit: - // Function cleanup code if any. - - - // Actual function exit with return value, making sure we did not make - // the error status worse despite non-NULL return. - CHECK_OBJECT(tmp_return_value); - assert(had_error || !ERROR_OCCURRED()); - return tmp_return_value; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__10___call__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__10___call__, - mod_consts[185], -#if PYTHON_VERSION >= 0x300 - mod_consts[186], -#endif - codeobj_82706f43366ccce85fe78411654557cd, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - mod_consts[70], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__10___call__$$$function__1__check_img() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__10___call__$$$function__1__check_img, - mod_consts[67], -#if PYTHON_VERSION >= 0x300 - mod_consts[68], -#endif - codeobj_7ac7c7086ade9c579f0105e5c00b3b39, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__11_process_batch() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__11_process_batch, - mod_consts[69], -#if PYTHON_VERSION >= 0x300 - mod_consts[187], -#endif - codeobj_e1825938478ab815e683b5ebd9805f6b, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__12___init__(PyObject *defaults, struct Nuitka_CellObject **closure) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__12___init__, - mod_consts[83], -#if PYTHON_VERSION >= 0x300 - mod_consts[189], -#endif - codeobj_b087066e83c3e80ad2046a90aa1fac06, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - closure, - 1 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__13_process_batch() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__13_process_batch, - mod_consts[69], -#if PYTHON_VERSION >= 0x300 - mod_consts[190], -#endif - codeobj_edc08d057729e4f81485bac77ae693b0, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__14__normalize_img() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__14__normalize_img, - mod_consts[97], -#if PYTHON_VERSION >= 0x300 - mod_consts[192], -#endif - codeobj_4be53f397e0dc75a9e4b9b560c99a5cf, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__15__find_masks(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__15__find_masks, - mod_consts[195], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_f70c7cc0da79564c2d7d09c16606eac3, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - mod_consts[109], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__16_get_tensorboard_formatter() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__16_get_tensorboard_formatter, - mod_consts[196], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_61210c2798264ec22c43d987ae4f77f1, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__17_expand_as_one_hot(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__17_expand_as_one_hot, - mod_consts[197], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_85ab7d40b78ac3c154fef1cf72cdf6cf, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - mod_consts[126], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__18_convert_to_numpy() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__18_convert_to_numpy, - mod_consts[198], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_6521fc3bbebe7428109965d170a1f859, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - mod_consts[129], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__18_convert_to_numpy$$$function__1__to_numpy() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__18_convert_to_numpy$$$function__1__to_numpy, - mod_consts[127], -#if PYTHON_VERSION >= 0x300 - mod_consts[128], -#endif - codeobj_e905871fb86832bb6dcab5228c3f9b01, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__19_create_optimizer() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__19_create_optimizer, - mod_consts[199], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_d714dda04915b49295d8c026054153d8, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__1_save_checkpoint() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__1_save_checkpoint, - mod_consts[157], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_ad2691146e6907fe614331fcc72af99a, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - mod_consts[13], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__20_create_lr_scheduler() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__20_create_lr_scheduler, - mod_consts[200], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_2fed6b99f33516d2401fb70e46a30231, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__21_get_class() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__21_get_class, - mod_consts[201], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_5ce85411819ee7c91305d022a537c8ff, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__2_load_checkpoint(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__2_load_checkpoint, - mod_consts[159], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_0353fe5846562bc4a5d4d0799526c4ea, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - mod_consts[21], - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__3_save_network_output(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__3_save_network_output, - mod_consts[161], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_a062b6ee58468f582fd722055b70cfe8, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__4_get_logger(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__4_get_logger, - mod_consts[163], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_1b1fe57bb26c92a6661bc6e8e0e541aa, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters, - mod_consts[164], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_8cbdaf474bdfd0cbff8c5cf044bbca27, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__6___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__6___init__, - mod_consts[83], -#if PYTHON_VERSION >= 0x300 - mod_consts[177], -#endif - codeobj_f606fbbc88118bf877f3588e04f80ffb, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__7_update(PyObject *defaults) { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__7_update, - mod_consts[178], -#if PYTHON_VERSION >= 0x300 - mod_consts[179], -#endif - codeobj_ab5bdeb45ab7579d0f0f857bd5ebef00, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__8_number_of_features_per_level() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__8_number_of_features_per_level, - mod_consts[180], -#if PYTHON_VERSION >= 0x300 - NULL, -#endif - codeobj_bcd0804471e965c93dda1a05b9894086, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - - -static PyObject *MAKE_FUNCTION_models$unet3d$utils$$$function__9___init__() { - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - impl_models$unet3d$utils$$$function__9___init__, - mod_consts[83], -#if PYTHON_VERSION >= 0x300 - mod_consts[184], -#endif - codeobj_ca9eb4692c07d74e94e0524edfb36775, - NULL, -#if PYTHON_VERSION >= 0x300 - NULL, - NULL, -#endif - module_models$unet3d$utils, - NULL, - NULL, - 0 - ); - - - return (PyObject *)result; -} - - -extern void _initCompiledCellType(); -extern void _initCompiledGeneratorType(); -extern void _initCompiledFunctionType(); -extern void _initCompiledMethodType(); -extern void _initCompiledFrameType(); - -extern PyTypeObject Nuitka_Loader_Type; - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED -// Provide a way to create find a function via its C code and create it back -// in another process, useful for multiprocessing extensions like dill -extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function); - -function_impl_code functable_models$unet3d$utils[] = { - impl_models$unet3d$utils$$$function__10___call__$$$function__1__check_img, - impl_models$unet3d$utils$$$function__18_convert_to_numpy$$$function__1__to_numpy, - impl_models$unet3d$utils$$$function__1_save_checkpoint, - impl_models$unet3d$utils$$$function__2_load_checkpoint, - impl_models$unet3d$utils$$$function__3_save_network_output, - impl_models$unet3d$utils$$$function__4_get_logger, - impl_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters, - impl_models$unet3d$utils$$$function__6___init__, - impl_models$unet3d$utils$$$function__7_update, - impl_models$unet3d$utils$$$function__8_number_of_features_per_level, - impl_models$unet3d$utils$$$function__9___init__, - impl_models$unet3d$utils$$$function__10___call__, - impl_models$unet3d$utils$$$function__11_process_batch, - impl_models$unet3d$utils$$$function__12___init__, - impl_models$unet3d$utils$$$function__13_process_batch, - impl_models$unet3d$utils$$$function__14__normalize_img, - impl_models$unet3d$utils$$$function__15__find_masks, - impl_models$unet3d$utils$$$function__16_get_tensorboard_formatter, - impl_models$unet3d$utils$$$function__17_expand_as_one_hot, - impl_models$unet3d$utils$$$function__18_convert_to_numpy, - impl_models$unet3d$utils$$$function__19_create_optimizer, - impl_models$unet3d$utils$$$function__20_create_lr_scheduler, - impl_models$unet3d$utils$$$function__21_get_class, - NULL -}; - -static char const *_reduce_compiled_function_argnames[] = { - "func", - NULL -}; - -static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - PyObject *func; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) { - return NULL; - } - - if (Nuitka_Function_Check(func) == false) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function"); - return NULL; - } - - struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func; - - function_impl_code *current = functable_models$unet3d$utils; - int offset = 0; - - while (*current != NULL) { - if (*current == function->m_c_code) { - break; - } - - current += 1; - offset += 1; - } - - if (*current == NULL) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module."); - return NULL; - } - - PyObject *code_object_desc = PyTuple_New(6); - PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename); - PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name); - PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno)); - PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames); - PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount)); - PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags)); - - CHECK_OBJECT_DEEP(code_object_desc); - - PyObject *result = PyTuple_New(4); - PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset)); - PyTuple_SET_ITEM(result, 1, code_object_desc); - PyTuple_SET_ITEM0(result, 2, function->m_defaults); - PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None); - - CHECK_OBJECT_DEEP(result); - - return result; -} - -static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL}; - -static char const *_create_compiled_function_argnames[] = { - "func", - "code_object_desc", - "defaults", - "doc", - NULL -}; - - -static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) { - CHECK_OBJECT_DEEP(args); - - PyObject *func; - PyObject *code_object_desc; - PyObject *defaults; - PyObject *doc; - - if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) { - return NULL; - } - - int offset = PyLong_AsLong(func); - - if (offset == -1 && ERROR_OCCURRED()) { - return NULL; - } - - if (offset > sizeof(functable_models$unet3d$utils) || offset < 0) { - SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function."); - return NULL; - } - - PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0); - PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1); - PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2); - int line_int = PyLong_AsLong(line); - assert(!ERROR_OCCURRED()); - - PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3); - PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4); - int arg_count_int = PyLong_AsLong(arg_count); - assert(!ERROR_OCCURRED()); - PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5); - int flags_int = PyLong_AsLong(flags); - assert(!ERROR_OCCURRED()); - - PyCodeObject *code_object = MAKE_CODEOBJECT( - filename, - line_int, - flags_int, - function_name, - argnames, - NULL, // freevars - arg_count_int, - 0, // TODO: Missing kw_only_count - 0 // TODO: Missing pos_only_count - ); - - struct Nuitka_FunctionObject *result = Nuitka_Function_New( - functable_models$unet3d$utils[offset], - code_object->co_name, -#if PYTHON_VERSION >= 0x300 - NULL, // TODO: Not transferring qualname yet -#endif - code_object, - defaults, -#if PYTHON_VERSION >= 0x300 - NULL, // kwdefaults are done on the outside currently - NULL, // TODO: Not transferring annotations -#endif - module_models$unet3d$utils, - doc, - NULL, - 0 - ); - - return (PyObject *)result; -} - -static PyMethodDef _method_def_create_compiled_function = { - "create_compiled_function", - (PyCFunction)_create_compiled_function, - METH_VARARGS | METH_KEYWORDS, NULL -}; - - -#endif - -// Internal entry point for module code. -PyObject *modulecode_models$unet3d$utils(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *module_entry) { - module_models$unet3d$utils = module; - -#ifdef _NUITKA_MODULE - // In case of a stand alone extension module, need to call initialization - // the init here because that's the first and only time we are going to get - // called here. - - // Initialize the constant values used. - _initBuiltinModule(); - createGlobalConstants(); - - /* Initialize the compiled types of Nuitka. */ - _initCompiledCellType(); - _initCompiledGeneratorType(); - _initCompiledFunctionType(); - _initCompiledMethodType(); - _initCompiledFrameType(); - -#if PYTHON_VERSION < 0x300 - _initSlotCompare(); -#endif -#if PYTHON_VERSION >= 0x270 - _initSlotIternext(); -#endif - - patchBuiltinModule(); - patchTypeComparison(); - - // Enable meta path based loader if not already done. -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.utils: Calling setupMetaPathBasedLoader().\n"); -#endif - setupMetaPathBasedLoader(); - -#if PYTHON_VERSION >= 0x300 - patchInspectModule(); -#endif - -#endif - - /* The constants only used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.utils: Calling createModuleConstants().\n"); -#endif - createModuleConstants(); - - /* The code objects used by this module are created now. */ -#ifdef _NUITKA_TRACE - PRINT_STRING("models.unet3d.utils: Calling createModuleCodeObjects().\n"); -#endif - createModuleCodeObjects(); - - // PRINT_STRING("in initmodels$unet3d$utils\n"); - - // Create the module object first. There are no methods initially, all are - // added dynamically in actual code only. Also no "__doc__" is initially - // set at this time, as it could not contain NUL characters this way, they - // are instead set in early module code. No "self" for modules, we have no - // use for it. - - moduledict_models$unet3d$utils = MODULE_DICT(module_models$unet3d$utils); - -#ifdef _NUITKA_PLUGIN_DILL_ENABLED - registerDillPluginTables(module_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function); -#endif - - // Set "__compiled__" to what version information we have. - UPDATE_STRING_DICT0( - moduledict_models$unet3d$utils, - (Nuitka_StringObject *)const_str_plain___compiled__, - Nuitka_dunder_compiled_value - ); - - // Update "__package__" value to what it ought to be. - { -#if 0 - UPDATE_STRING_DICT0( - moduledict_models$unet3d$utils, - (Nuitka_StringObject *)const_str_plain___package__, - const_str_empty - ); -#elif 0 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___name__); - - UPDATE_STRING_DICT0( - moduledict_models$unet3d$utils, - (Nuitka_StringObject *)const_str_plain___package__, - module_name - ); -#else - -#if PYTHON_VERSION < 0x300 - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___name__); - char const *module_name_cstr = PyString_AS_STRING(module_name); - - char const *last_dot = strrchr(module_name_cstr, '.'); - - if (last_dot != NULL) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$utils, - (Nuitka_StringObject *)const_str_plain___package__, - PyString_FromStringAndSize(module_name_cstr, last_dot - module_name_cstr) - ); - } -#else - PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___name__); - Py_ssize_t dot_index = PyUnicode_Find(module_name, const_str_dot, 0, PyUnicode_GetLength(module_name), -1); - - if (dot_index != -1) { - UPDATE_STRING_DICT1( - moduledict_models$unet3d$utils, - (Nuitka_StringObject *)const_str_plain___package__, - PyUnicode_Substring(module_name, 0, dot_index) - ); - } -#endif -#endif - } - - CHECK_OBJECT(module_models$unet3d$utils); - - // For deep importing of a module we need to have "__builtins__", so we set - // it ourselves in the same way than CPython does. Note: This must be done - // before the frame object is allocated, or else it may fail. - - if (GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___builtins__) == NULL) { - PyObject *value = (PyObject *)builtin_module; - - // Check if main module, not a dict then but the module itself. -#if !defined(_NUITKA_EXE) || !0 - value = PyModule_GetDict(value); -#endif - - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___builtins__, value); - } - -#if PYTHON_VERSION >= 0x300 - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type); -#endif - -#if PYTHON_VERSION >= 0x340 -// Set the "__spec__" value - -#if 0 - // Main modules just get "None" as spec. - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___spec__, Py_None); -#else - // Other modules get a "ModuleSpec" from the standard mechanism. - { - PyObject *bootstrap_module = getImportLibBootstrapModule(); - CHECK_OBJECT(bootstrap_module); - - PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module"); - CHECK_OBJECT(_spec_from_module); - - PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_models$unet3d$utils); - Py_DECREF(_spec_from_module); - - // We can assume this to never fail, or else we are in trouble anyway. - // CHECK_OBJECT(spec_value); - - if (spec_value == NULL) { - PyErr_PrintEx(0); - abort(); - } - -// Mark the execution in the "__spec__" value. - SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)const_str_plain___spec__, spec_value); - } -#endif -#endif - - // Temp variables if any - PyObject *outline_0_var___class__ = NULL; - PyObject *outline_1_var___class__ = NULL; - struct Nuitka_CellObject *outline_2_var___class__ = Nuitka_Cell_Empty(); - PyObject *tmp_class_creation_1__class_decl_dict = NULL; - PyObject *tmp_class_creation_1__metaclass = NULL; - PyObject *tmp_class_creation_1__prepared = NULL; - PyObject *tmp_class_creation_2__class_decl_dict = NULL; - PyObject *tmp_class_creation_2__metaclass = NULL; - PyObject *tmp_class_creation_2__prepared = NULL; - PyObject *tmp_class_creation_3__bases = NULL; - PyObject *tmp_class_creation_3__bases_orig = NULL; - PyObject *tmp_class_creation_3__class_decl_dict = NULL; - PyObject *tmp_class_creation_3__metaclass = NULL; - PyObject *tmp_class_creation_3__prepared = NULL; - struct Nuitka_FrameObject *frame_0d8248690a1fa7baefcab674faced410; - NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; - bool tmp_result; - PyObject *exception_type = NULL; - PyObject *exception_value = NULL; - PyTracebackObject *exception_tb = NULL; - NUITKA_MAY_BE_UNUSED int exception_lineno = 0; - int tmp_res; - PyObject *tmp_dictdel_dict; - PyObject *tmp_dictdel_key; - PyObject *locals_models$unet3d$utils$$$class__1_RunningAverage_94 = NULL; - PyObject *tmp_dictset_value; - struct Nuitka_FrameObject *frame_63627de1375daa33e86451008e97a4bf_2; - NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; - static struct Nuitka_FrameObject *cache_frame_63627de1375daa33e86451008e97a4bf_2 = NULL; - PyObject *exception_keeper_type_1; - PyObject *exception_keeper_value_1; - PyTracebackObject *exception_keeper_tb_1; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; - PyObject *exception_keeper_type_2; - PyObject *exception_keeper_value_2; - PyTracebackObject *exception_keeper_tb_2; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; - PyObject *exception_keeper_type_3; - PyObject *exception_keeper_value_3; - PyTracebackObject *exception_keeper_tb_3; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; - PyObject *locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113 = NULL; - struct Nuitka_FrameObject *frame_4a3983ca4ee2555d4212615dbc23c56f_3; - NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; - static struct Nuitka_FrameObject *cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3 = NULL; - PyObject *exception_keeper_type_4; - PyObject *exception_keeper_value_4; - PyTracebackObject *exception_keeper_tb_4; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; - PyObject *exception_keeper_type_5; - PyObject *exception_keeper_value_5; - PyTracebackObject *exception_keeper_tb_5; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; - PyObject *exception_keeper_type_6; - PyObject *exception_keeper_value_6; - PyTracebackObject *exception_keeper_tb_6; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; - PyObject *locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154 = NULL; - struct Nuitka_FrameObject *frame_e2b0f3807e8774cef573b2cd30caedfa_4; - NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; - static struct Nuitka_FrameObject *cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4 = NULL; - PyObject *exception_keeper_type_7; - PyObject *exception_keeper_value_7; - PyTracebackObject *exception_keeper_tb_7; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; - PyObject *exception_keeper_type_8; - PyObject *exception_keeper_value_8; - PyTracebackObject *exception_keeper_tb_8; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; - PyObject *exception_keeper_type_9; - PyObject *exception_keeper_value_9; - PyTracebackObject *exception_keeper_tb_9; - NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; - - // Module code. - { - PyObject *tmp_assign_source_1; - tmp_assign_source_1 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[150], tmp_assign_source_1); - } - { - PyObject *tmp_assign_source_2; - tmp_assign_source_2 = module_filename_obj; - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[151], tmp_assign_source_2); - } - // Frame without reuse. - frame_0d8248690a1fa7baefcab674faced410 = MAKE_MODULE_FRAME(codeobj_0d8248690a1fa7baefcab674faced410, module_models$unet3d$utils); - - // Push the new frame as the currently active one, and we should be exclusively - // owning it. - pushFrameStack(frame_0d8248690a1fa7baefcab674faced410); - assert(Py_REFCNT(frame_0d8248690a1fa7baefcab674faced410) == 2); - - // Framed code: - { - PyObject *tmp_assattr_name_1; - PyObject *tmp_assattr_target_1; - tmp_assattr_name_1 = module_filename_obj; - tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[152]); - - if (unlikely(tmp_assattr_target_1 == NULL)) { - tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[152]); - } - - assert(!(tmp_assattr_target_1 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[153], tmp_assattr_name_1); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assattr_name_2; - PyObject *tmp_assattr_target_2; - tmp_assattr_name_2 = Py_True; - tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[152]); - - if (unlikely(tmp_assattr_target_2 == NULL)) { - tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[152]); - } - - assert(!(tmp_assattr_target_2 == NULL)); - tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[154], tmp_assattr_name_2); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 1; - - goto frame_exception_exit_1; - } - } - { - PyObject *tmp_assign_source_3; - tmp_assign_source_3 = Py_None; - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[155], tmp_assign_source_3); - } - { - PyObject *tmp_assign_source_4; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 1; - tmp_assign_source_4 = IMPORT_HARD_IMPORTLIB(); - assert(!(tmp_assign_source_4 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[111], tmp_assign_source_4); - } - { - PyObject *tmp_assign_source_5; - PyObject *tmp_name_name_1; - PyObject *tmp_globals_arg_name_1; - PyObject *tmp_locals_arg_name_1; - PyObject *tmp_fromlist_name_1; - PyObject *tmp_level_name_1; - tmp_name_name_1 = mod_consts[42]; - tmp_globals_arg_name_1 = (PyObject *)moduledict_models$unet3d$utils; - tmp_locals_arg_name_1 = Py_None; - tmp_fromlist_name_1 = Py_None; - tmp_level_name_1 = mod_consts[27]; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 2; - tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_name_1, tmp_globals_arg_name_1, tmp_locals_arg_name_1, tmp_fromlist_name_1, tmp_level_name_1); - if (tmp_assign_source_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 2; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[42], tmp_assign_source_5); - } - { - PyObject *tmp_assign_source_6; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 3; - tmp_assign_source_6 = IMPORT_HARD_OS(); - assert(!(tmp_assign_source_6 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[0], tmp_assign_source_6); - } - { - PyObject *tmp_assign_source_7; - PyObject *tmp_name_name_2; - PyObject *tmp_globals_arg_name_2; - PyObject *tmp_locals_arg_name_2; - PyObject *tmp_fromlist_name_2; - PyObject *tmp_level_name_2; - tmp_name_name_2 = mod_consts[10]; - tmp_globals_arg_name_2 = (PyObject *)moduledict_models$unet3d$utils; - tmp_locals_arg_name_2 = Py_None; - tmp_fromlist_name_2 = Py_None; - tmp_level_name_2 = mod_consts[27]; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 4; - tmp_assign_source_7 = IMPORT_MODULE5(tmp_name_name_2, tmp_globals_arg_name_2, tmp_locals_arg_name_2, tmp_fromlist_name_2, tmp_level_name_2); - if (tmp_assign_source_7 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 4; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[10], tmp_assign_source_7); - } - { - PyObject *tmp_assign_source_8; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 5; - tmp_assign_source_8 = IMPORT_HARD_SYS(); - assert(!(tmp_assign_source_8 == NULL)); - UPDATE_STRING_DICT0(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[46], tmp_assign_source_8); - } - { - PyObject *tmp_assign_source_9; - PyObject *tmp_name_name_3; - PyObject *tmp_globals_arg_name_3; - PyObject *tmp_locals_arg_name_3; - PyObject *tmp_fromlist_name_3; - PyObject *tmp_level_name_3; - tmp_name_name_3 = mod_consts[28]; - tmp_globals_arg_name_3 = (PyObject *)moduledict_models$unet3d$utils; - tmp_locals_arg_name_3 = Py_None; - tmp_fromlist_name_3 = Py_None; - tmp_level_name_3 = mod_consts[27]; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 7; - tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_name_3, tmp_globals_arg_name_3, tmp_locals_arg_name_3, tmp_fromlist_name_3, tmp_level_name_3); - if (tmp_assign_source_9 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 7; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[28], tmp_assign_source_9); - } - { - PyObject *tmp_assign_source_10; - PyObject *tmp_name_name_4; - PyObject *tmp_globals_arg_name_4; - PyObject *tmp_locals_arg_name_4; - PyObject *tmp_fromlist_name_4; - PyObject *tmp_level_name_4; - tmp_name_name_4 = mod_consts[132]; - tmp_globals_arg_name_4 = (PyObject *)moduledict_models$unet3d$utils; - tmp_locals_arg_name_4 = Py_None; - tmp_fromlist_name_4 = Py_None; - tmp_level_name_4 = mod_consts[27]; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 8; - tmp_assign_source_10 = IMPORT_MODULE5(tmp_name_name_4, tmp_globals_arg_name_4, tmp_locals_arg_name_4, tmp_fromlist_name_4, tmp_level_name_4); - if (tmp_assign_source_10 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 8; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[76], tmp_assign_source_10); - } - { - PyObject *tmp_assign_source_11; - PyObject *tmp_name_name_5; - PyObject *tmp_globals_arg_name_5; - PyObject *tmp_locals_arg_name_5; - PyObject *tmp_fromlist_name_5; - PyObject *tmp_level_name_5; - tmp_name_name_5 = mod_consts[7]; - tmp_globals_arg_name_5 = (PyObject *)moduledict_models$unet3d$utils; - tmp_locals_arg_name_5 = Py_None; - tmp_fromlist_name_5 = Py_None; - tmp_level_name_5 = mod_consts[27]; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 9; - tmp_assign_source_11 = IMPORT_MODULE5(tmp_name_name_5, tmp_globals_arg_name_5, tmp_locals_arg_name_5, tmp_fromlist_name_5, tmp_level_name_5); - if (tmp_assign_source_11 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 9; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[7], tmp_assign_source_11); - } - { - PyObject *tmp_assign_source_12; - PyObject *tmp_import_name_from_1; - PyObject *tmp_name_name_6; - PyObject *tmp_globals_arg_name_6; - PyObject *tmp_locals_arg_name_6; - PyObject *tmp_fromlist_name_6; - PyObject *tmp_level_name_6; - tmp_name_name_6 = mod_consts[7]; - tmp_globals_arg_name_6 = (PyObject *)moduledict_models$unet3d$utils; - tmp_locals_arg_name_6 = Py_None; - tmp_fromlist_name_6 = mod_consts[156]; - tmp_level_name_6 = mod_consts[27]; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 10; - tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_name_6, tmp_globals_arg_name_6, tmp_locals_arg_name_6, tmp_fromlist_name_6, tmp_level_name_6); - if (tmp_import_name_from_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - if (PyModule_Check(tmp_import_name_from_1)) { - tmp_assign_source_12 = IMPORT_NAME_OR_MODULE( - tmp_import_name_from_1, - (PyObject *)moduledict_models$unet3d$utils, - mod_consts[138], - mod_consts[27] - ); - } else { - tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[138]); - } - - Py_DECREF(tmp_import_name_from_1); - if (tmp_assign_source_12 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 10; - - goto frame_exception_exit_1; - } - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[138], tmp_assign_source_12); - } - { - PyObject *tmp_assign_source_13; - - - tmp_assign_source_13 = MAKE_FUNCTION_models$unet3d$utils$$$function__1_save_checkpoint(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[157], tmp_assign_source_13); - } - { - PyObject *tmp_assign_source_14; - PyObject *tmp_defaults_1; - tmp_defaults_1 = mod_consts[158]; - Py_INCREF(tmp_defaults_1); - - - tmp_assign_source_14 = MAKE_FUNCTION_models$unet3d$utils$$$function__2_load_checkpoint(tmp_defaults_1); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[159], tmp_assign_source_14); - } - { - PyObject *tmp_assign_source_15; - PyObject *tmp_defaults_2; - tmp_defaults_2 = mod_consts[160]; - Py_INCREF(tmp_defaults_2); - - - tmp_assign_source_15 = MAKE_FUNCTION_models$unet3d$utils$$$function__3_save_network_output(tmp_defaults_2); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[161], tmp_assign_source_15); - } - { - PyObject *tmp_assign_source_16; - tmp_assign_source_16 = PyDict_New(); - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[39], tmp_assign_source_16); - } - { - PyObject *tmp_assign_source_17; - PyObject *tmp_defaults_3; - PyObject *tmp_tuple_element_1; - PyObject *tmp_expression_name_1; - tmp_expression_name_1 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[42]); - - if (unlikely(tmp_expression_name_1 == NULL)) { - tmp_expression_name_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[42]); - } - - if (tmp_expression_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - - goto frame_exception_exit_1; - } - tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_1, mod_consts[162]); - if (tmp_tuple_element_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 71; - - goto frame_exception_exit_1; - } - tmp_defaults_3 = PyTuple_New(1); - PyTuple_SET_ITEM(tmp_defaults_3, 0, tmp_tuple_element_1); - - - tmp_assign_source_17 = MAKE_FUNCTION_models$unet3d$utils$$$function__4_get_logger(tmp_defaults_3); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[163], tmp_assign_source_17); - } - { - PyObject *tmp_assign_source_18; - - - tmp_assign_source_18 = MAKE_FUNCTION_models$unet3d$utils$$$function__5_get_number_of_learnable_parameters(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[164], tmp_assign_source_18); - } - { - PyObject *tmp_assign_source_19; - tmp_assign_source_19 = PyDict_New(); - assert(tmp_class_creation_1__class_decl_dict == NULL); - tmp_class_creation_1__class_decl_dict = tmp_assign_source_19; - } - // Tried code: - { - PyObject *tmp_assign_source_20; - PyObject *tmp_metaclass_name_1; - nuitka_bool tmp_condition_result_1; - PyObject *tmp_key_name_1; - PyObject *tmp_dict_arg_name_1; - PyObject *tmp_dict_arg_name_2; - PyObject *tmp_key_name_2; - PyObject *tmp_bases_name_1; - tmp_key_name_1 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_1 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_1, tmp_key_name_1); - assert(!(tmp_res == -1)); - tmp_condition_result_1 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) { - goto condexpr_true_1; - } else { - goto condexpr_false_1; - } - condexpr_true_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_2 = tmp_class_creation_1__class_decl_dict; - tmp_key_name_2 = mod_consts[165]; - tmp_metaclass_name_1 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_2, tmp_key_name_2); - if (tmp_metaclass_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - goto condexpr_end_1; - condexpr_false_1:; - tmp_metaclass_name_1 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_1); - condexpr_end_1:; - tmp_bases_name_1 = mod_consts[166]; - tmp_assign_source_20 = SELECT_METACLASS(tmp_metaclass_name_1, tmp_bases_name_1); - Py_DECREF(tmp_metaclass_name_1); - if (tmp_assign_source_20 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__metaclass == NULL); - tmp_class_creation_1__metaclass = tmp_assign_source_20; - } - { - nuitka_bool tmp_condition_result_2; - PyObject *tmp_key_name_3; - PyObject *tmp_dict_arg_name_3; - tmp_key_name_3 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dict_arg_name_3 = tmp_class_creation_1__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_3, tmp_key_name_3); - assert(!(tmp_res == -1)); - tmp_condition_result_2 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) { - goto branch_yes_1; - } else { - goto branch_no_1; - } - } - branch_yes_1:; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; - tmp_dictdel_key = mod_consts[165]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - branch_no_1:; - { - nuitka_bool tmp_condition_result_3; - PyObject *tmp_expression_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_2 = tmp_class_creation_1__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_2, mod_consts[167]); - tmp_condition_result_3 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) { - goto branch_yes_2; - } else { - goto branch_no_2; - } - } - branch_yes_2:; - { - PyObject *tmp_assign_source_21; - PyObject *tmp_called_name_1; - PyObject *tmp_expression_name_3; - PyObject *tmp_args_name_1; - PyObject *tmp_kwargs_name_1; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_expression_name_3 = tmp_class_creation_1__metaclass; - tmp_called_name_1 = LOOKUP_ATTRIBUTE(tmp_expression_name_3, mod_consts[167]); - if (tmp_called_name_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - tmp_args_name_1 = mod_consts[168]; - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_1 = tmp_class_creation_1__class_decl_dict; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 94; - tmp_assign_source_21 = CALL_FUNCTION(tmp_called_name_1, tmp_args_name_1, tmp_kwargs_name_1); - Py_DECREF(tmp_called_name_1); - if (tmp_assign_source_21 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_21; - } - { - nuitka_bool tmp_condition_result_4; - PyObject *tmp_operand_name_1; - PyObject *tmp_expression_name_4; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_expression_name_4 = tmp_class_creation_1__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_4, mod_consts[169]); - tmp_operand_name_1 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_1); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - tmp_condition_result_4 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_4 == NUITKA_BOOL_TRUE) { - goto branch_yes_3; - } else { - goto branch_no_3; - } - } - branch_yes_3:; - { - PyObject *tmp_raise_type_1; - PyObject *tmp_raise_value_1; - PyObject *tmp_left_name_1; - PyObject *tmp_right_name_1; - PyObject *tmp_tuple_element_2; - PyObject *tmp_getattr_target_1; - PyObject *tmp_getattr_attr_1; - PyObject *tmp_getattr_default_1; - tmp_raise_type_1 = PyExc_TypeError; - tmp_left_name_1 = mod_consts[170]; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_getattr_target_1 = tmp_class_creation_1__metaclass; - tmp_getattr_attr_1 = mod_consts[171]; - tmp_getattr_default_1 = mod_consts[172]; - tmp_tuple_element_2 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - tmp_right_name_1 = PyTuple_New(2); - { - PyObject *tmp_expression_name_5; - PyObject *tmp_type_arg_1; - PyTuple_SET_ITEM(tmp_right_name_1, 0, tmp_tuple_element_2); - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_type_arg_1 = tmp_class_creation_1__prepared; - tmp_expression_name_5 = BUILTIN_TYPE1(tmp_type_arg_1); - assert(!(tmp_expression_name_5 == NULL)); - tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_name_5, mod_consts[171]); - Py_DECREF(tmp_expression_name_5); - if (tmp_tuple_element_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto tuple_build_exception_1; - } - PyTuple_SET_ITEM(tmp_right_name_1, 1, tmp_tuple_element_2); - } - goto tuple_build_noexception_1; - // Exception handling pass through code for tuple_build: - tuple_build_exception_1:; - Py_DECREF(tmp_right_name_1); - goto try_except_handler_1; - // Finished with no exception for tuple_build: - tuple_build_noexception_1:; - tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_1, tmp_right_name_1); - Py_DECREF(tmp_right_name_1); - if (tmp_raise_value_1 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_1; - } - exception_type = tmp_raise_type_1; - Py_INCREF(tmp_raise_type_1); - exception_value = tmp_raise_value_1; - exception_lineno = 94; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_1; - } - branch_no_3:; - goto branch_end_2; - branch_no_2:; - { - PyObject *tmp_assign_source_22; - tmp_assign_source_22 = PyDict_New(); - assert(tmp_class_creation_1__prepared == NULL); - tmp_class_creation_1__prepared = tmp_assign_source_22; - } - branch_end_2:; - { - PyObject *tmp_assign_source_23; - { - PyObject *tmp_set_locals_1; - CHECK_OBJECT(tmp_class_creation_1__prepared); - tmp_set_locals_1 = tmp_class_creation_1__prepared; - locals_models$unet3d$utils$$$class__1_RunningAverage_94 = tmp_set_locals_1; - Py_INCREF(tmp_set_locals_1); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__1_RunningAverage_94, mod_consts[173], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[174]; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__1_RunningAverage_94, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_3; - } - tmp_dictset_value = mod_consts[175]; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__1_RunningAverage_94, mod_consts[176], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_3; - } - if (isFrameUnusable(cache_frame_63627de1375daa33e86451008e97a4bf_2)) { - Py_XDECREF(cache_frame_63627de1375daa33e86451008e97a4bf_2); - -#if _DEBUG_REFCOUNTS - if (cache_frame_63627de1375daa33e86451008e97a4bf_2 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_63627de1375daa33e86451008e97a4bf_2 = MAKE_FUNCTION_FRAME(codeobj_63627de1375daa33e86451008e97a4bf, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_63627de1375daa33e86451008e97a4bf_2->m_type_description == NULL); - frame_63627de1375daa33e86451008e97a4bf_2 = cache_frame_63627de1375daa33e86451008e97a4bf_2; - - // Push the new frame as the currently active one. - pushFrameStack(frame_63627de1375daa33e86451008e97a4bf_2); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_63627de1375daa33e86451008e97a4bf_2) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__6___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__1_RunningAverage_94, mod_consts[83], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 98; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - { - PyObject *tmp_defaults_4; - tmp_defaults_4 = mod_consts[118]; - Py_INCREF(tmp_defaults_4); - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__7_update(tmp_defaults_4); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__1_RunningAverage_94, mod_consts[178], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 103; - type_description_2 = "o"; - goto frame_exception_exit_2; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_63627de1375daa33e86451008e97a4bf_2); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_1; - - frame_exception_exit_2:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_63627de1375daa33e86451008e97a4bf_2); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_63627de1375daa33e86451008e97a4bf_2, exception_lineno); - } else if (exception_tb->tb_frame != &frame_63627de1375daa33e86451008e97a4bf_2->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_63627de1375daa33e86451008e97a4bf_2, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_63627de1375daa33e86451008e97a4bf_2, - type_description_2, - outline_0_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_63627de1375daa33e86451008e97a4bf_2 == cache_frame_63627de1375daa33e86451008e97a4bf_2) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_63627de1375daa33e86451008e97a4bf_2); - cache_frame_63627de1375daa33e86451008e97a4bf_2 = NULL; - } - - assertFrameObject(frame_63627de1375daa33e86451008e97a4bf_2); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_1; - - frame_no_exception_1:; - goto skip_nested_handling_1; - nested_frame_exit_1:; - - goto try_except_handler_3; - skip_nested_handling_1:; - { - PyObject *tmp_assign_source_24; - PyObject *tmp_called_name_2; - PyObject *tmp_args_name_2; - PyObject *tmp_tuple_element_3; - PyObject *tmp_kwargs_name_2; - CHECK_OBJECT(tmp_class_creation_1__metaclass); - tmp_called_name_2 = tmp_class_creation_1__metaclass; - tmp_tuple_element_3 = mod_consts[175]; - tmp_args_name_2 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_2, 0, tmp_tuple_element_3); - tmp_tuple_element_3 = mod_consts[166]; - PyTuple_SET_ITEM0(tmp_args_name_2, 1, tmp_tuple_element_3); - tmp_tuple_element_3 = locals_models$unet3d$utils$$$class__1_RunningAverage_94; - PyTuple_SET_ITEM0(tmp_args_name_2, 2, tmp_tuple_element_3); - CHECK_OBJECT(tmp_class_creation_1__class_decl_dict); - tmp_kwargs_name_2 = tmp_class_creation_1__class_decl_dict; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 94; - tmp_assign_source_24 = CALL_FUNCTION(tmp_called_name_2, tmp_args_name_2, tmp_kwargs_name_2); - Py_DECREF(tmp_args_name_2); - if (tmp_assign_source_24 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 94; - - goto try_except_handler_3; - } - assert(outline_0_var___class__ == NULL); - outline_0_var___class__ = tmp_assign_source_24; - } - CHECK_OBJECT(outline_0_var___class__); - tmp_assign_source_23 = outline_0_var___class__; - Py_INCREF(tmp_assign_source_23); - goto try_return_handler_3; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_3:; - Py_DECREF(locals_models$unet3d$utils$$$class__1_RunningAverage_94); - locals_models$unet3d$utils$$$class__1_RunningAverage_94 = NULL; - goto try_return_handler_2; - // Exception handler code: - try_except_handler_3:; - exception_keeper_type_1 = exception_type; - exception_keeper_value_1 = exception_value; - exception_keeper_tb_1 = exception_tb; - exception_keeper_lineno_1 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$utils$$$class__1_RunningAverage_94); - locals_models$unet3d$utils$$$class__1_RunningAverage_94 = NULL; - // Re-raise. - exception_type = exception_keeper_type_1; - exception_value = exception_keeper_value_1; - exception_tb = exception_keeper_tb_1; - exception_lineno = exception_keeper_lineno_1; - - goto try_except_handler_2; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_2:; - CHECK_OBJECT(outline_0_var___class__); - Py_DECREF(outline_0_var___class__); - outline_0_var___class__ = NULL; - goto outline_result_1; - // Exception handler code: - try_except_handler_2:; - exception_keeper_type_2 = exception_type; - exception_keeper_value_2 = exception_value; - exception_keeper_tb_2 = exception_tb; - exception_keeper_lineno_2 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_2; - exception_value = exception_keeper_value_2; - exception_tb = exception_keeper_tb_2; - exception_lineno = exception_keeper_lineno_2; - - goto outline_exception_1; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_1:; - exception_lineno = 94; - goto try_except_handler_1; - outline_result_1:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[175], tmp_assign_source_23); - } - goto try_end_1; - // Exception handler code: - try_except_handler_1:; - exception_keeper_type_3 = exception_type; - exception_keeper_value_3 = exception_value; - exception_keeper_tb_3 = exception_tb; - exception_keeper_lineno_3 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - Py_XDECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_3; - exception_value = exception_keeper_value_3; - exception_tb = exception_keeper_tb_3; - exception_lineno = exception_keeper_lineno_3; - - goto frame_exception_exit_1; - // End of try: - try_end_1:; - Py_XDECREF(tmp_class_creation_1__class_decl_dict); - tmp_class_creation_1__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_1__metaclass); - tmp_class_creation_1__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_1__prepared); - Py_DECREF(tmp_class_creation_1__prepared); - tmp_class_creation_1__prepared = NULL; - { - PyObject *tmp_assign_source_25; - - - tmp_assign_source_25 = MAKE_FUNCTION_models$unet3d$utils$$$function__8_number_of_features_per_level(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[180], tmp_assign_source_25); - } - { - PyObject *tmp_assign_source_26; - tmp_assign_source_26 = PyDict_New(); - assert(tmp_class_creation_2__class_decl_dict == NULL); - tmp_class_creation_2__class_decl_dict = tmp_assign_source_26; - } - // Tried code: - { - PyObject *tmp_assign_source_27; - PyObject *tmp_metaclass_name_2; - nuitka_bool tmp_condition_result_5; - PyObject *tmp_key_name_4; - PyObject *tmp_dict_arg_name_4; - PyObject *tmp_dict_arg_name_5; - PyObject *tmp_key_name_5; - PyObject *tmp_bases_name_2; - tmp_key_name_4 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_4 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_4, tmp_key_name_4); - assert(!(tmp_res == -1)); - tmp_condition_result_5 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_5 == NUITKA_BOOL_TRUE) { - goto condexpr_true_2; - } else { - goto condexpr_false_2; - } - condexpr_true_2:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_5 = tmp_class_creation_2__class_decl_dict; - tmp_key_name_5 = mod_consts[165]; - tmp_metaclass_name_2 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_5, tmp_key_name_5); - if (tmp_metaclass_name_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - goto condexpr_end_2; - condexpr_false_2:; - tmp_metaclass_name_2 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_2); - condexpr_end_2:; - tmp_bases_name_2 = mod_consts[166]; - tmp_assign_source_27 = SELECT_METACLASS(tmp_metaclass_name_2, tmp_bases_name_2); - Py_DECREF(tmp_metaclass_name_2); - if (tmp_assign_source_27 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__metaclass == NULL); - tmp_class_creation_2__metaclass = tmp_assign_source_27; - } - { - nuitka_bool tmp_condition_result_6; - PyObject *tmp_key_name_6; - PyObject *tmp_dict_arg_name_6; - tmp_key_name_6 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dict_arg_name_6 = tmp_class_creation_2__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_6, tmp_key_name_6); - assert(!(tmp_res == -1)); - tmp_condition_result_6 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) { - goto branch_yes_4; - } else { - goto branch_no_4; - } - } - branch_yes_4:; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; - tmp_dictdel_key = mod_consts[165]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - branch_no_4:; - { - nuitka_bool tmp_condition_result_7; - PyObject *tmp_expression_name_6; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_6 = tmp_class_creation_2__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_6, mod_consts[167]); - tmp_condition_result_7 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_7 == NUITKA_BOOL_TRUE) { - goto branch_yes_5; - } else { - goto branch_no_5; - } - } - branch_yes_5:; - { - PyObject *tmp_assign_source_28; - PyObject *tmp_called_name_3; - PyObject *tmp_expression_name_7; - PyObject *tmp_args_name_3; - PyObject *tmp_kwargs_name_3; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_expression_name_7 = tmp_class_creation_2__metaclass; - tmp_called_name_3 = LOOKUP_ATTRIBUTE(tmp_expression_name_7, mod_consts[167]); - if (tmp_called_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - tmp_args_name_3 = mod_consts[181]; - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_3 = tmp_class_creation_2__class_decl_dict; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 113; - tmp_assign_source_28 = CALL_FUNCTION(tmp_called_name_3, tmp_args_name_3, tmp_kwargs_name_3); - Py_DECREF(tmp_called_name_3); - if (tmp_assign_source_28 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_28; - } - { - nuitka_bool tmp_condition_result_8; - PyObject *tmp_operand_name_2; - PyObject *tmp_expression_name_8; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_expression_name_8 = tmp_class_creation_2__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_8, mod_consts[169]); - tmp_operand_name_2 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_2); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - tmp_condition_result_8 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_8 == NUITKA_BOOL_TRUE) { - goto branch_yes_6; - } else { - goto branch_no_6; - } - } - branch_yes_6:; - { - PyObject *tmp_raise_type_2; - PyObject *tmp_raise_value_2; - PyObject *tmp_left_name_2; - PyObject *tmp_right_name_2; - PyObject *tmp_tuple_element_4; - PyObject *tmp_getattr_target_2; - PyObject *tmp_getattr_attr_2; - PyObject *tmp_getattr_default_2; - tmp_raise_type_2 = PyExc_TypeError; - tmp_left_name_2 = mod_consts[170]; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_getattr_target_2 = tmp_class_creation_2__metaclass; - tmp_getattr_attr_2 = mod_consts[171]; - tmp_getattr_default_2 = mod_consts[172]; - tmp_tuple_element_4 = BUILTIN_GETATTR(tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - tmp_right_name_2 = PyTuple_New(2); - { - PyObject *tmp_expression_name_9; - PyObject *tmp_type_arg_2; - PyTuple_SET_ITEM(tmp_right_name_2, 0, tmp_tuple_element_4); - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_type_arg_2 = tmp_class_creation_2__prepared; - tmp_expression_name_9 = BUILTIN_TYPE1(tmp_type_arg_2); - assert(!(tmp_expression_name_9 == NULL)); - tmp_tuple_element_4 = LOOKUP_ATTRIBUTE(tmp_expression_name_9, mod_consts[171]); - Py_DECREF(tmp_expression_name_9); - if (tmp_tuple_element_4 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto tuple_build_exception_2; - } - PyTuple_SET_ITEM(tmp_right_name_2, 1, tmp_tuple_element_4); - } - goto tuple_build_noexception_2; - // Exception handling pass through code for tuple_build: - tuple_build_exception_2:; - Py_DECREF(tmp_right_name_2); - goto try_except_handler_4; - // Finished with no exception for tuple_build: - tuple_build_noexception_2:; - tmp_raise_value_2 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_2, tmp_right_name_2); - Py_DECREF(tmp_right_name_2); - if (tmp_raise_value_2 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_4; - } - exception_type = tmp_raise_type_2; - Py_INCREF(tmp_raise_type_2); - exception_value = tmp_raise_value_2; - exception_lineno = 113; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_4; - } - branch_no_6:; - goto branch_end_5; - branch_no_5:; - { - PyObject *tmp_assign_source_29; - tmp_assign_source_29 = PyDict_New(); - assert(tmp_class_creation_2__prepared == NULL); - tmp_class_creation_2__prepared = tmp_assign_source_29; - } - branch_end_5:; - { - PyObject *tmp_assign_source_30; - { - PyObject *tmp_set_locals_2; - CHECK_OBJECT(tmp_class_creation_2__prepared); - tmp_set_locals_2 = tmp_class_creation_2__prepared; - locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113 = tmp_set_locals_2; - Py_INCREF(tmp_set_locals_2); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113, mod_consts[173], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[182]; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113, mod_consts[150], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_6; - } - tmp_dictset_value = mod_consts[183]; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113, mod_consts[176], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_6; - } - if (isFrameUnusable(cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3)) { - Py_XDECREF(cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3); - -#if _DEBUG_REFCOUNTS - if (cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3 = MAKE_FUNCTION_FRAME(codeobj_4a3983ca4ee2555d4212615dbc23c56f, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3->m_type_description == NULL); - frame_4a3983ca4ee2555d4212615dbc23c56f_3 = cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3; - - // Push the new frame as the currently active one. - pushFrameStack(frame_4a3983ca4ee2555d4212615dbc23c56f_3); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_4a3983ca4ee2555d4212615dbc23c56f_3) == 2); // Frame stack - - // Framed code: - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__9___init__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113, mod_consts[83], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 120; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__10___call__(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113, mod_consts[185], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 123; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__11_process_batch(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113, mod_consts[69], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 150; - type_description_2 = "o"; - goto frame_exception_exit_3; - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4a3983ca4ee2555d4212615dbc23c56f_3); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_2; - - frame_exception_exit_3:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_4a3983ca4ee2555d4212615dbc23c56f_3); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_4a3983ca4ee2555d4212615dbc23c56f_3, exception_lineno); - } else if (exception_tb->tb_frame != &frame_4a3983ca4ee2555d4212615dbc23c56f_3->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_4a3983ca4ee2555d4212615dbc23c56f_3, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_4a3983ca4ee2555d4212615dbc23c56f_3, - type_description_2, - outline_1_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_4a3983ca4ee2555d4212615dbc23c56f_3 == cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3); - cache_frame_4a3983ca4ee2555d4212615dbc23c56f_3 = NULL; - } - - assertFrameObject(frame_4a3983ca4ee2555d4212615dbc23c56f_3); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_2; - - frame_no_exception_2:; - goto skip_nested_handling_2; - nested_frame_exit_2:; - - goto try_except_handler_6; - skip_nested_handling_2:; - { - PyObject *tmp_assign_source_31; - PyObject *tmp_called_name_4; - PyObject *tmp_args_name_4; - PyObject *tmp_tuple_element_5; - PyObject *tmp_kwargs_name_4; - CHECK_OBJECT(tmp_class_creation_2__metaclass); - tmp_called_name_4 = tmp_class_creation_2__metaclass; - tmp_tuple_element_5 = mod_consts[183]; - tmp_args_name_4 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_4, 0, tmp_tuple_element_5); - tmp_tuple_element_5 = mod_consts[166]; - PyTuple_SET_ITEM0(tmp_args_name_4, 1, tmp_tuple_element_5); - tmp_tuple_element_5 = locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113; - PyTuple_SET_ITEM0(tmp_args_name_4, 2, tmp_tuple_element_5); - CHECK_OBJECT(tmp_class_creation_2__class_decl_dict); - tmp_kwargs_name_4 = tmp_class_creation_2__class_decl_dict; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 113; - tmp_assign_source_31 = CALL_FUNCTION(tmp_called_name_4, tmp_args_name_4, tmp_kwargs_name_4); - Py_DECREF(tmp_args_name_4); - if (tmp_assign_source_31 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 113; - - goto try_except_handler_6; - } - assert(outline_1_var___class__ == NULL); - outline_1_var___class__ = tmp_assign_source_31; - } - CHECK_OBJECT(outline_1_var___class__); - tmp_assign_source_30 = outline_1_var___class__; - Py_INCREF(tmp_assign_source_30); - goto try_return_handler_6; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_6:; - Py_DECREF(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113); - locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113 = NULL; - goto try_return_handler_5; - // Exception handler code: - try_except_handler_6:; - exception_keeper_type_4 = exception_type; - exception_keeper_value_4 = exception_value; - exception_keeper_tb_4 = exception_tb; - exception_keeper_lineno_4 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113); - locals_models$unet3d$utils$$$class__2__TensorboardFormatter_113 = NULL; - // Re-raise. - exception_type = exception_keeper_type_4; - exception_value = exception_keeper_value_4; - exception_tb = exception_keeper_tb_4; - exception_lineno = exception_keeper_lineno_4; - - goto try_except_handler_5; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_5:; - CHECK_OBJECT(outline_1_var___class__); - Py_DECREF(outline_1_var___class__); - outline_1_var___class__ = NULL; - goto outline_result_2; - // Exception handler code: - try_except_handler_5:; - exception_keeper_type_5 = exception_type; - exception_keeper_value_5 = exception_value; - exception_keeper_tb_5 = exception_tb; - exception_keeper_lineno_5 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - // Re-raise. - exception_type = exception_keeper_type_5; - exception_value = exception_keeper_value_5; - exception_tb = exception_keeper_tb_5; - exception_lineno = exception_keeper_lineno_5; - - goto outline_exception_2; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_2:; - exception_lineno = 113; - goto try_except_handler_4; - outline_result_2:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[183], tmp_assign_source_30); - } - goto try_end_2; - // Exception handler code: - try_except_handler_4:; - exception_keeper_type_6 = exception_type; - exception_keeper_value_6 = exception_value; - exception_keeper_tb_6 = exception_tb; - exception_keeper_lineno_6 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - Py_XDECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_6; - exception_value = exception_keeper_value_6; - exception_tb = exception_keeper_tb_6; - exception_lineno = exception_keeper_lineno_6; - - goto frame_exception_exit_1; - // End of try: - try_end_2:; - Py_XDECREF(tmp_class_creation_2__class_decl_dict); - tmp_class_creation_2__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_2__metaclass); - tmp_class_creation_2__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_2__prepared); - Py_DECREF(tmp_class_creation_2__prepared); - tmp_class_creation_2__prepared = NULL; - // Tried code: - { - PyObject *tmp_assign_source_32; - PyObject *tmp_tuple_element_6; - tmp_tuple_element_6 = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[183]); - - if (unlikely(tmp_tuple_element_6 == NULL)) { - tmp_tuple_element_6 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[183]); - } - - if (tmp_tuple_element_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - tmp_assign_source_32 = PyTuple_New(1); - PyTuple_SET_ITEM0(tmp_assign_source_32, 0, tmp_tuple_element_6); - assert(tmp_class_creation_3__bases_orig == NULL); - tmp_class_creation_3__bases_orig = tmp_assign_source_32; - } - { - PyObject *tmp_assign_source_33; - PyObject *tmp_dircall_arg1_1; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dircall_arg1_1 = tmp_class_creation_3__bases_orig; - Py_INCREF(tmp_dircall_arg1_1); - - { - PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; - tmp_assign_source_33 = impl_models$$$function__1__mro_entries_conversion(dir_call_args); - } - if (tmp_assign_source_33 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__bases == NULL); - tmp_class_creation_3__bases = tmp_assign_source_33; - } - { - PyObject *tmp_assign_source_34; - tmp_assign_source_34 = PyDict_New(); - assert(tmp_class_creation_3__class_decl_dict == NULL); - tmp_class_creation_3__class_decl_dict = tmp_assign_source_34; - } - { - PyObject *tmp_assign_source_35; - PyObject *tmp_metaclass_name_3; - nuitka_bool tmp_condition_result_9; - PyObject *tmp_key_name_7; - PyObject *tmp_dict_arg_name_7; - PyObject *tmp_dict_arg_name_8; - PyObject *tmp_key_name_8; - nuitka_bool tmp_condition_result_10; - int tmp_truth_name_1; - PyObject *tmp_type_arg_3; - PyObject *tmp_expression_name_10; - PyObject *tmp_subscript_name_1; - PyObject *tmp_bases_name_3; - tmp_key_name_7 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_7 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_7, tmp_key_name_7); - assert(!(tmp_res == -1)); - tmp_condition_result_9 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) { - goto condexpr_true_3; - } else { - goto condexpr_false_3; - } - condexpr_true_3:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_8 = tmp_class_creation_3__class_decl_dict; - tmp_key_name_8 = mod_consts[165]; - tmp_metaclass_name_3 = DICT_GET_ITEM_WITH_ERROR(tmp_dict_arg_name_8, tmp_key_name_8); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - goto condexpr_end_3; - condexpr_false_3:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_truth_name_1 = CHECK_IF_TRUE(tmp_class_creation_3__bases); - if (tmp_truth_name_1 == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - tmp_condition_result_10 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE; - if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) { - goto condexpr_true_4; - } else { - goto condexpr_false_4; - } - condexpr_true_4:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_expression_name_10 = tmp_class_creation_3__bases; - tmp_subscript_name_1 = mod_consts[27]; - tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_name_10, tmp_subscript_name_1, 0); - if (tmp_type_arg_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - tmp_metaclass_name_3 = BUILTIN_TYPE1(tmp_type_arg_3); - Py_DECREF(tmp_type_arg_3); - if (tmp_metaclass_name_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - goto condexpr_end_4; - condexpr_false_4:; - tmp_metaclass_name_3 = (PyObject *)&PyType_Type; - Py_INCREF(tmp_metaclass_name_3); - condexpr_end_4:; - condexpr_end_3:; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_bases_name_3 = tmp_class_creation_3__bases; - tmp_assign_source_35 = SELECT_METACLASS(tmp_metaclass_name_3, tmp_bases_name_3); - Py_DECREF(tmp_metaclass_name_3); - if (tmp_assign_source_35 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__metaclass == NULL); - tmp_class_creation_3__metaclass = tmp_assign_source_35; - } - { - nuitka_bool tmp_condition_result_11; - PyObject *tmp_key_name_9; - PyObject *tmp_dict_arg_name_9; - tmp_key_name_9 = mod_consts[165]; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dict_arg_name_9 = tmp_class_creation_3__class_decl_dict; - tmp_res = DICT_HAS_ITEM(tmp_dict_arg_name_9, tmp_key_name_9); - assert(!(tmp_res == -1)); - tmp_condition_result_11 = (tmp_res != 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) { - goto branch_yes_7; - } else { - goto branch_no_7; - } - } - branch_yes_7:; - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; - tmp_dictdel_key = mod_consts[165]; - tmp_result = DICT_REMOVE_ITEM(tmp_dictdel_dict, tmp_dictdel_key); - if (tmp_result == false) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - branch_no_7:; - { - nuitka_bool tmp_condition_result_12; - PyObject *tmp_expression_name_11; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_11 = tmp_class_creation_3__metaclass; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_11, mod_consts[167]); - tmp_condition_result_12 = (tmp_result) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_12 == NUITKA_BOOL_TRUE) { - goto branch_yes_8; - } else { - goto branch_no_8; - } - } - branch_yes_8:; - { - PyObject *tmp_assign_source_36; - PyObject *tmp_called_name_5; - PyObject *tmp_expression_name_12; - PyObject *tmp_args_name_5; - PyObject *tmp_tuple_element_7; - PyObject *tmp_kwargs_name_5; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_expression_name_12 = tmp_class_creation_3__metaclass; - tmp_called_name_5 = LOOKUP_ATTRIBUTE(tmp_expression_name_12, mod_consts[167]); - if (tmp_called_name_5 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - tmp_tuple_element_7 = mod_consts[110]; - tmp_args_name_5 = PyTuple_New(2); - PyTuple_SET_ITEM0(tmp_args_name_5, 0, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_7 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_5, 1, tmp_tuple_element_7); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_5 = tmp_class_creation_3__class_decl_dict; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 154; - tmp_assign_source_36 = CALL_FUNCTION(tmp_called_name_5, tmp_args_name_5, tmp_kwargs_name_5); - Py_DECREF(tmp_called_name_5); - Py_DECREF(tmp_args_name_5); - if (tmp_assign_source_36 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_36; - } - { - nuitka_bool tmp_condition_result_13; - PyObject *tmp_operand_name_3; - PyObject *tmp_expression_name_13; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_expression_name_13 = tmp_class_creation_3__prepared; - tmp_result = HAS_ATTR_BOOL(tmp_expression_name_13, mod_consts[169]); - tmp_operand_name_3 = (tmp_result) ? Py_True : Py_False; - tmp_res = CHECK_IF_TRUE(tmp_operand_name_3); - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - tmp_condition_result_13 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) { - goto branch_yes_9; - } else { - goto branch_no_9; - } - } - branch_yes_9:; - { - PyObject *tmp_raise_type_3; - PyObject *tmp_raise_value_3; - PyObject *tmp_left_name_3; - PyObject *tmp_right_name_3; - PyObject *tmp_tuple_element_8; - PyObject *tmp_getattr_target_3; - PyObject *tmp_getattr_attr_3; - PyObject *tmp_getattr_default_3; - tmp_raise_type_3 = PyExc_TypeError; - tmp_left_name_3 = mod_consts[170]; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_getattr_target_3 = tmp_class_creation_3__metaclass; - tmp_getattr_attr_3 = mod_consts[171]; - tmp_getattr_default_3 = mod_consts[172]; - tmp_tuple_element_8 = BUILTIN_GETATTR(tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - tmp_right_name_3 = PyTuple_New(2); - { - PyObject *tmp_expression_name_14; - PyObject *tmp_type_arg_4; - PyTuple_SET_ITEM(tmp_right_name_3, 0, tmp_tuple_element_8); - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_type_arg_4 = tmp_class_creation_3__prepared; - tmp_expression_name_14 = BUILTIN_TYPE1(tmp_type_arg_4); - assert(!(tmp_expression_name_14 == NULL)); - tmp_tuple_element_8 = LOOKUP_ATTRIBUTE(tmp_expression_name_14, mod_consts[171]); - Py_DECREF(tmp_expression_name_14); - if (tmp_tuple_element_8 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto tuple_build_exception_3; - } - PyTuple_SET_ITEM(tmp_right_name_3, 1, tmp_tuple_element_8); - } - goto tuple_build_noexception_3; - // Exception handling pass through code for tuple_build: - tuple_build_exception_3:; - Py_DECREF(tmp_right_name_3); - goto try_except_handler_7; - // Finished with no exception for tuple_build: - tuple_build_noexception_3:; - tmp_raise_value_3 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_left_name_3, tmp_right_name_3); - Py_DECREF(tmp_right_name_3); - if (tmp_raise_value_3 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_7; - } - exception_type = tmp_raise_type_3; - Py_INCREF(tmp_raise_type_3); - exception_value = tmp_raise_value_3; - exception_lineno = 154; - RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb); - - goto try_except_handler_7; - } - branch_no_9:; - goto branch_end_8; - branch_no_8:; - { - PyObject *tmp_assign_source_37; - tmp_assign_source_37 = PyDict_New(); - assert(tmp_class_creation_3__prepared == NULL); - tmp_class_creation_3__prepared = tmp_assign_source_37; - } - branch_end_8:; - { - PyObject *tmp_assign_source_38; - { - PyObject *tmp_set_locals_3; - CHECK_OBJECT(tmp_class_creation_3__prepared); - tmp_set_locals_3 = tmp_class_creation_3__prepared; - locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154 = tmp_set_locals_3; - Py_INCREF(tmp_set_locals_3); - } - // Tried code: - // Tried code: - tmp_dictset_value = GET_STRING_DICT_VALUE(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[171]); - - if (unlikely(tmp_dictset_value == NULL)) { - tmp_dictset_value = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[171]); - } - - assert(!(tmp_dictset_value == NULL)); - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[173], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_9; - } - tmp_dictset_value = mod_consts[110]; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[176], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_9; - } - if (isFrameUnusable(cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4)) { - Py_XDECREF(cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4); - -#if _DEBUG_REFCOUNTS - if (cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4 == NULL) { - count_active_frame_cache_instances += 1; - } else { - count_released_frame_cache_instances += 1; - } - count_allocated_frame_cache_instances += 1; -#endif - cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4 = MAKE_FUNCTION_FRAME(codeobj_e2b0f3807e8774cef573b2cd30caedfa, module_models$unet3d$utils, sizeof(void *)); -#if _DEBUG_REFCOUNTS - } else { - count_hit_frame_cache_instances += 1; -#endif - } - assert(cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4->m_type_description == NULL); - frame_e2b0f3807e8774cef573b2cd30caedfa_4 = cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4; - - // Push the new frame as the currently active one. - pushFrameStack(frame_e2b0f3807e8774cef573b2cd30caedfa_4); - - // Mark the frame object as in use, ref count 1 will be up for reuse. - assert(Py_REFCNT(frame_e2b0f3807e8774cef573b2cd30caedfa_4) == 2); // Frame stack - - // Framed code: - { - PyObject *tmp_defaults_5; - struct Nuitka_CellObject *tmp_closure_1[1]; - tmp_defaults_5 = mod_consts[188]; - Py_INCREF(tmp_defaults_5); - - tmp_closure_1[0] = outline_2_var___class__; - Py_INCREF(tmp_closure_1[0]); - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__12___init__(tmp_defaults_5, tmp_closure_1); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[83], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 155; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - - - tmp_dictset_value = MAKE_FUNCTION_models$unet3d$utils$$$function__13_process_batch(); - - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[69], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 159; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - { - nuitka_bool tmp_condition_result_14; - PyObject *tmp_called_name_6; - PyObject *tmp_args_element_name_1; - PyObject *tmp_staticmethod_arg_1; - tmp_res = MAPPING_HAS_ITEM(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[191]); - - if (tmp_res == -1) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - tmp_condition_result_14 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; - if (tmp_condition_result_14 == NUITKA_BOOL_TRUE) { - goto condexpr_true_5; - } else { - goto condexpr_false_5; - } - condexpr_true_5:; - tmp_called_name_6 = PyObject_GetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[191]); - - if (unlikely(tmp_called_name_6 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) { - - FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[191]); - NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb); - CHAIN_EXCEPTION(exception_value); - - exception_lineno = 185; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - - if (tmp_called_name_6 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - - - tmp_args_element_name_1 = MAKE_FUNCTION_models$unet3d$utils$$$function__14__normalize_img(); - - frame_e2b0f3807e8774cef573b2cd30caedfa_4->m_frame.f_lineno = 185; - tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_name_6, tmp_args_element_name_1); - Py_DECREF(tmp_called_name_6); - Py_DECREF(tmp_args_element_name_1); - if (tmp_dictset_value == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 185; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - goto condexpr_end_5; - condexpr_false_5:; - - - tmp_staticmethod_arg_1 = MAKE_FUNCTION_models$unet3d$utils$$$function__14__normalize_img(); - - tmp_dictset_value = BUILTIN_STATICMETHOD(tmp_staticmethod_arg_1); - Py_DECREF(tmp_staticmethod_arg_1); - assert(!(tmp_dictset_value == NULL)); - condexpr_end_5:; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[97], tmp_dictset_value); - Py_DECREF(tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 186; - type_description_2 = "c"; - goto frame_exception_exit_4; - } - } - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2b0f3807e8774cef573b2cd30caedfa_4); -#endif - - // Put the previous frame back on top. - popFrameStack(); - - goto frame_no_exception_3; - - frame_exception_exit_4:; - -#if 0 - RESTORE_FRAME_EXCEPTION(frame_e2b0f3807e8774cef573b2cd30caedfa_4); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_e2b0f3807e8774cef573b2cd30caedfa_4, exception_lineno); - } else if (exception_tb->tb_frame != &frame_e2b0f3807e8774cef573b2cd30caedfa_4->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_e2b0f3807e8774cef573b2cd30caedfa_4, exception_lineno); - } - - // Attaches locals to frame if any. - Nuitka_Frame_AttachLocals( - frame_e2b0f3807e8774cef573b2cd30caedfa_4, - type_description_2, - outline_2_var___class__ - ); - - - // Release cached frame if used for exception. - if (frame_e2b0f3807e8774cef573b2cd30caedfa_4 == cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4) { -#if _DEBUG_REFCOUNTS - count_active_frame_cache_instances -= 1; - count_released_frame_cache_instances += 1; -#endif - - Py_DECREF(cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4); - cache_frame_e2b0f3807e8774cef573b2cd30caedfa_4 = NULL; - } - - assertFrameObject(frame_e2b0f3807e8774cef573b2cd30caedfa_4); - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto nested_frame_exit_3; - - frame_no_exception_3:; - goto skip_nested_handling_3; - nested_frame_exit_3:; - - goto try_except_handler_9; - skip_nested_handling_3:; - { - nuitka_bool tmp_condition_result_15; - PyObject *tmp_compexpr_left_1; - PyObject *tmp_compexpr_right_1; - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_compexpr_left_1 = tmp_class_creation_3__bases; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_compexpr_right_1 = tmp_class_creation_3__bases_orig; - tmp_condition_result_15 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_compexpr_left_1, tmp_compexpr_right_1); - if (tmp_condition_result_15 == NUITKA_BOOL_EXCEPTION) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_9; - } - if (tmp_condition_result_15 == NUITKA_BOOL_TRUE) { - goto branch_yes_10; - } else { - goto branch_no_10; - } - assert(tmp_condition_result_15 != NUITKA_BOOL_UNASSIGNED); - } - branch_yes_10:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - tmp_dictset_value = tmp_class_creation_3__bases_orig; - tmp_res = PyObject_SetItem(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154, mod_consts[193], tmp_dictset_value); - if (tmp_res != 0) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_9; - } - branch_no_10:; - { - PyObject *tmp_assign_source_39; - PyObject *tmp_called_name_7; - PyObject *tmp_args_name_6; - PyObject *tmp_tuple_element_9; - PyObject *tmp_kwargs_name_6; - CHECK_OBJECT(tmp_class_creation_3__metaclass); - tmp_called_name_7 = tmp_class_creation_3__metaclass; - tmp_tuple_element_9 = mod_consts[110]; - tmp_args_name_6 = PyTuple_New(3); - PyTuple_SET_ITEM0(tmp_args_name_6, 0, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_3__bases); - tmp_tuple_element_9 = tmp_class_creation_3__bases; - PyTuple_SET_ITEM0(tmp_args_name_6, 1, tmp_tuple_element_9); - tmp_tuple_element_9 = locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154; - PyTuple_SET_ITEM0(tmp_args_name_6, 2, tmp_tuple_element_9); - CHECK_OBJECT(tmp_class_creation_3__class_decl_dict); - tmp_kwargs_name_6 = tmp_class_creation_3__class_decl_dict; - frame_0d8248690a1fa7baefcab674faced410->m_frame.f_lineno = 154; - tmp_assign_source_39 = CALL_FUNCTION(tmp_called_name_7, tmp_args_name_6, tmp_kwargs_name_6); - Py_DECREF(tmp_args_name_6); - if (tmp_assign_source_39 == NULL) { - assert(ERROR_OCCURRED()); - - FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb); - - - exception_lineno = 154; - - goto try_except_handler_9; - } - { - PyObject *old = Nuitka_Cell_GET(outline_2_var___class__); - PyCell_SET(outline_2_var___class__, tmp_assign_source_39); - Py_XDECREF(old); - } - - } - CHECK_OBJECT(Nuitka_Cell_GET(outline_2_var___class__)); - tmp_assign_source_38 = Nuitka_Cell_GET(outline_2_var___class__); - Py_INCREF(tmp_assign_source_38); - goto try_return_handler_9; - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_9:; - Py_DECREF(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154); - locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154 = NULL; - goto try_return_handler_8; - // Exception handler code: - try_except_handler_9:; - exception_keeper_type_7 = exception_type; - exception_keeper_value_7 = exception_value; - exception_keeper_tb_7 = exception_tb; - exception_keeper_lineno_7 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_DECREF(locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154); - locals_models$unet3d$utils$$$class__3_DefaultTensorboardFormatter_154 = NULL; - // Re-raise. - exception_type = exception_keeper_type_7; - exception_value = exception_keeper_value_7; - exception_tb = exception_keeper_tb_7; - exception_lineno = exception_keeper_lineno_7; - - goto try_except_handler_8; - // End of try: - NUITKA_CANNOT_GET_HERE("tried codes exits in all cases"); - return NULL; - // Return handler code: - try_return_handler_8:; - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - goto outline_result_3; - // Exception handler code: - try_except_handler_8:; - exception_keeper_type_8 = exception_type; - exception_keeper_value_8 = exception_value; - exception_keeper_tb_8 = exception_tb; - exception_keeper_lineno_8 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - CHECK_OBJECT(outline_2_var___class__); - Py_DECREF(outline_2_var___class__); - outline_2_var___class__ = NULL; - // Re-raise. - exception_type = exception_keeper_type_8; - exception_value = exception_keeper_value_8; - exception_tb = exception_keeper_tb_8; - exception_lineno = exception_keeper_lineno_8; - - goto outline_exception_3; - // End of try: - NUITKA_CANNOT_GET_HERE("Return statement must have exited already."); - return NULL; - outline_exception_3:; - exception_lineno = 154; - goto try_except_handler_7; - outline_result_3:; - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[110], tmp_assign_source_38); - } - goto try_end_3; - // Exception handler code: - try_except_handler_7:; - exception_keeper_type_9 = exception_type; - exception_keeper_value_9 = exception_value; - exception_keeper_tb_9 = exception_tb; - exception_keeper_lineno_9 = exception_lineno; - exception_type = NULL; - exception_value = NULL; - exception_tb = NULL; - exception_lineno = 0; - - Py_XDECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - Py_XDECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - // Re-raise. - exception_type = exception_keeper_type_9; - exception_value = exception_keeper_value_9; - exception_tb = exception_keeper_tb_9; - exception_lineno = exception_keeper_lineno_9; - - goto frame_exception_exit_1; - // End of try: - try_end_3:; - - // Restore frame exception if necessary. -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0d8248690a1fa7baefcab674faced410); -#endif - popFrameStack(); - - assertFrameObject(frame_0d8248690a1fa7baefcab674faced410); - - goto frame_no_exception_4; - - frame_exception_exit_1:; -#if 0 - RESTORE_FRAME_EXCEPTION(frame_0d8248690a1fa7baefcab674faced410); -#endif - - if (exception_tb == NULL) { - exception_tb = MAKE_TRACEBACK(frame_0d8248690a1fa7baefcab674faced410, exception_lineno); - } else if (exception_tb->tb_frame != &frame_0d8248690a1fa7baefcab674faced410->m_frame) { - exception_tb = ADD_TRACEBACK(exception_tb, frame_0d8248690a1fa7baefcab674faced410, exception_lineno); - } - - // Put the previous frame back on top. - popFrameStack(); - - // Return the error. - goto module_exception_exit; - - frame_no_exception_4:; - CHECK_OBJECT(tmp_class_creation_3__bases_orig); - Py_DECREF(tmp_class_creation_3__bases_orig); - tmp_class_creation_3__bases_orig = NULL; - Py_XDECREF(tmp_class_creation_3__bases); - tmp_class_creation_3__bases = NULL; - Py_XDECREF(tmp_class_creation_3__class_decl_dict); - tmp_class_creation_3__class_decl_dict = NULL; - Py_XDECREF(tmp_class_creation_3__metaclass); - tmp_class_creation_3__metaclass = NULL; - CHECK_OBJECT(tmp_class_creation_3__prepared); - Py_DECREF(tmp_class_creation_3__prepared); - tmp_class_creation_3__prepared = NULL; - { - PyObject *tmp_assign_source_40; - PyObject *tmp_defaults_6; - tmp_defaults_6 = mod_consts[194]; - Py_INCREF(tmp_defaults_6); - - - tmp_assign_source_40 = MAKE_FUNCTION_models$unet3d$utils$$$function__15__find_masks(tmp_defaults_6); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[195], tmp_assign_source_40); - } - { - PyObject *tmp_assign_source_41; - - - tmp_assign_source_41 = MAKE_FUNCTION_models$unet3d$utils$$$function__16_get_tensorboard_formatter(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[196], tmp_assign_source_41); - } - { - PyObject *tmp_assign_source_42; - PyObject *tmp_defaults_7; - tmp_defaults_7 = mod_consts[160]; - Py_INCREF(tmp_defaults_7); - - - tmp_assign_source_42 = MAKE_FUNCTION_models$unet3d$utils$$$function__17_expand_as_one_hot(tmp_defaults_7); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[197], tmp_assign_source_42); - } - { - PyObject *tmp_assign_source_43; - - - tmp_assign_source_43 = MAKE_FUNCTION_models$unet3d$utils$$$function__18_convert_to_numpy(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[198], tmp_assign_source_43); - } - { - PyObject *tmp_assign_source_44; - - - tmp_assign_source_44 = MAKE_FUNCTION_models$unet3d$utils$$$function__19_create_optimizer(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[199], tmp_assign_source_44); - } - { - PyObject *tmp_assign_source_45; - - - tmp_assign_source_45 = MAKE_FUNCTION_models$unet3d$utils$$$function__20_create_lr_scheduler(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[200], tmp_assign_source_45); - } - { - PyObject *tmp_assign_source_46; - - - tmp_assign_source_46 = MAKE_FUNCTION_models$unet3d$utils$$$function__21_get_class(); - - UPDATE_STRING_DICT1(moduledict_models$unet3d$utils, (Nuitka_StringObject *)mod_consts[201], tmp_assign_source_46); - } - - return module_models$unet3d$utils; - module_exception_exit: - RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb); - return NULL; -} - diff --git a/medomni/models.build/scons-report.txt b/medomni/models.build/scons-report.txt deleted file mode 100644 index f40a49530d2a54ce5d3200fb6c61b7e521b2ef5b..0000000000000000000000000000000000000000 --- a/medomni/models.build/scons-report.txt +++ /dev/null @@ -1,60 +0,0 @@ -CC=gcc -CCACHE_DIR=/home/zhouhy/.cache/Nuitka/ccache -CCACHE_LOGFILE=/home/zhouhy/MedOmni_v0/medomni/models.build/ccache-196568.txt -CCCOM=$CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCCOMCOM $SOURCES -CFILESUFFIX=.c -CPPDEFINES=['__NUITKA_NO_ASSERT__', '_NUITKA_CONSTANTS_FROM_INCBIN', '_NUITKA_FROZEN=0', '_NUITKA_MODULE'] -CPPDEFPREFIX=-D -CPPDEFSUFFIX= -CPPPATH=['/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/include/python3.9', '.', '/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/include', '/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src'] -CPPSUFFIXES=['.c', '.C', '.cxx', '.cpp', '.c++', '.cc', '.h', '.H', '.hxx', '.hpp', '.hh', '.F', '.fpp', '.FPP', '.m', '.mm', '.S', '.spp', '.SPP', '.sx'] -CXX=g++ -CXXCOM=$CXX -o $TARGET -c $CXXFLAGS $CCFLAGS $_CCCOMCOM $SOURCES -CXXFILESUFFIX=.cc -INCPREFIX=-I -INCSUFFIX= -LDMODULE=$SHLINK -LDMODULECOM=$LDMODULE -o $TARGET $LDMODULEFLAGS $__LDMODULEVERSIONFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS -LDMODULEFLAGS=$SHLINKFLAGS -LDMODULENOVERSIONSYMLINKS=$SHLIBNOVERSIONSYMLINKS -LDMODULEPREFIX=$SHLIBPREFIX -LDMODULESUFFIX=$SHLIBSUFFIX -LDMODULEVERSION=$SHLIBVERSION -LDMODULEVERSIONFLAGS=$SHLIBVERSIONFLAGS -LIBDIRPREFIX=-L -LIBDIRSUFFIX= -LIBLINKPREFIX=-l -LIBLINKSUFFIX= -LIBPREFIX=lib -LIBPREFIXES=['$LIBPREFIX'] -LIBS=['dl', 'm'] -LIBSUFFIX=.a -LIBSUFFIXES=['$LIBSUFFIX', '$SHLIBSUFFIX'] -LINK=$SMARTLINK -LINKCOM=$LINK -o $TARGET $LINKFLAGS $__RPATH @"./@link_input.txt" $_LIBDIRFLAGS $_LIBFLAGS -OBJPREFIX= -OBJSUFFIX=.o -PLATFORM=posix -PROGPREFIX= -PROGSUFFIX= -RPATHPREFIX=-Wl,-rpath= -RPATHSUFFIX= -SHCC=$CC -SHCCCOM=$SHCC -o $TARGET -c $SHCFLAGS $SHCCFLAGS $_CCCOMCOM $SOURCES -SHCXX=$CXX -SHCXXCOM=$SHCXX -o $TARGET -c $SHCXXFLAGS $SHCCFLAGS $_CCCOMCOM $SOURCES -SHELL=sh -SHLIBPREFIX= -SHLIBSUFFIX=.cpython-39-x86_64-linux-gnu.so -SHLINK=$LINK -SHLINKCOM=$SHLINK -o $TARGET $SHLINKFLAGS $__SHLIBVERSIONFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS -SHOBJPREFIX=$OBJPREFIX -SHOBJSUFFIX=.os -TARGET_ARCH=x86_64 -TEMPFILEARGJOIN= -TEMPFILEPREFIX=@ -TOOLS=['default', 'gnulink', 'gcc', 'g++'] -gcc_mode=True -clang_mode=False -msvc_mode=False -clangcl_mode=False diff --git a/medomni/models.build/static_src/CompiledCellType.cpp b/medomni/models.build/static_src/CompiledCellType.cpp deleted file mode 120000 index 43f35cad39812d4ca913b8568060ef82cce8dca8..0000000000000000000000000000000000000000 --- a/medomni/models.build/static_src/CompiledCellType.cpp +++ /dev/null @@ -1 +0,0 @@ -/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src/CompiledCellType.c \ No newline at end of file diff --git a/medomni/models.build/static_src/CompiledCodeHelpers.cpp b/medomni/models.build/static_src/CompiledCodeHelpers.cpp deleted file mode 120000 index 3d895e11bc30ddf5c41d8eefcbd56f0df2178d35..0000000000000000000000000000000000000000 --- a/medomni/models.build/static_src/CompiledCodeHelpers.cpp +++ /dev/null @@ -1 +0,0 @@ -/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src/CompiledCodeHelpers.c \ No newline at end of file diff --git a/medomni/models.build/static_src/CompiledFunctionType.cpp b/medomni/models.build/static_src/CompiledFunctionType.cpp deleted file mode 120000 index 3b07081bc6f9bded6526e41753718c2cc239303d..0000000000000000000000000000000000000000 --- a/medomni/models.build/static_src/CompiledFunctionType.cpp +++ /dev/null @@ -1 +0,0 @@ -/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src/CompiledFunctionType.c \ No newline at end of file diff --git a/medomni/models.build/static_src/CompiledGeneratorType.cpp b/medomni/models.build/static_src/CompiledGeneratorType.cpp deleted file mode 120000 index c3fd98045e628d213640bc383227f87c70bb4196..0000000000000000000000000000000000000000 --- a/medomni/models.build/static_src/CompiledGeneratorType.cpp +++ /dev/null @@ -1 +0,0 @@ -/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src/CompiledGeneratorType.c \ No newline at end of file diff --git a/medomni/models.build/static_src/InspectPatcher.cpp b/medomni/models.build/static_src/InspectPatcher.cpp deleted file mode 120000 index 963128b6192b91f72cb5e7b61a02b1c6fffe3e5f..0000000000000000000000000000000000000000 --- a/medomni/models.build/static_src/InspectPatcher.cpp +++ /dev/null @@ -1 +0,0 @@ -/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src/InspectPatcher.c \ No newline at end of file diff --git a/medomni/models.build/static_src/MetaPathBasedLoader.cpp b/medomni/models.build/static_src/MetaPathBasedLoader.cpp deleted file mode 120000 index 1ca5de4f7783ff452e6220e6d4d8d46083fb4bb3..0000000000000000000000000000000000000000 --- a/medomni/models.build/static_src/MetaPathBasedLoader.cpp +++ /dev/null @@ -1 +0,0 @@ -/nvme1/gptdata/share2/zhouhy/anaconda3/envs/fld_mini2/lib/python3.9/site-packages/nuitka/build/static_src/MetaPathBasedLoader.c \ No newline at end of file diff --git a/utils.py b/utils.py index ee7f88d122e99546422ec4b1b8b6e3f6c2d74457..4ff78275eef50402a5667e1c245a5e87dc87a79f 100644 --- a/utils.py +++ b/utils.py @@ -317,4 +317,4 @@ def generate_predictions(model, images, context, prompt, modality, task, num_bea with torch.no_grad(): generated_image, seg_mask_2d, seg_mask_3d, output_text = generate(model, images, image_tensor, context, modal, task, num_imgs, prompt, num_beams, do_sample, min_length, top_p, repetition_penalty, length_penalty, temperature) - return seg_mask_2d, seg_mask_3d, output_text \ No newline at end of file + return seg_mask_2d, seg_mask_3d, output_text